LWJGL
May 22, 2013, 07:33:14 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: problems with mapping an image to a quad  (Read 1892 times)
silent8ch
Newbie
*
Posts: 1


« on: September 26, 2005, 18:55:41 »

ive tried to do as much as possible on my own, but it seems i have come to a point where i need help (not that its a bad thing).

the turorials ive seen call a function glGenTextures() where it takes two parameters an interger amount of textures to be loaded and an integer array that stores the pointers to the image buffers like (1, textures). this is all fine and dandy, except for the fact that all i see in my lwjgl library is a function that takes only an intBuffer as its parameter
(ex: GL11.glGenTextures(java.nio.IntBuffer textures ) )

there has to be something im missing.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: September 26, 2005, 22:35:08 »

the reason is that lwjgl uses the sizes and positions of the buffer.
if you create a fresh intbuffer with 5 elements, that would be like doing: glGenTextures(5, buffer).
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!