Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUIRenderer.cpp
Show First 20 Lines • Show All 331 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void GUIRenderer::Draw(DrawCalls& Calls, float Z) | void GUIRenderer::Draw(DrawCalls& Calls, float Z) | ||||
{ | { | ||||
// Called every frame, to draw the object (based on cached calculations) | // Called every frame, to draw the object (based on cached calculations) | ||||
// TODO: batching by shader/texture/etc would be nice | // TODO: batching by shader/texture/etc would be nice | ||||
ogl_DebugGroup group("Draw GUI element"); | |||||
CMatrix3D matrix = GetDefaultGuiMatrix(); | CMatrix3D matrix = GetDefaultGuiMatrix(); | ||||
glDisable(GL_BLEND); | glDisable(GL_BLEND); | ||||
// Set LOD bias so mipmapped textures are prettier | // Set LOD bias so mipmapped textures are prettier | ||||
#if CONFIG2_GLES | #if CONFIG2_GLES | ||||
#warning TODO: implement GUI LOD bias for GLES | #warning TODO: implement GUI LOD bias for GLES | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator