46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license BSD v3 (see license file)
|
|
*/
|
|
|
|
#ifndef __MESH_H__
|
|
#define __MESH_H__
|
|
|
|
#include <etk/Types.h>
|
|
#include <ewol/Resource.h>
|
|
#include <ewol/texture/TextureFile.h>
|
|
#include <ewol/openGL/Shader.h>
|
|
#include <ewol/openGL/Program.h>
|
|
|
|
namespace ewol
|
|
{
|
|
class Mesh : public ewol::Resource
|
|
{
|
|
protected:
|
|
ewol::Program* m_GLprogram;
|
|
int32_t m_GLPosition;
|
|
int32_t m_GLMatrix;
|
|
int32_t m_GLColor;
|
|
int32_t m_GLtexture;
|
|
int32_t m_GLtexID;
|
|
etk::Vector<uint32_t> m_indices;
|
|
etk::Vector< etk::Vector3D<float> > m_vertices;
|
|
etk::Vector< etk::Vector2D<float> > m_uvTextures;
|
|
etk::Vector< etk::Vector3D<float> > m_normals;
|
|
ewol::TextureFile* m_texture1;
|
|
etk::Vector<draw::Colorf> m_coordColor; //!< internal color of the different point
|
|
public:
|
|
Mesh(etk::UString genName);
|
|
virtual ~Mesh(void);
|
|
virtual const char* GetType(void) { return "ewol::Mesh"; };
|
|
virtual void Draw(void);
|
|
|
|
};
|
|
};
|
|
|
|
|
|
#endif
|