本文整理汇总了Golang中C.SDL_GetClipRect函数的典型用法代码示例。如果您正苦于以下问题:Golang SDL_GetClipRect函数的具体用法?Golang SDL_GetClipRect怎么用?Golang SDL_GetClipRect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SDL_GetClipRect函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: GetClipRect
func (surface *Surface) GetClipRect(rect *Rect) {
C.SDL_GetClipRect(surface.cptr(), rect.cptr())
}
示例2: GetClipRect
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
s.mutex.RLock()
C.SDL_GetClipRect(s.cSurface, (*C.SDL_Rect)(cast(r)))
s.mutex.RUnlock()
}
示例3: GetClipRect
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
C.SDL_GetClipRect((*C.SDL_Surface)(cast(s)), (*C.SDL_Rect)(cast(r)))
return
}
示例4: GetClipRect
func (surface *Surface) GetClipRect(rect *Rect) {
_surface := (*C.SDL_Surface)(unsafe.Pointer(surface))
_rect := (*C.SDL_Rect)(unsafe.Pointer(rect))
C.SDL_GetClipRect(_surface, _rect)
}
示例5: GetClipRect
func (s *Surface) GetClipRect() *Rect {
var rect Rect
C.SDL_GetClipRect(s.c(), rect.c())
return &rect
}
示例6: GetClipRect
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
C.SDL_GetClipRect(s.cSurface, (*C.SDL_Rect)(cast(r)))
}
示例7: getClipRect
// Gets the clipping rectangle for the destination surface in a blit.
// 'rect' must be a pointer to a valid rectangle which will be filled
// with the correct values.
func getClipRect(surface *C.SDL_Surface, rect *C.SDL_Rect) {
C.SDL_GetClipRect(surface, rect)
}