LWJGL
May 22, 2013, 07:33:14
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL is now using GitHub
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
OpenGL
>
problems with mapping an image to a quad
Pages: [
1
]
« previous
next »
Print
Author
Topic: problems with mapping an image to a quad (Read 1892 times)
silent8ch
Newbie
Posts: 1
problems with mapping an image to a quad
«
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
problems with mapping an image to a quad
«
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
http://lwjgl.org
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...