SDL Related
Arcade Games Puzzle Games Help and Support Order Games About Us

GAME DOWNLOADS

Some of Homebrew Software's games are written using SDL and SDL related libraries.  SDL is a great cross-platform API for games and graphic based software development.

New users of SDL often post questions on the SDL Newsgroup asking "How do I do...".  When possible we will try to answer those questions here with code we have written for the Homebrew Software game engine. This gives us a chance to help support the SDL community in return for the pleasure of working with SDL.

If you are using SDL and have questions feel free to send an email to the SDL newsgroup. Although I will gladly answer any questions sent directly to us, it is more helpful to the entire SDL community if the questions and answers are posted in a place that can benefit the entire group.

All of the code is provided for you to use without any restrictions in your application.

SDL Related Code Snippets

 

Clearing/Filling a SDL_Surface manually

ClearSurface.cpp

Clear a SDL surface to a specific pixel value. You really should use SDL_FillRect() to do this since it is platform independent and takes advantage of the hardware when possible, but this is how you can implement it yourself if you need to.

 

Translating a key down event from a SDL_keysym value

OnKeyDownTranslate.cpp

Translate a keysym event from the SDL values into a character with proper translation for the left and right shift keys and the CapsLock key.

[Home] [Arcade Games] [Puzzle Games] [Help and Support] [Order Games] [About Us]

Copyright © 2000-2008 Homebrew Software. All Rights Reserved. Legal
Last Updated: 04/17/08 09:47 AM