本文整理匯總了Golang中C.SDL_UnlockSurface函數的典型用法代碼示例。如果您正苦於以下問題:Golang SDL_UnlockSurface函數的具體用法?Golang SDL_UnlockSurface怎麽用?Golang SDL_UnlockSurface使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了SDL_UnlockSurface函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Unlock
func (surface *Surface) Unlock() {
C.SDL_UnlockSurface(surface.cptr())
}
示例2: Unlock
// Unlocks a previously locked surface.
func (screen *Surface) Unlock() {
screen.mutex.Lock()
C.SDL_UnlockSurface(screen.cSurface)
screen.mutex.Unlock()
}
示例3: Unlock
// Unlocks a previously locked surface.
func (screen *Surface) Unlock() { C.SDL_UnlockSurface((*C.SDL_Surface)(cast(screen))) }
示例4: Unlock
func (surface *Surface) Unlock() {
_surface := (*C.SDL_Surface)(unsafe.Pointer(surface))
C.SDL_UnlockSurface(_surface)
}
示例5: Unlock
func (s *Surface) Unlock() {
C.SDL_UnlockSurface(s.c())
}
示例6: Unlock
// Unlocks a previously locked surface.
func (screen *Surface) Unlock() {
C.SDL_UnlockSurface(screen.cSurface)
}
示例7: unlockSurface
func unlockSurface(surface *C.SDL_Surface) {
C.SDL_UnlockSurface(surface)
}