core: Get rid of GP_Color.
[gfxprim.git] / doc / basic_types.txt
blob3b6c6fda2a264fe808e6bdd1dca13ca29c12b2ba
1 Basic types
2 -----------
3 Coordinates and Size and Length
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 Most of the drawing functions use typedefed 'GP_Coord' and 'GP_Size' integer
7 types for parameters.
9 The 'GP_Coord' is signed integer which is used for coordinates and the
10 'GP_Size' is unsigned integer type used for object size, length and so.
12 Pixel
13 ~~~~~
15 Pixel value in 'GFXprim' is an integer big enough to hold the actual pixel
16 values. The default typedef for 'GP_Pixel' is set to 32 bit integer, which may
17 be changed at compile time to support colors with more than 10 bits per
18 channel. The 'GP_Pixel' is thus used as opaque value big enough to hold any
19 supported pixel value.