Mail Archives: djgpp/1998/06/16/21:02:31
From: | a DOT gillett AT virgin DOT net (Andrew R. Gillett)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: allegro trouble
|
Date: | Tue, 16 Jun 1998 16:56:37 +0100
|
Organization: | Virgin Net Usenet Service
|
Lines: | 31
|
Message-ID: | <MPG.ff07d4a3aa8ad29897a6@news.virgin.net>
|
References: | <6m427e$ikd$1 AT news DOT getonthe DOT net>
|
NNTP-Posting-Host: | 194.168.67.38
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
In comp.os.msdos.djgpp, article <6m427e$ikd$1 AT news DOT getonthe DOT net>, Evan
(mec_man AT hotmail DOT com) wrote:
> set_color_depth(4);
SET_COLOR_DEPTH (4); ????
Well, you can start by getting rid of that, Allegro does not support 16
colour modes.
> // put a box on the screen
> for (x=0; x<=10; x++)
> {
> for(y=0; y<=10; y++)
> {
> _putpixel(screen, x, y, 1);
> }
> }
This is not the best way of putting a box on the screen... You want to
use the rectfill command for that.
> sprite *Ball;
As I have said before, I am a little rusty on pointers and memory
allocation, but don't you have to give this something to point to?
--
Andrew Gillett
http://argnet.fatal-design.com/
ICQ: 12142937
- Raw text -