comparison OrthancStone/Sources/OpenGL/OpenGLTexture.h @ 2032:d10bab7cc396 deep-learning

added OpenGLTexture::Download()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 21 Jan 2023 16:48:56 +0100
parents 7053b8a0aaec
children 4b24b7533346
comparison
equal deleted inserted replaced
2031:a56f7ed0cdf9 2032:d10bab7cc396
22 22
23 23
24 #pragma once 24 #pragma once
25 25
26 #include "OpenGLIncludes.h" 26 #include "OpenGLIncludes.h"
27 #include "IOpenGLContext.h"
27 28
28 #include <Images/ImageAccessor.h> 29 #include <Images/ImageAccessor.h>
29 30
30 #include <boost/noncopyable.hpp> 31 #include <boost/noncopyable.hpp>
31 32
32 33
33 namespace OrthancStone 34 namespace OrthancStone
34 { 35 {
35 namespace OpenGL 36 namespace OpenGL
36 { 37 {
37 class IOpenGLContext;
38
39 class OpenGLTexture : public boost::noncopyable 38 class OpenGLTexture : public boost::noncopyable
40 { 39 {
41 private: 40 private:
42 GLuint texture_; 41 GLuint texture_;
43 unsigned int width_; 42 unsigned int width_;
61 60
62 void Load(const Orthanc::ImageAccessor& image, 61 void Load(const Orthanc::ImageAccessor& image,
63 bool isLinearInterpolation); 62 bool isLinearInterpolation);
64 63
65 void Bind(GLint location); 64 void Bind(GLint location);
65
66 Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format);
66 }; 67 };
67 } 68 }
68 } 69 }