22 #ifndef CENS_GRAPHICS_SHAPE_H
23 #define CENS_GRAPHICS_SHAPE_H
29 #include <Eigen/Geometry>
32 using namespace Eigen;
36 #include <GL/freeglut.h>
58 m_gsColor = Vector3f(0,0,0);
62 m_gsTextureHeight = 0;
101 const Vector3f &halfExtents,
133 const unsigned int *idx,
162 const Matrix3f &rot);
173 void copyimage(
const GLubyte *source);
191 const Vector3f &getColor();
200 Vector3f &getVertex(
int vertex_index);
209 Vector3f &getNormal(
int normal_index);
220 Vector2f &getTexCoord(
int texCoord_index);
227 void setType(
int type);
231 void setColor(
const Vector3f &color);
235 void setVertices(
const Vertices &vertices);
239 void addVertex(
const Vector3f &vertex);
243 void setNormals(
const Vertices &normals);
244 void addNormal(
const Vector3f &normal);
249 void setTexCoords(
const TexCoords &texCoords);
254 void addTexCoord(
const Vector2f &texCoord);
273 #endif //CENS_GRAPHICS_SHAPE_H
CENSGraphicsShape(const CENSGraphicsShape ©)
Computational Embodied Neuroscience Simulator library.
std::vector< Vector3f > Vertices
CENSPixelMap CENS_NULL_PIXMAP
Graphic processing of an object.
std::vector< Vector2f > TexCoords
GLubyte * m_gsTextureImage
Use a byte vector as a matrix.
TexCoords CENS_NULL_TEXCOORDS