Removed renderTriangles2 as the normal render loop is used now.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 11 years ago
parent a1cf2c640b
commit 34de0b5569

@ -437,7 +437,6 @@ public:
virtual bool renderLines(CMaterial& mat, uint32 firstIndex, uint32 nlines); virtual bool renderLines(CMaterial& mat, uint32 firstIndex, uint32 nlines);
virtual bool renderTriangles(CMaterial& Mat, uint32 firstIndex, uint32 ntris); virtual bool renderTriangles(CMaterial& Mat, uint32 firstIndex, uint32 ntris);
bool renderTriangles2(CMaterial& Mat, uint32 firstIndex, uint32 ntris );
virtual bool renderSimpleTriangles(uint32 firstTri, uint32 ntris); virtual bool renderSimpleTriangles(uint32 firstTri, uint32 ntris);
virtual bool renderRawPoints(CMaterial& Mat, uint32 startIndex, uint32 numPoints); virtual bool renderRawPoints(CMaterial& Mat, uint32 startIndex, uint32 numPoints);
virtual bool renderRawLines(CMaterial& Mat, uint32 startIndex, uint32 numLines); virtual bool renderRawLines(CMaterial& Mat, uint32 startIndex, uint32 numLines);

@ -114,32 +114,6 @@ namespace NL3D
return true; return true;
} }
bool CDriverGL3::renderTriangles2( CMaterial &mat, uint32 startIndex, uint32 numTris )
{
if( !setupMaterial( mat ) )
return false;
if( !setupProgram( mat ) )
return false;
if( numTris )
{
if (_LastIB._Format == CIndexBuffer::Indices16)
{
glDrawElements(GL_TRIANGLES,3*numTris,GL_UNSIGNED_SHORT, ((uint16 *) _LastIB._Values)+startIndex);
}
else
{
nlassert(_LastIB._Format == CIndexBuffer::Indices32);
glDrawElements(GL_TRIANGLES,3*numTris,GL_UNSIGNED_INT, ((uint32 *) _LastIB._Values)+startIndex);
}
}
releaseProgram();
return true;
}
static IProgram *vp; static IProgram *vp;
static IProgram *pp; static IProgram *pp;
static IProgramObject *p; static IProgramObject *p;

Loading…
Cancel
Save