[comp.sys.ibm.pc.programmer] Solid filled triangles

murrayk@prism.CS.ORST.EDU (05/07/91)

I am currently trying to write some code that will draw a solid-fill
triangle on the VGA 640 x 350 screen (I am using this resolution so I can
easily write an EGA version also).  What the routine needs to do is to
take in as input three points (x, y), a color, and a page number (0 or 1)
and then as output the routine will draw a filled triangle with the three
given points as the vertices.  The routine needs to be really fast.  I am
having some problems as I have not been coding assemply for a long enough
amount of time.  If anyone has code to do this or is willing to tell me
how to do it I would be very (read that extremely VERY) happy.  If I do
get this code, I will post the program that it is going to be used in, it
will probably be a simple demo just to check things out.

Thanks a lot for any help you can give me, Keith.



   ------------------------------ 
   |	CHAOS Software		|	"If I tell ya what I'm doing
   |	1360 NW VanBuren	|	today, will you shut up and
   |	Corvallis, OR  97330	|	get out of my way?"
   ------------------------------		-ANTHRAX-
Keith Murray (503) 757-2753		"A little man with a big eraser,
murrayk@prism.cs.orst.ed		changing history..."
						-MEGADEATH-