Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Drawing a line in directx 8.1

This topic is 6056 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

Hi all. I have just got the nexe tutorial 2 to work so now I have a directx screen. How do I draw simple 2d lines on it? I do not want any 3d in there at all I just want to draw 2d lines onto the screen. I was planning on using direct draw but I am told that this nolonger exists in directx8 and that it has been combined in to direct3d. I am a complete beginner with directx and have some experience with C++. I hope you can help. Giles

Share this post

Link to post
Share on other sites
Umm... DirectDraw still exists in DirectX 8 for backword compatability.
That means DirectDraw is still there, but Microsoft have cesed to update it.
If you were going to draw a line (2D) in DirectDraw, you would need some coding to do, and some ectra overhead too . Gogle look for t3dlib.cpp (its Andre LeMoths'' "game engine" and it has DirectDraw rasterizing crap on it).
If oyu were to go and draw lines in Direct3D. You will need to create a vertex bufer and render it using line-strips.

[ my engine ][ my game ][ my email ]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!