Oxygen Basic

Programming => Problems & Solutions => Topic started by: Peter on April 24, 2011, 12:43:37 AM

Title: Sdl problem
Post by: Peter on April 24, 2011, 12:43:37 AM
Deleted....
Title: Re: Sdl problem
Post by: Aurel on April 24, 2011, 01:41:52 AM
What exactly is SDL, i think that is just a wraper for OpenGL ,right?
Title: Re: Sdl problem
Post by: Aurel on April 24, 2011, 02:36:45 AM
So SDL is a wraper in this case for directX but SDL exeist for linux to ???
Title: Re: Sdl problem
Post by: Aurel on April 24, 2011, 02:40:03 AM
No...
I found this on SDL page:
Quote
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 :-\
Title: Re: Sdl problem
Post by: Charles Pegge on April 24, 2011, 08:11:04 AM

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
Title: Re: Sdl problem
Post by: Aurel on April 24, 2011, 10:07:44 AM
Oh my i almost forget... ::)
Happy Easter .....
Title: Re: Sdl problem
Post by: kryton9 on April 24, 2011, 10:20:30 PM
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++.
Title: Re: Sdl problem
Post by: Aurel on April 24, 2011, 11:44:01 PM
So it looks that SFML is better option ;)
Title: Re: Sdl problem
Post by: kryton9 on April 25, 2011, 01:48:33 PM
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.
Title: Re: Sdl problem
Post by: Charles Pegge on April 26, 2011, 08:38:45 PM

The trouble with most of these libraries is that when you need a bicycle you are given a 40 ton juggernaut!

Charles