working on Mesh support

- loads only Milkshape ASCII
- doesn't yet load textures or render with materials
This commit is contained in:
Chris Danford
2003-04-25 21:05:40 +00:00
parent ecebd53c34
commit b72804294a
14 changed files with 1868 additions and 21 deletions
+9
View File
@@ -7,6 +7,7 @@
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
Glenn Maynard
-----------------------------------------------------------------------------
*/
@@ -469,6 +470,14 @@ void RageDisplay::DrawStrip( const RageVertex v[], int iNumVerts )
g_iVertsRenderedSinceLastCheck += iNumVerts;
}
void RageDisplay::DrawTriangles( const RageVertex v[], int iNumVerts )
{
ASSERT( iNumVerts >= 3 );
glInterleavedArrays( RageVertexFormat, sizeof(RageVertex), v );
glDrawArrays( GL_TRIANGLES, 0, iNumVerts );
g_iVertsRenderedSinceLastCheck += iNumVerts;
}
/* Draw a line as a quad. GL_LINES with antialiasing off can draw line
* ends at odd angles--they're forced to axis-alignment regardless of the
* angle of the line. */