GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::named_object< NameType > Class Template Reference

Base type for OpenGL objects. More...

#include <base.hpp>

Public Types

typedef NameType name_type
 Type of the name.

Public Member Functions

name_type object_name () const
 Return the name of object (handle)

Protected Attributes

NameType m_gl_name
 Stored object name.

Detailed Description

template<class NameType>
class glpp::named_object< NameType >

Base type for OpenGL objects.

All OpenGL objects are described by a constant name (handle). This is the base class that exposes the name (handle) of the object. http://www.opengl.org/wiki/OpenGL_Objects

Member Typedef Documentation

template<class NameType>
typedef NameType glpp::named_object< NameType >::name_type

Type of the name.

Not all objects use the same type for name.

Member Function Documentation

template<class NameType>
name_type glpp::named_object< NameType >::object_name ( ) const
inline

Return the name of object (handle)

The name can be used directly by OpenGL functions.


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