🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #617

User Path

#617
From: Chris Miner
Date: Sat, 11 Apr 1992 09:13
24 lines
1108 bytes
I've this code for a drawSelf:: implementation-

- drawSelf:(const NXRect *)rects :(int)rectCount
{
	float coords[8] = {50.0, 50.0, 100.0, 0.0, 0.0, 100.0, -100.0, 0.0};
	char ops[5] = {dps_moveto, dps_rlineto, 
				dps_rlineto, dps_rlineto,
				dps_closepath};
	short bbox[4] = {0, 0, 200, 200};

	PSsetgray(0.0);
	NXRectFill(rects);
	PSsetgray(1.0);
	DPSDoUserPath(coords, 8, dps_float, ops, 5, bbox, dps_ustroke);
	return self;
}

The problem is it only works for short coords and dps_short instead of
float coords and dps_float.  I noticed the Draw, Graph and Lines
examples use floats.  Any answers on this?

	Chris 
	ckminer@longs.lance.colostate.edu
Technical Details
Message-ID: <1992Apr11.091359.65305@yuma.acns.colostate.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!csn!yuma!ckminer

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!csn!yuma!ckminer
From: ckminer@LANCE.ColoState.Edu (Chris Miner)
Subject: User Path
Message-ID: <1992Apr11.091359.65305@yuma.acns.colostate.edu>
Sender: news@yuma.acns.colostate.edu (News account)
Date: Sat, 11 Apr 1992 09:13:59 GMT
Distribution: na
Organization: Colorado State U. Engineering College
Keywords: DPSDoUserPath
Lines: 25