Difference between revisions of "Reference"
From Gamebuino Wiki
(→display) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
The Reference lists and explains all the functions of the [[Library]]. | The Reference lists and explains all the functions of the [[Library]]. | ||
+ | |||
+ | Arguments in ''italic'' are optional. | ||
<div style="float:left;width:20em;margin-right:2em;"> | <div style="float:left;width:20em;margin-right:2em;"> | ||
== core == | == core == | ||
− | * [[gb.begin]]() | + | * [[gb.begin]](''F("name")'', ''logo'') |
* [[gb.update]]() | * [[gb.update]]() | ||
− | + | * [[gb.setFrameRate]](fps) | |
− | * [[gb.setFrameRate]]() | + | * [[gb.frameCount]] |
− | * [[gb. | ||
User interface : | User interface : | ||
− | * [[gb.menu]]() | + | * [[changeGame()]] |
− | * [[gb.keyboard]]() | + | * [[gb.menu]](menu, length) |
− | * [[gb.popup]]() | + | * [[gb.keyboard]](text, length) |
+ | * [[gb.popup]](F("text")) | ||
* [[gb.adjustVolume]]() | * [[gb.adjustVolume]]() | ||
Perfomance monitor : | Perfomance monitor : | ||
* [[gb.getCpuLoad]]() | * [[gb.getCpuLoad]]() | ||
+ | * [[gb.freeRam]]() | ||
+ | * [[gb.frameDurationMicros]] | ||
Physics : | Physics : | ||
* [[gb.collidePointRect]]() | * [[gb.collidePointRect]]() |
Revision as of 2014-04-20T10:44:21
The Reference lists and explains all the functions of the Library.
Arguments in italic are optional.
core
- gb.begin(F("name"), logo)
- gb.update()
- gb.setFrameRate(fps)
- gb.frameCount
User interface :
- changeGame()
- gb.menu(menu, length)
- gb.keyboard(text, length)
- gb.popup(F("text"))
- gb.adjustVolume()
Perfomance monitor :
Physics :
buttons
- gb.buttons.pressed()
- gb.buttons.released()
- gb.buttons.held()
- gb.buttons.repeat()
- gb.buttons.timeHeld()
sound
Play :
Volume :
- gb.sound.setGlobalVolume()
- gb.sound.getGlobalVolume()
- gb.sound.setChannelVolume()
- gb.sound.getChannelVolume()
Build-in sounds :
battery
backlight
display
General :
- gb.display.setContrast()
- gb.display.clear()
- gb.display.update()
- gb.display.fillScreen()
- gb.display.persistance
Pixels :
Lines :
Rectangles :
Circles :
- gb.display.drawCircle()
- gb.display.drawCircleHelper()
- gb.display.fillCircle()
- gb.display.fillCircleHelper()
Triangles :
Bitmaps :
Text :
- gb.display.drawChar()
- gb.display.print()
- gb.display.setCursor()
- gb.display.setTextColor()
- gb.display.setTextSize()
- gb.display.setTextWrap()