🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1315

Re: Graphics in C

#1315
From: Chris "Beta" Haase
Date: Thu, 01 Oct 1992 20:34
25 lines
1722 bytes
mnewnam@eos.ncsu.edu (MARK  NEWNAM) writes:


>I jsut have a quick question.  I'm used to doing graphics in Pascal so I have
>a question about C.  In pascal if I want to write pixels straight to the 
>screen, I can just define the variable at $A000.  How can I do this in 
>Borland C++ or Turbo C?
>-- 
>**************************************************************
>**************************************************************
>* Mark Newnam                        * N    N CCCC SSSS U  U *         
>* InterNet: mnewnam@eos.ncsu.edu     * NN   N C    S    U  U *   
>* FidoNet : Coming soon              * N N  N C    SSSS U  U *     
>************************************** N  N N C       S U  U *   
>* "Programmers get overlayed"        * N   NN C       S U  U *  
>* "Protect your right to arm bears!" * N    N CCCC SSSS UUUU *       
>**************************************************************
>**************************************************************

   Use the memcpy, memmove, etc commands using the destination as A000, 
assuming you are using EGA. That should do it, or just use putpixel(X,Y,color)
which will have the same effect... Check your reference guide for the exact
definitions on mem commands... I haven't used them in a while.
Chris Haase
.
Technical Details
Message-ID: <haasec.717971649@craft.camp.clarkson.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!clarkson!haasec
References: <1992Oct1.173751.2244@ncsu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!clarkson!haasec
From: haasec@craft.camp.clarkson.edu (Chris "Beta" Haase)
Subject: Re: Graphics in C 
Message-ID: <haasec.717971649@craft.camp.clarkson.edu>
Sender: news@news.clarkson.edu
Nntp-Posting-Host: logic.camp.clarkson.edu
Organization: Clarkson University
References: <1992Oct1.173751.2244@ncsu.edu>
Date: Thu, 1 Oct 1992 20:34:09 GMT
Lines: 26