mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
OpenGL vertex buffer object emulation code. (#53)
* * Make more GL vertex buffer related functions use the xgl prefix. This allows me to later overload them in case I want to try to emulate vertex buffers in software. * * Add (incomplete) GL VBO emulation. Works well enough but it's very slow. * * Define USE_HARDWARE_GL_BUFFERS again.
This commit is contained in:
@@ -75,7 +75,9 @@ void Cube::addBox(float x, float y, float z, int d, int e, int f, float g)
|
||||
|
||||
void Cube::compile(float scale)
|
||||
{
|
||||
xglDeleteBuffers(1, &m_buffer);
|
||||
if (m_bCompiled)
|
||||
xglDeleteBuffers(1, &m_buffer);
|
||||
|
||||
xglGenBuffers(1, &m_buffer);
|
||||
|
||||
Tesselator& t = Tesselator::instance;
|
||||
|
||||
Reference in New Issue
Block a user