67 lines
1.6 KiB
C++
67 lines
1.6 KiB
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license BSD v3 (see license file)
|
|
*/
|
|
|
|
#ifndef __EWOL_COMPOSITING_H__
|
|
#define __EWOL_COMPOSITING_H__
|
|
|
|
#include <ewol/debug.h>
|
|
#include <etk/UString.h>
|
|
#include <etk/math/Matrix4.h>
|
|
|
|
namespace ewol
|
|
{
|
|
class Compositing
|
|
{
|
|
protected:
|
|
mat4 m_matrixApply;
|
|
public:
|
|
/**
|
|
* @brief generic constructor
|
|
*/
|
|
Compositing(void);
|
|
/**
|
|
* @brief Generic destructor
|
|
*/
|
|
virtual ~Compositing(void);
|
|
/**
|
|
* @brief Virtal pure function that request the draw of all openGl elements
|
|
*/
|
|
virtual void Draw(void)=0;
|
|
/**
|
|
* @brief Clear alll tre registered element in the current element
|
|
*/
|
|
virtual void Clear(void);
|
|
/**
|
|
* @brief Reset to the eye matrix the openGL mouving system
|
|
*/
|
|
virtual void ResetMatrix(void);
|
|
/**
|
|
* @brief Translate the current display of this element
|
|
* @param[in] _vect The translation vector to apply at the transformation matrix
|
|
*/
|
|
virtual void Translate(const vec3& _vect);
|
|
/**
|
|
* @brief Rotate the curent display of this element
|
|
* @param[in] _vect The rotation vector to apply at the transformation matrix
|
|
*/
|
|
virtual void Rotate(const vec3& _vect, float _angle);
|
|
/**
|
|
* @brief Scale the current diaplsy of this element
|
|
* @param[in] _vect The scaling vector to apply at the transformation matrix
|
|
*/
|
|
virtual void Scale(const vec3& _vect);
|
|
/**
|
|
* @brief set the transformation matrix
|
|
* @param[in] _mat The new matrix.
|
|
*/
|
|
virtual void SetMatrix(const mat4& _mat);
|
|
};
|
|
};
|
|
|
|
#endif
|