YAGE
v0.1.4.0
Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
render
sprite.h
Go to the documentation of this file.
1
9
#ifndef SPRITE_H
10
#define SPRITE_H
11
12
#include "../data/texture.h"
13
14
#include <glad/glad.h>
15
16
#include <string>
17
18
namespace
yage
19
{
20
23
class
Sprite
24
{
25
private
:
26
float
x_;
27
float
y_;
28
float
width_;
29
float
height_;
30
GLuint vbo_id_ = 0;
31
Texture
texture_;
32
33
public
:
34
Sprite
() =
default
;
35
Sprite
(
const
Sprite
&) =
delete
;
36
Sprite
(
Sprite
&&) =
delete
;
37
~Sprite
();
38
39
Sprite
&
operator=
(
const
Sprite
&) =
delete
;
40
Sprite
&
operator=
(
Sprite
&&) =
delete
;
41
42
void
init
(
float
x,
float
y,
float
width,
float
height,
43
const
std::string &texture_path);
44
void
draw
();
45
};
46
47
}
// namespace yage
48
49
#endif
yage::Sprite::Sprite
Sprite()=default
yage::Sprite::draw
void draw()
Definition:
sprite.cpp:71
yage::Sprite::init
void init(float x, float y, float width, float height, const std::string &texture_path)
Definition:
sprite.cpp:25
yage::Texture
Definition:
texture.h:17
yage::Sprite::~Sprite
~Sprite()
Definition:
sprite.cpp:18
yage::Sprite::operator=
Sprite & operator=(const Sprite &)=delete
yage::Sprite
Definition:
sprite.h:23
Generated on Tue Feb 13 2018 20:22:05 for YAGE by
1.8.6