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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user