Exemplo n.º 1
0
Arquivo: ttf.go Projeto: badgerodon/go
func WasInit() bool {
	ret := C.TTF_WasInit()
	if ret == 1 {
		return true
	}
	return false
}
Exemplo n.º 2
0
// WasInit (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_9.html#SEC9)
func WasInit() bool {
	return int(C.TTF_WasInit()) != 0
}
Exemplo n.º 3
0
Arquivo: ttf.go Projeto: Zwobot/Go-SDL
// Checks to see if SDL_ttf is initialized.  Returns 1 if true, 0 if false.
func WasInit() int {
	sdl.GlobalMutex.Lock()
	status := int(C.TTF_WasInit())
	sdl.GlobalMutex.Unlock()
	return status
}
Exemplo n.º 4
0
Arquivo: ttf.go Projeto: beoran/fungo
// De-initialize the TTF engine
func TTFWasInit() bool {
	res := C.TTF_WasInit()
	return i2b(int(res))
}
Exemplo n.º 5
0
// Checks to see if SDL_ttf is initialized.  Returns 1 if true, 0 if false.
func WasInit() int { return int(C.TTF_WasInit()) }
Exemplo n.º 6
0
// Checks to see if SDL_ttf is initialized.  Returns 1 if true, 0 if false.
func WasInit() error {
	sdl.GlobalMutex.Lock()
	status := int(C.TTF_WasInit())
	sdl.GlobalMutex.Unlock()
	return err(status)
}
Exemplo n.º 7
0
Arquivo: ttf.go Projeto: krig/Go-SDL2
// Checks to see if SDL_ttf is initialized.  Returns 1 if true, 0 if false.
func WasInit() int {
	status := int(C.TTF_WasInit())
	return status
}