Skip to main content
Participant
May 1, 2014

OVR_CAPI.h: bool or ovrBool?

On roughly line 645:

OVR_EXPORT void ovrHmd_ResetFrameTiming(ovrHmd hmd, unsigned int frameIndex, bool vsync);


Should that "bool vsync" be "ovrBool vsync"?

Thanks!

    4 replies

    Inspiring
    May 1, 2014
    Looks like it's just a normal 'bool'.

    Are you having any specific issue with this?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    kojack
    Honored Contributor
    May 1, 2014
    Technically C doesn't have bool, so it probably isn't good to have it in a C api.
    However C99 has _Bool, and the stdbool.h header usually defines a bool macro that expands to _Bool.
    Author: Oculus Monitor , Auto Oculus Touch , Forum Dark Mode , Phantom Touch Remover , X-Plane Fixer Hardware: Threadripper 1950x, MSI Gaming Trio 2080TI, Asrock X399 Taich Headsets: Wrap 1200VR, DK1, DK2, CV1, Rift-S, GearVR, Go, Quest, Quest 2, Reverb G2, Quest 3
    wwwtyroAuthor
    Participant
    May 2, 2014
    Just Kojack's point and that you guys have defined an ovrBool, presumably to address that. Really seems like it was meant to be an ovrBool, but if not, is there a reason it's not?

    Thanks!! :)
    Inspiring
    May 2, 2014
    This may be a mistake. I filed a bug report. Thanks.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV