2016-02-07 20:42:02 +00:00
|
|
|
//
|
|
|
|
// TextureTarget.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 07/02/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef TextureTarget_hpp
|
|
|
|
#define TextureTarget_hpp
|
|
|
|
|
2016-02-07 22:32:38 +00:00
|
|
|
#include "OpenGL.hpp"
|
2016-02-07 20:42:02 +00:00
|
|
|
|
|
|
|
namespace OpenGL {
|
|
|
|
|
|
|
|
class TextureTarget {
|
|
|
|
public:
|
2016-03-07 23:55:15 +00:00
|
|
|
TextureTarget(GLsizei width, GLsizei height);
|
2016-02-07 20:42:02 +00:00
|
|
|
~TextureTarget();
|
|
|
|
|
|
|
|
void bind_framebuffer();
|
|
|
|
void bind_texture();
|
|
|
|
|
2016-03-07 23:55:15 +00:00
|
|
|
enum {
|
|
|
|
ErrorFramebufferIncomplete
|
|
|
|
};
|
|
|
|
|
2016-02-07 20:42:02 +00:00
|
|
|
private:
|
|
|
|
GLuint _framebuffer, _texture;
|
2016-03-07 23:55:15 +00:00
|
|
|
GLsizei _width, _height;
|
2016-02-07 20:42:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* TextureTarget_hpp */
|