Title: Fix this stupid display for SDL! Post by: Akir on December 04, 2005, 06:02:55 am I am having one heck of a time with SDL. I've tried everything that I can think of, but I can't get it to even display a simple image! I'm going to just put the source out here, and hope someone knows what the problem is.
(language is FreeBasic.) Code: '$INCLUDE: "SDL/SDL.BI" Title: Fix this stupid display for SDL! Post by: Ty on December 04, 2005, 12:08:58 pm I can see a few:
1) BlitImage is never called. You need to call it in your main display loop. If it's never called, nothing will happen. 2) I can't find the main display loop. Related to above. This is the place where the BlitImage functions would be called. You might want to check out the examples in the examples/SDL folder. In particular, image_test1.bas seems to have what you're looking for. It has a good example of a main display loop, and also shows how to double buffer. It's certainly a much better example than the tutorial you got this code from ;) Title: Fix this stupid display for SDL! Post by: Devlyn on December 04, 2005, 06:17:55 pm Actually, this language looks 00gly :s
Like Basic and stuff :s Title: Fix this stupid display for SDL! Post by: Rockin Needlepin on February 27, 2006, 07:50:01 pm Kill the bastich
|