LWJGL
May 19, 2013, 14:50:59
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
>
Shader API and Java String
Pages: [
1
]
« previous
next »
Print
Author
Topic: Shader API and Java String (Read 1182 times)
Tomas
Newbie
Posts: 2
Shader API and Java String
«
on:
June 15, 2010, 12:50:18 »
Hi,
I was playing with some glsl coding and to my suprise I found that the LWJGL implementation of some function don't use java Strings ?
glBindAttribLocation(int program, int index, ByteBuffer name);
glShaderSource(int shader, ByterBuffer string);
Why don't these functions use regular Java String as the last argument ? Is there a good reason or am I missing something. It feels kind of counter productive to push and pop strings in and out of bytebuffers.
Cheers
// Tomas
Logged
spasi
Nerdus Imperius
Posts: 752
Re: Shader API and Java String
«
Reply #1 on:
June 15, 2010, 16:50:46 »
The latest LWJGL version provides alternate versions for both of these methods, with CharSequence arguments (String implements CharSequence). Many other alternate methods are supported, see
this thread
for details.
Logged
Tomas
Newbie
Posts: 2
Re: Shader API and Java String
«
Reply #2 on:
June 15, 2010, 17:31:43 »
Sweet
Logged
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...