![]() |
![]() |
#1 |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 28
|
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 ![]() 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 ![]() Last edited by Oli1974; 03 July 2024 at 22:27. |
![]() |
![]() |
#2 | ||
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,501
|
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. |
||
![]() |
![]() |
#3 | |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 28
|
Quote:
|
|
![]() |
![]() |
#4 |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 28
|
Really nobody could give me some hints? I have my reasons for not opening a fully fledged screen. I just want a View with Rastport so that for example the user cannot bring any screen to front while my program is running.
|
![]() |
![]() |
#5 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,501
|
I would not know that Os clipping has any flaws, actually. It would be really bad if it would. And, no, I do not consider rendering into a view where you could get one for free with every screen a useful exercise...
|
![]() |
![]() |
#6 |
Registered User
Join Date: Jun 2024
Location: Bogotá, Colombia
Age: 49
Posts: 28
|
Thanks for your answer completely unrelated to my question, again.
As for the clipping: I can reproduce the errors. But again, that wasn't related to my question. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|