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