Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/OpenGLTexture.h @ 2047:0b596428e60c deep-learning
added OpenGLTexture::GetFormat()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Mar 2023 11:00:55 +0100 |
parents | 0fa4c0ca429d |
children | c0627145b441 |
comparison
equal
deleted
inserted
replaced
2046:98b44468332e | 2047:0b596428e60c |
---|---|
39 { | 39 { |
40 private: | 40 private: |
41 GLuint texture_; | 41 GLuint texture_; |
42 unsigned int width_; | 42 unsigned int width_; |
43 unsigned int height_; | 43 unsigned int height_; |
44 | |
45 Orthanc::PixelFormat format_; | |
44 OpenGL::IOpenGLContext& context_; | 46 OpenGL::IOpenGLContext& context_; |
45 | 47 |
46 void Setup(Orthanc::PixelFormat format, | 48 void Setup(Orthanc::PixelFormat format, |
47 unsigned int width, | 49 unsigned int width, |
48 unsigned int height, | 50 unsigned int height, |
59 * never change the size of the texture using this handle! | 61 * never change the size of the texture using this handle! |
60 **/ | 62 **/ |
61 GLuint GetId() const | 63 GLuint GetId() const |
62 { | 64 { |
63 return texture_; | 65 return texture_; |
66 } | |
67 | |
68 Orthanc::PixelFormat GetFormat() const | |
69 { | |
70 return format_; | |
64 } | 71 } |
65 | 72 |
66 unsigned int GetWidth() const | 73 unsigned int GetWidth() const |
67 { | 74 { |
68 return width_; | 75 return width_; |