Protected Member Functions | Static Protected Member Functions | List of all members
cpp3ds::GlResource Class Reference

Base class for classes that require an OpenGL context. More...

#include <GlResource.hpp>

Inheritance diagram for cpp3ds::GlResource:
cpp3ds::Context cpp3ds::Texture cpp3ds::Window

Protected Member Functions

 GlResource ()
 Default constructor. More...
 
 ~GlResource ()
 Destructor. More...
 

Static Protected Member Functions

static void ensureGlContext ()
 Make sure that a valid OpenGL context exists in the current thread. More...
 

Detailed Description

Base class for classes that require an OpenGL context.

This class is for internal use only, it must be the base of every class that requires a valid OpenGL context in order to work.

Definition at line 39 of file GlResource.hpp.

Constructor & Destructor Documentation

cpp3ds::GlResource::GlResource ( )
protected

Default constructor.

cpp3ds::GlResource::~GlResource ( )
protected

Destructor.

Member Function Documentation

static void cpp3ds::GlResource::ensureGlContext ( )
staticprotected

Make sure that a valid OpenGL context exists in the current thread.


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