comparison Framework/Scene2D/Internals/OpenGLFloatTextureProgram.h @ 592:bbe29efd3d1c

OpenGLLinesProgram
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 Apr 2019 12:55:43 +0200
parents b66ced2c43d4
children 4d1f57773b5b
comparison
equal deleted inserted replaced
591:b66ced2c43d4 592:bbe29efd3d1c
27 { 27 {
28 namespace Internals 28 namespace Internals
29 { 29 {
30 class OpenGLFloatTextureProgram : public boost::noncopyable 30 class OpenGLFloatTextureProgram : public boost::noncopyable
31 { 31 {
32 private:
33 OpenGLTextureProgram program_;
34
35 public: 32 public:
36 OpenGLFloatTextureProgram(OpenGL::IOpenGLContext& context);
37
38 class Data : public boost::noncopyable 33 class Data : public boost::noncopyable
39 { 34 {
40 private: 35 private:
41 OpenGL::OpenGLTexture texture_; 36 OpenGL::OpenGLTexture texture_;
42 float offset_; 37 float offset_;
60 { 55 {
61 return texture_; 56 return texture_;
62 } 57 }
63 }; 58 };
64 59
60 private:
61 OpenGLTextureProgram program_;
62
63 public:
64 OpenGLFloatTextureProgram(OpenGL::IOpenGLContext& context);
65
65 void Apply(Data& data, 66 void Apply(Data& data,
66 const AffineTransform2D& transform, 67 const AffineTransform2D& transform,
67 float windowCenter, 68 float windowCenter,
68 float windowWidth); 69 float windowWidth);
69 }; 70 };