Documentation
¶
Index ¶
- Constants
- func Box(x1, y1, x2, y2, style gb.UINT8)
- func Circle(x, y, radius, style gb.UINT8)
- func Color(foreColor, backColor, mode gb.UINT8)
- func DrawImage(data []gb.UINT8)
- func GPrint(str string)
- func GPrintf(format string, a ...interface{}) int8
- func GPrintln(number int16, radix int8, signedValue int8)
- func GPrintn(number int16, radix int8, signedValue int8)
- func GetPix(x, y gb.UINT8) gb.UINT8
- func GotoGXY(x, y gb.UINT8)
- func Line(x1, y1, x2, y2 gb.UINT8)
- func Plot(x, y, color, mode gb.UINT8)
- func PlotPoint(x, y gb.UINT8)
- func SwitchData(x, y gb.UINT8, src, dst []gb.UINT8)
- func WriteChar(char rune)
Constants ¶
const ( GRAPHICS_WIDTH = 160 GRAPHICS_HEIGHT = 144 )
* Size of the screen in pixels
const ( SOLID = iota OR XOR AND )
* Possible drawing modes
const ( WHITE = iota LTGREY DKGREY BLACK )
* Possible drawing colours
const ( M_NOFILL = iota M_FILL )
* Possible fill styles for box() and circle()
const ( UNSIGNED = iota SIGNED )
* Possible values for signed_value in GPrintln() and GPrintn()
Variables ¶
This section is empty.
Functions ¶
func GPrint ¶
func GPrint(str string)
GPrint NONBANKED
Print the string 'str' with no interpretation
func GPrintln ¶
GPrintln Print the long number 'number' in radix 'radix'. signed_value should be set to SIGNED or UNSIGNED depending on whether the number is signed or not
func GotoGXY ¶
GotoGXY Sets the current text position to (x,y). Note that x and y have units of cells (8 pixels)
func SwitchData ¶
SwitchData NONBANKED
Exchanges the tile on screen at x,y with the tile pointed by src, original tile not performed in this case. is saved in dst. Both src and dst may be NULL - saving or copying to screen is
Types ¶
This section is empty.