Example #1
0
File: ttf.go Project: badgerodon/go
func WasInit() bool {
	ret := C.TTF_WasInit()
	if ret == 1 {
		return true
	}
	return false
}
Example #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
}
Example #3
0
File: ttf.go Project: 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
}
Example #4
0
File: ttf.go Project: beoran/fungo
// De-initialize the TTF engine
func TTFWasInit() bool {
	res := C.TTF_WasInit()
	return i2b(int(res))
}
Example #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()) }
Example #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)
}
Example #7
0
File: ttf.go Project: 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
}