Added OpenGL::Delete[FrameBuffer|VertexArray]

Also renamed OpenGL::OnContextChange to OnContextChanged (since it
happens after the context change)
Also improved RenderTexture implementation


Former-commit-id: d845b1405294dd3aa134d392585069bbb28a77a3
This commit is contained in:
Lynix
2014-04-25 12:38:53 +02:00
parent a3f877daf1
commit 7ac3fee3a5
4 changed files with 70 additions and 27 deletions

View File

@@ -86,9 +86,11 @@ class NAZARA_API NzOpenGL
static void BindViewport(const NzRecti& viewport);
static void DeleteBuffer(nzBufferType type, GLuint id);
static void DeleteFrameBuffer(const NzContext* context, GLuint id);
static void DeleteProgram(GLuint id);
static void DeleteSampler(GLuint id);
static void DeleteTexture(GLuint id);
static void DeleteVertexArray(const NzContext* context, GLuint id);
static GLuint GetCurrentBuffer(nzBufferType type);
static GLuint GetCurrentProgram();
@@ -149,7 +151,7 @@ class NAZARA_API NzOpenGL
static GLenum TextureTargetProxy[nzImageType_Max+1];
private:
static void OnContextChange(const NzContext* newContext);
static void OnContextChanged(const NzContext* newContext);
static void OnContextDestruction(const NzContext* context);
};