204 double dimx,
double dimy,
double dimz,
205 double posx,
double posy,
double posz,
206 double rotx,
double roty,
double rotz,
207 int r,
int g,
int b,
double alpha,std::string& label)
208 :
GuiObj(name,r,g,b,alpha)
215 set(dimx,dimy,dimz,posx,posy,posz,rotx,roty,rotz,r,g,b,alpha,label);
241 glEnable(GL_TEXTURE_2D);
246 glGenTextures(1,&texture);
250 glBindTexture(GL_TEXTURE_2D,texture);
252 glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
253 glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
254 glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_DECAL);
258 glDisable(GL_TEXTURE_2D);
266 glRotated(
mRotz,0.0,0.0,1.0);
267 glRotated(
mRoty,0.0,1.0,0.0);
268 glRotated(
mRotx,1.0,0.0,0.0);
276 glEnable(GL_TEXTURE_2D);
277 glBindTexture(GL_TEXTURE_2D,
nTexID);
282 glutSolidSphere(
mDimx, 20.0, 20.0);
288 glDisable(GL_TEXTURE_2D);
293 glEnable(GL_TEXTURE_2D);
294 glBindTexture(GL_TEXTURE_2D,
nTexID);
330 glDisable(GL_TEXTURE_2D);