Explorar el Código

Enable GL_COLOR_ARRAY in ShellRenderInterfaceOpenGL.cpp.

This means that people using this file as a starting point will be able to use
non-textured coloured shapes and will be able to modify font colours.
Martin Foot hace 14 años
padre
commit
c65a426549
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Samples/shell/src/ShellRenderInterfaceOpenGL.cpp

+ 1 - 0
Samples/shell/src/ShellRenderInterfaceOpenGL.cpp

@@ -41,6 +41,7 @@ void ShellRenderInterfaceOpenGL::RenderGeometry(Rocket::Core::Vertex* vertices,
 	glTranslatef(translation.x, translation.y, 0);
 
 	glVertexPointer(2, GL_FLOAT, sizeof(Rocket::Core::Vertex), &vertices[0].position);
+	glEnableClientState(GL_COLOR_ARRAY);
 	glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Rocket::Core::Vertex), &vertices[0].colour);
 
 	if (!texture)