ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

OpenGL::Context Class Reference

Description structure of the OpenGL (ES) context. More...

#include <context.h>

Inheritance diagram for OpenGL::Context:
Collaboration diagram for OpenGL::Context:

List of all members.

Public Member Functions

 Context ()
void initialize (ContextType contextType)
 Initialize the context description from currently active context.
void reset ()
 Reset context.
int getGLSLVersion () const

Public Attributes

ContextType type
 The type of the active context.
int maxTextureSize
 The maximum texture size supported by the context.
bool NPOTSupported
 Whether GL_ARB_texture_non_power_of_two is available or not.
bool shadersSupported
 Whether shader support is available or not.
bool framebufferObjectSupported
 Whether FBO support is available or not.
bool framebufferObjectMultisampleSupported
 Whether multisample FBO support is available or not.
int multisampleMaxSamples
 Contains the maximum number of supported multisample samples if multisample FBOs are supported.
bool packedDepthStencilSupported
 Whether packing the depth and stencil buffers is possible or not.
bool unpackSubImageSupported
 Whether specifying a pitch when uploading to textures is available or not.
bool OESDepth24
 Whether depth component 24 is supported or not.

Detailed Description

Description structure of the OpenGL (ES) context.

This class is based on LordHoto's OpenGL backend for ScummVM

Definition at line 40 of file context.h.


Constructor & Destructor Documentation

OpenGL::Context::Context (  ) 

Member Function Documentation

int OpenGL::Context::getGLSLVersion (  )  const
void OpenGL::Context::initialize ( ContextType  contextType  ) 

Initialize the context description from currently active context.

The extensions and features are marked as available according to the current context capabilities.

void OpenGL::Context::reset (  ) 

Reset context.

This marks all extensions as unavailable.


Member Data Documentation

Whether multisample FBO support is available or not.

Definition at line 75 of file context.h.

Whether FBO support is available or not.

Definition at line 72 of file context.h.

The maximum texture size supported by the context.

Definition at line 63 of file context.h.

Contains the maximum number of supported multisample samples if multisample FBOs are supported.

Contains -1 otherwise.

Definition at line 81 of file context.h.

Whether GL_ARB_texture_non_power_of_two is available or not.

Definition at line 66 of file context.h.

Whether depth component 24 is supported or not.

Definition at line 90 of file context.h.

Whether packing the depth and stencil buffers is possible or not.

Definition at line 84 of file context.h.

Whether shader support is available or not.

Definition at line 69 of file context.h.

The type of the active context.

Definition at line 60 of file context.h.

Whether specifying a pitch when uploading to textures is available or not.

Definition at line 87 of file context.h.


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


Generated on Sat May 25 2019 05:06:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge