6 #ifndef MATERIALX_GLSLRENDERER_H
7 #define MATERIALX_GLSLRENDERER_H
81 void renderTextureSpace(
const Vector2& uvMin,
const Vector2& uvMax);
106 void setClearColor(
const Color4& clearColor);
113 virtual void updateViewInformation();
114 virtual void updateWorldInformation();
GlslProgramPtr getProgram()
Return the GLSL program.
virtual void validateInputs()
Validate inputs for the program.
std::shared_ptr< GLFramebuffer > GLFramebufferPtr
Shared pointer to a GLFramebuffer.
#define MATERIALX_NAMESPACE_BEGIN
GLenum GLsizei GLenum GLenum const void * image
GLFramebufferPtr getFramebuffer() const
Return the GL frame buffer.
std::shared_ptr< class GlslProgram > GlslProgramPtr
std::shared_ptr< class SimpleWindow > SimpleWindowPtr
SimpleWindow shared pointer.
virtual void createProgram(ShaderPtr shader)
Create program based on an input shader.
virtual void setSize(unsigned int width, unsigned int height)
Set the size of the rendered image.
virtual ~GlslRenderer()
Destructor.
#define MX_RENDERGLSL_API
virtual void initialize()
Initialize the renderer.
GLint GLsizei GLsizei height
std::shared_ptr< class GlslRenderer > GlslRendererPtr
Shared pointer to a GlslRenderer.
shared_ptr< Shader > ShaderPtr
Shared pointer to a Shader.
virtual ImagePtr captureImage(ImagePtr image=nullptr)
Capture the current rendered output as an image.
#define MATERIALX_NAMESPACE_END
shared_ptr< Image > ImagePtr
A shared pointer to an image.
virtual void render()
Render the current program to produce an image.
std::shared_ptr< class GLContext > GLContextPtr
GLContext shared pointer.