Added OpenGL Core Profile support.

This commit is contained in:
Martín Lucas Golini
2013-11-03 04:17:57 -03:00
parent 87cec40bf7
commit 45d3b22039
34 changed files with 1394 additions and 355 deletions

View File

@@ -247,10 +247,10 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
/// VertexPointer assigns values by default to the attribute "dgl_Vertex"
/// TextureCoordPointer to "dgl_MultiTexCoord0"
GLi->VertexPointer( 3, GL_FLOAT, sizeof(eeVector3ff), reinterpret_cast<char*> ( &vertices[0] ) );
GLi->VertexPointer( 3, GL_FLOAT, sizeof(eeVector3ff), reinterpret_cast<char*> ( &vertices[0] ), ParticlesNum * sizeof(float) * 3 );
/// ColorPointer to "dgl_FrontColor"
GLi->ColorPointer( 4, GL_FP, sizeof(eeColorAf), reinterpret_cast<char*> ( &colors[0] ) );
GLi->ColorPointer( 4, GL_FP, sizeof(eeColorAf), reinterpret_cast<char*> ( &colors[0] ), ParticlesNum * sizeof(eeFloat) );
/// Draw the lines
GLi->DrawArrays( DM_LINES, 0, ParticlesNum );