Author Topic: Sdl problem  (Read 4484 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Sdl problem
« on: April 24, 2011, 12:43:37 AM »
Deleted....
« Last Edit: May 05, 2015, 12:38:51 PM by Peter »

Aurel

  • Guest
Re: Sdl problem
« Reply #1 on: April 24, 2011, 01:41:52 AM »
What exactly is SDL, i think that is just a wraper for OpenGL ,right?

Aurel

  • Guest
Re: Sdl problem
« Reply #2 on: April 24, 2011, 02:36:45 AM »
So SDL is a wraper in this case for directX but SDL exeist for linux to ???

Aurel

  • Guest
Re: Sdl problem
« Reply #3 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 :-\

Charles Pegge

  • Guest
Re: Sdl problem
« Reply #4 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

Aurel

  • Guest
Re: Sdl problem
« Reply #5 on: April 24, 2011, 10:07:44 AM »
Oh my i almost forget... ::)
Happy Easter .....

kryton9

  • Guest
Re: Sdl problem
« Reply #6 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++.

Aurel

  • Guest
Re: Sdl problem
« Reply #7 on: April 24, 2011, 11:44:01 PM »
So it looks that SFML is better option ;)

kryton9

  • Guest
Re: Sdl problem
« Reply #8 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.

Charles Pegge

  • Guest
Re: Sdl problem
« Reply #9 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