🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #542

Re: 16-bit images : windows game programming for dummies

#542
From: B. v Ingen Schenau
Date: Wed, 04 Aug 1999 00:00
43 lines
2769 bytes
[followup set to comp.os.ms-windows.programmer.graphics]
In this group (alt.comp.lang.learn.c-c++) we try to limit our
discussions to standard C and C++. Windows programming does not fall
in this category, soyour post is off topic for this group.
You will probably get more useful answers in a group dedicated to
windows programming.

Bart v Ingen Schenau
 
On Wed, 4 Aug 1999 18:23:31 +0100, "Kumar" <kumar@netcomuk.co.uk>
wrote:

>Hello,
>
>The best person to help me out with this would be someone who has read
>Windows Game Programming for dummies I guess; but I would appreciate a
>response from anyone who thinks they could help me out!
>
>I have finished the book Windows Game Programming for Dummies and am now
>embarking on my first project.  However, I have encountered a problem when
>attempting to display a 16/24 bit background on to the screen.
>I am using the same code as I use to display an 8bit bitmap (but without the
>setpalette() function).
>
>When I try to display an 8 bit background with 8 bit sprites on top of it I
>have no problems and can write a workable basic game.
>
>But when I try to display a 16 bit background in exactly the same manner,
>the image is displayed incorrectly and looks like a mess.
>I think it has something to do with the lpitch but I can't see why it would
>work with the 8bit file but not the 16bit file.
>
>I've tried for 2 days to correct this but with no success - any advice
>anyone could offer would be most graciously received.
>
> I am using 640X480X8 and 640X480X16 images for the backgrounds.
>
>Regards,
>Kumar Naib
>
>
>
>
Technical Details
Message-ID: <37aa844e.34228589@news.student.utwente.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7o9sle$41$1@taliesin.netcom.net.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10e433,7271cc3f603df36
X-Google-Attributes: gid10e433,public
X-Google-Thread: 11431d,7271cc3f603df36
X-Google-Attributes: gid11431d,public
X-Google-Thread: 114592,7271cc3f603df36
X-Google-Attributes: gid114592,public
X-Google-Thread: fdc2a,7271cc3f603df36
X-Google-Attributes: gidfdc2a,public
X-Google-Thread: 101278,7271cc3f603df36
X-Google-Attributes: gid101278,public
From: b.vaningenschenau@student.utwente.nl (B. v Ingen Schenau)
Subject: Re: 16-bit images : windows game programming for dummies
Date: 1999/08/04
Message-ID: <37aa844e.34228589@news.student.utwente.nl>
X-Deja-AN: 508868479
Content-Transfer-Encoding: 7bit
References: <7o9sle$41$1@taliesin.netcom.net.uk>
Organization: University of Twente, Enschede, The Netherlands
X-Server-Date: 4 Aug 1999 18:25:30 GMT
Followup-To: comp.os.ms-windows.programmer.graphics
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: alt.comp.lang.learn.c-c++,alt.comp.shareware.programmer,borland.public.cppbuilder.graphics,comp.graphics.algorithms,comp.os.ms-windows.programmer.graphics