Skip to content

CREnable

Kay Steinhoff edited this page Oct 8, 2024 · 1 revision

void CREnable(uint32_t settingBit)

Parameters

settingBit

The bit of the setting that is to be toggled. To see all the available setting bits please go to the setting bits page.

Example

#include <cr.h>

int main(void)
{
    /* Initialize CR, set render destination(optional, can also be done after) */
    CREnable(CR_BACKFACE_CULLING); // Disable backface culling(Enabled by default)

    /* render loop and the rest of the code */

    return 0;
}

Clone this wiki locally