本文整理匯總了Golang中C.TTF_WasInit函數的典型用法代碼示例。如果您正苦於以下問題:Golang TTF_WasInit函數的具體用法?Golang TTF_WasInit怎麽用?Golang TTF_WasInit使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了TTF_WasInit函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: WasInit
func WasInit() bool {
ret := C.TTF_WasInit()
if ret == 1 {
return true
}
return false
}
示例2: WasInit
// WasInit (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_9.html#SEC9)
func WasInit() bool {
return int(C.TTF_WasInit()) != 0
}
示例3: WasInit
// 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
}
示例4: TTFWasInit
// De-initialize the TTF engine
func TTFWasInit() bool {
res := C.TTF_WasInit()
return i2b(int(res))
}
示例5: WasInit
// Checks to see if SDL_ttf is initialized. Returns 1 if true, 0 if false.
func WasInit() int { return int(C.TTF_WasInit()) }
示例6: WasInit
// 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)
}
示例7: WasInit
// 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
}