OpenGL base header. More...
#include <system/debug/kzs_error.h>#include <system/debug/kzs_log.h>#include <system/kzs_types.h>#include <system/kzs_header.h>Macros | |
| #define | KZ_LOG_OPENGL |
| #define | KZ_OPENGL_NONE |
| No OpenGL version specified. More... | |
| #define | KZ_OPENGL_ES_2_0 |
| OpenGL ES 2.0 version. More... | |
| #define | KZ_OPENGL |
| Desktop OpenGL. More... | |
| #define | KZ_OPENGL_ES_3_0 |
| OpenGL ES 3.0 version. More... | |
| #define | KZ_PLATFORM_UNSPECIFIED |
| No platform specified. More... | |
| #define | KZ_PLATFORM_IMG |
| IMG platform. More... | |
| #define | KZ_PLATFORM_AMD |
| AMD platform. More... | |
| #define | KZ_PLATFORM_TEGRA |
| Tegra platform. More... | |
| #define | KZ_PLATFORM_DESKTOP |
| Desktop platform. More... | |
| #define | KZ_OPENGL_PLATFORM |
| #define | KZ_OPENGL_API_NONE |
| #define | KZ_OPENGL_CALL_BEGIN |
| Macro to use for starting OpenGL calls to allow disabling them with a control flag. More... | |
| #define | KZ_OPENGL_CALL_BEGIN_NO_LOG |
| #define | KZ_OPENGL_CALL_BEGIN_LOG(formatArgs) |
| #define | KZ_OPENGL_LOG(formatArgs) |
| #define | KZ_OPENGL_CALL_END |
| Macro to use for enging OpenGL calls to allow disabling them with a control flag. More... | |
| #define | KZ_OPENGL_CALL_END_RETURN_VALUE(x) |
| Macro to use for enging OpenGL calls with a return value to allow disabling them with a control flag. More... | |
Functions | |
| void | kzsOpenGLCallsSetEnabled (bool enabled) |
| Sets OpenGL calls enabled / disabled. More... | |
| bool | kzsOpenGLCallsIsEnabled (void) |
| Checks if opengl calls are enabled. More... | |
| KANZI_API kzsError | kzsOpenGLInitialize (void) |
| Initializes OpenGL, associates extensions needed for OpenGL profile. More... | |
| KANZI_API bool | kzsGlIsExtensionSupported (kzString extension) |
| void | kzsGetOpenGLExtensions () |
Variables | |
| KANZI_API bool | g_kzsEnableOpenGLCalls |
| Global variable for controlling if OpenGL calls are enabled. More... | |
| KANZI_API bool | g_kzsEnableOpenGLLog |
OpenGL base header.
Copyright 2008-2020 by Rightware. All rights reserved.
| #define KZ_LOG_OPENGL |
| #define KZ_OPENGL_NONE |
No OpenGL version specified.
| #define KZ_OPENGL_ES_2_0 |
OpenGL ES 2.0 version.
| #define KZ_OPENGL |
Desktop OpenGL.
| #define KZ_OPENGL_ES_3_0 |
OpenGL ES 3.0 version.
| #define KZ_PLATFORM_UNSPECIFIED |
No platform specified.
| #define KZ_PLATFORM_IMG |
IMG platform.
| #define KZ_PLATFORM_AMD |
AMD platform.
| #define KZ_PLATFORM_TEGRA |
Tegra platform.
| #define KZ_PLATFORM_DESKTOP |
Desktop platform.
| #define KZ_OPENGL_PLATFORM |
| #define KZ_OPENGL_API_NONE |
| #define KZ_OPENGL_CALL_BEGIN |
Macro to use for starting OpenGL calls to allow disabling them with a control flag.
Also possible to add minimalistic logging.
| #define KZ_OPENGL_CALL_BEGIN_NO_LOG |
| #define KZ_OPENGL_CALL_BEGIN_LOG | ( | formatArgs | ) |
| #define KZ_OPENGL_LOG | ( | formatArgs | ) |
| #define KZ_OPENGL_CALL_END |
Macro to use for enging OpenGL calls to allow disabling them with a control flag.
| #define KZ_OPENGL_CALL_END_RETURN_VALUE | ( | x | ) |
Macro to use for enging OpenGL calls with a return value to allow disabling them with a control flag.
| void kzsOpenGLCallsSetEnabled | ( | bool | enabled | ) |
Sets OpenGL calls enabled / disabled.
| bool kzsOpenGLCallsIsEnabled | ( | void | ) |
Checks if opengl calls are enabled.
Initializes OpenGL, associates extensions needed for OpenGL profile.
This function should be called once, after the first GL context has been created.
| void kzsGetOpenGLExtensions | ( | ) |
| KANZI_API bool g_kzsEnableOpenGLCalls |
Global variable for controlling if OpenGL calls are enabled.
| KANZI_API bool g_kzsEnableOpenGLLog |