From: ADRIAN B. <Bos...@co...> - 1998-08-17 01:44:49
|
WHO THE HELL KNOWS >From <all...@ma...> Sun Aug 16 20:23:52 1998 Received: from smtp1.mailsrvcs.net [207.115.153.30] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A19D1813028A; Sun, 16 Aug 1998 19:56:13 DT Received: from gte.net (1Cust212.tnt2.santa-monica.ca.da.uu.net [153.37.178.212]) by smtp1.mailsrvcs.net with ESMTP id SAA06927 for <al...@ma...>; Sun, 16 Aug 1998 18:54:25 -0500 (CDT) Message-ID: <35D...@gt...> Date: Sun, 16 Aug 1998 16:55:10 -0700 From: Ryan Bright <ca...@gt...> X-Mailer: Mozilla 4.5b1 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: al...@ma... Subject: Re: [AL] trouble :( References: <35D...@sw...> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468817 Status: O Content-Length: 225 Lines: 8 Tomas Lilje wrote: > > hello. I copied a source from a tutorial, that was on the Allegro > homepage (copied, not rewrote), but it didn't work. I'm attaching the > file What doesn't work? What do you expect it to do? -Ryan >From <all...@ma...> Sun Aug 16 20:49:09 1998 Received: from mx1-11.onmedia.com [209.133.35.16] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A0CCD1501DC; Sun, 16 Aug 1998 18:44:28 DT Received: from GP1 (root@localhost) by mx1-11.onmedia.com (8.8.8/OICP2.0.5b1/8.8.8/OICP2.0.5b1) with OICP id PAA01476; Sun, 16 Aug 1998 15:41:26 -0700 (PDT) Received: from OnMedia Mail (GPX1) by mx1-11.onmedia.com ($Revision: 2.3 $) with OICP id 21898770; Sun, 16 Aug 1998 15:41:26 -0800 Subject: RE: [AL] hello Date: Sun, 16 Aug 1998 15:41:15 -0800 Message-Id: <218...@mx...> From: "tomstdenis" <tom...@go...> To: Tomas Lilje <e....@sw...>, al...@ca... MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468818 Status: O Content-Length: 124 Lines: 6 Ok the line wher it should put the text void putpixel (BITMAP *BMP, int 100, int 100, int 50); Take out the void. tom.... >From <all...@ma...> Sun Aug 16 20:54:06 1998 Received: from mail.hempseed.com [199.97.97.179] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A01717EC028A; Sun, 16 Aug 1998 19:49:43 DT Received: from joshuaha (207-29-76.ipt.aol.com [152.207.29.76]) by mail.hempseed.com (Post.Office MTA v3.1 release PO203a ID# 0-0U10L2S100) with SMTP id AAA141 for <al...@ca...>; Sun, 16 Aug 1998 19:35:40 -0400 Message-Id: <3.0...@mu...> X-Sender: jos...@mu... X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sun, 16 Aug 1998 16:46:10 -0700 To: al...@ca... From: Joshua Haberman <jos...@he...> Subject: Re: [AL] hello In-Reply-To: <35D...@sw...> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468819 Status: O Content-Length: 1571 Lines: 72 At 07:20 PM 8/16/98 -0700, Tomas Lilje wrote: >>hello, what's have i done wrong here? >>/*=20 >>by tomaz. >>*/ >> >> >>#include <stdlib.h> >>#include <stdio.h> >>#include <dos.h> >> >> >>#include "allegro.h" >> >>int color =3D 3; >>int counter =3D 1; >> >>int main() >>{ >> /* det h=84r ska man skriva i b=94rjan av ett allegro-prog */ What language is this? I'm curious... >> allegro_init(); >> >> /* st=84lla in keyboard handler */ >> install_keyboard();=20 >> >> /* VGA mode 13h, 320 x 200 */ >> set_gfx_mode(GFX_VGA, 320, 200, 0, 0); This can fail. Check the return value. >> >> /* paletten */ >> set_pallete(desktop_pallete); >> >> clear(screen); >> >> while(!keypressed()) >> { >> >> >> color --; >> >> // skriva text >> >> void putpixel (BITMAP *BMP, int 100, int 100, int 50); Couple problems here. First of all, BMP is undefined, what you want to pass for the first argument here is 'screen', if you want the pixel to be visible. Secondly, I'm not sure if you're trying to cast everything, but it isn't the correct syntax to do that (you need parentheses around the type). Beyond that, it's completely unneccesary. Lastly, it is incorrect syntax to specify the return value of a function when you call it (ie. the 'void' is unneccesary and incorrect) This line should be rewritten: putpixel(screen, 100, 50, 50); >> >> delay(300); >> } >> >> >> return 0; >>} >> >> > WHO THE HELL KNOWS If you don't, why waste your time making yourself look like an ass? --- Joshua Haberman - jos...@he... - UIN 2073556 >From <all...@ma...> Sun Aug 16 22:03:09 1998 Received: from smtp1.mailsrvcs.net [207.115.153.30] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A09E17FF028A; Sun, 16 Aug 1998 19:51:58 DT Received: from gte.net (1Cust212.tnt2.santa-monica.ca.da.uu.net [153.37.178.212]) by smtp1.mailsrvcs.net with ESMTP id SAA01185 for <al...@ma...>; Sun, 16 Aug 1998 18:50:10 -0500 (CDT) Message-ID: <35D...@gt...> Date: Sun, 16 Aug 1998 16:50:54 -0700 From: Ryan Bright <ca...@gt...> X-Mailer: Mozilla 4.5b1 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: al...@ma... Subject: Re: [AL] hello References: <35D...@sw...> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468820 Status: O Content-Length: 1659 Lines: 46 Tomas Lilje wrote: > > hello, what's have i done wrong here? You seem to have forgotten to learn C. #1. If you ask a question here, you need to give us some indication as to what your problem is. How is the program behaving? How do you expect it to behave? Does it crash? How does it crash? Do you get compiler or runtime errors? What, exactly, are those errors? Etc. #2. Your problems are with the C language and not with Allegro. I understand that it is often difficult to tell the difference, but try to keep it in mind before you post. > #include <stdlib.h> > #include <stdio.h> > #include <dos.h> > > #include "allegro.h" > > int color = 3; > int counter = 1; > > int main() Preferrably, "int main(void)" > /* VGA mode 13h, 320 x 200 */ > set_gfx_mode(GFX_VGA, 320, 200, 0, 0); set_gfx_mode() can fail. It returns a non-zero number if it does. You should check for that and respond accordingly. > void putpixel (BITMAP *BMP, int 100, int 100, int 50); This is meaningless. It looks as though you cut'n'paste the prototype from the help file and just filled in some numbers hoping that it would work. My suggestion to you is to buy a good book on C and read it, understand it, and practice it before even attempting to use Allegro. You're going to have a lot of trouble if you try to learn C by trial and error. As a hint, look at your call to set_gfx_mode() and then look at your call to putpixel(). Do you see how they differ? There is also a problem involving ``color'' as well--it will eventually underflow resulting in undefined behavior. Though that may take a while (at a guess, I'd say about 20 years). -Ryan >From <all...@ma...> Sun Aug 16 22:54:38 1998 Received: from smtp1.mailsrvcs.net [207.115.153.30] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A11E1808028A; Sun, 16 Aug 1998 19:54:06 DT Received: from gte.net (1Cust212.tnt2.santa-monica.ca.da.uu.net [153.37.178.212]) by smtp1.mailsrvcs.net with ESMTP id SAA14726 for <al...@ma...>; Sun, 16 Aug 1998 18:52:22 -0500 (CDT) Message-ID: <35D...@gt...> Date: Sun, 16 Aug 1998 16:53:07 -0700 From: Ryan Bright <ca...@gt...> X-Mailer: Mozilla 4.5b1 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: al...@ma... Subject: Re: [AL] hello References: <199...@co...> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468821 Status: O Content-Length: 271 Lines: 8 ADRIAN BOLAND wrote: > > WHO THE HELL KNOWS Please don't post unless you have something constructive to contribute. If you were unhappy with the question or the way he asked it (as I was), then perhaps you could have explained why rather than wasting bandwidth. -Ryan >From <all...@ma...> Mon Aug 17 01:40:42 1998 Received: from suncueva.adinet.com.uy [206.99.44.241] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id A28E1A77028A; Mon, 17 Aug 1998 00:33:18 DT Received: from baldo (r242-34.adinet.com.uy [207.50.242.34]) by suncueva.adinet.com.uy (8.9.0/8.9.0) with SMTP id BAA20208; Mon, 17 Aug 1998 01:21:23 +0300 (GMT) Message-Id: <3.0...@ad...> X-Sender: lu...@ad... X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Mon, 17 Aug 1998 00:53:04 -0300 To: al...@ma..., "Vox" <vo...@be...>, "James Bernard" <ber...@nb...>, "Usmar Padow" <us...@mi...> From: lu...@ad... Subject: [AL] PPCol 1.3 released Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468822 Status: O Content-Length: 1142 Lines: 34 Hello ppcoleans :-))) A new version of the PPCol library has been released. These are the changes: - Grzegorz Adam Hankiewicz contributed an example program showing how to automatically create masks for all the sprites on a datafile. - Added a general purpose bounding box collision detection macro. - Minor modifications to the documentation. - Grzegorz Adam Hankiewicz reformatted the documentation to avoid Allegro Makedoc utility bugs and match better the Allegro documentation. You can download the library from my homepage: http://members.xoom.com/baldo/ppcol13.zip or from SimtelNet: ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/allegro/ppcol13.zip. Zip file is 30kb long. Who don't knows what PPCol is: it is a library for sprites collision detection using Allegro. For more information look at my homepage (see footer). Ok, goodbye! Ivan Baldo: lu...@ad... - http://members.xoom.com/baldo - ICQ 10215364 Phone: (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America. (If you have problems with the previous addresses, try this ones: ib...@us..., http://baldo.home.ml.org). >From <all...@ma...> Mon Aug 17 02:30:21 1998 Received: from ibd.dbio.ro [193.231.0.2] by mail.canvaslink.com with ESMTP (SMTPD32-4.06) id ADF715690272; Mon, 17 Aug 1998 02:30:15 DT Received: from localhost (calin@localhost) by ibd.dbio.ro (8.8.7/8.8.7) with SMTP id JAA07832 for <al...@ma...>; Mon, 17 Aug 1998 09:30:04 +0300 (EEST) (envelope-from ca...@ib...) Date: Mon, 17 Aug 1998 09:30:04 +0300 (EEST) From: Calin Andrian <ca...@ib...> To: al...@ma... Subject: Re: [AL] Truecolor 3D rendering In-Reply-To: <35D...@he...> Message-ID: <Pin...@ib...> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Sender: all...@ma... Reply-To: al...@ma... X-UIDL: 203468823 Status: O Content-Length: 783 Lines: 23 On Fri, 14 Aug 1998, Gregor Brunmar wrote: > I have Allegro 3.0 + WIP May 30. Why dosn't you make a truecolor-version > for the WIP and not only to allegro 3.0? > Sorry for the delay in responding. I will make a version for WIP May 30. And probably I will continue the work only on the WIP version. There is a problem though. I just look over WIP diffs and discovered that there are already a few new routines for 15 and 16 bit 3D rendering. Sorry to say this, but the implementation is somewhat poor (changes were made in the wrong places). A lot of changes are in polygon.c to compensate wrong approaches in the scanline functions. Therefore I think I will revert to the 3.0 polygon.c and re-arrange things. This might take some time, as I am quite busy these days. Calin |