Mercurial > hg > orthanc-stone
comparison Framework/OpenGL/OpenGLTexture.h @ 947:1091b2adeb5a toa2019081001
Fixed animation frame stopping when returning false + big work on the OpenGL
objects to make them lost context-safe + debug code to forcefully tag a
context as lost + debug macros
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sat, 10 Aug 2019 13:07:31 +0200 |
parents | e36e69a380a5 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
946:dbe3e1e47019 | 947:1091b2adeb5a |
---|---|
30 | 30 |
31 namespace OrthancStone | 31 namespace OrthancStone |
32 { | 32 { |
33 namespace OpenGL | 33 namespace OpenGL |
34 { | 34 { |
35 class IOpenGLContext; | |
36 | |
35 class OpenGLTexture : public boost::noncopyable | 37 class OpenGLTexture : public boost::noncopyable |
36 { | 38 { |
37 private: | 39 private: |
38 GLuint texture_; | 40 GLuint texture_; |
39 unsigned int width_; | 41 unsigned int width_; |
40 unsigned int height_; | 42 unsigned int height_; |
43 OpenGL::IOpenGLContext& context_; | |
41 | 44 |
42 public: | 45 public: |
43 OpenGLTexture(); | 46 OpenGLTexture(OpenGL::IOpenGLContext& context); |
44 | 47 |
45 ~OpenGLTexture(); | 48 ~OpenGLTexture(); |
46 | 49 |
47 unsigned int GetWidth() const | 50 unsigned int GetWidth() const |
48 { | 51 { |