1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-17 13:29:02 +00:00
CLK/Outputs/CRT/TextureTarget.hpp

31 lines
487 B
C++

//
// 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
#include "OpenGL.hpp"
namespace OpenGL {
class TextureTarget {
public:
TextureTarget(unsigned int width, unsigned int height);
~TextureTarget();
void bind_framebuffer();
void bind_texture();
private:
GLuint _framebuffer, _texture;
};
}
#endif /* TextureTarget_hpp */