Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

OpenGL Help with D3D App class

This topic is 4444 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

Hello, I am starting to dive into DX coming from OpenGL... I have noticed some people are wrapping DX stuff into classes and making their life easier of course, but why not use the DX SDK class that I see sometimes? (name of the class eludes me) Any thoughts or reasons why to or not use it for game engine development. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I don't use it because I think I'll learn more if I make my own (I'm not a very good programmer). Also, I'm comfortable with my own naming conventions and going through and changing everything would be a pain. Other than that I don't really know. It just came naturally to me to make my own wrapper classes.

Share this post


Link to post
Share on other sites
The D3D app class i know from the DX8 SDK contains quite a lot code and not everything is as clear commented as i'd wish it was.

I still used it as base for my general render class since it checks quite a lot of caps and makes it possible to run with my wanted settings almost everywhere.

You still might build your own wrapper class but take a close look on the framework Microsoft built. There's a lot of things that may not make sense on the first glance but can be quite crucial for a successful startup.

One of the things i added on top: Auto-switch to fullscreen or back if the target card wouldn't support the wanted mode in a window (yes, crap like that is out there).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!