6 #ifndef MATERIALX_GLSLRENDERER_H
7 #define MATERIALX_GLSLRENDERER_H
92 void renderTextureSpace(
const Vector2& uvMin,
const Vector2& uvMax);
119 _screenColor = screenColor;
virtual void updateUniform(const string &name, ConstValuePtr value)
Update the program with value of the uniform.
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
void * RenderContextHandle
shared_ptr< const Value > ConstValuePtr
A shared pointer to a const Value.
Color3 getScreenColor() const
Return the screen background color.
static ImageHandlerPtr create(ImageLoaderPtr imageLoader)
GLenum GLenum GLsizei void * image
GLFramebufferPtr getFramebuffer() const
Return the GL frame buffer.
GLint GLsizei GLsizei height
std::shared_ptr< class GlslProgram > GlslProgramPtr
std::shared_ptr< class SimpleWindow > SimpleWindowPtr
SimpleWindow shared pointer.
std::shared_ptr< ImageHandler > ImageHandlerPtr
Shared pointer to an ImageHandler.
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.
std::shared_ptr< ImageLoader > ImageLoaderPtr
Shared pointer to an ImageLoader.
GLuint const GLchar * name
virtual ~GlslRenderer()
Destructor.
#define MX_RENDERGLSL_API
virtual void initialize(RenderContextHandle=nullptr)
Initialize the renderer.
std::shared_ptr< class GlslRenderer > GlslRendererPtr
Shared pointer to a GlslRenderer.
ImageHandlerPtr createImageHandler(ImageLoaderPtr imageLoader)
Create a texture handler for OpenGL textures.
void setScreenColor(const Color3 &screenColor)
Set the screen background color.
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.