Jump to content

  • Log In with Google      Sign In   
  • Create Account


OO DX engine


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 ECKILLER   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 January 2000 - 12:07 PM

Can anybody give my some suggestions on how they would go about making an object orients DX engine. I have my functions, its just how to make them fit into a nice object oriented package. Also my goal in this engine would be to have as little global functions as possible and to encapsulate as much as possible. Frank ECKILLER

Sponsor:

#2 Brad8383   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 January 2000 - 04:40 PM

Start with a surface class. You should be able to set the init properties of this to any kind of surface and then have a generic create surface function. Put pixel plotting and bitmap functions in here. Then make a screen class. This should be higher up in the level of abstraction than the surface. It should have 3 pointers to surfaces and initalize them to make a double buffered screen system or a triple. This class should do windowed/fullscreen changes. the constructor of this should take width,height,bpp and the window handle as the params. also in your surface make a offscreen surface function that uses your lower level surface creation functions to make an offscreen surface for you and even automatically load a bmp and then create the surface for it automatically so all you have to do is Surface->LoadBmp("bm.bmp"); and then it creates everything for you. Im sure you can think of several other neat things to add too.

#3 Notwen   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 January 2000 - 03:24 AM

Check out the CDX package in the resources section on this site. It is a open source direct x class system. It might give you some ideas for the direction you want to go.

Its quite good.

Notwen




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS