OpenWalnut  1.5.0dev
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
wge::GLType< int32_t > Class Reference

Class helping to adapt types specified as template parameter into the best matching OpenGL type. More...

#include <WGETypeTraits.h>

+ Collaboration diagram for wge::GLType< int32_t >:

Public Types

typedef float Type
 The best matching OpenGL type for the specified template parameter. More...
 

Static Public Member Functions

static Type FullIntensity ()
 The value for full intensity. More...
 

Static Public Attributes

static const GLenum TypeEnum = GL_FLOAT
 The enum type of OpenGL. More...
 

Detailed Description

Class helping to adapt types specified as template parameter into the best matching OpenGL type.

Note
integral types get downscaled to float. This is done for easiness but might be better if the real type is used instead.

Definition at line 240 of file WGETypeTraits.h.

Member Typedef Documentation

◆ Type

typedef float wge::GLType< int32_t >::Type

The best matching OpenGL type for the specified template parameter.

Definition at line 246 of file WGETypeTraits.h.

Member Function Documentation

◆ FullIntensity()

static Type wge::GLType< int32_t >::FullIntensity ( )
inlinestatic

The value for full intensity.

Returns
the full intensity value

Definition at line 258 of file WGETypeTraits.h.

Member Data Documentation

◆ TypeEnum

const GLenum wge::GLType< int32_t >::TypeEnum = GL_FLOAT
static

The enum type of OpenGL.

Definition at line 251 of file WGETypeTraits.h.


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