Qbasicnews.com

Full Version: SDL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was wandering where and how I get SDL for using SCREEN 21 and when I do get it where do I put it?
It's for use with FreeBASIC.
You cant mix SDL and built in graphics.

Cannot
Impossible
Cant be done
Wont work


SDL is already included in the FB package.
Look at the examples.
Well when I try to run the example-

Code:
SCREEN 21

CIRCLE (80,80),80

SLEEP 1000

An error message pops up saying SDL.dll was not found.
Try downloading freeBASIC 0.11b

http://www.freebasic.net


If you still want and need the SDL.DLL file, try: http://www.libsdl.org



And sorry about my previous post, thought you meant using SDL mixed with built in gfx commands, which wont work, as it says in the readme files Wink, My bad, sorry.
Download the SDL runtime from http://www.libsdl.org/ and put the SDL.dll either in your windows system directory (makes life a lot easier), or just put it in the same folder as your program.

In 2000/XP, windows sys dir is C:\WINNT\System32\ (the C:\WINNT might be different... it might be C:\Windows\ for you).

-shiftLynx
I installed the version 0.11 of the FreeBASIC compiler and I get no error but when I call screen 12 or 21 or probably any screen for that matter a windows - window comes up with none of my graphic in it and then the FBIde has to shut down due to an error.
Hm, could you post the sourcecode of your program?
Its very simple-

Code:
SCREEN 21

CIRCLE (80,80),80

SLEEP 1000

Any other screen mode causes this error as well.

EDIT - In fact now when I compile something and the program is finished runninga error appers and I have to start the FBIde again.
Hm, try using a smaller screen.

Try with screen 13 and see if the erors still there.

Could be your screen cant handle 1280x1024x8bit resolution.
Ok, in SCREEn 13 it actually did draw the circle but when the program was finished running an error occured and then the FBIde had to close down. Should it be coming up in a window (a windows window)? An error is now even happening when I try to compile Hello World so something must be wrong.
Pages: 1 2