mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-06 20:54:31 +00:00
31 lines
485 B
C++
31 lines
485 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.h"
|
||
|
|
||
|
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 */
|