demOS
 All Data Structures Files Modules Pages
RASTERS.H
Go to the documentation of this file.
1 /*------------------------------------------------------------------------------ -----------------
2  Copyright J.Hubert 2015
3 
4  This file is part of demOS
5 
6  demOS is free software: you can redistribute it and/or modify it under the terms of
7  the GNU Lesser General Public License as published by the Free Software Foundation,
8  either version 3 of the License, or (at your option) any later version.
9 
10  demOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ;
11  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  See the GNU Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public License along with demOS.
15  If not, see <http://www.gnu.org/licenses/>.
16 ------------------------------------------------------------------------------------------------- */
17 
32 #ifndef RASTERS_H
33 #define RASTERS_H
34 
35 #include "DEMOSDK\BASTYPES.H"
36 
37 
38 void RASsetColReg (u16 _shortregaddress);
39 void RASvbl1 (void);
40 void RASvbl2 (void);
41 void RAStop1 (void);
42 void RASmid1 (void);
43 void RASbot1 (void);
44 
45 #ifndef RASTERS_C
46 extern void* RASnextOpList;
47 #endif
48 
49 /* raster OpList */
50 
51 typedef void(*RASinterupt)(void);
52 
59 STRUCT(RASopVbl1)
60 {
61  u16 backgroundColor;
62  u16 scanLinesTo1stInterupt;
63  RASinterupt nextRasterRoutine;
64 };
65 
73 STRUCT(RASopVbl2)
74 {
75  u16 backgroundColor;
76  u16 color;
77  u16 scanLinesTo1stInterupt;
78  RASinterupt nextRasterRoutine;
79 };
80 
88 STRUCT(RASopTop1)
89 {
90  u16 backgroundColor;
91  u16 color;
92  u16 scanLinesToNextInterupt;
93  RASinterupt nextRasterRoutine;
94 };
95 
103 #define RASstopMask 0x8000
104 
105 STRUCT(RASopMid1)
106 {
107  u16 color;
108  u16 scanLineToNextInterupt;
109  RASinterupt nextRasterRoutine;
110 };
111 
117 STRUCT(RASopBot1)
118 {
119  u16 backgroundColor;
120  u16 color;
121 };
122 
123 #endif
Definition: RASTERS.H:105
Definition: RASTERS.H:73
Definition: RASTERS.H:88
Definition: RASTERS.H:59
Definition: RASTERS.H:117
BASTYPES