OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Attributes | List of all members
Sprite Class Reference

#include <Sprite.h>

Collaboration diagram for Sprite:
[legend]

Public Member Functions

 Sprite (int tile, int x, int y, int width, int height)
 
void display (glm::mat4 MVP)
 
int getTexture ()
 
glm::vec4 getUVs ()
 

Private Attributes

int texture
 
ShaderBuffer vertices
 
ShaderBuffer uvs
 
glm::vec4 uv2D
 

Detailed Description

Definition at line 13 of file Sprite.h.

Constructor & Destructor Documentation

Sprite::Sprite ( int  tile,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 19 of file Sprite.cpp.

Member Function Documentation

void Sprite::display ( glm::mat4  MVP)

Definition at line 48 of file Sprite.cpp.

int Sprite::getTexture ( )
inline

Definition at line 18 of file Sprite.h.

glm::vec4 Sprite::getUVs ( )
inline

Definition at line 19 of file Sprite.h.

Member Data Documentation

int Sprite::texture
private

Definition at line 22 of file Sprite.h.

ShaderBuffer Sprite::vertices
private

Definition at line 23 of file Sprite.h.

ShaderBuffer Sprite::uvs
private

Definition at line 23 of file Sprite.h.

glm::vec4 Sprite::uv2D
private

Definition at line 24 of file Sprite.h.


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