comparison Framework/Scene2D/Internals/OpenGLTextureProgram.h @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 2d8ab34c8c91
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
32 { 32 {
33 class OpenGLTextureProgram : public boost::noncopyable 33 class OpenGLTextureProgram : public boost::noncopyable
34 { 34 {
35 private: 35 private:
36 OpenGL::IOpenGLContext& context_; 36 OpenGL::IOpenGLContext& context_;
37 std::auto_ptr<OpenGL::OpenGLProgram> program_; 37 std::unique_ptr<OpenGL::OpenGLProgram> program_;
38 GLint positionLocation_; 38 GLint positionLocation_;
39 GLint textureLocation_; 39 GLint textureLocation_;
40 GLuint buffers_[2]; 40 GLuint buffers_[2];
41 41
42 void InitializeExecution(OpenGL::OpenGLTexture& texture, 42 void InitializeExecution(OpenGL::OpenGLTexture& texture,