implement instanced drawing

This commit is contained in:
2017-03-27 22:29:47 +01:00
parent b9277f94e8
commit e8cabebe66
8 changed files with 206 additions and 36 deletions

View File

@@ -113,6 +113,7 @@ void RTT::readTextureData(uint8_t* buffer)
{
bindTexture();
//glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, buffer);
glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, buffer);
unbindTexture();
}