🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Polygons in DirectDraw?

Started by
0 comments, last by Slide 24 years, 10 months ago
Hi,

I'm trying to build up a simple 3d engine from scratch myself (not through gl / direct 3d) mainly for learning purposes...

I've got some basic directdraw stuff going, back buffers and wotnot and was wondering what the best way to draw straight filled polygons on the screen is? I figure the polygon function in GDI will work if i look the surface but thats probably gonna be slow. I can also work with the memory directly, but that sounds *hairy*. Direct3d has a poly function but i didnt look at that yet...

any suggestions? am i missing anything?

thanks

There's probably a simpler, more elegant way of doing it but hell this is London
Advertisement
DrawPrimitive will do the trick, also allows for Gourad shading which is nice
There's probably a simpler, more elegant way of doing it but hell this is London

This topic is closed to new replies.

Advertisement