PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::GLTransformData Struct Reference

Transform data for GLTransformable objects. Used by the GLTransformable class internally, but usable in isolation as well. More...

#include <GLTransformable.hpp>

Collaboration diagram for pk::GLTransformData:
Collaboration graph

Public Attributes

GLuint d_VAO
 A GLuint specifying an OpenGL vertex array object to bind. More...
 
GLuint d_VBO
 A GLuint specifying an OpenGL vertex buffer object to bind. More...
 
GLuint d_IBO
 A GLuint specifying an OpenGL index buffer object to bind. More...
 
GLsizei d_indexCount
 The number of indices in the OpenGL index buffer object. More...
 
glm::mat4 d_model
 An OpenGL Model matrix. More...
 
GLStates d_glStates
 The available OpenGL state used for rendering. More...
 
glm::vec2 d_origin
 A vector of floats representing the origin of the GLTransformable. More...
 
glm::vec2 d_position
 A vector of floats representing the position of the GLTransformable. More...
 
GLfloat d_angle
 The angle of rotation for the GLTransformable specified in degrees (NOT radians). More...
 
glm::vec2 d_scale
 A vector of floats representing the scale of the GLTransformable. More...
 
GLRect d_rect
 A struct containing information necessary for calculating size and origin of an object. More...
 

Detailed Description

Transform data for GLTransformable objects. Used by the GLTransformable class internally, but usable in isolation as well.

Member Data Documentation

◆ d_angle

GLfloat pk::GLTransformData::d_angle

The angle of rotation for the GLTransformable specified in degrees (NOT radians).

◆ d_glStates

GLStates pk::GLTransformData::d_glStates

The available OpenGL state used for rendering.

◆ d_IBO

GLuint pk::GLTransformData::d_IBO

A GLuint specifying an OpenGL index buffer object to bind.

◆ d_indexCount

GLsizei pk::GLTransformData::d_indexCount

The number of indices in the OpenGL index buffer object.

◆ d_model

glm::mat4 pk::GLTransformData::d_model

An OpenGL Model matrix.

◆ d_origin

glm::vec2 pk::GLTransformData::d_origin

A vector of floats representing the origin of the GLTransformable.

◆ d_position

glm::vec2 pk::GLTransformData::d_position

A vector of floats representing the position of the GLTransformable.

◆ d_rect

GLRect pk::GLTransformData::d_rect

A struct containing information necessary for calculating size and origin of an object.

◆ d_scale

glm::vec2 pk::GLTransformData::d_scale

A vector of floats representing the scale of the GLTransformable.

◆ d_VAO

GLuint pk::GLTransformData::d_VAO

A GLuint specifying an OpenGL vertex array object to bind.

◆ d_VBO

GLuint pk::GLTransformData::d_VBO

A GLuint specifying an OpenGL vertex buffer object to bind.


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