Exemplo n.º 1
0
Arquivo: ovr.go Projeto: 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),
	}
}
Exemplo n.º 2
0
Arquivo: ovr.go Projeto: postfix/ovr
func (header TextureHeader) toC() C.ovrTextureHeader {
	return C.ovrTextureHeader{
		API:            C.ovrRenderAPIType(header.API),
		TextureSize:    header.TextureSize.toC(),
		RenderViewport: header.RenderViewport.toC(),
	}
}
Exemplo n.º 3
0
Arquivo: ovr.go Projeto: 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
}