1 #ifndef CYBERGRAPHX_CYBERGRAPHICS_H
2 #define CYBERGRAPHX_CYBERGRAPHICS_H
5 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
9 #ifndef GRAPHICS_DISPLAYINFO_H
10 # include <graphics/displayinfo.h>
13 #ifndef UTILITY_TAGITEM_H
14 # include <utility/tagitem.h>
18 #define CYBERGFXNAME "cybergraphics.library"
19 #define CYBERGFX_INCLUDE_VERSION 41UL
21 /* ProcessPixelArray Operations (v50) */
23 #define POP_BRIGHTEN 0
25 #define POP_SETALPHA 2
28 #define POP_COLOR2GREY 5
29 #define POP_NEGATIVE 6
31 #define POP_TINTFADE 8
32 #define POP_GRADIENT 9
33 #define POP_SHIFTRGB 10
35 #define GRADTYPE_HORIZONTAL 0
36 #define GRADTYPE_VERTICAL 1
37 #define GRADTYPE_RECTANGLE 2
38 #define GRADTYPE_LINEAR_ANGLE 3
39 #define GRADTYPE_RADIAL 4
41 #define RGBSHIFT_BGR (1UL)
42 #define RGBSHIFT_BRG (2UL)
43 #define RGBSHIFT_GBR (3UL)
44 #define RGBSHIFT_GRB (4UL)
45 #define RGBSHIFT_RBG (5UL)
47 #define PPAOPTAG_FADEFULLSCALE 0x85231020
48 #define PPAOPTAG_FADEOFFSET 0x85231021
50 #define PPAOPTAG_GRADIENTTYPE 0x85231022
51 #define PPAOPTAG_GRADCOLOR1 0x85231023
52 #define PPAOPTAG_GRADCOLOR2 0x85231024
53 #define PPAOPTAG_GRADFULLSCALE PPAOPTAG_FADEFULLSCALE
54 #define PPAOPTAG_GRADOFFSET PPAOPTAG_FADEOFFSET
55 #define PPAOPTAG_GRADSYMCENTER 0x85231026
57 #define PPAOPTAG_RGBMASK 0x85231025
64 char ModeText
[DISPLAYNAMELEN
];
69 struct TagItem
*DisplayTagList
;
73 #define CYBRMATTR_XMOD 0x80000001
74 #define CYBRMATTR_BPPIX 0x80000002
75 #define CYBRMATTR_DISPADR 0x80000003
76 #define CYBRMATTR_PIXFMT 0x80000004
77 #define CYBRMATTR_WIDTH 0x80000005
78 #define CYBRMATTR_HEIGHT 0x80000006
79 #define CYBRMATTR_DEPTH 0x80000007
80 #define CYBRMATTR_ISCYBERGFX 0x80000008
81 #define CYBRMATTR_ISLINEARMEM 0x80000009
82 #define CYBRMATTR_PIXFMT_ALPHA 0x8000000A
84 #define CYBRIDATTR_PIXFMT 0x80000001
85 #define CYBRIDATTR_WIDTH 0x80000002
86 #define CYBRIDATTR_HEIGHT 0x80000003
87 #define CYBRIDATTR_DEPTH 0x80000004
88 #define CYBRIDATTR_BPPIX 0x80000005
90 #define CYBRMREQ_TB (TAG_USER + 0x40000)
92 #define CYBRMREQ_MinDepth (CYBRMREQ_TB + 0)
93 #define CYBRMREQ_MaxDepth (CYBRMREQ_TB + 1)
94 #define CYBRMREQ_MinWidth (CYBRMREQ_TB + 2)
95 #define CYBRMREQ_MaxWidth (CYBRMREQ_TB + 3)
96 #define CYBRMREQ_MinHeight (CYBRMREQ_TB + 4)
97 #define CYBRMREQ_MaxHeight (CYBRMREQ_TB + 5)
98 #define CYBRMREQ_CModelArray (CYBRMREQ_TB + 6)
99 #define CYBRMREQ_WinTitle (CYBRMREQ_TB + 20)
100 #define CYBRMREQ_OKText (CYBRMREQ_TB + 21)
101 #define CYBRMREQ_CancelText (CYBRMREQ_TB + 22)
102 #define CYBRMREQ_Screen (CYBRMREQ_TB + 30)
104 #define CYBRBIDTG_TB (TAG_USER + 0x50000)
106 #define CYBRBIDTG_Depth (CYBRBIDTG_TB + 0)
107 #define CYBRBIDTG_NominalWidth (CYBRBIDTG_TB + 1)
108 #define CYBRBIDTG_NominalHeight (CYBRBIDTG_TB + 2)
109 #define CYBRBIDTG_MonitorID (CYBRBIDTG_TB + 3)
110 #define CYBRBIDTG_BoardName (CYBRBIDTG_TB + 5)
112 #define PIXFMT_LUT8 0UL
113 #define PIXFMT_RGB15 1UL
114 #define PIXFMT_BGR15 2UL
115 #define PIXFMT_RGB15PC 3UL
116 #define PIXFMT_BGR15PC 4UL
117 #define PIXFMT_RGB16 5UL
118 #define PIXFMT_BGR16 6UL
119 #define PIXFMT_RGB16PC 7UL
120 #define PIXFMT_BGR16PC 8UL
121 #define PIXFMT_RGB24 9UL
122 #define PIXFMT_BGR24 10UL
123 #define PIXFMT_ARGB32 11UL
124 #define PIXFMT_BGRA32 12UL
125 #define PIXFMT_RGBA32 13UL
127 #define RECTFMT_RGB 0UL
128 #define RECTFMT_RGBA 1UL
129 #define RECTFMT_ARGB 2UL
130 #define RECTFMT_LUT8 3UL
131 #define RECTFMT_GREY8 4UL
132 #define RECTFMT_RAW 5UL
134 /* AROS extensions */
136 #define PIXFMT_ABGR32 100UL
137 #define PIXFMT_0RGB32 101UL
138 #define PIXFMT_BGR032 102UL
139 #define PIXFMT_RGB032 103UL
140 #define PIXFMT_0BGR32 104UL
142 #define RECTFMT_RGB15 100UL
143 #define RECTFMT_BGR15 101UL
144 #define RECTFMT_RGB15PC 102UL
145 #define RECTFMT_BGR15PC 103UL
146 #define RECTFMT_RGB16 104UL
147 #define RECTFMT_BGR16 105UL
148 #define RECTFMT_RGB16PC 106UL
149 #define RECTFMT_BGR16PC 107UL
150 #define RECTFMT_RGB24 RECTFMT_RGB
151 #define RECTFMT_BGR24 109UL
152 #define RECTFMT_ARGB32 RECTFMT_ARGB
153 #define RECTFMT_BGRA32 111UL
154 #define RECTFMT_RGBA32 RECTFMT_RGBA
155 #define RECTFMT_ABGR32 113UL
156 #define RECTFMT_0RGB32 114UL
157 #define RECTFMT_BGR032 115UL
158 #define RECTFMT_RGB032 116UL
159 #define RECTFMT_0BGR32 117UL
161 /* End AROS extensions */
163 #define SETVC_DPMSLevel 0x88002001
166 #define DPMS_STANDBY 1UL
167 #define DPMS_SUSPEND 2UL
171 #define LBMI_WIDTH 0x84001001
172 #define LBMI_HEIGHT 0x84001002
173 #define LBMI_DEPTH 0x84001003
174 #define LBMI_PIXFMT 0x84001004
175 #define LBMI_BYTESPERPIX 0x84001005
176 #define LBMI_BYTESPERROW 0x84001006
177 #define LBMI_BASEADDRESS 0x84001007
180 #define UBMI_UPDATERECTS 0x85001001
181 #define UBMI_REALLYUNLOCK 0x85001002
190 UWORD cdm_BytesPerRow
;
191 UWORD cdm_BytesPerPix
;
192 UWORD cdm_ColorModel
;
195 #define CTABFMT_XRGB8 0UL
198 /*** The extend cybergfx flags are now defined together with the
199 old AmigaOS flags, so we have to include them here
202 #ifndef GRAPHICS_GFX_H
203 # include <graphics/gfx.h>
206 #define SHIFT_PIXFMT( fmt ) ( ((ULONG)(fmt)) << BMB_PIXFMT_SHIFTUP )
207 #define DOWNSHIFT_PIXFMT( fmt ) ( ((ULONG)(fmt)) >> BMB_PIXFMT_SHIFTUP )
210 #endif /* CYBERGRAPHX_CYBERGRAPHICS_H */