a small example on using SDL (http://www.libsdl.org/) with C++Builder 2009.
Showing a background and rotating foreground image.
Preparations I did before creating the demo.
1. Downloaded "SDL-devel-1.2.13-VC6.zip (Visual C++ 6.0)"
2. Extracted zip file to my own SDL folder.
3. Created library file with "implib -a SDL.lib SDL.dll"
4. added a check for __STDINT_H in SDL_config_win32.h line 57
#ifndef __STDINT_H
typedef signed char int8_t;
#endif
5. Included "#include "SDL\Include\SDL.h" in my unit.
Full source from sdl and demo is included.
This is a compilation of 5 different demos using TOpenGLAPPanel version 1.1.6 in
RAD Studio 2009
(lesson2, lesson3,lesson4,lesson6,lesson7 from HeHe Productions)
only .tds and .pch files have been removed due to the size of these files.
This means full source and executable content.
If you like to play "Bowling Buddies" in facebook, and you can't get every shot just right. Then try this little utility.
Now you can concentrate om just aiming and then hit F3 for shooting at the pins.
TOpenGLAPPanel VCL Component for Codegear RAD Studio 2009 C++Builder
Some demos for CG 2009 will be available later...
Webcam example program using the "video for windows" library, and build in capturing to avi file.
Hint.. When saving to avi, stop the recording by hitting "Escape"
(Build with Codegear RAD Studio Project C++ Builder).
If you need an encoder, try using "Windows Media Video 9 VCM"
http://www.microsoft.com/downloads/details.aspx?FamilyID=0C99C648-5800-4...
Remarks:
Added a guestbook to my site. (see "Menu" at the left)
Feel free to drop a few lines wishes or whatever you like..
TOpenGLAPPanel created in Borland Developer Studio 2006.
Decided to release a compiled version of the lastest OpenGL component TOpenGLAPPanel.
(Codegear RAD Studio Project).
I decided to recreate my little home on the web once again.
a download section is available in the menu.
the old content can be found at the following locations
http://old.allanpetersen.com
and
http://www2.allanpetersen.com
more will follow.... :-)