Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::GraphicsManager::GlVersions Struct Reference

Simple wrapper for a set of GL versions. More...

#include "graphicsmanager.h"

Collaboration diagram for ion::gfx::GraphicsManager::GlVersions:

Public Member Functions

 GlVersions (GLuint desktop, GLuint es, GLuint web)
 
GLuint operator[] (GlApi i) const
 

Public Attributes

GLuint versions [kNumApis]
 

Detailed Description

Simple wrapper for a set of GL versions.

The order of the fields must match the ordering in GlApi, above. This can be used, for example to pass the set of minimum versions that contain a certain functionality (as is done by EnableFunctionGroupIfAvailable()). Since GraphicsManager is used by all Ion platfoms, this is a convenient way to let a single structure specify information for all GL flavors.

Definition at line 280 of file graphicsmanager.h.

Constructor & Destructor Documentation

ion::gfx::GraphicsManager::GlVersions::GlVersions ( GLuint  desktop,
GLuint  es,
GLuint  web 
)
inline

Definition at line 281 of file graphicsmanager.h.

Member Function Documentation

GLuint ion::gfx::GraphicsManager::GlVersions::operator[] ( GlApi  i) const
inline

Definition at line 286 of file graphicsmanager.h.

Member Data Documentation

GLuint ion::gfx::GraphicsManager::GlVersions::versions[kNumApis]

Definition at line 287 of file graphicsmanager.h.


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