LWJGL
May 22, 2012, 14: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 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
Lightweight Java Library Game Development
>
String and primitive parameters/return values - Feedback request
Pages:
1
[
2
]
« previous
next »
Print
Author
Topic: String and primitive parameters/return values - Feedback request (Read 3347 times)
elFarto
Newbie
Posts: 6
Re: String and primitive parameters/return values - Feedback request
«
Reply #15 on:
March 29, 2010, 04:53:37 »
Thanks for that.
Is there any plan for improving the native implementation of those methods? Currently you use the original method that expects a IntBuffer to be passed in, but when dealing with, say glGetTextures, you can write the native implementation like:
GLint foo;
glGenTextures(1, &foo);
return foo;
This would presumably be faster/more efficient as you wouldn't need to manage the buffers.
Regards
elFarto
Logged
spasi
Nerdus Imperius
Posts: 643
Re: String and primitive parameters/return values - Feedback request
«
Reply #16 on:
March 29, 2010, 06:21:00 »
We already have support for this (see the 6 new methods in OpenAL) and I did consider doing it for OpenGL too. The problem is that it would require a new native implementation for each alternative method and, based on some quick calculations, it would add 80-90 kb to LWJGL's native binaries. Along with the fact that all these methods are not performance sensitive, I decided it wasn't worth doing. LWJGL is already getting bloated with all these new extensions coming out every 6 months, I thought it will be important for web-deployed apps that LWJGL stays small in size.
In any case, this was a personal decision and can be changed easily if the community decides otherwise.
Logged
Spasi,
zDimensions
Pages:
1
[
2
]
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...