Voxeloop  0.1.0
Musical Loop Generation in Voxel World
Cube Class Reference

#include <Cube.hpp>

Collaboration diagram for Cube:
Collaboration graph

Public Member Functions

 Cube ()
 
 ~Cube ()
 
void setScaleUniform ()
 
void setTexUinform ()
 
void setMatUniform ()
 
void setColorUniform ()
 
void scale (float s)
 
void rotate (float r)
 
void move (float z)
 
void activateShader ()
 
void draw ()
 
void toggleView ()
 
void setPrespective (bool view)
 

Private Member Functions

GLfloat random ()
 

Private Attributes

Shader shader
 
GLfloat _vertices [verticesSize]
 
GLuint _indices [indicesSize]
 
Texture texture
 
VAO vao
 
VBO vbo
 
EBO ebo
 
bool isPerspective
 
glm::mat4 model
 
glm::mat4 view
 
glm::mat4 proj
 
glm::vec4 lightColor
 
glm::vec3 lightPosition
 
GLuint scaleUniID
 
float rotation = 0.0f
 
float zmove = 0.0f
 
GLfloat xpos
 
GLfloat ypos
 

Constructor & Destructor Documentation

◆ Cube()

Cube::Cube ( )

◆ ~Cube()

Cube::~Cube ( )

Member Function Documentation

◆ activateShader()

void Cube::activateShader ( )

◆ draw()

void Cube::draw ( )

◆ move()

void Cube::move ( float  z)

◆ random()

GLfloat Cube::random ( )
private

◆ rotate()

void Cube::rotate ( float  r)

◆ scale()

void Cube::scale ( float  s)

◆ setColorUniform()

void Cube::setColorUniform ( )

◆ setMatUniform()

void Cube::setMatUniform ( )

◆ setPrespective()

void Cube::setPrespective ( bool  view)

◆ setScaleUniform()

void Cube::setScaleUniform ( )

◆ setTexUinform()

void Cube::setTexUinform ( )

◆ toggleView()

void Cube::toggleView ( )

Member Data Documentation

◆ _indices

GLuint Cube::_indices[indicesSize]
private

◆ _vertices

GLfloat Cube::_vertices[verticesSize]
private

◆ ebo

EBO Cube::ebo
private

◆ isPerspective

bool Cube::isPerspective
private

◆ lightColor

glm::vec4 Cube::lightColor
private

◆ lightPosition

glm::vec3 Cube::lightPosition
private

◆ model

glm::mat4 Cube::model
private

◆ proj

glm::mat4 Cube::proj
private

◆ rotation

float Cube::rotation = 0.0f
private

◆ scaleUniID

GLuint Cube::scaleUniID
private

◆ shader

Shader Cube::shader
private

◆ texture

Texture Cube::texture
private

◆ vao

VAO Cube::vao
private

◆ vbo

VBO Cube::vbo
private

◆ view

glm::mat4 Cube::view
private

◆ xpos

GLfloat Cube::xpos
private

◆ ypos

GLfloat Cube::ypos
private

◆ zmove

float Cube::zmove = 0.0f
private

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