Tuesday, December 31, 2013
Saturday, December 28, 2013
Source code snapshot [28th Dec 2013]
The latest snapshot adds many new interesting features:
API Additions
-- Aggelos Kolaitis
API Additions
- Added SDLU::RWops cxx class
- Added SDLU_GL_RenderCacheState() and SDLU_GL_RenderRestoreState(), which enable mixing pure OpenGL calls with the SDL2 Render API
- SDLU_SaveIniRW() and SDLU_LoadIniRW() now have a freesrc parameter
- OpenGL functions are dynamically loaded, so we don't have to link to -lGL
- Added configure script for the tests
- You can now build deb and rpm packages using CMake
- Check for std::string support
If you have a copy of the git repository, the snapshot is tagged with the name
snapshot-281213
. (281213 stands for 28/12/13, I just don't like having slashes '/' in the tag name).
As always please test the library, run the test programs and report issues at the issue tracker.
-- Aggelos Kolaitis
New OpenGL API: Mix pure OpenGL calls with the SDL2 Render API!
Hello fellow programmers!
I'm writing this post to announce the new API that was added in the library only yesterday, namely SDLU_GL_RenderCacheState() and SDLU_GL_RenderRestoreState().
These two functions allow you to mix pure OpenGL, OpenGL ES or OpenGL ES 2 calls with the SDL2 Render API. They dynamically load the required OpenGL symbols that are used, and so all OpenGL libraries (desktop GL, GLES, GLES2) are supported.
Example:
-- Aggelos Kolaitis
I'm writing this post to announce the new API that was added in the library only yesterday, namely SDLU_GL_RenderCacheState() and SDLU_GL_RenderRestoreState().
These two functions allow you to mix pure OpenGL, OpenGL ES or OpenGL ES 2 calls with the SDL2 Render API. They dynamically load the required OpenGL symbols that are used, and so all OpenGL libraries (desktop GL, GLES, GLES2) are supported.
Example:
SDL_RenderClear(sdl_renderer);
SDL_RenderDrawPoint(sdl_renderer, 100, 100);
SDLU_GL_RenderCacheState(sdl_renderer);
glColor3f(1,0,0);
glRecti(150, 150, 200, 200);
SDLU_GL_RenderRestoreState(sdl_renderer);
SDL_RenderPresent(sdl_renderer);
For a complete example, you might want to check out testrender2 (link).-- Aggelos Kolaitis
Wednesday, December 18, 2013
Source code snapshot [18/12/13]
The following new things are included in the source code snapshot:
Build System:
I have uploaded the source code snapshots as zip or tar.gz archives in the Downloads section of the repository over at bitbucket. The snapshots contain the latest source code, along with pre-generated documentation by doxygen.
Build System:
- Added '--enable-cxx' and '--enable-debug' configure options
- Initial support for cross-compilation of the Raspberry Pi port from Linux
- Many bug fixes in the build system
- Added sdlu-config script
- Added ini file handling API
- Added new math API (for vector manipulation)
I have uploaded the source code snapshots as zip or tar.gz archives in the Downloads section of the repository over at bitbucket. The snapshots contain the latest source code, along with pre-generated documentation by doxygen.
If you have a copy of the git repository, the snapshot is tagged with the name
snapshot-181213
. (181213 stands for 18/12/13, I just don't like having slashes '/' in the tag name).
As always please test the library, run the test programs and report issues at the issue tracker.
-- Aggelos Kolaitis
Subscribe to:
Posts (Atom)