mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Added OpenGL Core Profile support.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user