20 #ifndef Tulip_GLSPHERE_H 21 #define Tulip_GLSPHERE_H 23 #include <tulip/tulipconf.h> 25 #include <tulip/Coord.h> 26 #include <tulip/Color.h> 28 #include <tulip/GlSimpleEntity.h> 52 GlSphere(
const Coord &position,
float radius,
const Color &color=Color(0,0,0,255),
float rotX=0,
float rotY=0,
float rotZ=0);
57 GlSphere(
const Coord &position,
float radius,
const std::string& textureFile,
int alpha=255,
float rotX=0,
float rotY=0,
float rotZ=0);
62 virtual void draw(
float lod,
Camera *camera);
67 virtual void translate(
const Coord& mouvement);
107 virtual void getXML(std::string &outString);
112 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
116 void generateBuffers(
int space);
121 std::string textureFile;
124 std::vector<unsigned int > buffers;
125 std::vector<float> vertices;
126 std::vector<float> texturesCoord;
127 std::vector<unsigned short> indices;
128 unsigned int verticesCount;
135 #endif // Tulip_GLSCENE_H
Base class for all Tulip OpenGL entities.
void setColor(const Color &newColor)
Set the color.
virtual void setTexture(const std::string &texture)
Set the texture name.
void setPosition(const Coord &pos)
Set absolute position.
Tulip OpenGL camera object.
const Color & getColor() const
Get the color.
Class to create a sphere with GlEntity system.
const Coord & getPosition() const
Get absolute position.