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

A class that represents an interface to an OpenGL device driver. More...

#include <omGraphicsOpenGLDevice.h>

Inheritance diagram for om::graphics::devices::opengl::OpenGLDevice:
om::graphics::devices::GraphicsDevice

Public Member Functions

virtual Shared< GraphicsContextcreateContext (const RenderedPixelFormat &pixelFormat, const GraphicsContextFlags &flags)
 Create a new context for this graphics device with the specified framebuffer pixel format and flags. More...
 
virtual Shared< GraphicsContextcreateContext (const RenderedPixelFormat &pixelFormat, const GraphicsContextFlags &flags, const Shared< GraphicsContext > &sharedContext)
 Create a new context with shared resources for this graphics device with the specified framebuffer pixel format and flags. More...
 
virtual Bool checkFormat (RenderedPixelFormat &pixelFormat, GraphicsContextFlags &flags, Bool strict=false) const
 Return whether or not the specified pixel format and flags are supported by this device. More...
 
virtual GraphicsDeviceType getType () const
 Return an object that indicates the type of this graphics device. More...
 
- Public Member Functions inherited from om::graphics::devices::GraphicsDevice
virtual ~GraphicsDevice ()
 Destroy a graphics device, releasing all of its resources and internal state. More...
 

Detailed Description

A class that represents an interface to an OpenGL device driver.

This class allows the user to create OpenGL contexts for an OpenGL device which can then be used for rendering.

Member Function Documentation

virtual Shared<GraphicsContext> om::graphics::devices::opengl::OpenGLDevice::createContext ( const RenderedPixelFormat pixelFormat,
const GraphicsContextFlags flags 
)
virtual

Create a new context for this graphics device with the specified framebuffer pixel format and flags.

Implements om::graphics::devices::GraphicsDevice.

virtual Shared<GraphicsContext> om::graphics::devices::opengl::OpenGLDevice::createContext ( const RenderedPixelFormat pixelFormat,
const GraphicsContextFlags flags,
const Shared< GraphicsContext > &  sharedContext 
)
virtual

Create a new context with shared resources for this graphics device with the specified framebuffer pixel format and flags.

Implements om::graphics::devices::GraphicsDevice.

virtual Bool om::graphics::devices::opengl::OpenGLDevice::checkFormat ( RenderedPixelFormat pixelFormat,
GraphicsContextFlags flags,
Bool  strict = false 
) const
virtual

Return whether or not the specified pixel format and flags are supported by this device.

Implements om::graphics::devices::GraphicsDevice.

virtual GraphicsDeviceType om::graphics::devices::opengl::OpenGLDevice::getType ( ) const
virtual

Return an object that indicates the type of this graphics device.

Implements om::graphics::devices::GraphicsDevice.


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