Documentation
¶
Index ¶
- func GetGLError() uint32
- func GetGLRendererInfo() string
- func GetGLSLInfo() string
- func GetGLVendorInfo() string
- func GetGLVersionInfo() string
- func GetGlFbo() uint32
- func GetGlProcAddress(proc string) unsafe.Pointer
- func ReadFramebuffer(bytes, w, h uint) []byte
- func SetBuffer(size int)
- func SetPixelFormat(format PixelFormat) error
- type Config
- type Context
- type PixelFormat
- type SDL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGLError ¶
func GetGLError() uint32
func GetGLRendererInfo ¶
func GetGLRendererInfo() string
func GetGLSLInfo ¶
func GetGLSLInfo() string
func GetGLVendorInfo ¶
func GetGLVendorInfo() string
func GetGLVersionInfo ¶
func GetGLVersionInfo() string
func GetGlProcAddress ¶
func ReadFramebuffer ¶
func SetPixelFormat ¶
func SetPixelFormat(format PixelFormat) error
Types ¶
type PixelFormat ¶
type PixelFormat int
const ( UnsignedShort5551 PixelFormat = iota UnsignedShort565 UnsignedInt8888Rev )
type SDL ¶
type SDL struct {
// contains filtered or unexported fields
}
func NewSDLContext ¶
NewSDLContext initializes SDL/OpenGL context. Uses main thread lock (see thread/mainthread).
func (*SDL) BindContext ¶
BindContext explicitly binds context to current thread.
Click to show internal directories.
Click to hide internal directories.