mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
28 lines
372 B
C++
28 lines
372 B
C++
#ifndef SPRITE_H
|
|
#define SPRITE_H
|
|
|
|
#include "object_2d.h"
|
|
|
|
#include "mesh_instance.h"
|
|
|
|
class Sprite : public Object2D {
|
|
public:
|
|
void render();
|
|
void update_mesh();
|
|
|
|
Sprite();
|
|
~Sprite();
|
|
|
|
MeshInstance *mesh_instance;
|
|
float width;
|
|
float height;
|
|
|
|
float region_x;
|
|
float region_y;
|
|
float region_width;
|
|
float region_height;
|
|
};
|
|
|
|
#endif
|
|
|