• Advertisement

Archived

This topic is now archived and is closed to further replies.

Various openGL questions

This topic is 5742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i am developing a game and i have some questions to ask. First, i want to make a visual c application to let the user change various aspects of the game like resolution etc. How can i call this exe from inside my game( i have two .exe''s on for the game and one for the configuring application) Second i have some data files (bmp''s).Is there a way to add them as resources to the executable? Is this a good way to "hide" them or the game will be slower? I am using Visual studio. You can find the game at http://www.angelfire.com/on3/ironhell3index/HellWorld.html Thanks a lot!

Share this post


Link to post
Share on other sites
Advertisement
a good idea would be to put the graphics/other settings at the beginning of the game, similar to nehe''s basecode... check out the basecode to see how its done :D

Share this post


Link to post
Share on other sites
To include resources in visual studio, follow this thread that I started:

http://www.gamedev.net/community/forums/topic.asp?topic_id=92264

Share this post


Link to post
Share on other sites

"Basecode? what basecode? you mean the v2 one?"

this basecode... http://nehe.gamedev.net/nehegl2.asp

Share this post


Link to post
Share on other sites
Ok, thanks for your help.
I think i understood the dialog resource from basecode2 and i hope i understood the graphics resource from jeeky''s url , although i didn''t understand what type is in
type *pData = static_cast(LockResource(hGlobal));
Thanks again!

http://www.angelfire.com/on3/ironhell3index/HellWorld.html


Share this post


Link to post
Share on other sites
Apparently you didn''t read all of jeeky''s post:

"Note: "type" means a data type, such as char, float, etc."

Share this post


Link to post
Share on other sites
Yes , i read that, but i did not understand it.What has to do with adding an image as a resource?

Share this post


Link to post
Share on other sites
You can make the dialog to select resolution a different app, then write the settings to a file, then you use the function WinExec to start up your engine, and in your engine you load in the settings from the file.

Share this post


Link to post
Share on other sites
>>Yes , i read that, but i did not understand it.What has to do with adding an image as a resource?<<

In my code, I cast my imported image resources to unsigned chars. You now have a pointer to a bunch of bytes. You would then use memcpy to get all of the data into the struct you want.

Share this post


Link to post
Share on other sites
I don''t have any code on me right now.. but:

have a look into,
dev modes,
EnumDisplaySettings,
EnumDisplayDevices

they will give you all the stuff you need to test what modes are avaliable

Share this post


Link to post
Share on other sites
Hi! i am trying three days now to add that idiot resource screen to the beginning of my game.I haven''t made any progress.
I have read the Nehe''s basecode v2 code, and i understood the point but i cant do the same with my game, because the the code doesn''t explaines what does what.If you have in mind any tutorial about resource adding in Visual Studio 6, i would be thankfull.
also i am having problems with sound adding.I tried with fmod, but i couldn''t do anything.Any ideas?

You can find my game, Hell World at http://www.angelfire.com/on3/ironhell3index/HellWorld.html
The 7th alpha release will be a HUGE update to the game.The best change is the adding of more levels to play.

PS: sorry for my english, i am not a native speaker of english

Share this post


Link to post
Share on other sites

  • Advertisement