当前位置: 首页>>代码示例>>Golang>>正文


Golang C.SDL_GetClipRect函数代码示例

本文整理汇总了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())
}
开发者ID:JalfResi,项目名称:go-sdl2,代码行数:3,代码来源:surface.go

示例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()
}
开发者ID:kearsley,项目名称:Go-SDL,代码行数:6,代码来源:sdl.go

示例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
}
开发者ID:gnanderson,项目名称:Go-SDL,代码行数:5,代码来源:sdl.go

示例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)
}
开发者ID:kyleconroy,项目名称:golds,代码行数:5,代码来源:sdl_surface.go

示例5: GetClipRect

func (s *Surface) GetClipRect() *Rect {
	var rect Rect
	C.SDL_GetClipRect(s.c(), rect.c())

	return &rect
}
开发者ID:willemvds,项目名称:sdl,代码行数:6,代码来源:surface.go

示例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)))
}
开发者ID:jbondeson,项目名称:Go-SDL2,代码行数:4,代码来源:surface.go

示例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)
}
开发者ID:beoran,项目名称:fungo,代码行数:6,代码来源:video.go


注:本文中的C.SDL_GetClipRect函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。