C-Engine/include/Object/Render.hpp

68 lines
1.6 KiB
C++
Raw Normal View History

2016-06-10 15:28:40 +02:00
/* ************************************************************************** */
/* _____ _ __ ___ __ */
/* Render.hpp | ___(_)/ _| ___ ( _ ) / /_ */
/* Project: C-Engine | |_ | | |_ / _ \/ _ \| '_ \ */
/* | _| | | _| __/ (_) | (_) | */
/* Author: Fife <wasabifife@gmail.com> |_| |_|_| \___|\___/ \___/ */
/* */
/* ************************************************************************** */
#ifndef CENGINE_RENDER_HPP
#define CENGINE_RENDER_HPP
#include "..\C-Engine\CEngine.hpp"
2016-06-10 15:28:40 +02:00
class Render
{
public:
Render(Object * Pointeur); //Constructeur
~Render();
void SetRender(Animation * v, int nb);
void SetRender(Animation & v);
void CopieRender(Animation * v, int nb);
void CopieRender(Animation & v);
void SetIt( int v );
2016-06-14 15:39:24 +02:00
void ForceSetIt( int v );
2016-06-10 15:28:40 +02:00
int GetIt();
void ReverseRender(bool);
bool GetReverse();
void SetDirection(int);
int GetDirection();
int GetSizeY();
int GetSizeX();
int GetBlitX();
int GetBlitY();
2016-07-19 15:38:45 +02:00
bool GetActivate();
void ActivateRender();
void DeActivateRender();
2016-06-10 15:28:40 +02:00
void DrawObject();
private:
Object * Conteneur;
Animation * TabAnim;
int nb_anim;
int iterateur;
int time;
int direction;
bool reverse;
bool copie;
2016-07-19 15:38:45 +02:00
bool activate;
2016-06-10 15:28:40 +02:00
};
#endif