func (configHeader RenderAPIConfigHeader) toC() C.ovrRenderAPIConfigHeader { return C.ovrRenderAPIConfigHeader{ API: C.ovrRenderAPIType(configHeader.API), RTSize: configHeader.RTSize.toC(), Multisample: C.int(configHeader.Multisample), } }
func (header TextureHeader) toC() C.ovrTextureHeader { return C.ovrTextureHeader{ API: C.ovrRenderAPIType(header.API), TextureSize: header.TextureSize.toC(), RenderViewport: header.RenderViewport.toC(), } }
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 }