[sdljava-users] Usage example for glGetDoublev [call allocateDirect()]
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan G. <IG...@re...> - 2005-09-09 13:16:11
|
Greetings, =20 ...sending this email from work so I don't have the original to reply too. =20 I realized on the way here that actually all you have to do is call allocateDirect() instead of just allocate(). Notice that allocateDirect() only exists on ByteBuffer. After you allocate a direct byte buffer then call the appropriate asXXXXBuffer() method to get the type of buffer you want. You can see examples of this in SDLSurface.java in the get/setPixelData(...) methods. I don't remember the precise name here but you should be able to find it. Be careful to allocate the correct size of ByteBuffer based on what your going to convert it to. =20 Please let me know if you end up getting this to work. =20 -Ivan/ |