Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. // W init
  3. tekstury[0] = LoadTGAImage("D1_t.tga", &ImWidth, &ImHeight, &ImComponents, &ImFormat);
  4. tekstury[1] = LoadTGAImage("D2_t.tga", &ImWidth, &ImHeight, &ImComponents, &ImFormat);
  5. tekstury[2] = LoadTGAImage("D3_t.tga", &ImWidth, &ImHeight, &ImComponents, &ImFormat);
  6. tekstury[3] = LoadTGAImage("D4_t.tga", &ImWidth, &ImHeight, &ImComponents, &ImFormat);
  7.  
  8. // w renderscene
  9. glPushMatrix();
  10. glTranslatef(2, 0, 0);
  11. glBindTexture(GL_TEXTURE_2D, tekstury[0]);
  12. Ogniwo();
  13. glPopMatrix();
  14.  
  15. glPushMatrix();
  16. glTranslatef(0, 2, 0);
  17. glBindTexture(GL_TEXTURE_2D, tekstury[1]);
  18. Ogniwo();
  19. glPopMatrix();
  20.  
  21. glPushMatrix();
  22. glTranslatef(-2, 0, 0);
  23. glBindTexture(GL_TEXTURE_2D, tekstury[2]);
  24. Ogniwo();
  25. glPopMatrix();
  26.  
  27. glPushMatrix();
  28. glTranslatef(0, -2, 0);
  29. glBindTexture(GL_TEXTURE_2D, tekstury[3]);
  30. Ogniwo();
  31. glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement