Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::graphics::devices::opengl::OpenGLContext Class Reference

A class that represents an instance of an OpenGL-based renderer. More...

#include <omGraphicsOpenGLContext.h>

Inheritance diagram for om::graphics::devices::opengl::OpenGLContext:
om::graphics::devices::GraphicsContext

Public Member Functions

 ~OpenGLContext ()
 Destroy this OpenGL context and release all of its resources and internal state. More...
 
virtual Bool addView (gui::RenderView *newView)
 Add a new target view to this context that it should render to. More...
 
virtual Bool removeView (const gui::RenderView *newView)
 Remove a previous view from this context so that it cannot be rendered to anymore. More...
 
virtual void clearViews ()
 Remove all previously associated views from this context. More...
 
virtual gui::RenderViewgetTargetView () const
 Return a pointer to the target render view at the given index that this context can render to. More...
 
virtual Bool setTargetView (gui::RenderView *newView)
 Set the target view that this context should render to. More...
 
virtual Bool isValid () const
 Return whether or not this context is valid and can be used for rendering. More...
 
virtual const GraphicsContextCapabilitiesgetCapabilities () const
 Return an object that describes the different capabilities of this graphics context. More...
 
virtual Bool isCurrent ()
 Return whether or not this context is the current context for the calling thread. More...
 
virtual Bool makeCurrent ()
 Make this context the active context for the calling thread. More...
 
virtual Bool swapBuffers ()
 Flush all rendering commands and swap the front buffer with the back buffer. More...
 
virtual Bool getVSync () const
 Return whether or not vertical screen refresh synchronization is enabled. More...
 
virtual Bool setVSync (Bool newVSync)
 Set whether or not vertical screen refresh synchronization should be enabled. More...
 
virtual void flush ()
 Flush all rendering commands into the graphics pipeline. More...
 
virtual void finish ()
 Flush all rendering commands into the graphics pipeline and wait until they are complete. More...
 
virtual RenderMode getRenderMode () const
 Return an object that contains information about the current state of the context's renderer. More...
 
virtual Bool setRenderMode (const RenderMode &newRenderMode)
 Set the mode of the context's renderer. More...
 
virtual RenderFlags getRenderFlags () const
 Return an object that contains boolan flags for the current state of the context's renderer. More...
 
virtual Bool setRenderFlags (const RenderFlags &newRenderFlags)
 Set an object that contains boolan flags for the current state of the context's renderer. More...
 
virtual Bool getRenderFlagIsSet (RenderFlags::Flag flag) const
 Return whether or not a certain render flag is currently set. More...
 
virtual Bool setRenderFlag (RenderFlags::Flag flag, Bool value=true)
 Set whether or not a certain render flag should be set. More...
 
virtual DepthMode getDepthMode () const
 Return an object that contains information about the current state of the context's depth test pipeline. More...
 
virtual Bool setDepthMode (const DepthMode &newDepthMode)
 Set the mode of the context's depth test pipeline. More...
 
virtual StencilMode getStencilMode () const
 Return an object that contains information about the current state of the context's stencil test pipeline. More...
 
virtual Bool setStencilMode (const StencilMode &newStencilMode)
 Set the mode of the context's stencil test pipeline. More...
 
virtual BlendMode getBlendMode () const
 Return an object that contains information about the current state of the context's blending pipeline. More...
 
virtual Bool setBlendMode (const BlendMode &newBlendMode)
 Set the mode of the context's blending pipeline. More...
 
virtual Float getLineWidth () const
 Return the width in pixels to use when rendering lines. More...
 
virtual Bool setLineWidth (Float newLineWidth)
 Set the width in pixels to use when rendering lines. More...
 
virtual Float getPointSize () const
 Return the size in pixels to use when rendering points. More...
 
virtual Bool setPointSize (Float newPointSize)
 Set the size in pixels to use when rendering points. More...
 
virtual Viewport getViewport () const
 Return an object representing the current viewport for this OpenGL context. More...
 
virtual Bool setViewport (const Viewport &newViewport)
 Set the viewport to use for this OpenGL context. More...
 
virtual ScissorTest getScissorTest () const
 Return an object representing the current scissor test for this graphics context. More...
 
virtual Bool setScissorTest (const ScissorTest &newScissorTest)
 Set an object representing the current scissor test for this graphics context. More...
 
virtual void clearColorBuffer (const Color4d &clearColor)
 Clear the contents of the color buffer, writing the specified color to every pixel. More...
 
virtual void clearDepthBuffer (Double clearDepth)
 Clear the contents of the depth buffer, writing the specified depth to every pixel. More...
 
virtual void clearStencilBuffer (Int clearStencil)
 Clear the contents of the stencil buffer, writing the specified integer value to every pixel. More...
 
virtual Bool readColorBuffer (const PixelFormat &pixelType, Image &image) const
 Read an image corresponding to the entire contents of the context's current color buffer. More...
 
virtual Bool readColorBuffer (const PixelFormat &pixelType, Image &image, const AABB2i &bounds) const
 Read an image corresponding to the specified contents of the context's current color buffer. More...
 
virtual Bool readDepthBuffer (const PixelFormat &pixelType, Image &image) const
 Read an image corresponding to the entire contents of the context's current depth buffer. More...
 
virtual Bool readDepthBuffer (const PixelFormat &pixelType, Image &image, const AABB2i &bounds) const
 Read an image corresponding to the specified contents of the context's current depth buffer. More...
 
virtual Size2D getFramebufferSize () const
 Return a 2D vector containing the size in pixels of the currently bound framebuffer. More...
 
virtual Shared< FramebuffergetFramebuffer () const
 Return a pointer to the currently bound framebuffer object. More...
 
virtual Bool bindFramebuffer (const Shared< Framebuffer > &newFramebuffer)
 Set the currently bound framebuffer object. More...
 
virtual void unbindFramebuffer ()
 Unbind the previously bound framebuffer, restoring the main screen as the target. More...
 
virtual Bool draw (const RenderMode &renderMode, const DeviceShaderProgram &program, const ShaderBindingSet &shaderBindings, const ShaderBindingData &shaderData, const IndexRange &indexRange, const IndexBuffer *indices=((void *) 0))
 Using the given render mode and shader program, shader bindings, and shader data, draw a range of primitives. More...
 
virtual Shared< DeviceBuffercreateBuffer (const BufferType &bufferType, const BufferUsage &newUsage=BufferUsage::STATIC)
 Create a buffer with the specified buffer type with undefined capacity and the given usage. More...
 
virtual Shared< DeviceBuffercreateBuffer (const BufferType &bufferType, Size capacity, const BufferUsage &newUsage=BufferUsage::STATIC)
 Create a buffer with the specified buffer type, capacity in bytes, and usage. More...
 
virtual Shared< DeviceBuffercreateBuffer (const BufferType &bufferType, Size capacity, const void *data, const BufferUsage &newUsage=BufferUsage::STATIC)
 Create a buffer with the specified buffer type, capacity in bytes, and data source. More...
 
virtual Shared< DeviceTexturecreateTexture1D (TextureFormat format, Size width)
 Create a 1D texture with the specified internal format and size with undefined pixel data. More...
 
virtual Shared< DeviceTexturecreateTexture2D (TextureFormat format, Size width, Size height)
 Create a 2D texture with the specified internal format and size with undefined pixel data. More...
 
virtual Shared< DeviceTexturecreateTexture3D (TextureFormat format, Size width, Size height, Size depth)
 Create a 3D texture with the specified internal format and size with undefined pixel data. More...
 
virtual Shared< DeviceTexturecreateTextureCube (TextureFormat format, Size width)
 Create a 2D cube map texture with the specified internal format and size with undefined pixel data. More...
 
virtual Shared< DeviceTexturecreateTexture (const Image &image, TextureFormat format)
 Create a texture for the specified image which has the given internal texture format. More...
 
virtual Shared< DeviceFramebuffercreateFramebuffer ()
 Create a new framebuffer object for this context. More...
 
virtual Shared< DeviceShadercreateShader (const ShaderType &newShaderType, const ShaderSourceString &newSource, const ShaderLanguage &newLanguage=ShaderLanguage::DEFAULT, StringOutputStream *compilationLog=((void *) 0))
 Create and compile a new shader with the specified type and source code. More...
 
virtual Shared< DeviceShaderProgramcreateShaderProgram ()
 Create a new shader program object with no attached shaders. More...
 
virtual Shared< DeviceShaderProgramcreateShaderProgram (const ShaderProgramSource &programSource, const ShaderConfiguration *configuration=((void *) 0), StringOutputStream *compilationLog=((void *) 0))
 Create a new shader program object that uses the specified shader program source code. More...
 
virtual Bool getBestProgramSource (const ShaderProgram &shaderProgram, Index &sourceIndex) const
 Get the index of the best shader program source to use for this context from the given shader program. More...
 
virtual const ShaderProgramgetDefaultProgram (const TechniqueUsage &usage)
 Return a pointer to a default shader pass object for the given technique usage. More...
 
virtual const ShaderProgramLibrarygetDefaultProgramLibrary () const
 Return a pointer to a shader program library that contains default shader programs for the context. More...
 
- Public Member Functions inherited from om::graphics::devices::GraphicsContext
virtual ~GraphicsContext ()
 Destroy a graphics context, releasing all of its resources and internal state. More...
 
Bool hasCapabilities (const GraphicsContextCapabilities &capabilities)
 Return whether or not this graphics context supports the specified capabilities. More...
 
Size2D getViewportSize () const
 Return a 2D vector containing the size in framebuffer pixels of the current viewport. More...
 
Shared< DeviceTexturecreateTexture (const Image &image)
 Create a texture for the specified image which uses an inferred internal texture format. More...
 

Detailed Description

A class that represents an instance of an OpenGL-based renderer.

Constructor & Destructor Documentation

om::graphics::devices::opengl::OpenGLContext::~OpenGLContext ( )

Destroy this OpenGL context and release all of its resources and internal state.

Member Function Documentation

virtual Bool om::graphics::devices::opengl::OpenGLContext::addView ( gui::RenderView newView)
virtual

Add a new target view to this context that it should render to.

This method initializes an internal rendering context for the view so that it can be rendered to using the context.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::removeView ( const gui::RenderView newView)
virtual

Remove a previous view from this context so that it cannot be rendered to anymore.

The internal context for the view is destroyed and the method returns whether or not the view was removed successfully.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::clearViews ( )
virtual

Remove all previously associated views from this context.

After this method call, the context cannot be used for rendering until a new view is added.

Implements om::graphics::devices::GraphicsContext.

virtual gui::RenderView* om::graphics::devices::opengl::OpenGLContext::getTargetView ( ) const
virtual

Return a pointer to the target render view at the given index that this context can render to.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setTargetView ( gui::RenderView newView)
virtual

Set the target view that this context should render to.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::isValid ( ) const
virtual

Return whether or not this context is valid and can be used for rendering.

Users should check the return value of this method after context creation to ensure that the context was successfully created.

Implements om::graphics::devices::GraphicsContext.

virtual const GraphicsContextCapabilities& om::graphics::devices::opengl::OpenGLContext::getCapabilities ( ) const
virtual

Return an object that describes the different capabilities of this graphics context.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::isCurrent ( )
virtual

Return whether or not this context is the current context for the calling thread.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::makeCurrent ( )
virtual

Make this context the active context for the calling thread.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::swapBuffers ( )
virtual

Flush all rendering commands and swap the front buffer with the back buffer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::getVSync ( ) const
virtual

Return whether or not vertical screen refresh synchronization is enabled.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setVSync ( Bool  newVSync)
virtual

Set whether or not vertical screen refresh synchronization should be enabled.

The method returns whether or not setting the V-Sync status was successful.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::flush ( )
virtual

Flush all rendering commands into the graphics pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::finish ( )
virtual

Flush all rendering commands into the graphics pipeline and wait until they are complete.

Implements om::graphics::devices::GraphicsContext.

virtual RenderMode om::graphics::devices::opengl::OpenGLContext::getRenderMode ( ) const
virtual

Return an object that contains information about the current state of the context's renderer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setRenderMode ( const RenderMode newRenderMode)
virtual

Set the mode of the context's renderer.

Implements om::graphics::devices::GraphicsContext.

virtual RenderFlags om::graphics::devices::opengl::OpenGLContext::getRenderFlags ( ) const
virtual

Return an object that contains boolan flags for the current state of the context's renderer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setRenderFlags ( const RenderFlags newRenderFlags)
virtual

Set an object that contains boolan flags for the current state of the context's renderer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::getRenderFlagIsSet ( RenderFlags::Flag  flag) const
virtual

