← EGFX function index

EGFX · FUNCTION 1ALPHA · USE AT YOUR OWN RISK

BEGIN

Begin a frame.

Selects the drawing page and clears all 20 KB of it. The next drawing calls go to this page. On a Master, if you only redraw what moved, use the dirty begin (function 38) after the first two frames to skip the clear.

Parameters

NameOrderDescription
--No parameters.

BASIC example

MODE 1:HIMEM=&2400
PROCeginit
PROCegbegin
PROCegbegin
PROCegpresent
END

Assembly example

        JSR init_egfx
        JSR begin_frame
        LDA #1 : JSR eg_call
        JSR present_frame
        RTS

← Function index