🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.api.opengl
Article #35

Re: How to make a scrrenshot

#35
From: Paul Richards
Date: Thu, 06 Jan 2000 00:00
22 lines
1609 bytes
Prof wrote:
> 
> Hi.
> 
> I'm trying to make a screenshot of the framebuffer content and write it to a
> .tga file.
> 
> Something is going wrong, because the screenshot is distorted.

If the bit for grabbing the buffer is OK and it's just the writing the
file that screws things up then try using PPM, it is a much simpler file
format.  I've made up a C++ class that can handle the I/O for you and I
could email you that if you like.  The class has support for you to just
tell it where the buffer is and it'll use that memory for its image.  It
should work a treat in this case.

Just email me if you want the source to the class..
-- 
Paul Richards (Pauldoo) - http://www.pauldoo.co.uk

I've not run any Microsoft code for 40 days.
    How about you?
Technical Details
Message-ID: <3874DF34.D1DF304D@dunvegan1.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <851jd0$rl$1@newsread.f.de.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f65bb,2ad16ac8f9e3514d
X-Google-Attributes: gidf65bb,public
X-Google-Thread: 100291,2ad16ac8f9e3514d
X-Google-Attributes: gid100291,public
From: Paul Richards <pauldoo@dunvegan1.demon.co.uk>
Subject: Re: How to make a scrrenshot
Date: 2000/01/06
Message-ID: <3874DF34.D1DF304D@dunvegan1.demon.co.uk>
X-Deja-AN: 569204089
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-Host: dunvegan1.demon.co.uk:193.237.111.243
References: <851jd0$rl$1@newsread.f.de.uu.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 947185330 nnrp-03:21773 NO-IDENT dunvegan1.demon.co.uk:193.237.111.243
Organization: Pauldoo's Linux Box
Mime-Version: 1.0
Newsgroups: comp.graphics.api.opengl,3dfx.opengl