dot Net Login

Welcome Guest (Register -  Login)  Active Topics Active Topics Display List of Forum Members Memberlist Search The Forum Search Help Help
 Navigation
 Skin Chooser

Choose Skin:


There are 2 skins total.
The newest skin is Classis Default

 Latest Forum Posts

DirectDraw
 C++ GamesDirectDraw
Subject Topic: Direct Draw basics Post ReplyPost New Topic
 Direct Draw basics
<< Prev Topic | Next Topic >>
Games4TheFuture
Posted: 22-April-2006 at 12:06pm | IP Logged Quote Games4TheFuture
Avatar
Super Dedicated Groupie
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
View Games4TheFuture's Profile Search for other posts by Games4TheFuture Back to Top
 
Games4TheFuture
Posted: 24-April-2006 at 10:46am | IP Logged Quote Games4TheFuture
Avatar
Super Dedicated Groupie
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
View Games4TheFuture's Profile Search for other posts by Games4TheFuture Back to Top
 
Games4TheFuture
Posted: 25-April-2006 at 10:49am | IP Logged Quote Games4TheFuture
Avatar
Super Dedicated Groupie
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
View Games4TheFuture's Profile Search for other posts by Games4TheFuture Back to Top
 
Games4TheFuture
Posted: 01-May-2006 at 10:37am | IP Logged Quote Games4TheFuture
Avatar
Super Dedicated Groupie
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
View Games4TheFuture's Profile Search for other posts by Games4TheFuture Back to Top
 
2 User(s) are browsing this topic, 2 Guest(s) and 0 Member(s)
0 Members:
<< Prev Topic DirectDraw Next Topic >>

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.2031 seconds.

[ Users browsing page: none ]



Terms and Conditions | Privacy | Contact Us

Copyright © 2010 Cpp Games. All rights reserved.

This site is best viewed at 1024x768 screen resolution.
Back to Top

Designed by Micronet Technologies