Creating off-screen display?

GFA, ASM, STOS, ...

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

tschak909
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Mar 26, 2018 9:29 pm

Creating off-screen display?

Postby tschak909 » Fri Jun 07, 2019 3:12 pm

Does anyone know of any example code to create an off-screen display?

I have officially run out of gas trying to keep enough state together to reconstruct a terminal display when it's damaged (there is too much data, and it is highly stateful)

so basically I have resigned myself to just needing to draw to the offscreen buffer and vro_cpyfm() rectangles directly from the damaged rect list...

I know I will need to ultimately do my own drawing routines.

will I need to do seperate code paths for each possible screen configuration? (e.g. use vrt_cpyfm for monochrome?)

-Thom

tschak909
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Mar 26, 2018 9:29 pm

Re: Creating off-screen display?

Postby tschak909 » Fri Jun 07, 2019 3:45 pm

I'd love to be able to use v_opnbm() for example, but...

Availability: The function is available as of EdDI Version 1.00. From EdDI 1.1 onwards, v_opnbm can be called with additional parameters.

GEM seriously pisses me off.

-Thom

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 813
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Creating off-screen display?

Postby mfro » Fri Jun 07, 2019 4:46 pm

What drawing routines do you need?
Lines? Thick lines? Circles? Bitmap?

If nothing too complex, it's pretty easy to create your own offscreen drawing routines.

tschak909
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Mar 26, 2018 9:29 pm

Re: Creating off-screen display?

Postby tschak909 » Fri Jun 07, 2019 4:49 pm

dot, line, rect fill, flood fill, text output from embedded bitmap font. Mono or color. (PLATO can output to either mono or color displays)

-Thom

User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 1771
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: Creating off-screen display?

Postby Cyprian » Fri Jun 07, 2019 5:30 pm

If I'm not wrong GEM in ROM has no offscreen bitmap.
You can easily use freeware solution called enhancer posted by Czietz:
viewtopic.php?f=16&t=36918&p=376038#p376038

I see you were informed about that:
viewtopic.php?t=33700
Did you try use enhancer and v_opnbm?
Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.appspot.com/

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1996
Joined: Sun Jul 31, 2011 1:11 pm

Re: Creating off-screen display?

Postby Eero Tamminen » Fri Jun 07, 2019 10:25 pm

tschak909 wrote:dot, line, rect fill, flood fill, text output from embedded bitmap font. Mono or color. (PLATO can output to either mono or color displays)


Here's GPL C-source for drawing routines that support Atari planar modes: http://eerott.mbnet.fi/open.shtml#wws

Check the server/graph/ directory in the sources.

PS. I used (maintained) that for several years. It worked OK on 4MB Atari STfm, monochrome monitor and MiNT.


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 2 guests