Jump to content

  • Log In with Google      Sign In   
  • Create Account


How to create more than one texture ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Androme   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 April 2000 - 08:57 PM

hi ! i''m new in opengl coding so be cool please .... How can i create more than on texture ? to create one texture i use this : if (TextureImage[0]=LoadBMP("Data/france.bmp")) { Status=TRUE; // Set The Status To TRUE glGenTextures(1, &texture[0]);// Create The Texture // Typical Texture Generation Using Data From The Bitmap glBindTexture(GL_TEXTURE_2D, texture[0]); glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage[0]->sizeX, TextureImage[0]->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); } what can i do to create a second different texture ?

Sponsor:

#2 Androme   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 April 2000 - 09:15 PM

Sorry for the post , i just found how to do.

#3 madmax22e   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 April 2000 - 02:33 AM

ive just started opengl too and if anyone is interested about how to load different textures i added to nehe''s tutorial on texture mapping. its beased on nehe''s code so anyone following his tutorials shouldnt be lost. the source is at http://madmax22e.hypermart.net/




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS