6#ifndef MATERIALX_GLFRAMEBUFFER_H
7#define MATERIALX_GLFRAMEBUFFER_H
30 static GLFrameBufferPtr create(
unsigned int width,
unsigned int height,
unsigned int channelCount, Image::BaseType baseType);
36 void resize(
unsigned int width,
unsigned int height);
78 GLFramebuffer(
unsigned int width,
unsigned int height,
unsigned int channelCount, Image::BaseType baseType);
83 unsigned int _channelCount;
84 Image::BaseType _baseType;
87 unsigned int _frameBuffer;
88 unsigned int _colorTexture;
89 unsigned int _depthTexture;
std::shared_ptr< GLFramebuffer > GLFrameBufferPtr
Shared pointer to a GLFramebuffer.
Definition: GLFramebuffer.h:22
shared_ptr< Image > ImagePtr
A shared pointer to an image.
Definition: Image.h:24
Image handler interfaces.
Macros for declaring imported and exported symbols.
Wrapper for an OpenGL framebuffer.
Definition: GLFramebuffer.h:27
void setEncodeSrgb(bool encode)
Set the encode sRGB flag, which controls whether values written to the framebuffer are encoded to the...
Definition: GLFramebuffer.h:40
unsigned int getColorTexture() const
Return our color texture handle.
Definition: GLFramebuffer.h:58
bool getEncodeSrgb()
Return the encode sRGB flag.
Definition: GLFramebuffer.h:46
unsigned int getDepthTexture() const
Return our depth texture handle.
Definition: GLFramebuffer.h:64