|
-
Sep 2nd, 2010, 10:19 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Drawing a Line using Direct3D
I am using Direct3D Graphics for a 2D shooter game i am making. And i need to be able to draw lines. But since Direct3D can't draw a line from 1 vertex to another, i don't know how to draw one. It has to be atleast 3 vertices to be drawn. 
So i tried drawing a very small triangle looking like a line, but when the second vertex was above the other 2 vertices, the line became invisible.
So does anyone know how to draw a simple line with Direct3D? Thank you.
I think I am, therefore, I am. I think.
-
Sep 3rd, 2010, 09:13 AM
#2
Thread Starter
Addicted Member
Re: Drawing a Line using Direct3D
I think I am, therefore, I am. I think.
-
Sep 4th, 2010, 05:46 AM
#3
Thread Starter
Addicted Member
Re: Drawing a Line using Direct3D
anyone?
I think I am, therefore, I am. I think.
-
Sep 4th, 2010, 09:56 AM
#4
Re: Drawing a Line using Direct3D
Two triangles make a rectangle, which could be used as a line.
Software I use and highly recommend: Opera, Miranda IM, Peerblock, Winamp, Unlocker Assistant, JoyToKey, Virtual CloneDrive, Secunia PSI, ExplorerXP, GOM Player, Real Alternative, Quicktime Alternative,Sumatra PDF, and non-freeware: Photoshop and VB6( ).
My codebank: AllRGB, Rounded Rectangle(math), Binary Server, Buddy Paint, LoadPictureGDI+, System GUID/Volume Serial, HexToAsc, List all processes and their paths, quasiString matching
Strings(search, extraction, retrieval etc): Retrieve BBCode Link from HTML, RemoveBetween ()'s, strFindBetween(str1,str2), Insert text in HTML, HTML - GetSpanByID
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|