Golang C.SDL_GetClipRect类(方法)实例源码

下面列出了Golang C.SDL_GetClipRect 类(方法)源码代码实例,从而了解它的用法。

作者:JalfRes    项目:go-sdl   
func (surface *Surface) GetClipRect(rect *Rect) {
	C.SDL_GetClipRect(surface.cptr(), rect.cptr())
}

作者:kearsle    项目:Go-SD   
// 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()
}

作者:gnanderso    项目:Go-SD   
// 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
}

作者:kyleconro    项目:gold   
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)
}

作者:willemvd    项目:sd   
func (s *Surface) GetClipRect() *Rect {
	var rect Rect
	C.SDL_GetClipRect(s.c(), rect.c())

	return &rect
}

作者:jbondeso    项目:Go-SDL   
// Gets the clipping rectangle for a surface.
func (s *Surface) GetClipRect(r *Rect) {
	C.SDL_GetClipRect(s.cSurface, (*C.SDL_Rect)(cast(r)))
}

作者:beora    项目:fung   
// 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)
}


问题


面经


文章

微信
公众号

扫码关注公众号