Documentation ¶
Overview ¶
Package video takes care on the game display. It also creates the window using GLFW. It exports the Refresh callback used by the libretro implementation.
Index ¶
Constants ¶
View Source
const ( // BIT_FORMAT_SHORT_5_5_5_1 has 5 bits R, 5 bits G, 5 bits B, 1 bit alpha BIT_FORMAT_SHORT_5_5_5_1 = iota // BIT_FORMAT_INT_8_8_8_8_REV has 8 bits R, 8 bits G, 8 bits B, 8 bit alpha BIT_FORMAT_INT_8_8_8_8_REV // BIT_FORMAT_SHORT_5_6_5 has 5 bits R, 6 bits G, 5 bits BIT_FORMAT_SHORT_5_6_5 )
Variables ¶
View Source
var BPP int
View Source
var Framebuffer []byte
View Source
var Geom libretro.GameGeometry
View Source
var PixelFormat uint32
View Source
var Rotation uint
View Source
var Width, Height, Pitch int32
Functions ¶
func Screenshot ¶
func SetPixelFormat ¶
SetPixelFormat is a callback passed to the libretro implementation. It allows the core or the game to tell us which pixel format should be used for the display.
func SetRotation ¶
SetRotation rotates the game image as requested by the core
Types ¶
Click to show internal directories.
Click to hide internal directories.