diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-02 02:25:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:49:14 +0300 |
commit | a92d77acf715f5a775e99b575cc8cc5238b11557 (patch) | |
tree | 1361ba0795758d8989a5ed87762822a32a47845b /source/blender/gpu/opengl/gl_backend.hh | |
parent | f72c1c4547e5fab769c22652d9872192029ad7fe (diff) |
GPUTexture: Add skeleton of the new GLTexture class
Diffstat (limited to 'source/blender/gpu/opengl/gl_backend.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_backend.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.hh b/source/blender/gpu/opengl/gl_backend.hh index 332350e47b5..6029ff9e309 100644 --- a/source/blender/gpu/opengl/gl_backend.hh +++ b/source/blender/gpu/opengl/gl_backend.hh @@ -32,6 +32,7 @@ #include "gl_drawlist.hh" #include "gl_framebuffer.hh" #include "gl_shader.hh" +#include "gl_texture.hh" #include "gl_uniform_buffer.hh" namespace blender { @@ -72,6 +73,11 @@ class GLBackend : public GPUBackend { return new GLShader(name); }; + Texture *texture_alloc(const char *name) + { + return new GLTexture(name); + }; + UniformBuf *uniformbuf_alloc(int size, const char *name) { return new GLUniformBuf(size, name); |