Commit 3b627103 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

cleanup

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19669 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0552decf
......@@ -1021,62 +1021,4 @@ void GLLineBox::updateVBO()
//------------------------------------------------------------------------
/*
bool GLBox::checkLineIBO()
{
bool success = false;
if (lineIbo_)
success = true;
else
{
if (lineIboData_)
{
glGenBuffersARB(1, &lineIbo_);
glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, lineIbo_);
glBufferDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB, numLines_*2*4, lineIboData_, GL_STATIC_DRAW_ARB);
delete[] lineIboData_;
lineIboData_ = 0;
success = true;
}
}
return success;
}
//------------------------------------------------------------------------
void GLBox::drawLines()
{
bindVBO();
if (checkLineIBO())
glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, lineIbo_);
glDrawElements(GL_LINES, numLines_*2, GL_UNSIGNED_INT, 0);
unBindVBO();
glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0);
}
void GLBox::addToRendererLines(class IRenderer* _renderer, const struct RenderObject* _base)
{
if (checkLineIBO() && checkVBO())
{
RenderObject ro = *_base;
ro.vertexBuffer = getVBO();
ro.indexBuffer = lineIbo_;
ro.vertexDecl = getVertexDecl();
ro.glDrawElements(GL_LINES, numLines_*2, GL_UNSIGNED_INT, 0);
_renderer->addRenderObject(&ro);
}
}
*/
//------------------------------------------------------------------------
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment