Add new functions

This commit is contained in:
Milan Nikolic 2021-05-26 00:10:52 +02:00
parent f1fde08917
commit c930274575
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
3 changed files with 24 additions and 65 deletions

View file

@ -9,11 +9,6 @@ import "C"
import "unsafe"
import "reflect"
// cptr returns C pointer
func (v *VrDeviceInfo) cptr() *C.VrDeviceInfo {
return (*C.VrDeviceInfo)(unsafe.Pointer(v))
}
// cptr returns C pointer
func (s *Shader) cptr() *C.Shader {
return (*C.Shader)(unsafe.Pointer(s))