2 #ifndef GRAMODS_GRAPHICS_OFFSCREENRENDERTARGETS
3 #define GRAMODS_GRAPHICS_OFFSCREENRENDERTARGETS
5 #include <gmGraphics/config.hh>
6 #include <gmCore/io_size.hh>
13 BEGIN_NAMESPACE_GMGRAPHICS;
32 void setUsePowersOfTwo(
bool on);
39 bool getUsePowersOfTwo();
45 void setLinearInterpolation(
bool on);
51 void setPixelFormat(GLenum format);
56 GLenum getPixelFormat();
64 void getTextureSize(
size_t &width,
size_t &height,
size_t idx = 0);
73 bool init(
size_t count = 1);
96 void bind(
size_t width = 0,
size_t height = 0,
size_t idx = 0);
101 GLuint getTexId(
size_t idx = 0);
106 std::unique_ptr<Impl> _impl;
110 END_NAMESPACE_GMGRAPHICS;
Encapsulation of OpenGL offscreen render target textures.
Definition: OffscreenRenderTargets.hh:20
std::array< size_t, 2 > size2
Array of 2 size_t.
Definition: io_size.hh:9
Definition: OffscreenRenderTargets.cpp:12