opengloberon for WinAos and LinuxAos are revised and available at
http://code.google.com/p/opengloberon/source/checkoutMain changes are mainly for easy code writing and visual esthetics:
- updated to opengl 4.3
- Basic opengl type names are changed; GL.GLfloat --> GL.Float, GL.GLuint -> GL.Uint, etc.
- gl prefix is removed from function names; GL.glViewport --> GL.Viewport.
- GLU part is seperated from OpenGL module, GLU.Mod is added,
GL.gluPerspective --> GLU.Perspective
- For problematic opengl projection and transformation functions that produce NaN
values, wrapper procedures are added which uses SetFCR inside.
So, in the client modules, use of GL.SetFCR() and GL.DelFCR() functions are not required.
- For some commonly used opengl functions that require vector parameters, wrapper procedures
are added that use mathoberon arrays as parameter. For example;
GL.glVertex3fv(SYSTEM.ADR(x[0])) --> GL.Vertex3fv(x),
where x: ARRAY [3] OF REAL;
- For some opengl functions that use string parameter as input, warapper procedures are added
for DarwinAos compatibility.
- Dynamic library names for Unix.GLU and Unix.XF86VMode are changed from
libXX.so --> libXX.so.1 in these modules, since they are in the search path of LinuxAos.
For Unix.OpenGL, it is not changed; you need to make a symbolic link to libGL.so
in the search path path of linuxaos if it is not available.
- In WMGLWindow object, context variable is made hidden and MakeCurrent, DeActivate
methods are added. context.RenderInto(backImg) is replaced with SwapGLBuffer() method
- Finally, the demo modules are adapted to these changes.
Waiting for your contributions, comments and ideas ..