🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1466

Solid filled triangles

#1466
From: murrayk
Date: Tue, 07 May 1991 02:58
25 lines
1748 bytes
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-
Technical Details
Message-ID: <1991May07.025853.7837@lynx.CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ogicse!orstcs!

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ogicse!orstcs!
From: murrayk@prism.CS.ORST.EDU
Newsgroups: rec.games.programmer,comp.sys.ibm.pc.programmer
Subject: Solid filled triangles
Summary: I need code...
Keywords: triangles, code.
Message-ID: <1991May07.025853.7837@lynx.CS.ORST.EDU>
Date: 7 May 91 02:58:53 GMT
Sender: @lynx.CS.ORST.EDU
Organization: Oregon State University, Computer Science Dept.
Lines: 25
Nntp-Posting-Host: prism.cs.orst.edu