mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-17 19:46:43 -04:00
rlgl rewrite, meshes not showing up correctly yet
This commit is contained in:
parent
7bfbb6bff8
commit
e9a1c6073c
5 changed files with 824 additions and 49 deletions
|
@ -251,14 +251,14 @@ static void BlendVertices()
|
|||
|
||||
static void DrawMeshes()
|
||||
{
|
||||
glPointSize(2.0);
|
||||
//glPointSize(2.0);
|
||||
glColor3f(1.0, 1.0, 1.0);
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
//TransformVertices(Skeleton.Bones[0]);
|
||||
TransformVertices(Skeleton.Bones[0]);
|
||||
glPopMatrix();
|
||||
BlendVertices();
|
||||
|
||||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||
|
@ -424,7 +424,7 @@ static int Startup()
|
|||
ReadAnimation(Animation);
|
||||
free(InData);
|
||||
|
||||
//AdvanceFrame(Skeleton, Animation, 0);
|
||||
AdvanceFrame(Skeleton, Animation, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue