home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Demo/game to OS friendly part II
- Date: 23 Jan 1996 18:01:02 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4e37ou$97v@sunsystem5.informatik.tu-muenchen.de>
- References: <john.hendrikx.47u5@grafix.xs4all.nl> <zpfaa8aC9pp5Z1a@blank1.blanker.ruhr.de>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- Originator: fischerj@hphalle5.informatik.tu-muenchen.de
-
-
- In article <zpfaa8aC9pp5Z1a@blank1.blanker.ruhr.de>, HAWK@blanker.ruhr.de (Peter Elzner) writes:
- |> john.hendrikx@grafix.xs4all.nl (John Hendrikx) wrote:
- |>
- |> > However, I think that accessing the screen-buffer directly is a necessity for
- |> > fast games, like a DOOM clone, as they want to do stuff on a pixel basis which
- |> > the OS doesn't provide standard functions for (unlike line-drawing for
- |> > example).
- |> >
- |> > That's why I think that it should be possible to specify a number of supported
- |> > (pixel-) layouts with the OpenScreen call, so you can tell OpenScreen that your
- |> > application supports only 8-bit and 16-bit Chunky displays for example, and
- |> > 'force' OpenScreen to either give you such a screen or to fail (instead of
- |> > getting 'the best match'). A 'query' function to find out about what screen
- |> > you got back from OpenScreen would also be quite handy.
- |>
- |> Programming Intuition screens you can get two types of screens:
- |>
- |> 1) standard Amiga screen based on ECS/AGA
- |> - everyone should know how to access them
- |> 2) gfx-board screens
- |>
- |> To determine wither it's (1) or (2) you could use CyberGfx'
- |> IsCyberModeID(). Then you should use CyberGfx routines like
- |> GetCyberMapAttr() to determine the pixel format (8-bit chunky or whatever)
- |> and to get more details about the bitmap.
-
- naah. sounds like the only way of detemining if I can poke is to do
- cyberstuff(). trying to open a lib beeing not present on 90% on machines.
-
- just test if native then poke.
-
- |> Also, the forthcomming rtg.library by Steffen Haueser offers things like
- |> getting the direct bitmap-address and using Double-Buffering for CyberGfx
- |> screens.
- only for cybergfx ? a ideal lib would include c2p on AGA screens.
-
- |>
- |> If you know exactly what kind of screen you have (and only then), it's safe
- |> to poke the bitmap directly.
-
- well, if it's no cyber() you can't be sure that it's native, it could be
- draco(), mac() ... ;)
-
- |>
- |> Peter Elzner [Hawk@blanker.ruhr.de]
- |> ---------------------< neXus support center >------------------------------
- |> Stupid, stupid rat creatures!
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-