Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Drawing Primitive Primitives in DX8
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EACam
Warrior

154 Posts

Posted - May 29 2004 :  11:25:22 AM  Show Profile  Reply with Quote
Ok...i want to draw a REAL primitive...e.g. I want to actually DRAW a box, etc. For selection and stuff.

I'm clueless.



Thanks.

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  11:47:09 AM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I have tried looking for info on this before, and have had no luck... but couldn't you use a texture to represent the box, and just resize it as needed by using a strip... or are you actually wanting a 3 dimensional box?

DaBooda out...


DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 29 2004 :  12:17:15 PM  Show Profile  Reply with Quote
I am confused as to what you are trying to do. Could you give a little more detail?
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 29 2004 :  1:32:08 PM  Show Profile  Reply with Quote
Do you mean you don't know how to define a box with vertices?

Whatever. Who knows...
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  1:37:48 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I think he means, that in directx 7, you can actually draw boxes, and circles, and such.... but unfortunately... I have been looking through the Directx8 sdk, and cannot find anything remotely similar to these commands, I think you will have to use a texture and a strip, just set the color key to make the texture transparent, or use a .dds file... I have made editors before, and this is what method, I always have to use...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 29 2004 :  2:18:15 PM  Show Profile  Reply with Quote
ok...i guess i'll just go with that, but i think i'll make a 2x2 texture of white (so i can color it when i want to) and stretch it horizontally for the top and bottom parts of the box, and stretch it vertically for the left and right sides...that way the actual width of the box will stay constant (and it allows me to govern HOW wide it is if I just stretch the sides in the other direction).

Thanks!
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 29 2004 :  5:43:12 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
In DirectX 7, the line, circle, box drawing was done by an implicit surface lock to get a DC for the surface, then calling the appropriate GDI functions. Since DirectX8 doesn't have any Direct Draw support, and everything is done via a video card, then locking a surface may not always be possible since the memory will be on the video card and not in the system memory. It will also depend on video driver support, etc., and locking video memory can possibly be slower than locking system memory, depending on the video card.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.