or you use the code peter provided some days ago...
Greez Daniel ----- Weitergeleitete Mail ---- Von: Peter Riley <[email protected]> An: Dodger <[email protected]> CC: [email protected] Gesendet: Freitag, den 6. Juli 2007, 08:45:57 Uhr Betreff: Re: Graphics, OpenGL, DirectDraw, etc... > 1) I want to know how to be able to include an image embedded in the > code somehow rather than as a seperate, external file (this way > there's no pathing issue possible when compiling the thing). > In the past I have successfully used the following method on Windows on wxPerl 0.26 to decode and decompress Zlib-compressed-uuencoded image data directly into Wx::Bitmap objects without using any external files. use Wx 0.26; use Compress::Zlib; my $bitmap = Wx::Bitmap->new( Wx::Image->new( $width, $height, uncompress( unpack('u', <<'__END_OF_IMAGE_DATA__' ... ... uuencoded Zlib-compressed image data goes here ... ... __END_OF_IMAGE_DATA__ )) ) ); I'll attach an executable example to this message, and also a script to convert Windows bitmaps into executable wxPerl code. It's for Windows only, but you can easily extend the idea to other platforms. > 3) I'd REALLY like to be able to do some real-time OpenGL 3D stuff. > Totally lost on how. > Check this out: http://www.bribes.org/perl/wopengl.html
bitmap2wxperl.pl
Description: Binary data
LameAboutBoxDialog.pl
Description: Binary data
