🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1152

DEGAS and objc_draw() help

#1152
From: Johnie Wardlaw
Date: Mon, 07 Jul 1986 18:56
22 lines
1655 bytes
I have a question:

I have a 1040 ST and I use the Megamax C compiler.  What I want to do is
load in a DEGAS picture into memory and then copy parts of it into BITBLK
images that can be drawn using the objc_draw() routine.  I think that it
is reading in okay, but I can't be sure because it isn't putting anything
on the screen in ANY of the resolutions.  What I do is read the DEGAS file
into a 32000 byte character array (allocated with malloc()) and then
use type casting to read the bytes into the integer array.  I declared
each of my images as an OBJECT (not OBJECT *).  Could this be the problem?
I create the BITBLK record with malloc().  Nothing is drawn.  Any help
would be greatly appreciated!    Thanks in advance,  


	/*********************************************************\
	** Johnie Wardlaw,      Undergraduate:  Computer Science **
	** University of California, Riverside                   **
	** {ucbvax!ucdavis, ihnp4!ucla-cs} ucrmath!hope!wardlaw  **
	**							 **
	** "If that was foreplay, I'm a dead man!"		 **
	**			-- Cocoon (alien sex scene)      **
	\*********************************************************/
Technical Details
Message-ID: <539@hope.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!nike!ucbcad!ucbvax!ucdavis!ucrmath!hope!wardlaw

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!nike!ucbcad!ucbvax!ucdavis!ucrmath!hope!wardlaw
From: wardlaw@hope.UUCP (Johnie Wardlaw)
Newsgroups: net.micro.atari16
Subject: DEGAS and objc_draw() help
Message-ID: <539@hope.UUCP>
Date: Mon, 7-Jul-86 14:56:20 EDT
Article-I.D.: hope.539
Posted: Mon Jul  7 14:56:20 1986
Date-Received: Tue, 8-Jul-86 06:34:36 EDT
Distribution: net
Organization: University of California, Riverside
Lines: 22