本文整理匯總了Golang中C.SDL_WM_SetIcon函數的典型用法代碼示例。如果您正苦於以下問題:Golang SDL_WM_SetIcon函數的具體用法?Golang SDL_WM_SetIcon怎麽用?Golang SDL_WM_SetIcon使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了SDL_WM_SetIcon函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: WM_SetIcon
// Sets the icon for the display window.
func WM_SetIcon(icon *Surface, mask *uint8) {
C.SDL_WM_SetIcon((*C.SDL_Surface)(cast(icon)), (*C.Uint8)(mask))
}
示例2: WM_SetIcon
// Sets the icon for the display window.
func WM_SetIcon(icon *Surface, mask *uint8) {
GlobalMutex.Lock()
C.SDL_WM_SetIcon(icon.cSurface, (*C.Uint8)(mask))
GlobalMutex.Unlock()
}
示例3: wm_SetIcon
// Sets the icon for the display window.
// This function must be called before the first call to SDL_SetVideoMode().
// It takes an icon surface, and a mask in MSB format.
// If 'mask' is NULL, the entire icon surface will be used as the icon.
// TODO: support mask
func wm_SetIcon(icon *C.SDL_Surface) {
C.SDL_WM_SetIcon(icon, nil)
}