• Advertisement
Sign in to follow this  

Simple Direct3D System

This topic is 4553 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 All, I wrote a simple Direct3D graphic system ******************************************************************************** Simple DirectDraw Graphic System v1.0.0 ******************************************************************************** INTRODUCTION.VOID This library is the first program I wrote using D3D and C plus Classes. Recentely I decided to study CPP and what you see is a solution of Chapter12 exercises of The C++ Programming Language Book. This library provides a simple interface to some of Direct Draw functionality and can be used and extended by the others. Using this library one can EASILY create simple games. I built BouncingPiont object in the demostration, it is built on library's primitives. I used some information and examples which I found at gamedev.net ....... world.description d3dworld.h, d3dworld.cpp I like this object. World is a container of our primitives and complex objects. All our objects are part of the world. World can Draw all of it's objects and do global operations (like objects intersection). world.sctructure public: void Add(Shape&); void Draw(); void SimpleIntersection(Shape&); World& operator+=(Shape&); friend World& operator+(World&, Shape&); World(); ~World(); }; So all got to do is World += Line(...); World += LineDDA(...); .. World += Rect(...); etc; ......... Requirements Visual Studio 2003, DX8 For more information look into http://try.roldesign.ru/c3po/simple_graphic_system/readme.txt Download: http://try.roldesign.ru/c3po/simple_graphic_system/ May be it will help somebody.

Share this post


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

  • Advertisement