YAGE  v0.1.1
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
yage::Sprite Class Reference

#include <sprite.h>

Public Member Functions

 Sprite ()=default
 
 Sprite (const Sprite &)=delete
 
 Sprite (Sprite &&)=delete
 
 ~Sprite ()
 
Spriteoperator= (const Sprite &)=delete
 
Spriteoperator= (Sprite &&)=delete
 
void init (float x, float y, float width, float height, const std::string &texture_path)
 
void draw ()
 

Private Attributes

float x_
 
float y_
 
float width_
 
float height_
 
GLuint vbo_id_ = 0
 
Texture texture_
 

Detailed Description

Constructor & Destructor Documentation

yage::Sprite::Sprite ( )
default
yage::Sprite::Sprite ( const Sprite )
delete
yage::Sprite::Sprite ( Sprite &&  )
delete
yage::Sprite::~Sprite ( )

Member Function Documentation

void yage::Sprite::draw ( )
void yage::Sprite::init ( float  x,
float  y,
float  width,
float  height,
const std::string &  texture_path 
)
Sprite& yage::Sprite::operator= ( const Sprite )
delete
Sprite& yage::Sprite::operator= ( Sprite &&  )
delete

Member Data Documentation

float yage::Sprite::height_
private
Texture yage::Sprite::texture_
private
GLuint yage::Sprite::vbo_id_ = 0
private
float yage::Sprite::width_
private
float yage::Sprite::x_
private
float yage::Sprite::y_
private

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