Oxygen Basic
Programming => Problems & Solutions => Topic started by: Peter on April 24, 2011, 12:43:37 AM
-
Deleted....
-
What exactly is SDL, i think that is just a wraper for OpenGL ,right?
-
So SDL is a wraper in this case for directX but SDL exeist for linux to ???
-
No...
I found this on SDL page:
This page contains documentation, tutorials, and source code that may help you use OpenGL with the Simple DirectMedia Layer Library.
* OpenGL Tutorials at SDLTutorials.com
Covers: Using OpenGL with SDL
* NeHe OpenGL Tutorials
Covers: OpenGL topics (SDL source code available separately)
* OpenGL Tutorials (by Marius)
Covers: Setting up SDL and OpenGL, Quake 2 models, OpenGL graphics topics.
* SDLgears-1.0.2.tar.gz
Covers: Source for the classic "gears" OpenGL example
So it is wrapper for openGL...im still not sure :-\
-
Happy Easter everyone!
SDL mediates audio,video,mouse, and keyboard and the Windows message loop. It is designed to work alongside Opengl
Unfortunately I have not succeeded in getting Peter's code to load the BMP file, though it appears to initialise SDL correctly. I have tried different BMP images too in case there was an incompatibility.
Included with FreeBasic, there are quite a few SDL examples so it might be worth examining those closely.
Charles
-
Oh my i almost forget... ::)
Happy Easter .....
-
SDL is a cross platform c library for opengl. It has routines for joysticks and gamepads, creating windows and surfaces for opengl. It has additional addons for image loading, sound, video and fonts.
SFLM is a cross platform c++ library for opengl. It handles everything without additional addons unlike SDL and offers both static and dynamic libraries.
I've used both and like SFML much more when coding in C++.
-
So it looks that SFML is better option ;)
-
The only thing with SDL is that it is available for more platforms since is older and c code. Otherwise SFML is the better choice.
-
The trouble with most of these libraries is that when you need a bicycle you are given a 40 ton juggernaut!
Charles