コード例 #1
0
func VCDispmanxElementAdd(
	update DispmanxUpdateHandle,
	display DispmanxDisplayHandle,
	layer int32,
	dstRect *VCRect,
	src DispmanxResourceHandle,
	srcRect *VCRect,
	protection DispmanxProtection,
	alpha *VCDispmanxAlpha,
	clamp *DispmanxClamp,
	transform int,
) DispmanxElementHandle {
	return DispmanxElementHandle(C.vc_dispmanx_element_add(
		C.DISPMANX_UPDATE_HANDLE_T(update),
		C.DISPMANX_DISPLAY_HANDLE_T(display),
		C.int32_t(layer),
		(*C.VC_RECT_T)(unsafe.Pointer(dstRect)),
		C.DISPMANX_RESOURCE_HANDLE_T(src),
		(*C.VC_RECT_T)(unsafe.Pointer(srcRect)),
		C.DISPMANX_PROTECTION_T(protection),
		(*C.VC_DISPMANX_ALPHA_T)(unsafe.Pointer(alpha)),
		(*C.DISPMANX_CLAMP_T)(unsafe.Pointer(clamp)),
		C.DISPMANX_TRANSFORM_T(transform)))
}
コード例 #2
0
func VCDispmanxUpdateSubmitSync(update DispmanxUpdateHandle) int {
	return int(C.vc_dispmanx_update_submit_sync(
		C.DISPMANX_UPDATE_HANDLE_T(update)))
}