Menu

/trunk/LWJGL/src/java Commit Log


Commit Date  
[r2769] by elias_naur

Cut VBO/PBO sanity checks from two to one glGetInteger call by exploiting GL enum value aliasing (once again inspired by MatthiasM). Additionally, support PBO calls added in OpenGL 2.1.

2007-04-19 07:42:01 Tree
[r2768] by elias_naur

Move null parameter checks from check classes to the generated classes, since calculateImageSize assumes the buffer being non-null

2007-04-15 19:43:35 Tree
[r2767] by elias_naur

Don't add border when checking image sizes

2007-04-15 19:33:03 Tree
[r2764] by matzon

1.1 version string

2007-04-11 20:32:12 Tree
[r2763] by elias_naur

Added support for non-direct buffers for all functions that doesn't cache the buffer address at the native side (e.g. glVertexPointer). Reasons:

1. We can now support calls like "glLight(..., ..., FloatBuffer.wrap(new float[] {...}));" without worrying about running out of direct memory heap,
since both the FloatBuffer and the array are allocated on the java heap. Future JVMs with stack allocation support could improve this even further.
2. We avoid getting in the way of users that doesn't (yet) know why direct buffers are important.

Obviously, we'd like direct support for arrays, but non-direct buffers are a nice compromise that avoids the API bloat that results when almost all
functions gain an overloaded versions that take arrays instead of buffers.

Notes:

1. Non-direct buffer support should not affect the performance in the direct buffer case, since the non-direct buffer code path is only activated
when the isDirect() check fails, and we were already checking isDirect() for sanity checking.
2. When using non-direct buffers, the buffer contents (remaining() bytes) are copied to a resizable ThreadLocal cached direct buffer (which is
resized as needed) and used instead of the non-direct buffer. Thus, performance of non-direct buffers is lower than direct buffers.

2007-04-11 17:30:13 Tree
[r2762] by elias_naur

Moved null check from generated code to BufferChecks and removed unused buffer checks

2007-04-11 16:13:05 Tree
[r2758] by matzon

1.0.1 version string

2007-04-07 19:10:22 Tree
[r2753] by elias_naur

Windows: Correct testing of wParam when a WM_SYSCOMMAND is received

2007-03-30 19:35:37 Tree
[r2751] by elias_naur

WindowsRegistry: Make sure the native library is loaded by calling Sys.initialize()

2007-03-22 14:05:41 Tree
[r2745] by elias_naur

Added a Pbuffer constructor that omits the RenderTexture parameter, and added a note that FBOs should be used instead, if available. Render-to-texture pbuffers can only be available on Windows platforms and is thus not portable.

2007-02-24 18:41:41 Tree
Older >