52 DtGlRenderTexture(
const std::string& name,
int width,
int height,
int samples = 0);
58 bool init(ImageType colorFormat = RGB32F, GLenum minFilter = GL_LINEAR, GLenum wrapMode = GL_CLAMP_TO_EDGE);
61 bool initDepth(ImageType depthFormat = D32);
64 void activateForDrawingInto();
67 void deactivateForDrawingInto();
70 void bindColorTexture(
int unit);
73 void unbindColorTexture(
int unit);
82 unsigned int colorId()
const;
85 unsigned int depthId()
const;
88 int numSamples()
const;
98 void initColorTexture(
const std::string& name, GLenum minfilter, GLenum wrapMode);
99 void initDepthBufferTexture(
const std::string& name);
100 void initFBO(
const std::string& name);
102 GLenum getGLInternalTypes(
ImageType colorType);