| hcavolsdsadgadsg I'm a spammer
 
 ![]() Reputation: 26 
 Joined: 11 Jun 2007
 Posts: 5801
 
 
 | 
			
				|  Posted: Wed Jul 01, 2009 11:38 pm    Post subject: Direct draw test |   |  
				| 
 |  
				| Moved my little graphics engine to direct draw from GDI for a little experiment. 
 Things I've learned:
 It is MUCH faster to blit from video memory. The speed is nice in comparison.
 
 It's a pain in the ass and confusing to set up and has shit documentation. Why do I have to manually calculate the location of the window and handle where it does the blits? This seems like something I shouldn't have to worry about. It's pretty straightforward once it's actually set up though.
 
 Using DirectX is a much smarter idea. Much simpler to set up, basically free scaling, free blending, etc, etc.
 
 
 
 http://www.filefront.com/13951310/directdraw_test.rar
 It draws sierpinski triangle.
 
 Also, as a bonus, it crashes because I was too lazy to take care of recreating surfaces when they are lost.
 
 
 I think I'll try my hand at a proper real time engine next.
 |  |