示例#1
0
文件: ovr.go 项目: postfix/ovr
func (configHeader RenderAPIConfigHeader) toC() C.ovrRenderAPIConfigHeader {
	return C.ovrRenderAPIConfigHeader{
		API:         C.ovrRenderAPIType(configHeader.API),
		RTSize:      configHeader.RTSize.toC(),
		Multisample: C.int(configHeader.Multisample),
	}
}
示例#2
0
文件: ovr.go 项目: postfix/ovr
func (header TextureHeader) toC() C.ovrTextureHeader {
	return C.ovrTextureHeader{
		API:            C.ovrRenderAPIType(header.API),
		TextureSize:    header.TextureSize.toC(),
		RenderViewport: header.RenderViewport.toC(),
	}
}
示例#3
0
文件: ovr.go 项目: krux02/libovr
func c_renderApiConfigHeader(that RenderApiConfigHeader) (this C.ovrRenderAPIConfigHeader) {
	this.API = C.ovrRenderAPIType(that.API)
	this.RTSize = c_sizei(that.RTSize)
	this.Multisample = C.int(that.Multisample)
	return
}