Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deinit ¶
func Deinit()
Deinit destroys SDL/OpenGL context. Uses main thread lock (see thread/mainthread).
func GetGlProcAddress ¶
func Init ¶
func Init(cfg Config)
Init initializes SDL/OpenGL context. Uses main thread lock (see thread/mainthread).
func SetPixelFormat ¶
func SetPixelFormat(format PixelFormat)
Types ¶
type PixelFormat ¶
type PixelFormat int
OpenGL pixel format
const ( UnsignedShort5551 PixelFormat = iota UnsignedShort565 UnsignedInt8888Rev )
Click to show internal directories.
Click to hide internal directories.