Return whether or not a certain render flag is currently set.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setRenderFlag ( RenderFlags::Flag  flag,
Bool  value = true 
)
virtual

Set whether or not a certain render flag should be set.

Implements om::graphics::devices::GraphicsContext.

virtual DepthMode om::graphics::devices::opengl::OpenGLContext::getDepthMode ( ) const
virtual

Return an object that contains information about the current state of the context's depth test pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setDepthMode ( const DepthMode newDepthMode)
virtual

Set the mode of the context's depth test pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual StencilMode om::graphics::devices::opengl::OpenGLContext::getStencilMode ( ) const
virtual

Return an object that contains information about the current state of the context's stencil test pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setStencilMode ( const StencilMode newStencilMode)
virtual

Set the mode of the context's stencil test pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual BlendMode om::graphics::devices::opengl::OpenGLContext::getBlendMode ( ) const
virtual

Return an object that contains information about the current state of the context's blending pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setBlendMode ( const BlendMode newBlendMode)
virtual

Set the mode of the context's blending pipeline.

Implements om::graphics::devices::GraphicsContext.

virtual Float om::graphics::devices::opengl::OpenGLContext::getLineWidth ( ) const
virtual

Return the width in pixels to use when rendering lines.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setLineWidth ( Float  newLineWidth)
virtual

Set the width in pixels to use when rendering lines.

Implements om::graphics::devices::GraphicsContext.

virtual Float om::graphics::devices::opengl::OpenGLContext::getPointSize ( ) const
virtual

Return the size in pixels to use when rendering points.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setPointSize ( Float  newPointSize)
virtual

Set the size in pixels to use when rendering points.

Implements om::graphics::devices::GraphicsContext.

virtual Viewport om::graphics::devices::opengl::OpenGLContext::getViewport ( ) const
virtual

Return an object representing the current viewport for this OpenGL context.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setViewport ( const Viewport newViewport)
virtual

Set the viewport to use for this OpenGL context.

Implements om::graphics::devices::GraphicsContext.

virtual ScissorTest om::graphics::devices::opengl::OpenGLContext::getScissorTest ( ) const
virtual

Return an object representing the current scissor test for this graphics context.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::setScissorTest ( const ScissorTest newScissorTest)
virtual

Set an object representing the current scissor test for this graphics context.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::clearColorBuffer ( const Color4d &  clearColor)
virtual

Clear the contents of the color buffer, writing the specified color to every pixel.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::clearDepthBuffer ( Double  clearDepth)
virtual

Clear the contents of the depth buffer, writing the specified depth to every pixel.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::clearStencilBuffer ( Int  clearStencil)
virtual

Clear the contents of the stencil buffer, writing the specified integer value to every pixel.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::readColorBuffer ( const PixelFormat &  pixelType,
Image &  image 
) const
virtual

Read an image corresponding to the entire contents of the context's current color buffer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::readColorBuffer ( const PixelFormat &  pixelType,
Image &  image,
const AABB2i bounds 
) const
virtual

Read an image corresponding to the specified contents of the context's current color buffer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::readDepthBuffer ( const PixelFormat &  pixelType,
Image &  image 
) const
virtual

Read an image corresponding to the entire contents of the context's current depth buffer.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::readDepthBuffer ( const PixelFormat &  pixelType,
Image &  image,
const AABB2i bounds 
) const
virtual

Read an image corresponding to the specified contents of the context's current depth buffer.

Implements om::graphics::devices::GraphicsContext.

virtual Size2D om::graphics::devices::opengl::OpenGLContext::getFramebufferSize ( ) const
virtual

Return a 2D vector containing the size in pixels of the currently bound framebuffer.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<Framebuffer> om::graphics::devices::opengl::OpenGLContext::getFramebuffer ( ) const
virtual

Return a pointer to the currently bound framebuffer object.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::bindFramebuffer ( const Shared< Framebuffer > &  newFramebuffer)
virtual

Set the currently bound framebuffer object.

Implements om::graphics::devices::GraphicsContext.

virtual void om::graphics::devices::opengl::OpenGLContext::unbindFramebuffer ( )
virtual

Unbind the previously bound framebuffer, restoring the main screen as the target.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::draw ( const RenderMode renderMode,
const DeviceShaderProgram program,
const ShaderBindingSet shaderBindings,
const ShaderBindingData shaderData,
const IndexRange indexRange,
const IndexBuffer indices = ((void *) 0) 
)
virtual

Using the given render mode and shader program, shader bindings, and shader data, draw a range of primitives.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceBuffer> om::graphics::devices::opengl::OpenGLContext::createBuffer ( const BufferType bufferType,
const BufferUsage newUsage = BufferUsage::STATIC 
)
virtual

Create a buffer with the specified buffer type with undefined capacity and the given usage.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceBuffer> om::graphics::devices::opengl::OpenGLContext::createBuffer ( const BufferType bufferType,
Size  capacity,
const BufferUsage newUsage = BufferUsage::STATIC 
)
virtual

Create a buffer with the specified buffer type, capacity in bytes, and usage.

The contents of the created buffer are undefined.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceBuffer> om::graphics::devices::opengl::OpenGLContext::createBuffer ( const BufferType bufferType,
Size  capacity,
const void *  data,
const BufferUsage newUsage = BufferUsage::STATIC 
)
virtual

Create a buffer with the specified buffer type, capacity in bytes, and data source.

This method uses data from the given pointer to initialize the hardware buffer up to the specified capacity.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceTexture> om::graphics::devices::opengl::OpenGLContext::createTexture1D ( TextureFormat  format,
Size  width 
)
virtual

Create a 1D texture with the specified internal format and size with undefined pixel data.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceTexture> om::graphics::devices::opengl::OpenGLContext::createTexture2D ( TextureFormat  format,
Size  width,
Size  height 
)
virtual

Create a 2D texture with the specified internal format and size with undefined pixel data.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceTexture> om::graphics::devices::opengl::OpenGLContext::createTexture3D ( TextureFormat  format,
Size  width,
Size  height,
Size  depth 
)
virtual

Create a 3D texture with the specified internal format and size with undefined pixel data.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceTexture> om::graphics::devices::opengl::OpenGLContext::createTextureCube ( TextureFormat  format,
Size  width 
)
virtual

Create a 2D cube map texture with the specified internal format and size with undefined pixel data.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceTexture> om::graphics::devices::opengl::OpenGLContext::createTexture ( const Image &  image,
TextureFormat  format 
)
virtual

Create a texture for the specified image which has the given internal texture format.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceFramebuffer> om::graphics::devices::opengl::OpenGLContext::createFramebuffer ( )
virtual

Create a new framebuffer object for this context.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceShader> om::graphics::devices::opengl::OpenGLContext::createShader ( const ShaderType newShaderType,
const ShaderSourceString newSource,
const ShaderLanguage newLanguage = ShaderLanguage::DEFAULT,
StringOutputStream compilationLog = ((void *) 0) 
)
virtual

Create and compile a new shader with the specified type and source code.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceShaderProgram> om::graphics::devices::opengl::OpenGLContext::createShaderProgram ( )
virtual

Create a new shader program object with no attached shaders.

Implements om::graphics::devices::GraphicsContext.

virtual Shared<DeviceShaderProgram> om::graphics::devices::opengl::OpenGLContext::createShaderProgram ( const ShaderProgramSource programSource,
const ShaderConfiguration configuration = ((void *) 0),
StringOutputStream compilationLog = ((void *) 0) 
)
virtual

Create a new shader program object that uses the specified shader program source code.

Implements om::graphics::devices::GraphicsContext.

virtual Bool om::graphics::devices::opengl::OpenGLContext::getBestProgramSource ( const ShaderProgram shaderProgram,
Index sourceIndex 
) const
virtual

Get the index of the best shader program source to use for this context from the given shader program.

Implements om::graphics::devices::GraphicsContext.

virtual const ShaderProgram* om::graphics::devices::opengl::OpenGLContext::getDefaultProgram ( const TechniqueUsage usage)
virtual

Return a pointer to a default shader pass object for the given technique usage.

Implements om::graphics::devices::GraphicsContext.

virtual const ShaderProgramLibrary* om::graphics::devices::opengl::OpenGLContext::getDefaultProgramLibrary ( ) const
virtual

Return a pointer to a shader program library that contains default shader programs for the context.

Implements om::graphics::devices::GraphicsContext.


The documentation for this class was generated from the following file: