Documentation
¶
Index ¶
- Variables
- func BeginDrawing()
- func BeginMode2D(camera Camera)
- func ClearBackground(color Color)
- func CloseWindow()
- func DrawText(text string, posX, posY, fontSize int32, color Color)
- func DrawTexture(texture Texture, posX, posY, tX, tY, w, h, rot float32)
- func EndDrawing()
- func EndMode2D()
- func GetFPS() int32
- func GetFrameTime() float32
- func InitWindow(width, height int32, title string)
- func IsKeyDown(key int32) bool
- func IsWindowReady() bool
- func SetTargetFPS(fps int)
- func UnloadTexture(texture Texture)
- func WindowShouldClose() bool
- type AudioStream
- type Camera
- type Color
- type Music
- type Rectangle
- type Sound
- type Texture
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = Color{0, 0, 0, 255} Red = Color{255, 0, 0, 255} White = Color{255, 255, 255, 255} Yellow = Color{255, 255, 0, 255} )
Functions ¶
func BeginDrawing ¶
func BeginDrawing()
func BeginMode2D ¶
func BeginMode2D(camera Camera)
func ClearBackground ¶
func ClearBackground(color Color)
func CloseWindow ¶
func CloseWindow()
func DrawTexture ¶
func EndDrawing ¶
func EndDrawing()
func GetFrameTime ¶
func GetFrameTime() float32
func InitWindow ¶
func IsWindowReady ¶
func IsWindowReady() bool
func SetTargetFPS ¶
func SetTargetFPS(fps int)
func UnloadTexture ¶
func UnloadTexture(texture Texture)
func WindowShouldClose ¶
func WindowShouldClose() bool
Types ¶
type AudioStream ¶
type AudioStream struct {
Buffer *C.rAudioBuffer
SampleRate uint32
SampleSize uint32
Channels uint32
// contains filtered or unexported fields
}
type Sound ¶
type Sound struct {
Stream AudioStream
SampleCount uint32
// contains filtered or unexported fields
}
type Texture ¶
func LoadTexture ¶
Click to show internal directories.
Click to hide internal directories.