KarmaEngine
Game Engine for practical learning and research purposes
|
A data structure for KarmaGui's OpenGL backend renderer. More...
#include <KarmaGuiOpenGLHandler.h>
Public Member Functions | |
KarmaGui_ImplOpenGL3_Data () | |
A constructor. | |
Public Attributes | |
GLuint | GlVersion |
The OpenGL version in use. | |
char | GlslVersionString [32] |
Specified by user or detected based on compile time GL settings. | |
GLuint | FontTexture |
Array ID for OpenGL's font texture. | |
std::vector< MesaDecalData > | openglMesaDecalDataList |
The list of all the images' data to be used in KarmaGui with OpenGL api. | |
GLuint | ShaderHandle |
The handle for KarmaGui's shader program. | |
GLint | AttribLocationTex |
An integer that represents the location of a texture uniform variable within a program object. | |
GLint | AttribLocationProjMtx |
An integer that represents the location of a projection matrix uniform variable within a program object. | |
GLuint | AttribLocationVtxPos |
An integer that represents the location of a vertex position (model transform?) uniform variable within a program object. | |
GLuint | AttribLocationVtxUV |
An integer that represents the location of a UV uniform variable within a program object. | |
GLuint | AttribLocationVtxColor |
An integer that represents the location of a vertex colo(u)r uniform variable within a program object. | |
unsigned int | VboHandle |
The handle for vertex buffer (GL_ARRAY_BUFFER) object meant for KarmaGui using OpenGL api. | |
unsigned int | ElementsHandle |
The handle for index buffer (GL_ELEMENT_ARRAY_BUFFER) object meant for KarmaGui using OpenGL api. | |
GLsizeiptr | VertexBufferSize |
The size of total sum of vertices in int units of sizeof(KGDrawVert) to be utilized by KarmaGui using OpenGL api. | |
GLsizeiptr | IndexBufferSize |
The size of total sum of indices in int units of sizeof(KGDrawVert) to be utilized by KarmaGui using OpenGL api. | |
bool | HasClipOrigin |
If extension GL_ARB_clip_control is supported and macro IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS is defined or GlVersion >= 450 (setting the value true), then we look for clip origin. Assumption (in KarmaGui_ImplOpenGL3_SetupRenderState) is: origin is lower left. | |
bool | UseBufferSubData |
True when the processor vendor is Intel and we are on Windows platform. When true glBufferSubData (instead of glBufferData) is used to upload vertex/index buffers. | |
A data structure for KarmaGui's OpenGL backend renderer.
|
inline |
A constructor.
GLint Karma::KarmaGui_ImplOpenGL3_Data::AttribLocationProjMtx |
An integer that represents the location of a projection matrix uniform variable within a program object.
GLint Karma::KarmaGui_ImplOpenGL3_Data::AttribLocationTex |
An integer that represents the location of a texture uniform variable within a program object.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::AttribLocationVtxColor |
An integer that represents the location of a vertex colo(u)r uniform variable within a program object.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::AttribLocationVtxPos |
An integer that represents the location of a vertex position (model transform?) uniform variable within a program object.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::AttribLocationVtxUV |
An integer that represents the location of a UV uniform variable within a program object.
unsigned int Karma::KarmaGui_ImplOpenGL3_Data::ElementsHandle |
The handle for index buffer (GL_ELEMENT_ARRAY_BUFFER) object meant for KarmaGui using OpenGL api.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::FontTexture |
Array ID for OpenGL's font texture.
char Karma::KarmaGui_ImplOpenGL3_Data::GlslVersionString[32] |
Specified by user or detected based on compile time GL settings.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::GlVersion |
The OpenGL version in use.
bool Karma::KarmaGui_ImplOpenGL3_Data::HasClipOrigin |
If extension GL_ARB_clip_control is supported and macro IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS is defined or GlVersion >= 450 (setting the value true), then we look for clip origin. Assumption (in KarmaGui_ImplOpenGL3_SetupRenderState) is: origin is lower left.
GLsizeiptr Karma::KarmaGui_ImplOpenGL3_Data::IndexBufferSize |
The size of total sum of indices in int units of sizeof(KGDrawVert) to be utilized by KarmaGui using OpenGL api.
std::vector<MesaDecalData> Karma::KarmaGui_ImplOpenGL3_Data::openglMesaDecalDataList |
The list of all the images' data to be used in KarmaGui with OpenGL api.
GLuint Karma::KarmaGui_ImplOpenGL3_Data::ShaderHandle |
The handle for KarmaGui's shader program.
bool Karma::KarmaGui_ImplOpenGL3_Data::UseBufferSubData |
True when the processor vendor is Intel and we are on Windows platform. When true glBufferSubData (instead of glBufferData) is used to upload vertex/index buffers.
unsigned int Karma::KarmaGui_ImplOpenGL3_Data::VboHandle |
The handle for vertex buffer (GL_ARRAY_BUFFER) object meant for KarmaGui using OpenGL api.
GLsizeiptr Karma::KarmaGui_ImplOpenGL3_Data::VertexBufferSize |
The size of total sum of vertices in int units of sizeof(KGDrawVert) to be utilized by KarmaGui using OpenGL api.