03 July 2024, 01:06 | #1 |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 8
|
How to create a View with Rastport in BASIC?
Hi folks,
I am Oliver, 50 yo, used to code a lot back in the day. My biggest (and only commercial) project was a 3D editor with rendering software. In 1989 I started to write some sort of "virtual machine" that resembles an ancient 8 bit computer. Just for fun and to practise skills. I got quite far until 1992 when I dropped it. Fortunately I never lost my Amiga data, because in 2004 when I sold my last physical machine (an A3k, fully loaded) I took an rdf image of the hard drive and still use it with WinUAE to the day. Later I became a professional (Perl) programmer, and when I had some beers and got bored, I rediscovered the aforementioned project and finished it, still in BASIC, but using my now more advanced skills. I even implemented a character generator and nibble organized attribute ram, and also "hardware" blinking. All in BASIC! More than 4600 lines of code And blazing fast even on a hardware machine. Right now, I am using an Intuition screen without a window, because it turned out to be a lot faster (nearly 5 %). Out of curiosity I was thinking, maybe I should switch to a "naked" view with rastport. But how do I do that? I am running OS 3.9. While the "virtual machine" is running multitasking isn't needed, but I still want to have it system friendly. Could anybody guide me a bit as per how I can do that? I want to have a 3 bitplane 640 x 512 View with a RastPort to draw into. Edit: If somebody wants a live demo to see how crazy I am, no problem Write me a private message and we can have a screen sharing session over Skype. Last edited by Oli1974; 03 July 2024 at 22:27. |
03 July 2024, 09:06 | #2 | ||
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,424
|
Quote:
Drawback of writing into the rastport of the screen is that there is no clipping, which means that whenever you overrun the screen boundaries, you will write into memory and trash whatever is placed there. Or to put differently, you need to clip yourself, which is also not necessarily for free. Quote:
There is example code in the RKRM libraries, actually, but it is also said there that this is not recommended. |
||
03 July 2024, 15:30 | #3 | |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 8
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mechanical keyboards from RastPort | Krashan | News | 41 | 17 July 2023 17:40 |
How does one create Blitz Basic compatible anim files? | earok | Coders. Blitz Basic | 6 | 06 February 2017 16:54 |
A script to create a bootable floppy from Blitz Basic 2 iso | TenLeftFingers | support.Apps | 17 | 20 November 2016 21:09 |
RastPort fields (PenWidth and PenHeight) | Gilloo | Coders. System | 1 | 19 May 2013 21:59 |
|
|