working on Mesh support
- loads only Milkshape ASCII - doesn't yet load textures or render with materials
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user