Jump to content
  • Advertisement


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


Question about a little feature addon

This topic is 6362 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 all (and specifically to chris) I have a little question about a feature to be implemented in PR4.0. What is nagging me all the time with PR4 is the need for the WINUTIL/DEVDLG etc Win32 Platform code... Wouldn''t it be possible to have something like PR_SetHwnd(HWND) before calling any other PR functions ? That way you (Chris) could use WinUtil and stuff for your work and we could use our own windowing framework and input system for our game. It is just so bad if you have a nice clean object oriented framework to have to include this old global variable dependet code... and have it reside in it .. we have e.g given a Window Class with events like OnPaint OnMain OnFocus OnKey etc we could just add PR in there and don''t have to rely on winutil... I tried to integrate PR in our framework but got several unresolved externals from it unless i included the Winutil/Devdlg stuff.. Please truly seperate the Windows Framework from PR so that anyone can use their own stuff , and you can still use your stuff.. Thanks for your time Bernhard Glück

Share this post

Link to post
Share on other sites
Winutil and devdlg have been exposed so you can change them if you need to.

You can use your own windowing framework and input system but you still need to place the results in the variables PR expects to find. You can set the window handle to your own and make your own PR_SetHwnd function.

I have spent a lot of time working on those windows messages and handling them so it works on all cards and in fullscreen/windowed modes. If you start changing it around with your own code you may break something on a particular card without knowing it.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!