| Direct Draw basics |
| << Prev Topic | Next Topic >> |
| Games4TheFuture |
| Posted: 22-April-2006 at 12:06pm | IP Logged
|
|
|
Super Dedicated Groupie

Group: Super Dedicated Groupie
Joined: 03-April-2006 Location: United States Posts: 91
|
Getting Started
I'm going to start explaining some of the basics of Direct Draw in this forum. Before you start make sure you have a current version of the DirectX SDK installed on your computer. Once you have that your ready to begin.
Stay tuned because I plan on making new posts to this forum very frequently until I cover all of the basics of DirectDraw. If you get lost along the way or have any questions or problems please contact me through the private messanger.
|
Online Status: Offline
|
|
| |
| Games4TheFuture |
| Posted: 24-April-2006 at 10:46am | IP Logged
|
|
|
Super Dedicated Groupie

Group: Super Dedicated Groupie
Joined: 03-April-2006 Location: United States Posts: 91
|
Step 1
Add DirectDraw.lib to your linker setings
Include DirectDraw.h in your sorce code
|
Online Status: Offline
|
|
| |
| Games4TheFuture |
| Posted: 25-April-2006 at 10:49am | IP Logged
|
|
|
Super Dedicated Groupie

Group: Super Dedicated Groupie
Joined: 03-April-2006 Location: United States Posts: 91
|
Step 2:Learning COM
Direct X is based on a system developed by Microsoft called component object modeling or COM for short. It is basicaly an idea that says all work must be done via interfaces. These interfaces in turn have interfaces. For this short lecture all you realy need to know is that COM uses interfaces of interfaces. If anyone finds a good site that describes COM please post it on the site.
|
Online Status: Offline
|
|
| |
| Games4TheFuture |
| Posted: 01-May-2006 at 10:37am | IP Logged
|
|
|
Super Dedicated Groupie

Group: Super Dedicated Groupie
Joined: 03-April-2006 Location: United States Posts: 91
|
Step 3: Direct Draw Main Interface
O.K. I said Direct X uses interfaces of interfaces, right? Well, I'm going to somewhat elaborate on that now.
The main interface to Direct Draw is LPDDRAW. Declaring a pointer to this interface is simple. Geting the address of the interface is a little more dificult.(Not realy, but I'll cover that in the next step) Uses this code to declare an interface.
LPDDRAW lpdd;
This main DirectDraw interface is used to obtain other interfaces to use. I will explain this in Step 5.
Mostly all DirectX functions are called from a pointer to a interface. This means that almost all DirectX function calls will look something like this:
lpdd->function();
Note: So far all of this probably dosn't seam too hard to you. That is because Direct X is not hard to use. The next step will be about getting access to the interface into the pointer. This is simpler then it sounds.
|
Online Status: Offline
|
|
| |
| 2 User(s) are browsing this topic, 2 Guest(s) and 0 Member(s) |
| 0 Members: |
|
|