All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Luminous::RenderBufferGL Class Reference

RenderBufferGL is the RenderBuffer representation in GPU memory. More...

#include <Luminous/FrameBufferGL.hpp>

Inheritance diagram for Luminous::RenderBufferGL:
Luminous::ResourceHandleGL

Public Member Functions

LUMINOUS_API void bind ()
 Bind the render buffer.
 
LUMINOUS_API RenderBufferGL (StateGL &state)
 Constructor. More...
 
LUMINOUS_API RenderBufferGL (RenderBufferGL &&buffer)
 Move constructor. More...
 
LUMINOUS_API void setStorageFormat (const RenderBuffer &buffer)
 Set the storage format from the CPU object. More...
 
LUMINOUS_API void sync (const RenderBuffer &buffer)
 Synchronize the settings from the CPU object. More...
 
LUMINOUS_API void unbind ()
 Unbind any render buffer.
 
LUMINOUS_API ~RenderBufferGL ()
 Destructor.
 
- Public Member Functions inherited from Luminous::ResourceHandleGL
bool expired () const
 Check if the resource has expired. More...
 
GLuint handle () const
 Get the raw OpenGL handle for the resource. More...
 
ResourceHandleGLoperator= (ResourceHandleGL &&r)
 Move assignment operator. More...
 
 ResourceHandleGL (StateGL &state)
 Constructor. More...
 
 ResourceHandleGL (ResourceHandleGL &&r)
 Move constructor. More...
 
void setExpirationSeconds (unsigned int secs)
 Set the expiration time in seconds for the resource. More...
 
void touch ()
 Update the last used timestamp to current frame-time. More...
 

Additional Inherited Members

- Protected Attributes inherited from Luminous::ResourceHandleGL
GLuint m_handle
 Raw OpenGL handle of the resource.
 
StateGLm_state
 OpenGL state owned by the graphics driver.
 

Detailed Description

RenderBufferGL is the RenderBuffer representation in GPU memory.

See Also
RenderBuffer

Constructor & Destructor Documentation

LUMINOUS_API Luminous::RenderBufferGL::RenderBufferGL ( StateGL state)

Constructor.

Parameters
stateOpenGL state
LUMINOUS_API Luminous::RenderBufferGL::RenderBufferGL ( RenderBufferGL &&  buffer)

Move constructor.

Parameters
bufferrender buffer to move

Member Function Documentation

LUMINOUS_API void Luminous::RenderBufferGL::setStorageFormat ( const RenderBuffer buffer)

Set the storage format from the CPU object.

Parameters
bufferbuffer to get the settings from
LUMINOUS_API void Luminous::RenderBufferGL::sync ( const RenderBuffer buffer)

Synchronize the settings from the CPU object.

Parameters
bufferbuffer to synchronize from