View Full Version : Win32 ScreenSaver API File I/O problems
10-16-2000, 06:33 PM
I recently wrote a screen saver program in OpenGL and it works fine by double clicking on the *.scr file but when I install it in the windows directory it fails at the File I/O level. I even tried hard pathing it and had no luck. Does the Windows Screen Saver API not allow file I/O at runtime? Is there some way to statically load the bitmaps into the *.scr file?
10-17-2000, 08:02 AM
try this utility that converts .bmp or .tga
into .h files http://freespace.virginnet.co.uk/al.braidwood/html/downloads_2_.htm
look for the Gfx2Tex utility
the source is also provided
10-19-2000, 03:31 PM
You can always add binary resources if you'd like a "single file" sreensaver.
Then at runtime you can obtain a pointer to the resource.
[This message has been edited by Blaze (edited 10-19-2000).]
10-24-2000, 05:50 PM
Blaze or any one else for that matter can they show me how you get a pointer to the bitmap resource? I'm doing a binary load in Visual C++ but having problems loading the data into an GLuint[256*256] array.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.