Transformation in OpenGL (GL_MODELVIEW / GL_TEXTURE)

by nik 10. March 2009 10:24

glPushMatrix();

{

// - in MODEL MODE 

 

//translate

glTranslatef(0.0, 0.0, 0.0);

//scale 

glScalef(1.0, 1.0, 1.0);

//rotate 

glRotatef(0.0, 0.0, 0.0, 0.0);

glMatrixMode( GL_TEXTURE );

glPushMatrix();

{

// - in TEXTURE MODE

//translate

glTranslatef(0.0, 0.0, 0.0);

//scale 

glScalef(1.0, 1.0, 1.0);

//rotate 

glRotatef(0.0, 0.0, 0.0, 0.0);

//DRAW METHOD HERE;

}

glPopMatrix();

glMatrixMode( GL_MODELVIEW );

}

glPopMatrix();

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , ,

General

Comments

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen