gl_graphics_context.hpp File Reference

Namespaces

 kanzi
 

Functions

KANZI_API kzsError kzsGlGraphicsContextCreate (struct KzsSurface *surface, struct KzsGlGraphicsContext **out_glGraphicsContext)
 
KANZI_API kzsError kzsGlGraphicsContextDestroy (struct KzsGlGraphicsContext *context)
 
KANZI_API void kzsGlGraphicsContextSetActive (const struct KzsGlGraphicsContext *context)
 
KANZI_API kanzi::GlGraphicsAdapterkzsGlGraphicsContextGetAdapter (const struct KzsGlGraphicsContext *context)
 
KANZI_API bool kzsGlGraphicsContextIsKhrDebugSupported (const struct KzsGlGraphicsContext *context)
 
KANZI_API enum KzsOpenGlVendor kzsGlGraphicsContextGetVendor (const struct KzsGlGraphicsContext *context)
 
KANZI_API enum KzsSurfaceType kzsGlGraphicsContextGetSurfaceType (const struct KzsGlGraphicsContext *context)
 
KANZI_API enum KzsGraphicsContextAPI kzsGlGraphicsContextGetAPI (const struct KzsGlGraphicsContext *context)
 
KANZI_API bool kzsGlIsExtensionSupported (const struct KzsGlGraphicsContext *context, kzString extension)
 
KANZI_API struct KzsSurfacekzsGlGraphicsContextGetSurface (struct KzsGlGraphicsContext *context)
 
KANZI_API struct KzsDynamicLibrary * kzsGlGraphicsContextOpenLibrary (struct KzsGlGraphicsContext *context, kzString libraryName)
 
KANZI_API void kzsGlGraphicsContextSetLogging (struct KzsGlGraphicsContext *context, bool enabled, bool dumpStateOnDrawCalls)
 Set OpenGL API call logging on/off. More...
 
KANZI_API bool kzsGlGraphicsContextGetLogging (struct KzsGlGraphicsContext *context)
 Return current OpenGL API call logging setting. More...
 
KANZI_API bool kzsGlGraphicsContextGetDumpStateOnDrawCalls (struct KzsGlGraphicsContext *context)
 
KANZI_API void kzsGlGraphicsContextSetErrorChecking (struct KzsGlGraphicsContext *context, bool enabled)
 Set OpenGL API call error checking on/off. More...
 
KANZI_API void kzsGlGraphicsContextSetDebugCallback (struct KzsGlGraphicsContext *context, bool enabled)
 Set OpenGL API call debug callback on/off. More...
 
void kzsGlGraphicsContextGetGlesSymbols (struct KzsGlGraphicsContext *glGraphicsContext)
 
void kzsGlGraphicsContextGetOpenGlSymbols (struct KzsGlGraphicsContext *glGraphicsContext)
 

Function Documentation

KANZI_API kzsError kzsGlGraphicsContextCreate ( struct KzsSurface surface,
struct KzsGlGraphicsContext **  out_glGraphicsContext 
)
KANZI_API kzsError kzsGlGraphicsContextDestroy ( struct KzsGlGraphicsContext *  context)
KANZI_API void kzsGlGraphicsContextSetActive ( const struct KzsGlGraphicsContext *  context)
KANZI_API kanzi::GlGraphicsAdapter* kzsGlGraphicsContextGetAdapter ( const struct KzsGlGraphicsContext *  context)
KANZI_API bool kzsGlGraphicsContextIsKhrDebugSupported ( const struct KzsGlGraphicsContext *  context)
KANZI_API enum KzsOpenGlVendor kzsGlGraphicsContextGetVendor ( const struct KzsGlGraphicsContext *  context)
KANZI_API enum KzsSurfaceType kzsGlGraphicsContextGetSurfaceType ( const struct KzsGlGraphicsContext *  context)
KANZI_API enum KzsGraphicsContextAPI kzsGlGraphicsContextGetAPI ( const struct KzsGlGraphicsContext *  context)
KANZI_API bool kzsGlIsExtensionSupported ( const struct KzsGlGraphicsContext *  context,
kzString  extension 
)
KANZI_API struct KzsSurface* kzsGlGraphicsContextGetSurface ( struct KzsGlGraphicsContext *  context)
KANZI_API struct KzsDynamicLibrary* kzsGlGraphicsContextOpenLibrary ( struct KzsGlGraphicsContext *  context,
kzString  libraryName 
)
KANZI_API void kzsGlGraphicsContextSetLogging ( struct KzsGlGraphicsContext *  context,
bool  enabled,
bool  dumpStateOnDrawCalls 
)

Set OpenGL API call logging on/off.

KANZI_API bool kzsGlGraphicsContextGetLogging ( struct KzsGlGraphicsContext *  context)

Return current OpenGL API call logging setting.

KANZI_API bool kzsGlGraphicsContextGetDumpStateOnDrawCalls ( struct KzsGlGraphicsContext *  context)
KANZI_API void kzsGlGraphicsContextSetErrorChecking ( struct KzsGlGraphicsContext *  context,
bool  enabled 
)

Set OpenGL API call error checking on/off.

KANZI_API void kzsGlGraphicsContextSetDebugCallback ( struct KzsGlGraphicsContext *  context,
bool  enabled 
)

Set OpenGL API call debug callback on/off.

void kzsGlGraphicsContextGetGlesSymbols ( struct KzsGlGraphicsContext *  glGraphicsContext)
void kzsGlGraphicsContextGetOpenGlSymbols ( struct KzsGlGraphicsContext *  glGraphicsContext)