SLProject 4.0.000
SLGLEnums.h File Reference
#include <SL.h>
#include <SLGLState.h>
Include dependency graph for SLGLEnums.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  SLGLBufferType { BT_float = GL_FLOAT , BT_ubyte = GL_UNSIGNED_BYTE , BT_ushort = GL_UNSIGNED_SHORT , BT_uint = GL_UNSIGNED_INT }
 Enumeration for buffer data types. More...
 
enum  SLGLPrimitiveType {
  PT_points = GL_POINTS , PT_lines = GL_LINES , PT_lineLoop = GL_LINE_LOOP , PT_lineStrip = GL_LINE_STRIP , PT_triangles = GL_TRIANGLES , PT_triangleStrip = GL_TRIANGLE_STRIP ,
  PT_triangleFan = GL_TRIANGLE_FAN
}
 
enum  SLGLAttributeType {
  AT_position = 0 , AT_normal , AT_uv1 , AT_uv2 , AT_color , AT_tangent ,
  AT_jointIndex , AT_jointWeight , AT_custom0 , AT_custom1 , AT_custom2 , AT_custom3 ,
  AT_custom4 , AT_custom5 , AT_custom6 , AT_custom7 , AT_custom8 , AT_custom9 ,
  AT_velocity = 1 , AT_startTime = 2 , AT_initialVelocity = 3 , AT_rotation = 4 , AT_angularVelo = 5 , AT_texNum = 6 ,
  AT_initialPosition = 7
}
 Enumeration for float vertex attribute types. More...
 
enum  SLGLBufferUsage { BU_static = GL_STATIC_DRAW , BU_stream = GL_STREAM_DRAW , BU_dynamic = GL_DYNAMIC_DRAW }
 Enumeration for buffer usage types also supported by OpenGL ES. More...
 

Enumeration Type Documentation

◆ SLGLAttributeType

Enumeration for float vertex attribute types.

Enumerator
AT_position 

Vertex position as a 2, 3 or 4 component vectors.

AT_normal 

Vertex normal as a 3 component vector.

AT_uv1 

Vertex 1st texture coordinate as 2 component vector.

AT_uv2 

Vertex 2nd texture coordinate as 2 component vector.

AT_color 

Vertex color as 3 or 4 component vector.

AT_tangent 

Vertex tangent as a 4 component vector (see SLMesh)

AT_jointIndex 

Vertex joint id for vertex skinning.

AT_jointWeight 

Vertex joint weight for vertex skinning.

AT_custom0 

Custom vertex attribute 0.

AT_custom1 

Custom vertex attribute 1.

AT_custom2 

Custom vertex attribute 2.

AT_custom3 

Custom vertex attribute 3.

AT_custom4 

Custom vertex attribute 4.

AT_custom5 

Custom vertex attribute 5.

AT_custom6 

Custom vertex attribute 6.

AT_custom7 

Custom vertex attribute 7.

AT_custom8 

Custom vertex attribute 8.

AT_custom9 

Custom vertex attribute 9.

AT_velocity 

Vertex velocity 3 component vectors.

AT_startTime 

Vertex start time float.

AT_initialVelocity 

Vertex initial velocity 3 component vectors.

AT_rotation 

Vertex rotation float.

AT_angularVelo 

Vertex angulare velocity for rotation float.

AT_texNum 

Vertex texture number int.

AT_initialPosition 

Vertex initial position 3 component vectors.

◆ SLGLBufferType

Enumeration for buffer data types.

Enumerator
BT_float 

float vertex attributes

BT_ubyte 

vertex index type (0-2^8)

BT_ushort 

vertex index type (0-2^16)

BT_uint 

vertex index type (0-2^32)

◆ SLGLBufferUsage

Enumeration for buffer usage types also supported by OpenGL ES.

Enumerator
BU_static 

Buffer will be modified once and used many times.

BU_stream 

Buffer will be modified once and used at most a few times.

BU_dynamic 

Buffer will be modified repeatedly and used many times.

◆ SLGLPrimitiveType

Enumerator
PT_points 
PT_lines 
PT_lineLoop 
PT_lineStrip 
PT_triangles 
PT_triangleStrip 
PT_triangleFan