Zaslal: if.then
Popis: Nedívejte se na správnost atd. :-)
Jazyk: C++
Vloženo: 15.10.2008, 13:54
Stáhnout jako soubor
/*Deklarace*/ GLuint tex[1]; /*Inicializace*/ glEnable(GL_TEXTURE_2D); glEnable(GL_BLEND); glGenTextures( 2, tex ); glBindTexture( GL_TEXTURE_2D, tex[0] ); glfwLoadTexture2D( "pozadi.tga", NULL ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); glBindTexture( GL_TEXTURE_2D, tex[1] ); glfwLoadTexture2D( "herv.tga", GL_RGBA ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); /*Pouziti*/ glBindTexture( GL_TEXTURE_2D, tex[0] ); DrawIt(); /*...*/
© 2006 Michal Tuláček, Syntax Highlight - GeSHi (thx bref)