Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bunny{
- GLuint textures[100];
- void Bunny::draw(int frame)
- {
- glPushMatrix();
- glEnable(GL_TEXTURE_2D);
- // rysowanie tułowia (spłaszczone koło)
- glPushMatrix();
- GLUquadric* thorax = gluNewQuadric();
- gluQuadricNormals(thorax, GLU_SMOOTH);
- gluQuadricTexture(thorax, GL_TRUE);
- glBindTexture(GL_TEXTURE_2D, textures[1]);
- glTranslatef(0, -2, 0);
- glScalef(1, 0.7, 0.7);
- gluSphere(thorax, 1.5, 36, 36);
- glPopMatrix();
- glDisable(GL_TEXTURE_2D);
- glPopMatrix();
- }
- void Bunny::loadTextures()
- {
- textures[1] = ilutGLLoadImage((wchar_t*)"textures/fursmall.jpg");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement