diff --git a/bind.go b/bind.go index 284eabd..0401257 100644 --- a/bind.go +++ b/bind.go @@ -1,4 +1,4 @@ -package harfang +package Harfang // #include "wrapper.h" // #cgo CFLAGS: -I . -Wall -Wno-unused-variable -Wno-unused-function -O3 @@ -106,17 +106,117 @@ func ptrToUint16Slice(p unsafe.Pointer) []uint16 { // VoidPointer ... type VoidPointer struct { - h C.WrapVoidPointer + h C.HarfangVoidPointer +} + +// NewVoidPointerFromCPointer ... +func NewVoidPointerFromCPointer(p unsafe.Pointer) *VoidPointer { + retvalGO := &VoidPointer{h: (C.HarfangVoidPointer)(p)} + return retvalGO } // Free ... func (pointer *VoidPointer) Free() { - C.WrapVoidPointerFree(pointer.h) + C.HarfangVoidPointerFree(pointer.h) } // IsNil ... func (pointer *VoidPointer) IsNil() bool { - return pointer.h == C.WrapVoidPointer(nil) + return pointer.h == C.HarfangVoidPointer(nil) +} + +// GoSliceOfint ... +type GoSliceOfint []int32 + +// IntList ... +type IntList struct { + h C.HarfangIntList +} + +// NewIntListFromCPointer ... +func NewIntListFromCPointer(p unsafe.Pointer) *IntList { + retvalGO := &IntList{h: (C.HarfangIntList)(p)} + return retvalGO +} + +// Get ... +func (pointer *IntList) Get(id int) int32 { + v := C.HarfangIntListGetOperator(pointer.h, C.int(id)) + return int32(v) +} + +// Set ... +func (pointer *IntList) Set(id int, v int32) { + vToC := C.int32_t(v) + C.HarfangIntListSetOperator(pointer.h, C.int(id), vToC) +} + +// Len ... +func (pointer *IntList) Len() int32 { + return int32(C.HarfangIntListLenOperator(pointer.h)) +} + +// NewIntList ... +func NewIntList() *IntList { + retval := C.HarfangConstructorIntList() + retvalGO := &IntList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *IntList) { + C.HarfangIntListFree(cleanval.h) + }) + return retvalGO +} + +// NewIntListWithSequence ... +func NewIntListWithSequence(sequence GoSliceOfint) *IntList { + sequenceToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequence)) + sequenceToCSize := C.size_t(sequenceToC.Len) + sequenceToCBuf := (*C.int32_t)(unsafe.Pointer(sequenceToC.Data)) + retval := C.HarfangConstructorIntListWithSequence(sequenceToCSize, sequenceToCBuf) + retvalGO := &IntList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *IntList) { + C.HarfangIntListFree(cleanval.h) + }) + return retvalGO +} + +// Free ... +func (pointer *IntList) Free() { + C.HarfangIntListFree(pointer.h) +} + +// IsNil ... +func (pointer *IntList) IsNil() bool { + return pointer.h == C.HarfangIntList(nil) +} + +// Clear ... +func (pointer *IntList) Clear() { + C.HarfangClearIntList(pointer.h) +} + +// Reserve ... +func (pointer *IntList) Reserve(size int32) { + sizeToC := C.size_t(size) + C.HarfangReserveIntList(pointer.h, sizeToC) +} + +// PushBack ... +func (pointer *IntList) PushBack(v int32) { + vToC := C.int32_t(v) + C.HarfangPushBackIntList(pointer.h, vToC) +} + +// Size ... +func (pointer *IntList) Size() int32 { + retval := C.HarfangSizeIntList(pointer.h) + return int32(retval) +} + +// At ... +func (pointer *IntList) At(idx int32) int32 { + idxToC := C.size_t(idx) + retval := C.HarfangAtIntList(pointer.h, idxToC) + return int32(retval) } // GoSliceOfuint16T ... @@ -124,32 +224,38 @@ type GoSliceOfuint16T []uint16 // Uint16TList ... type Uint16TList struct { - h C.WrapUint16TList + h C.HarfangUint16TList +} + +// NewUint16TListFromCPointer ... +func NewUint16TListFromCPointer(p unsafe.Pointer) *Uint16TList { + retvalGO := &Uint16TList{h: (C.HarfangUint16TList)(p)} + return retvalGO } // Get ... func (pointer *Uint16TList) Get(id int) uint16 { - v := C.WrapUint16TListGetOperator(pointer.h, C.int(id)) + v := C.HarfangUint16TListGetOperator(pointer.h, C.int(id)) return uint16(v) } // Set ... func (pointer *Uint16TList) Set(id int, v uint16) { vToC := C.ushort(v) - C.WrapUint16TListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangUint16TListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Uint16TList) Len() int32 { - return int32(C.WrapUint16TListLenOperator(pointer.h)) + return int32(C.HarfangUint16TListLenOperator(pointer.h)) } // NewUint16TList ... func NewUint16TList() *Uint16TList { - retval := C.WrapConstructorUint16TList() + retval := C.HarfangConstructorUint16TList() retvalGO := &Uint16TList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Uint16TList) { - C.WrapUint16TListFree(cleanval.h) + C.HarfangUint16TListFree(cleanval.h) }) return retvalGO } @@ -159,51 +265,51 @@ func NewUint16TListWithSequence(sequence GoSliceOfuint16T) *Uint16TList { sequenceToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequence)) sequenceToCSize := C.size_t(sequenceToC.Len) sequenceToCBuf := (*C.ushort)(unsafe.Pointer(sequenceToC.Data)) - retval := C.WrapConstructorUint16TListWithSequence(sequenceToCSize, sequenceToCBuf) + retval := C.HarfangConstructorUint16TListWithSequence(sequenceToCSize, sequenceToCBuf) retvalGO := &Uint16TList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Uint16TList) { - C.WrapUint16TListFree(cleanval.h) + C.HarfangUint16TListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Uint16TList) Free() { - C.WrapUint16TListFree(pointer.h) + C.HarfangUint16TListFree(pointer.h) } // IsNil ... func (pointer *Uint16TList) IsNil() bool { - return pointer.h == C.WrapUint16TList(nil) + return pointer.h == C.HarfangUint16TList(nil) } // Clear ... func (pointer *Uint16TList) Clear() { - C.WrapClearUint16TList(pointer.h) + C.HarfangClearUint16TList(pointer.h) } // Reserve ... func (pointer *Uint16TList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveUint16TList(pointer.h, sizeToC) + C.HarfangReserveUint16TList(pointer.h, sizeToC) } // PushBack ... func (pointer *Uint16TList) PushBack(v uint16) { vToC := C.ushort(v) - C.WrapPushBackUint16TList(pointer.h, vToC) + C.HarfangPushBackUint16TList(pointer.h, vToC) } // Size ... func (pointer *Uint16TList) Size() int32 { - retval := C.WrapSizeUint16TList(pointer.h) + retval := C.HarfangSizeUint16TList(pointer.h) return int32(retval) } // At ... func (pointer *Uint16TList) At(idx int32) uint16 { idxToC := C.size_t(idx) - retval := C.WrapAtUint16TList(pointer.h, idxToC) + retval := C.HarfangAtUint16TList(pointer.h, idxToC) return uint16(retval) } @@ -212,32 +318,38 @@ type GoSliceOfuint32T []uint32 // Uint32TList ... type Uint32TList struct { - h C.WrapUint32TList + h C.HarfangUint32TList +} + +// NewUint32TListFromCPointer ... +func NewUint32TListFromCPointer(p unsafe.Pointer) *Uint32TList { + retvalGO := &Uint32TList{h: (C.HarfangUint32TList)(p)} + return retvalGO } // Get ... func (pointer *Uint32TList) Get(id int) uint32 { - v := C.WrapUint32TListGetOperator(pointer.h, C.int(id)) + v := C.HarfangUint32TListGetOperator(pointer.h, C.int(id)) return uint32(v) } // Set ... func (pointer *Uint32TList) Set(id int, v uint32) { vToC := C.uint32_t(v) - C.WrapUint32TListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangUint32TListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Uint32TList) Len() int32 { - return int32(C.WrapUint32TListLenOperator(pointer.h)) + return int32(C.HarfangUint32TListLenOperator(pointer.h)) } // NewUint32TList ... func NewUint32TList() *Uint32TList { - retval := C.WrapConstructorUint32TList() + retval := C.HarfangConstructorUint32TList() retvalGO := &Uint32TList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Uint32TList) { - C.WrapUint32TListFree(cleanval.h) + C.HarfangUint32TListFree(cleanval.h) }) return retvalGO } @@ -247,51 +359,51 @@ func NewUint32TListWithSequence(sequence GoSliceOfuint32T) *Uint32TList { sequenceToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequence)) sequenceToCSize := C.size_t(sequenceToC.Len) sequenceToCBuf := (*C.uint32_t)(unsafe.Pointer(sequenceToC.Data)) - retval := C.WrapConstructorUint32TListWithSequence(sequenceToCSize, sequenceToCBuf) + retval := C.HarfangConstructorUint32TListWithSequence(sequenceToCSize, sequenceToCBuf) retvalGO := &Uint32TList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Uint32TList) { - C.WrapUint32TListFree(cleanval.h) + C.HarfangUint32TListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Uint32TList) Free() { - C.WrapUint32TListFree(pointer.h) + C.HarfangUint32TListFree(pointer.h) } // IsNil ... func (pointer *Uint32TList) IsNil() bool { - return pointer.h == C.WrapUint32TList(nil) + return pointer.h == C.HarfangUint32TList(nil) } // Clear ... func (pointer *Uint32TList) Clear() { - C.WrapClearUint32TList(pointer.h) + C.HarfangClearUint32TList(pointer.h) } // Reserve ... func (pointer *Uint32TList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveUint32TList(pointer.h, sizeToC) + C.HarfangReserveUint32TList(pointer.h, sizeToC) } // PushBack ... func (pointer *Uint32TList) PushBack(v uint32) { vToC := C.uint32_t(v) - C.WrapPushBackUint32TList(pointer.h, vToC) + C.HarfangPushBackUint32TList(pointer.h, vToC) } // Size ... func (pointer *Uint32TList) Size() int32 { - retval := C.WrapSizeUint32TList(pointer.h) + retval := C.HarfangSizeUint32TList(pointer.h) return int32(retval) } // At ... func (pointer *Uint32TList) At(idx int32) uint32 { idxToC := C.size_t(idx) - retval := C.WrapAtUint32TList(pointer.h, idxToC) + retval := C.HarfangAtUint32TList(pointer.h, idxToC) return uint32(retval) } @@ -300,12 +412,18 @@ type GoSliceOfstring []string // StringList ... type StringList struct { - h C.WrapStringList + h C.HarfangStringList +} + +// NewStringListFromCPointer ... +func NewStringListFromCPointer(p unsafe.Pointer) *StringList { + retvalGO := &StringList{h: (C.HarfangStringList)(p)} + return retvalGO } // Get ... func (pointer *StringList) Get(id int) string { - v := C.WrapStringListGetOperator(pointer.h, C.int(id)) + v := C.HarfangStringListGetOperator(pointer.h, C.int(id)) return C.GoString(v) } @@ -313,20 +431,20 @@ func (pointer *StringList) Get(id int) string { func (pointer *StringList) Set(id int, v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapStringListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangStringListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *StringList) Len() int32 { - return int32(C.WrapStringListLenOperator(pointer.h)) + return int32(C.HarfangStringListLenOperator(pointer.h)) } // NewStringList ... func NewStringList() *StringList { - retval := C.WrapConstructorStringList() + retval := C.HarfangConstructorStringList() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } @@ -340,126 +458,144 @@ func NewStringListWithSequence(sequence GoSliceOfstring) *StringList { sequenceSpecialStringToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequenceSpecialString)) sequenceSpecialStringToCSize := C.size_t(sequenceSpecialStringToC.Len) sequenceSpecialStringToCBuf := (**C.char)(unsafe.Pointer(sequenceSpecialStringToC.Data)) - retval := C.WrapConstructorStringListWithSequence(sequenceSpecialStringToCSize, sequenceSpecialStringToCBuf) + retval := C.HarfangConstructorStringListWithSequence(sequenceSpecialStringToCSize, sequenceSpecialStringToCBuf) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *StringList) Free() { - C.WrapStringListFree(pointer.h) + C.HarfangStringListFree(pointer.h) } // IsNil ... func (pointer *StringList) IsNil() bool { - return pointer.h == C.WrapStringList(nil) + return pointer.h == C.HarfangStringList(nil) } // Clear ... func (pointer *StringList) Clear() { - C.WrapClearStringList(pointer.h) + C.HarfangClearStringList(pointer.h) } // Reserve ... func (pointer *StringList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveStringList(pointer.h, sizeToC) + C.HarfangReserveStringList(pointer.h, sizeToC) } // PushBack ... func (pointer *StringList) PushBack(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapPushBackStringList(pointer.h, vToC) + C.HarfangPushBackStringList(pointer.h, vToC) } // Size ... func (pointer *StringList) Size() int32 { - retval := C.WrapSizeStringList(pointer.h) + retval := C.HarfangSizeStringList(pointer.h) return int32(retval) } // At ... func (pointer *StringList) At(idx int32) string { idxToC := C.size_t(idx) - retval := C.WrapAtStringList(pointer.h, idxToC) + retval := C.HarfangAtStringList(pointer.h, idxToC) return C.GoString(retval) } // File Interface to a file on the host local filesystem. type File struct { - h C.WrapFile + h C.HarfangFile +} + +// NewFileFromCPointer ... +func NewFileFromCPointer(p unsafe.Pointer) *File { + retvalGO := &File{h: (C.HarfangFile)(p)} + return retvalGO } // Free ... func (pointer *File) Free() { - C.WrapFileFree(pointer.h) + C.HarfangFileFree(pointer.h) } // IsNil ... func (pointer *File) IsNil() bool { - return pointer.h == C.WrapFile(nil) + return pointer.h == C.HarfangFile(nil) } // Data ... type Data struct { - h C.WrapData + h C.HarfangData +} + +// NewDataFromCPointer ... +func NewDataFromCPointer(p unsafe.Pointer) *Data { + retvalGO := &Data{h: (C.HarfangData)(p)} + return retvalGO } // NewData ... func NewData() *Data { - retval := C.WrapConstructorData() + retval := C.HarfangConstructorData() retvalGO := &Data{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Data) { - C.WrapDataFree(cleanval.h) + C.HarfangDataFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Data) Free() { - C.WrapDataFree(pointer.h) + C.HarfangDataFree(pointer.h) } // IsNil ... func (pointer *Data) IsNil() bool { - return pointer.h == C.WrapData(nil) + return pointer.h == C.HarfangData(nil) } // GetSize ... func (pointer *Data) GetSize() int32 { - retval := C.WrapGetSizeData(pointer.h) + retval := C.HarfangGetSizeData(pointer.h) return int32(retval) } // Rewind ... func (pointer *Data) Rewind() { - C.WrapRewindData(pointer.h) + C.HarfangRewindData(pointer.h) } // DirEntry ... type DirEntry struct { - h C.WrapDirEntry + h C.HarfangDirEntry +} + +// NewDirEntryFromCPointer ... +func NewDirEntryFromCPointer(p unsafe.Pointer) *DirEntry { + retvalGO := &DirEntry{h: (C.HarfangDirEntry)(p)} + return retvalGO } // GetType ... func (pointer *DirEntry) GetType() int32 { - v := C.WrapDirEntryGetType(pointer.h) + v := C.HarfangDirEntryGetType(pointer.h) return int32(v) } // SetType ... func (pointer *DirEntry) SetType(v int32) { vToC := C.int32_t(v) - C.WrapDirEntrySetType(pointer.h, vToC) + C.HarfangDirEntrySetType(pointer.h, vToC) } // GetName ... func (pointer *DirEntry) GetName() string { - v := C.WrapDirEntryGetName(pointer.h) + v := C.HarfangDirEntryGetName(pointer.h) return C.GoString(v) } @@ -467,17 +603,17 @@ func (pointer *DirEntry) GetName() string { func (pointer *DirEntry) SetName(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapDirEntrySetName(pointer.h, vToC) + C.HarfangDirEntrySetName(pointer.h, vToC) } // Free ... func (pointer *DirEntry) Free() { - C.WrapDirEntryFree(pointer.h) + C.HarfangDirEntryFree(pointer.h) } // IsNil ... func (pointer *DirEntry) IsNil() bool { - return pointer.h == C.WrapDirEntry(nil) + return pointer.h == C.HarfangDirEntry(nil) } // GoSliceOfDirEntry ... @@ -485,15 +621,21 @@ type GoSliceOfDirEntry []*DirEntry // DirEntryList ... type DirEntryList struct { - h C.WrapDirEntryList + h C.HarfangDirEntryList +} + +// NewDirEntryListFromCPointer ... +func NewDirEntryListFromCPointer(p unsafe.Pointer) *DirEntryList { + retvalGO := &DirEntryList{h: (C.HarfangDirEntryList)(p)} + return retvalGO } // Get ... func (pointer *DirEntryList) Get(id int) *DirEntry { - v := C.WrapDirEntryListGetOperator(pointer.h, C.int(id)) + v := C.HarfangDirEntryListGetOperator(pointer.h, C.int(id)) vGO := &DirEntry{h: v} runtime.SetFinalizer(vGO, func(cleanval *DirEntry) { - C.WrapDirEntryFree(cleanval.h) + C.HarfangDirEntryFree(cleanval.h) }) return vGO } @@ -501,244 +643,250 @@ func (pointer *DirEntryList) Get(id int) *DirEntry { // Set ... func (pointer *DirEntryList) Set(id int, v *DirEntry) { vToC := v.h - C.WrapDirEntryListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangDirEntryListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *DirEntryList) Len() int32 { - return int32(C.WrapDirEntryListLenOperator(pointer.h)) + return int32(C.HarfangDirEntryListLenOperator(pointer.h)) } // NewDirEntryList ... func NewDirEntryList() *DirEntryList { - retval := C.WrapConstructorDirEntryList() + retval := C.HarfangConstructorDirEntryList() retvalGO := &DirEntryList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DirEntryList) { - C.WrapDirEntryListFree(cleanval.h) + C.HarfangDirEntryListFree(cleanval.h) }) return retvalGO } // NewDirEntryListWithSequence ... func NewDirEntryListWithSequence(sequence GoSliceOfDirEntry) *DirEntryList { - var sequencePointer []C.WrapDirEntry + var sequencePointer []C.HarfangDirEntry for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapDirEntry)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorDirEntryListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangDirEntry)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorDirEntryListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &DirEntryList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DirEntryList) { - C.WrapDirEntryListFree(cleanval.h) + C.HarfangDirEntryListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *DirEntryList) Free() { - C.WrapDirEntryListFree(pointer.h) + C.HarfangDirEntryListFree(pointer.h) } // IsNil ... func (pointer *DirEntryList) IsNil() bool { - return pointer.h == C.WrapDirEntryList(nil) + return pointer.h == C.HarfangDirEntryList(nil) } // Clear ... func (pointer *DirEntryList) Clear() { - C.WrapClearDirEntryList(pointer.h) + C.HarfangClearDirEntryList(pointer.h) } // Reserve ... func (pointer *DirEntryList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveDirEntryList(pointer.h, sizeToC) + C.HarfangReserveDirEntryList(pointer.h, sizeToC) } // PushBack ... func (pointer *DirEntryList) PushBack(v *DirEntry) { vToC := v.h - C.WrapPushBackDirEntryList(pointer.h, vToC) + C.HarfangPushBackDirEntryList(pointer.h, vToC) } // Size ... func (pointer *DirEntryList) Size() int32 { - retval := C.WrapSizeDirEntryList(pointer.h) + retval := C.HarfangSizeDirEntryList(pointer.h) return int32(retval) } // At ... func (pointer *DirEntryList) At(idx int32) *DirEntry { idxToC := C.size_t(idx) - retval := C.WrapAtDirEntryList(pointer.h, idxToC) + retval := C.HarfangAtDirEntryList(pointer.h, idxToC) retvalGO := &DirEntry{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DirEntry) { - C.WrapDirEntryFree(cleanval.h) + C.HarfangDirEntryFree(cleanval.h) }) return retvalGO } // Vec3 3-dimensional vector. type Vec3 struct { - h C.WrapVec3 + h C.HarfangVec3 +} + +// NewVec3FromCPointer ... +func NewVec3FromCPointer(p unsafe.Pointer) *Vec3 { + retvalGO := &Vec3{h: (C.HarfangVec3)(p)} + return retvalGO } // GetZero ... func (pointer *Vec3) GetZero() *Vec3 { - v := C.WrapVec3GetZero() + v := C.HarfangVec3GetZero() vGO := &Vec3{h: v} return vGO } // Vec3GetZero ... func Vec3GetZero() *Vec3 { - v := C.WrapVec3GetZero() + v := C.HarfangVec3GetZero() vGO := &Vec3{h: v} return vGO } // GetOne ... func (pointer *Vec3) GetOne() *Vec3 { - v := C.WrapVec3GetOne() + v := C.HarfangVec3GetOne() vGO := &Vec3{h: v} return vGO } // Vec3GetOne ... func Vec3GetOne() *Vec3 { - v := C.WrapVec3GetOne() + v := C.HarfangVec3GetOne() vGO := &Vec3{h: v} return vGO } // GetLeft ... func (pointer *Vec3) GetLeft() *Vec3 { - v := C.WrapVec3GetLeft() + v := C.HarfangVec3GetLeft() vGO := &Vec3{h: v} return vGO } // Vec3GetLeft ... func Vec3GetLeft() *Vec3 { - v := C.WrapVec3GetLeft() + v := C.HarfangVec3GetLeft() vGO := &Vec3{h: v} return vGO } // GetRight ... func (pointer *Vec3) GetRight() *Vec3 { - v := C.WrapVec3GetRight() + v := C.HarfangVec3GetRight() vGO := &Vec3{h: v} return vGO } // Vec3GetRight ... func Vec3GetRight() *Vec3 { - v := C.WrapVec3GetRight() + v := C.HarfangVec3GetRight() vGO := &Vec3{h: v} return vGO } // GetUp ... func (pointer *Vec3) GetUp() *Vec3 { - v := C.WrapVec3GetUp() + v := C.HarfangVec3GetUp() vGO := &Vec3{h: v} return vGO } // Vec3GetUp ... func Vec3GetUp() *Vec3 { - v := C.WrapVec3GetUp() + v := C.HarfangVec3GetUp() vGO := &Vec3{h: v} return vGO } // GetDown ... func (pointer *Vec3) GetDown() *Vec3 { - v := C.WrapVec3GetDown() + v := C.HarfangVec3GetDown() vGO := &Vec3{h: v} return vGO } // Vec3GetDown ... func Vec3GetDown() *Vec3 { - v := C.WrapVec3GetDown() + v := C.HarfangVec3GetDown() vGO := &Vec3{h: v} return vGO } // GetFront ... func (pointer *Vec3) GetFront() *Vec3 { - v := C.WrapVec3GetFront() + v := C.HarfangVec3GetFront() vGO := &Vec3{h: v} return vGO } // Vec3GetFront ... func Vec3GetFront() *Vec3 { - v := C.WrapVec3GetFront() + v := C.HarfangVec3GetFront() vGO := &Vec3{h: v} return vGO } // GetBack ... func (pointer *Vec3) GetBack() *Vec3 { - v := C.WrapVec3GetBack() + v := C.HarfangVec3GetBack() vGO := &Vec3{h: v} return vGO } // Vec3GetBack ... func Vec3GetBack() *Vec3 { - v := C.WrapVec3GetBack() + v := C.HarfangVec3GetBack() vGO := &Vec3{h: v} return vGO } // GetX ... func (pointer *Vec3) GetX() float32 { - v := C.WrapVec3GetX(pointer.h) + v := C.HarfangVec3GetX(pointer.h) return float32(v) } // SetX ... func (pointer *Vec3) SetX(v float32) { vToC := C.float(v) - C.WrapVec3SetX(pointer.h, vToC) + C.HarfangVec3SetX(pointer.h, vToC) } // GetY ... func (pointer *Vec3) GetY() float32 { - v := C.WrapVec3GetY(pointer.h) + v := C.HarfangVec3GetY(pointer.h) return float32(v) } // SetY ... func (pointer *Vec3) SetY(v float32) { vToC := C.float(v) - C.WrapVec3SetY(pointer.h, vToC) + C.HarfangVec3SetY(pointer.h, vToC) } // GetZ ... func (pointer *Vec3) GetZ() float32 { - v := C.WrapVec3GetZ(pointer.h) + v := C.HarfangVec3GetZ(pointer.h) return float32(v) } // SetZ ... func (pointer *Vec3) SetZ(v float32) { vToC := C.float(v) - C.WrapVec3SetZ(pointer.h, vToC) + C.HarfangVec3SetZ(pointer.h, vToC) } // NewVec3 3-dimensional vector. func NewVec3() *Vec3 { - retval := C.WrapConstructorVec3() + retval := C.HarfangConstructorVec3() retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -748,10 +896,10 @@ func NewVec3WithXYZ(x float32, y float32, z float32) *Vec3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapConstructorVec3WithXYZ(xToC, yToC, zToC) + retval := C.HarfangConstructorVec3WithXYZ(xToC, yToC, zToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -759,10 +907,10 @@ func NewVec3WithXYZ(x float32, y float32, z float32) *Vec3 { // NewVec3WithV 3-dimensional vector. func NewVec3WithV(v *Vec2) *Vec3 { vToC := v.h - retval := C.WrapConstructorVec3WithV(vToC) + retval := C.HarfangConstructorVec3WithV(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -770,10 +918,10 @@ func NewVec3WithV(v *Vec2) *Vec3 { // NewVec3WithIVec2V 3-dimensional vector. func NewVec3WithIVec2V(v *IVec2) *Vec3 { vToC := v.h - retval := C.WrapConstructorVec3WithIVec2V(vToC) + retval := C.HarfangConstructorVec3WithIVec2V(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -781,10 +929,10 @@ func NewVec3WithIVec2V(v *IVec2) *Vec3 { // NewVec3WithVec3V 3-dimensional vector. func NewVec3WithVec3V(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapConstructorVec3WithVec3V(vToC) + retval := C.HarfangConstructorVec3WithVec3V(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -792,31 +940,31 @@ func NewVec3WithVec3V(v *Vec3) *Vec3 { // NewVec3WithVec4V 3-dimensional vector. func NewVec3WithVec4V(v *Vec4) *Vec3 { vToC := v.h - retval := C.WrapConstructorVec3WithVec4V(vToC) + retval := C.HarfangConstructorVec3WithVec4V(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec3) Free() { - C.WrapVec3Free(pointer.h) + C.HarfangVec3Free(pointer.h) } // IsNil ... func (pointer *Vec3) IsNil() bool { - return pointer.h == C.WrapVec3(nil) + return pointer.h == C.HarfangVec3(nil) } // Add ... func (pointer *Vec3) Add(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapAddVec3(pointer.h, vToC) + retval := C.HarfangAddVec3(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -824,10 +972,10 @@ func (pointer *Vec3) Add(v *Vec3) *Vec3 { // AddWithK ... func (pointer *Vec3) AddWithK(k float32) *Vec3 { kToC := C.float(k) - retval := C.WrapAddVec3WithK(pointer.h, kToC) + retval := C.HarfangAddVec3WithK(pointer.h, kToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -835,10 +983,10 @@ func (pointer *Vec3) AddWithK(k float32) *Vec3 { // Sub ... func (pointer *Vec3) Sub(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapSubVec3(pointer.h, vToC) + retval := C.HarfangSubVec3(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -846,10 +994,10 @@ func (pointer *Vec3) Sub(v *Vec3) *Vec3 { // SubWithK ... func (pointer *Vec3) SubWithK(k float32) *Vec3 { kToC := C.float(k) - retval := C.WrapSubVec3WithK(pointer.h, kToC) + retval := C.HarfangSubVec3WithK(pointer.h, kToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -857,10 +1005,10 @@ func (pointer *Vec3) SubWithK(k float32) *Vec3 { // Div ... func (pointer *Vec3) Div(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapDivVec3(pointer.h, vToC) + retval := C.HarfangDivVec3(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -868,10 +1016,10 @@ func (pointer *Vec3) Div(v *Vec3) *Vec3 { // DivWithK ... func (pointer *Vec3) DivWithK(k float32) *Vec3 { kToC := C.float(k) - retval := C.WrapDivVec3WithK(pointer.h, kToC) + retval := C.HarfangDivVec3WithK(pointer.h, kToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -879,10 +1027,10 @@ func (pointer *Vec3) DivWithK(k float32) *Vec3 { // Mul ... func (pointer *Vec3) Mul(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapMulVec3(pointer.h, vToC) + retval := C.HarfangMulVec3(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -890,10 +1038,10 @@ func (pointer *Vec3) Mul(v *Vec3) *Vec3 { // MulWithK ... func (pointer *Vec3) MulWithK(k float32) *Vec3 { kToC := C.float(k) - retval := C.WrapMulVec3WithK(pointer.h, kToC) + retval := C.HarfangMulVec3WithK(pointer.h, kToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -901,62 +1049,62 @@ func (pointer *Vec3) MulWithK(k float32) *Vec3 { // InplaceAdd ... func (pointer *Vec3) InplaceAdd(v *Vec3) { vToC := v.h - C.WrapInplaceAddVec3(pointer.h, vToC) + C.HarfangInplaceAddVec3(pointer.h, vToC) } // InplaceAddWithK ... func (pointer *Vec3) InplaceAddWithK(k float32) { kToC := C.float(k) - C.WrapInplaceAddVec3WithK(pointer.h, kToC) + C.HarfangInplaceAddVec3WithK(pointer.h, kToC) } // InplaceSub ... func (pointer *Vec3) InplaceSub(v *Vec3) { vToC := v.h - C.WrapInplaceSubVec3(pointer.h, vToC) + C.HarfangInplaceSubVec3(pointer.h, vToC) } // InplaceSubWithK ... func (pointer *Vec3) InplaceSubWithK(k float32) { kToC := C.float(k) - C.WrapInplaceSubVec3WithK(pointer.h, kToC) + C.HarfangInplaceSubVec3WithK(pointer.h, kToC) } // InplaceMul ... func (pointer *Vec3) InplaceMul(v *Vec3) { vToC := v.h - C.WrapInplaceMulVec3(pointer.h, vToC) + C.HarfangInplaceMulVec3(pointer.h, vToC) } // InplaceMulWithK ... func (pointer *Vec3) InplaceMulWithK(k float32) { kToC := C.float(k) - C.WrapInplaceMulVec3WithK(pointer.h, kToC) + C.HarfangInplaceMulVec3WithK(pointer.h, kToC) } // InplaceDiv ... func (pointer *Vec3) InplaceDiv(v *Vec3) { vToC := v.h - C.WrapInplaceDivVec3(pointer.h, vToC) + C.HarfangInplaceDivVec3(pointer.h, vToC) } // InplaceDivWithK ... func (pointer *Vec3) InplaceDivWithK(k float32) { kToC := C.float(k) - C.WrapInplaceDivVec3WithK(pointer.h, kToC) + C.HarfangInplaceDivVec3WithK(pointer.h, kToC) } // Eq ... func (pointer *Vec3) Eq(v *Vec3) bool { vToC := v.h - retval := C.WrapEqVec3(pointer.h, vToC) + retval := C.HarfangEqVec3(pointer.h, vToC) return bool(retval) } // Ne ... func (pointer *Vec3) Ne(v *Vec3) bool { vToC := v.h - retval := C.WrapNeVec3(pointer.h, vToC) + retval := C.HarfangNeVec3(pointer.h, vToC) return bool(retval) } @@ -965,68 +1113,74 @@ func (pointer *Vec3) Set(x float32, y float32, z float32) { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - C.WrapSetVec3(pointer.h, xToC, yToC, zToC) + C.HarfangSetVec3(pointer.h, xToC, yToC, zToC) } // Vec4 4-dimensional vector. type Vec4 struct { - h C.WrapVec4 + h C.HarfangVec4 +} + +// NewVec4FromCPointer ... +func NewVec4FromCPointer(p unsafe.Pointer) *Vec4 { + retvalGO := &Vec4{h: (C.HarfangVec4)(p)} + return retvalGO } // GetX ... func (pointer *Vec4) GetX() float32 { - v := C.WrapVec4GetX(pointer.h) + v := C.HarfangVec4GetX(pointer.h) return float32(v) } // SetX ... func (pointer *Vec4) SetX(v float32) { vToC := C.float(v) - C.WrapVec4SetX(pointer.h, vToC) + C.HarfangVec4SetX(pointer.h, vToC) } // GetY ... func (pointer *Vec4) GetY() float32 { - v := C.WrapVec4GetY(pointer.h) + v := C.HarfangVec4GetY(pointer.h) return float32(v) } // SetY ... func (pointer *Vec4) SetY(v float32) { vToC := C.float(v) - C.WrapVec4SetY(pointer.h, vToC) + C.HarfangVec4SetY(pointer.h, vToC) } // GetZ ... func (pointer *Vec4) GetZ() float32 { - v := C.WrapVec4GetZ(pointer.h) + v := C.HarfangVec4GetZ(pointer.h) return float32(v) } // SetZ ... func (pointer *Vec4) SetZ(v float32) { vToC := C.float(v) - C.WrapVec4SetZ(pointer.h, vToC) + C.HarfangVec4SetZ(pointer.h, vToC) } // GetW ... func (pointer *Vec4) GetW() float32 { - v := C.WrapVec4GetW(pointer.h) + v := C.HarfangVec4GetW(pointer.h) return float32(v) } // SetW ... func (pointer *Vec4) SetW(v float32) { vToC := C.float(v) - C.WrapVec4SetW(pointer.h, vToC) + C.HarfangVec4SetW(pointer.h, vToC) } // NewVec4 4-dimensional vector. func NewVec4() *Vec4 { - retval := C.WrapConstructorVec4() + retval := C.HarfangConstructorVec4() retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1036,10 +1190,10 @@ func NewVec4WithXYZ(x float32, y float32, z float32) *Vec4 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapConstructorVec4WithXYZ(xToC, yToC, zToC) + retval := C.HarfangConstructorVec4WithXYZ(xToC, yToC, zToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1050,10 +1204,10 @@ func NewVec4WithXYZW(x float32, y float32, z float32, w float32) *Vec4 { yToC := C.float(y) zToC := C.float(z) wToC := C.float(w) - retval := C.WrapConstructorVec4WithXYZW(xToC, yToC, zToC, wToC) + retval := C.HarfangConstructorVec4WithXYZW(xToC, yToC, zToC, wToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1061,10 +1215,10 @@ func NewVec4WithXYZW(x float32, y float32, z float32, w float32) *Vec4 { // NewVec4WithV 4-dimensional vector. func NewVec4WithV(v *Vec2) *Vec4 { vToC := v.h - retval := C.WrapConstructorVec4WithV(vToC) + retval := C.HarfangConstructorVec4WithV(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1072,10 +1226,10 @@ func NewVec4WithV(v *Vec2) *Vec4 { // NewVec4WithIVec2V 4-dimensional vector. func NewVec4WithIVec2V(v *IVec2) *Vec4 { vToC := v.h - retval := C.WrapConstructorVec4WithIVec2V(vToC) + retval := C.HarfangConstructorVec4WithIVec2V(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1083,10 +1237,10 @@ func NewVec4WithIVec2V(v *IVec2) *Vec4 { // NewVec4WithVec3V 4-dimensional vector. func NewVec4WithVec3V(v *Vec3) *Vec4 { vToC := v.h - retval := C.WrapConstructorVec4WithVec3V(vToC) + retval := C.HarfangConstructorVec4WithVec3V(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1094,31 +1248,31 @@ func NewVec4WithVec3V(v *Vec3) *Vec4 { // NewVec4WithVec4V 4-dimensional vector. func NewVec4WithVec4V(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapConstructorVec4WithVec4V(vToC) + retval := C.HarfangConstructorVec4WithVec4V(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec4) Free() { - C.WrapVec4Free(pointer.h) + C.HarfangVec4Free(pointer.h) } // IsNil ... func (pointer *Vec4) IsNil() bool { - return pointer.h == C.WrapVec4(nil) + return pointer.h == C.HarfangVec4(nil) } // Add ... func (pointer *Vec4) Add(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapAddVec4(pointer.h, vToC) + retval := C.HarfangAddVec4(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1126,10 +1280,10 @@ func (pointer *Vec4) Add(v *Vec4) *Vec4 { // AddWithK ... func (pointer *Vec4) AddWithK(k float32) *Vec4 { kToC := C.float(k) - retval := C.WrapAddVec4WithK(pointer.h, kToC) + retval := C.HarfangAddVec4WithK(pointer.h, kToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1137,10 +1291,10 @@ func (pointer *Vec4) AddWithK(k float32) *Vec4 { // Sub ... func (pointer *Vec4) Sub(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapSubVec4(pointer.h, vToC) + retval := C.HarfangSubVec4(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1148,10 +1302,10 @@ func (pointer *Vec4) Sub(v *Vec4) *Vec4 { // SubWithK ... func (pointer *Vec4) SubWithK(k float32) *Vec4 { kToC := C.float(k) - retval := C.WrapSubVec4WithK(pointer.h, kToC) + retval := C.HarfangSubVec4WithK(pointer.h, kToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1159,10 +1313,10 @@ func (pointer *Vec4) SubWithK(k float32) *Vec4 { // Div ... func (pointer *Vec4) Div(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapDivVec4(pointer.h, vToC) + retval := C.HarfangDivVec4(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1170,10 +1324,10 @@ func (pointer *Vec4) Div(v *Vec4) *Vec4 { // DivWithK ... func (pointer *Vec4) DivWithK(k float32) *Vec4 { kToC := C.float(k) - retval := C.WrapDivVec4WithK(pointer.h, kToC) + retval := C.HarfangDivVec4WithK(pointer.h, kToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1181,10 +1335,10 @@ func (pointer *Vec4) DivWithK(k float32) *Vec4 { // Mul ... func (pointer *Vec4) Mul(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapMulVec4(pointer.h, vToC) + retval := C.HarfangMulVec4(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1192,10 +1346,10 @@ func (pointer *Vec4) Mul(v *Vec4) *Vec4 { // MulWithK ... func (pointer *Vec4) MulWithK(k float32) *Vec4 { kToC := C.float(k) - retval := C.WrapMulVec4WithK(pointer.h, kToC) + retval := C.HarfangMulVec4WithK(pointer.h, kToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1203,49 +1357,49 @@ func (pointer *Vec4) MulWithK(k float32) *Vec4 { // InplaceAdd ... func (pointer *Vec4) InplaceAdd(v *Vec4) { vToC := v.h - C.WrapInplaceAddVec4(pointer.h, vToC) + C.HarfangInplaceAddVec4(pointer.h, vToC) } // InplaceAddWithK ... func (pointer *Vec4) InplaceAddWithK(k float32) { kToC := C.float(k) - C.WrapInplaceAddVec4WithK(pointer.h, kToC) + C.HarfangInplaceAddVec4WithK(pointer.h, kToC) } // InplaceSub ... func (pointer *Vec4) InplaceSub(v *Vec4) { vToC := v.h - C.WrapInplaceSubVec4(pointer.h, vToC) + C.HarfangInplaceSubVec4(pointer.h, vToC) } // InplaceSubWithK ... func (pointer *Vec4) InplaceSubWithK(k float32) { kToC := C.float(k) - C.WrapInplaceSubVec4WithK(pointer.h, kToC) + C.HarfangInplaceSubVec4WithK(pointer.h, kToC) } // InplaceMul ... func (pointer *Vec4) InplaceMul(v *Vec4) { vToC := v.h - C.WrapInplaceMulVec4(pointer.h, vToC) + C.HarfangInplaceMulVec4(pointer.h, vToC) } // InplaceMulWithK ... func (pointer *Vec4) InplaceMulWithK(k float32) { kToC := C.float(k) - C.WrapInplaceMulVec4WithK(pointer.h, kToC) + C.HarfangInplaceMulVec4WithK(pointer.h, kToC) } // InplaceDiv ... func (pointer *Vec4) InplaceDiv(v *Vec4) { vToC := v.h - C.WrapInplaceDivVec4(pointer.h, vToC) + C.HarfangInplaceDivVec4(pointer.h, vToC) } // InplaceDivWithK ... func (pointer *Vec4) InplaceDivWithK(k float32) { kToC := C.float(k) - C.WrapInplaceDivVec4WithK(pointer.h, kToC) + C.HarfangInplaceDivVec4WithK(pointer.h, kToC) } // Set ... @@ -1253,7 +1407,7 @@ func (pointer *Vec4) Set(x float32, y float32, z float32) { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - C.WrapSetVec4(pointer.h, xToC, yToC, zToC) + C.HarfangSetVec4(pointer.h, xToC, yToC, zToC) } // SetWithW ... @@ -1262,48 +1416,54 @@ func (pointer *Vec4) SetWithW(x float32, y float32, z float32, w float32) { yToC := C.float(y) zToC := C.float(z) wToC := C.float(w) - C.WrapSetVec4WithW(pointer.h, xToC, yToC, zToC, wToC) + C.HarfangSetVec4WithW(pointer.h, xToC, yToC, zToC, wToC) } // Mat3 A 3x3 matrix used to store rotation. type Mat3 struct { - h C.WrapMat3 + h C.HarfangMat3 +} + +// NewMat3FromCPointer ... +func NewMat3FromCPointer(p unsafe.Pointer) *Mat3 { + retvalGO := &Mat3{h: (C.HarfangMat3)(p)} + return retvalGO } // GetZero ... func (pointer *Mat3) GetZero() *Mat3 { - v := C.WrapMat3GetZero() + v := C.HarfangMat3GetZero() vGO := &Mat3{h: v} return vGO } // Mat3GetZero ... func Mat3GetZero() *Mat3 { - v := C.WrapMat3GetZero() + v := C.HarfangMat3GetZero() vGO := &Mat3{h: v} return vGO } // GetIdentity ... func (pointer *Mat3) GetIdentity() *Mat3 { - v := C.WrapMat3GetIdentity() + v := C.HarfangMat3GetIdentity() vGO := &Mat3{h: v} return vGO } // Mat3GetIdentity ... func Mat3GetIdentity() *Mat3 { - v := C.WrapMat3GetIdentity() + v := C.HarfangMat3GetIdentity() vGO := &Mat3{h: v} return vGO } // NewMat3 A 3x3 matrix used to store rotation. func NewMat3() *Mat3 { - retval := C.WrapConstructorMat3() + retval := C.HarfangConstructorMat3() retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1311,10 +1471,10 @@ func NewMat3() *Mat3 { // NewMat3WithM A 3x3 matrix used to store rotation. func NewMat3WithM(m *Mat4) *Mat3 { mToC := m.h - retval := C.WrapConstructorMat3WithM(mToC) + retval := C.HarfangConstructorMat3WithM(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1324,31 +1484,31 @@ func NewMat3WithXYZ(x *Vec3, y *Vec3, z *Vec3) *Mat3 { xToC := x.h yToC := y.h zToC := z.h - retval := C.WrapConstructorMat3WithXYZ(xToC, yToC, zToC) + retval := C.HarfangConstructorMat3WithXYZ(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Mat3) Free() { - C.WrapMat3Free(pointer.h) + C.HarfangMat3Free(pointer.h) } // IsNil ... func (pointer *Mat3) IsNil() bool { - return pointer.h == C.WrapMat3(nil) + return pointer.h == C.HarfangMat3(nil) } // Add ... func (pointer *Mat3) Add(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapAddMat3(pointer.h, mToC) + retval := C.HarfangAddMat3(pointer.h, mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1356,10 +1516,10 @@ func (pointer *Mat3) Add(m *Mat3) *Mat3 { // Sub ... func (pointer *Mat3) Sub(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapSubMat3(pointer.h, mToC) + retval := C.HarfangSubMat3(pointer.h, mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1367,10 +1527,10 @@ func (pointer *Mat3) Sub(m *Mat3) *Mat3 { // Mul ... func (pointer *Mat3) Mul(v float32) *Mat3 { vToC := C.float(v) - retval := C.WrapMulMat3(pointer.h, vToC) + retval := C.HarfangMulMat3(pointer.h, vToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1378,10 +1538,10 @@ func (pointer *Mat3) Mul(v float32) *Mat3 { // MulWithV ... func (pointer *Mat3) MulWithV(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapMulMat3WithV(pointer.h, vToC) + retval := C.HarfangMulMat3WithV(pointer.h, vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -1389,10 +1549,10 @@ func (pointer *Mat3) MulWithV(v *Vec2) *Vec2 { // MulWithVec3V ... func (pointer *Mat3) MulWithVec3V(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapMulMat3WithVec3V(pointer.h, vToC) + retval := C.HarfangMulMat3WithVec3V(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -1400,10 +1560,10 @@ func (pointer *Mat3) MulWithVec3V(v *Vec3) *Vec3 { // MulWithVec4V ... func (pointer *Mat3) MulWithVec4V(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapMulMat3WithVec4V(pointer.h, vToC) + retval := C.HarfangMulMat3WithVec4V(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1411,10 +1571,10 @@ func (pointer *Mat3) MulWithVec4V(v *Vec4) *Vec4 { // MulWithM ... func (pointer *Mat3) MulWithM(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapMulMat3WithM(pointer.h, mToC) + retval := C.HarfangMulMat3WithM(pointer.h, mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -1422,80 +1582,86 @@ func (pointer *Mat3) MulWithM(m *Mat3) *Mat3 { // InplaceAdd ... func (pointer *Mat3) InplaceAdd(m *Mat3) { mToC := m.h - C.WrapInplaceAddMat3(pointer.h, mToC) + C.HarfangInplaceAddMat3(pointer.h, mToC) } // InplaceSub ... func (pointer *Mat3) InplaceSub(m *Mat3) { mToC := m.h - C.WrapInplaceSubMat3(pointer.h, mToC) + C.HarfangInplaceSubMat3(pointer.h, mToC) } // InplaceMul ... func (pointer *Mat3) InplaceMul(k float32) { kToC := C.float(k) - C.WrapInplaceMulMat3(pointer.h, kToC) + C.HarfangInplaceMulMat3(pointer.h, kToC) } // InplaceMulWithM ... func (pointer *Mat3) InplaceMulWithM(m *Mat3) { mToC := m.h - C.WrapInplaceMulMat3WithM(pointer.h, mToC) + C.HarfangInplaceMulMat3WithM(pointer.h, mToC) } // Eq ... func (pointer *Mat3) Eq(m *Mat3) bool { mToC := m.h - retval := C.WrapEqMat3(pointer.h, mToC) + retval := C.HarfangEqMat3(pointer.h, mToC) return bool(retval) } // Ne ... func (pointer *Mat3) Ne(m *Mat3) bool { mToC := m.h - retval := C.WrapNeMat3(pointer.h, mToC) + retval := C.HarfangNeMat3(pointer.h, mToC) return bool(retval) } // Mat4 A 3x4 matrix used to store complete transformation including rotation, scale and position. type Mat4 struct { - h C.WrapMat4 + h C.HarfangMat4 +} + +// NewMat4FromCPointer ... +func NewMat4FromCPointer(p unsafe.Pointer) *Mat4 { + retvalGO := &Mat4{h: (C.HarfangMat4)(p)} + return retvalGO } // GetZero ... func (pointer *Mat4) GetZero() *Mat4 { - v := C.WrapMat4GetZero() + v := C.HarfangMat4GetZero() vGO := &Mat4{h: v} return vGO } // Mat4GetZero ... func Mat4GetZero() *Mat4 { - v := C.WrapMat4GetZero() + v := C.HarfangMat4GetZero() vGO := &Mat4{h: v} return vGO } // GetIdentity ... func (pointer *Mat4) GetIdentity() *Mat4 { - v := C.WrapMat4GetIdentity() + v := C.HarfangMat4GetIdentity() vGO := &Mat4{h: v} return vGO } // Mat4GetIdentity ... func Mat4GetIdentity() *Mat4 { - v := C.WrapMat4GetIdentity() + v := C.HarfangMat4GetIdentity() vGO := &Mat4{h: v} return vGO } // NewMat4 A 3x4 matrix used to store complete transformation including rotation, scale and position. func NewMat4() *Mat4 { - retval := C.WrapConstructorMat4() + retval := C.HarfangConstructorMat4() retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1503,10 +1669,10 @@ func NewMat4() *Mat4 { // NewMat4WithM A 3x4 matrix used to store complete transformation including rotation, scale and position. func NewMat4WithM(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapConstructorMat4WithM(mToC) + retval := C.HarfangConstructorMat4WithM(mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1525,10 +1691,10 @@ func NewMat4WithM00M10M20M01M11M21M02M12M22M03M13M23(m00 float32, m10 float32, m m03ToC := C.float(m03) m13ToC := C.float(m13) m23ToC := C.float(m23) - retval := C.WrapConstructorMat4WithM00M10M20M01M11M21M02M12M22M03M13M23(m00ToC, m10ToC, m20ToC, m01ToC, m11ToC, m21ToC, m02ToC, m12ToC, m22ToC, m03ToC, m13ToC, m23ToC) + retval := C.HarfangConstructorMat4WithM00M10M20M01M11M21M02M12M22M03M13M23(m00ToC, m10ToC, m20ToC, m01ToC, m11ToC, m21ToC, m02ToC, m12ToC, m22ToC, m03ToC, m13ToC, m23ToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1536,31 +1702,31 @@ func NewMat4WithM00M10M20M01M11M21M02M12M22M03M13M23(m00 float32, m10 float32, m // NewMat4WithMat3M A 3x4 matrix used to store complete transformation including rotation, scale and position. func NewMat4WithMat3M(m *Mat3) *Mat4 { mToC := m.h - retval := C.WrapConstructorMat4WithMat3M(mToC) + retval := C.HarfangConstructorMat4WithMat3M(mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Mat4) Free() { - C.WrapMat4Free(pointer.h) + C.HarfangMat4Free(pointer.h) } // IsNil ... func (pointer *Mat4) IsNil() bool { - return pointer.h == C.WrapMat4(nil) + return pointer.h == C.HarfangMat4(nil) } // Add ... func (pointer *Mat4) Add(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapAddMat4(pointer.h, mToC) + retval := C.HarfangAddMat4(pointer.h, mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1568,10 +1734,10 @@ func (pointer *Mat4) Add(m *Mat4) *Mat4 { // Sub ... func (pointer *Mat4) Sub(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapSubMat4(pointer.h, mToC) + retval := C.HarfangSubMat4(pointer.h, mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1579,10 +1745,10 @@ func (pointer *Mat4) Sub(m *Mat4) *Mat4 { // Mul ... func (pointer *Mat4) Mul(v float32) *Mat4 { vToC := C.float(v) - retval := C.WrapMulMat4(pointer.h, vToC) + retval := C.HarfangMulMat4(pointer.h, vToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1590,10 +1756,10 @@ func (pointer *Mat4) Mul(v float32) *Mat4 { // MulWithM ... func (pointer *Mat4) MulWithM(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapMulMat4WithM(pointer.h, mToC) + retval := C.HarfangMulMat4WithM(pointer.h, mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -1601,10 +1767,10 @@ func (pointer *Mat4) MulWithM(m *Mat4) *Mat4 { // MulWithV ... func (pointer *Mat4) MulWithV(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapMulMat4WithV(pointer.h, vToC) + retval := C.HarfangMulMat4WithV(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -1612,10 +1778,10 @@ func (pointer *Mat4) MulWithV(v *Vec3) *Vec3 { // MulWithVec4V ... func (pointer *Mat4) MulWithVec4V(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapMulMat4WithVec4V(pointer.h, vToC) + retval := C.HarfangMulMat4WithVec4V(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -1623,10 +1789,21 @@ func (pointer *Mat4) MulWithVec4V(v *Vec4) *Vec4 { // MulWithMat44M ... func (pointer *Mat4) MulWithMat44M(m *Mat44) *Mat44 { mToC := m.h - retval := C.WrapMulMat4WithMat44M(pointer.h, mToC) + retval := C.HarfangMulMat4WithMat44M(pointer.h, mToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) + }) + return retvalGO +} + +// MulWithMinmax ... +func (pointer *Mat4) MulWithMinmax(minmax *MinMax) *MinMax { + minmaxToC := minmax.h + retval := C.HarfangMulMat4WithMinmax(pointer.h, minmaxToC) + retvalGO := &MinMax{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } @@ -1634,56 +1811,62 @@ func (pointer *Mat4) MulWithMat44M(m *Mat44) *Mat44 { // Eq ... func (pointer *Mat4) Eq(m *Mat4) bool { mToC := m.h - retval := C.WrapEqMat4(pointer.h, mToC) + retval := C.HarfangEqMat4(pointer.h, mToC) return bool(retval) } // Ne ... func (pointer *Mat4) Ne(m *Mat4) bool { mToC := m.h - retval := C.WrapNeMat4(pointer.h, mToC) + retval := C.HarfangNeMat4(pointer.h, mToC) return bool(retval) } // Mat44 A 4x4 matrix used to store projection matrices. type Mat44 struct { - h C.WrapMat44 + h C.HarfangMat44 +} + +// NewMat44FromCPointer ... +func NewMat44FromCPointer(p unsafe.Pointer) *Mat44 { + retvalGO := &Mat44{h: (C.HarfangMat44)(p)} + return retvalGO } // GetZero ... func (pointer *Mat44) GetZero() *Mat44 { - v := C.WrapMat44GetZero() + v := C.HarfangMat44GetZero() vGO := &Mat44{h: v} return vGO } // Mat44GetZero ... func Mat44GetZero() *Mat44 { - v := C.WrapMat44GetZero() + v := C.HarfangMat44GetZero() vGO := &Mat44{h: v} return vGO } // GetIdentity ... func (pointer *Mat44) GetIdentity() *Mat44 { - v := C.WrapMat44GetIdentity() + v := C.HarfangMat44GetIdentity() vGO := &Mat44{h: v} return vGO } // Mat44GetIdentity ... func Mat44GetIdentity() *Mat44 { - v := C.WrapMat44GetIdentity() + v := C.HarfangMat44GetIdentity() vGO := &Mat44{h: v} return vGO } // NewMat44 A 4x4 matrix used to store projection matrices. func NewMat44() *Mat44 { - retval := C.WrapConstructorMat44() + retval := C.HarfangConstructorMat44() retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -1706,31 +1889,31 @@ func NewMat44WithM00M10M20M30M01M11M21M31M02M12M22M32M03M13M23M33(m00 float32, m m13ToC := C.float(m13) m23ToC := C.float(m23) m33ToC := C.float(m33) - retval := C.WrapConstructorMat44WithM00M10M20M30M01M11M21M31M02M12M22M32M03M13M23M33(m00ToC, m10ToC, m20ToC, m30ToC, m01ToC, m11ToC, m21ToC, m31ToC, m02ToC, m12ToC, m22ToC, m32ToC, m03ToC, m13ToC, m23ToC, m33ToC) + retval := C.HarfangConstructorMat44WithM00M10M20M30M01M11M21M31M02M12M22M32M03M13M23M33(m00ToC, m10ToC, m20ToC, m30ToC, m01ToC, m11ToC, m21ToC, m31ToC, m02ToC, m12ToC, m22ToC, m32ToC, m03ToC, m13ToC, m23ToC, m33ToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Mat44) Free() { - C.WrapMat44Free(pointer.h) + C.HarfangMat44Free(pointer.h) } // IsNil ... func (pointer *Mat44) IsNil() bool { - return pointer.h == C.WrapMat44(nil) + return pointer.h == C.HarfangMat44(nil) } // Mul ... func (pointer *Mat44) Mul(m *Mat4) *Mat44 { mToC := m.h - retval := C.WrapMulMat44(pointer.h, mToC) + retval := C.HarfangMulMat44(pointer.h, mToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -1738,10 +1921,10 @@ func (pointer *Mat44) Mul(m *Mat4) *Mat44 { // MulWithM ... func (pointer *Mat44) MulWithM(m *Mat44) *Mat44 { mToC := m.h - retval := C.WrapMulMat44WithM(pointer.h, mToC) + retval := C.HarfangMulMat44WithM(pointer.h, mToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -1749,10 +1932,10 @@ func (pointer *Mat44) MulWithM(m *Mat44) *Mat44 { // MulWithV ... func (pointer *Mat44) MulWithV(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapMulMat44WithV(pointer.h, vToC) + retval := C.HarfangMulMat44WithV(pointer.h, vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -1760,73 +1943,79 @@ func (pointer *Mat44) MulWithV(v *Vec3) *Vec3 { // MulWithVec4V ... func (pointer *Mat44) MulWithVec4V(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapMulMat44WithVec4V(pointer.h, vToC) + retval := C.HarfangMulMat44WithVec4V(pointer.h, vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } // Quaternion Quaternion can be used to represent a 3d rotation. It provides a more compact representation of the rotation than [harfang.Mat3] and can efficiently and correctly interpolate (see [harfang.Slerp]) between two rotations. type Quaternion struct { - h C.WrapQuaternion + h C.HarfangQuaternion +} + +// NewQuaternionFromCPointer ... +func NewQuaternionFromCPointer(p unsafe.Pointer) *Quaternion { + retvalGO := &Quaternion{h: (C.HarfangQuaternion)(p)} + return retvalGO } // GetX ... func (pointer *Quaternion) GetX() float32 { - v := C.WrapQuaternionGetX(pointer.h) + v := C.HarfangQuaternionGetX(pointer.h) return float32(v) } // SetX ... func (pointer *Quaternion) SetX(v float32) { vToC := C.float(v) - C.WrapQuaternionSetX(pointer.h, vToC) + C.HarfangQuaternionSetX(pointer.h, vToC) } // GetY ... func (pointer *Quaternion) GetY() float32 { - v := C.WrapQuaternionGetY(pointer.h) + v := C.HarfangQuaternionGetY(pointer.h) return float32(v) } // SetY ... func (pointer *Quaternion) SetY(v float32) { vToC := C.float(v) - C.WrapQuaternionSetY(pointer.h, vToC) + C.HarfangQuaternionSetY(pointer.h, vToC) } // GetZ ... func (pointer *Quaternion) GetZ() float32 { - v := C.WrapQuaternionGetZ(pointer.h) + v := C.HarfangQuaternionGetZ(pointer.h) return float32(v) } // SetZ ... func (pointer *Quaternion) SetZ(v float32) { vToC := C.float(v) - C.WrapQuaternionSetZ(pointer.h, vToC) + C.HarfangQuaternionSetZ(pointer.h, vToC) } // GetW ... func (pointer *Quaternion) GetW() float32 { - v := C.WrapQuaternionGetW(pointer.h) + v := C.HarfangQuaternionGetW(pointer.h) return float32(v) } // SetW ... func (pointer *Quaternion) SetW(v float32) { vToC := C.float(v) - C.WrapQuaternionSetW(pointer.h, vToC) + C.HarfangQuaternionSetW(pointer.h, vToC) } // NewQuaternion Quaternion can be used to represent a 3d rotation. It provides a more compact representation of the rotation than [harfang.Mat3] and can efficiently and correctly interpolate (see [harfang.Slerp]) between two rotations. func NewQuaternion() *Quaternion { - retval := C.WrapConstructorQuaternion() + retval := C.HarfangConstructorQuaternion() retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1837,10 +2026,10 @@ func NewQuaternionWithXYZW(x float32, y float32, z float32, w float32) *Quaterni yToC := C.float(y) zToC := C.float(z) wToC := C.float(w) - retval := C.WrapConstructorQuaternionWithXYZW(xToC, yToC, zToC, wToC) + retval := C.HarfangConstructorQuaternionWithXYZW(xToC, yToC, zToC, wToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1848,31 +2037,31 @@ func NewQuaternionWithXYZW(x float32, y float32, z float32, w float32) *Quaterni // NewQuaternionWithQ Quaternion can be used to represent a 3d rotation. It provides a more compact representation of the rotation than [harfang.Mat3] and can efficiently and correctly interpolate (see [harfang.Slerp]) between two rotations. func NewQuaternionWithQ(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapConstructorQuaternionWithQ(qToC) + retval := C.HarfangConstructorQuaternionWithQ(qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Quaternion) Free() { - C.WrapQuaternionFree(pointer.h) + C.HarfangQuaternionFree(pointer.h) } // IsNil ... func (pointer *Quaternion) IsNil() bool { - return pointer.h == C.WrapQuaternion(nil) + return pointer.h == C.HarfangQuaternion(nil) } // Add ... func (pointer *Quaternion) Add(v float32) *Quaternion { vToC := C.float(v) - retval := C.WrapAddQuaternion(pointer.h, vToC) + retval := C.HarfangAddQuaternion(pointer.h, vToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1880,10 +2069,10 @@ func (pointer *Quaternion) Add(v float32) *Quaternion { // AddWithQ ... func (pointer *Quaternion) AddWithQ(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapAddQuaternionWithQ(pointer.h, qToC) + retval := C.HarfangAddQuaternionWithQ(pointer.h, qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1891,10 +2080,10 @@ func (pointer *Quaternion) AddWithQ(q *Quaternion) *Quaternion { // Sub ... func (pointer *Quaternion) Sub(v float32) *Quaternion { vToC := C.float(v) - retval := C.WrapSubQuaternion(pointer.h, vToC) + retval := C.HarfangSubQuaternion(pointer.h, vToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1902,10 +2091,10 @@ func (pointer *Quaternion) Sub(v float32) *Quaternion { // SubWithQ ... func (pointer *Quaternion) SubWithQ(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapSubQuaternionWithQ(pointer.h, qToC) + retval := C.HarfangSubQuaternionWithQ(pointer.h, qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1913,10 +2102,10 @@ func (pointer *Quaternion) SubWithQ(q *Quaternion) *Quaternion { // Mul ... func (pointer *Quaternion) Mul(v float32) *Quaternion { vToC := C.float(v) - retval := C.WrapMulQuaternion(pointer.h, vToC) + retval := C.HarfangMulQuaternion(pointer.h, vToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1924,10 +2113,10 @@ func (pointer *Quaternion) Mul(v float32) *Quaternion { // MulWithQ ... func (pointer *Quaternion) MulWithQ(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapMulQuaternionWithQ(pointer.h, qToC) + retval := C.HarfangMulQuaternionWithQ(pointer.h, qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1935,10 +2124,10 @@ func (pointer *Quaternion) MulWithQ(q *Quaternion) *Quaternion { // Div ... func (pointer *Quaternion) Div(v float32) *Quaternion { vToC := C.float(v) - retval := C.WrapDivQuaternion(pointer.h, vToC) + retval := C.HarfangDivQuaternion(pointer.h, vToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -1946,53 +2135,59 @@ func (pointer *Quaternion) Div(v float32) *Quaternion { // InplaceAdd ... func (pointer *Quaternion) InplaceAdd(v float32) { vToC := C.float(v) - C.WrapInplaceAddQuaternion(pointer.h, vToC) + C.HarfangInplaceAddQuaternion(pointer.h, vToC) } // InplaceAddWithQ ... func (pointer *Quaternion) InplaceAddWithQ(q *Quaternion) { qToC := q.h - C.WrapInplaceAddQuaternionWithQ(pointer.h, qToC) + C.HarfangInplaceAddQuaternionWithQ(pointer.h, qToC) } // InplaceSub ... func (pointer *Quaternion) InplaceSub(v float32) { vToC := C.float(v) - C.WrapInplaceSubQuaternion(pointer.h, vToC) + C.HarfangInplaceSubQuaternion(pointer.h, vToC) } // InplaceSubWithQ ... func (pointer *Quaternion) InplaceSubWithQ(q *Quaternion) { qToC := q.h - C.WrapInplaceSubQuaternionWithQ(pointer.h, qToC) + C.HarfangInplaceSubQuaternionWithQ(pointer.h, qToC) } // InplaceMul ... func (pointer *Quaternion) InplaceMul(v float32) { vToC := C.float(v) - C.WrapInplaceMulQuaternion(pointer.h, vToC) + C.HarfangInplaceMulQuaternion(pointer.h, vToC) } // InplaceMulWithQ ... func (pointer *Quaternion) InplaceMulWithQ(q *Quaternion) { qToC := q.h - C.WrapInplaceMulQuaternionWithQ(pointer.h, qToC) + C.HarfangInplaceMulQuaternionWithQ(pointer.h, qToC) } // InplaceDiv ... func (pointer *Quaternion) InplaceDiv(v float32) { vToC := C.float(v) - C.WrapInplaceDivQuaternion(pointer.h, vToC) + C.HarfangInplaceDivQuaternion(pointer.h, vToC) } // MinMax 3D bounding volume defined by a minimum and maximum position. type MinMax struct { - h C.WrapMinMax + h C.HarfangMinMax +} + +// NewMinMaxFromCPointer ... +func NewMinMaxFromCPointer(p unsafe.Pointer) *MinMax { + retvalGO := &MinMax{h: (C.HarfangMinMax)(p)} + return retvalGO } // GetMn ... func (pointer *MinMax) GetMn() *Vec3 { - v := C.WrapMinMaxGetMn(pointer.h) + v := C.HarfangMinMaxGetMn(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -2000,12 +2195,12 @@ func (pointer *MinMax) GetMn() *Vec3 { // SetMn ... func (pointer *MinMax) SetMn(v *Vec3) { vToC := v.h - C.WrapMinMaxSetMn(pointer.h, vToC) + C.HarfangMinMaxSetMn(pointer.h, vToC) } // GetMx ... func (pointer *MinMax) GetMx() *Vec3 { - v := C.WrapMinMaxGetMx(pointer.h) + v := C.HarfangMinMaxGetMx(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -2013,15 +2208,15 @@ func (pointer *MinMax) GetMx() *Vec3 { // SetMx ... func (pointer *MinMax) SetMx(v *Vec3) { vToC := v.h - C.WrapMinMaxSetMx(pointer.h, vToC) + C.HarfangMinMaxSetMx(pointer.h, vToC) } // NewMinMax 3D bounding volume defined by a minimum and maximum position. func NewMinMax() *MinMax { - retval := C.WrapConstructorMinMax() + retval := C.HarfangConstructorMinMax() retvalGO := &MinMax{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } @@ -2030,112 +2225,107 @@ func NewMinMax() *MinMax { func NewMinMaxWithMinMax(min *Vec3, max *Vec3) *MinMax { minToC := min.h maxToC := max.h - retval := C.WrapConstructorMinMaxWithMinMax(minToC, maxToC) + retval := C.HarfangConstructorMinMaxWithMinMax(minToC, maxToC) retvalGO := &MinMax{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *MinMax) Free() { - C.WrapMinMaxFree(pointer.h) + C.HarfangMinMaxFree(pointer.h) } // IsNil ... func (pointer *MinMax) IsNil() bool { - return pointer.h == C.WrapMinMax(nil) -} - -// Mul ... -func (pointer *MinMax) Mul(m *Mat4) *MinMax { - mToC := m.h - retval := C.WrapMulMinMax(pointer.h, mToC) - retvalGO := &MinMax{h: retval} - runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) - }) - return retvalGO + return pointer.h == C.HarfangMinMax(nil) } // Eq ... func (pointer *MinMax) Eq(minmax *MinMax) bool { minmaxToC := minmax.h - retval := C.WrapEqMinMax(pointer.h, minmaxToC) + retval := C.HarfangEqMinMax(pointer.h, minmaxToC) return bool(retval) } // Ne ... func (pointer *MinMax) Ne(minmax *MinMax) bool { minmaxToC := minmax.h - retval := C.WrapNeMinMax(pointer.h, minmaxToC) + retval := C.HarfangNeMinMax(pointer.h, minmaxToC) return bool(retval) } // Vec2 2-dimensional floating point vector. type Vec2 struct { - h C.WrapVec2 + h C.HarfangVec2 +} + +// NewVec2FromCPointer ... +func NewVec2FromCPointer(p unsafe.Pointer) *Vec2 { + retvalGO := &Vec2{h: (C.HarfangVec2)(p)} + return retvalGO } // GetZero ... func (pointer *Vec2) GetZero() *Vec2 { - v := C.WrapVec2GetZero() + v := C.HarfangVec2GetZero() vGO := &Vec2{h: v} return vGO } // Vec2GetZero ... func Vec2GetZero() *Vec2 { - v := C.WrapVec2GetZero() + v := C.HarfangVec2GetZero() vGO := &Vec2{h: v} return vGO } // GetOne ... func (pointer *Vec2) GetOne() *Vec2 { - v := C.WrapVec2GetOne() + v := C.HarfangVec2GetOne() vGO := &Vec2{h: v} return vGO } // Vec2GetOne ... func Vec2GetOne() *Vec2 { - v := C.WrapVec2GetOne() + v := C.HarfangVec2GetOne() vGO := &Vec2{h: v} return vGO } // GetX ... func (pointer *Vec2) GetX() float32 { - v := C.WrapVec2GetX(pointer.h) + v := C.HarfangVec2GetX(pointer.h) return float32(v) } // SetX ... func (pointer *Vec2) SetX(v float32) { vToC := C.float(v) - C.WrapVec2SetX(pointer.h, vToC) + C.HarfangVec2SetX(pointer.h, vToC) } // GetY ... func (pointer *Vec2) GetY() float32 { - v := C.WrapVec2GetY(pointer.h) + v := C.HarfangVec2GetY(pointer.h) return float32(v) } // SetY ... func (pointer *Vec2) SetY(v float32) { vToC := C.float(v) - C.WrapVec2SetY(pointer.h, vToC) + C.HarfangVec2SetY(pointer.h, vToC) } // NewVec2 2-dimensional floating point vector. func NewVec2() *Vec2 { - retval := C.WrapConstructorVec2() + retval := C.HarfangConstructorVec2() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2144,10 +2334,10 @@ func NewVec2() *Vec2 { func NewVec2WithXY(x float32, y float32) *Vec2 { xToC := C.float(x) yToC := C.float(y) - retval := C.WrapConstructorVec2WithXY(xToC, yToC) + retval := C.HarfangConstructorVec2WithXY(xToC, yToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2155,10 +2345,10 @@ func NewVec2WithXY(x float32, y float32) *Vec2 { // NewVec2WithV 2-dimensional floating point vector. func NewVec2WithV(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapConstructorVec2WithV(vToC) + retval := C.HarfangConstructorVec2WithV(vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2166,10 +2356,10 @@ func NewVec2WithV(v *Vec2) *Vec2 { // NewVec2WithVec3V 2-dimensional floating point vector. func NewVec2WithVec3V(v *Vec3) *Vec2 { vToC := v.h - retval := C.WrapConstructorVec2WithVec3V(vToC) + retval := C.HarfangConstructorVec2WithVec3V(vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2177,31 +2367,31 @@ func NewVec2WithVec3V(v *Vec3) *Vec2 { // NewVec2WithVec4V 2-dimensional floating point vector. func NewVec2WithVec4V(v *Vec4) *Vec2 { vToC := v.h - retval := C.WrapConstructorVec2WithVec4V(vToC) + retval := C.HarfangConstructorVec2WithVec4V(vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec2) Free() { - C.WrapVec2Free(pointer.h) + C.HarfangVec2Free(pointer.h) } // IsNil ... func (pointer *Vec2) IsNil() bool { - return pointer.h == C.WrapVec2(nil) + return pointer.h == C.HarfangVec2(nil) } // Add ... func (pointer *Vec2) Add(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapAddVec2(pointer.h, vToC) + retval := C.HarfangAddVec2(pointer.h, vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2209,10 +2399,10 @@ func (pointer *Vec2) Add(v *Vec2) *Vec2 { // AddWithK ... func (pointer *Vec2) AddWithK(k float32) *Vec2 { kToC := C.float(k) - retval := C.WrapAddVec2WithK(pointer.h, kToC) + retval := C.HarfangAddVec2WithK(pointer.h, kToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2220,10 +2410,10 @@ func (pointer *Vec2) AddWithK(k float32) *Vec2 { // Sub ... func (pointer *Vec2) Sub(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapSubVec2(pointer.h, vToC) + retval := C.HarfangSubVec2(pointer.h, vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2231,10 +2421,10 @@ func (pointer *Vec2) Sub(v *Vec2) *Vec2 { // SubWithK ... func (pointer *Vec2) SubWithK(k float32) *Vec2 { kToC := C.float(k) - retval := C.WrapSubVec2WithK(pointer.h, kToC) + retval := C.HarfangSubVec2WithK(pointer.h, kToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2242,10 +2432,10 @@ func (pointer *Vec2) SubWithK(k float32) *Vec2 { // Div ... func (pointer *Vec2) Div(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapDivVec2(pointer.h, vToC) + retval := C.HarfangDivVec2(pointer.h, vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2253,10 +2443,10 @@ func (pointer *Vec2) Div(v *Vec2) *Vec2 { // DivWithK ... func (pointer *Vec2) DivWithK(k float32) *Vec2 { kToC := C.float(k) - retval := C.WrapDivVec2WithK(pointer.h, kToC) + retval := C.HarfangDivVec2WithK(pointer.h, kToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2264,10 +2454,10 @@ func (pointer *Vec2) DivWithK(k float32) *Vec2 { // Mul ... func (pointer *Vec2) Mul(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapMulVec2(pointer.h, vToC) + retval := C.HarfangMulVec2(pointer.h, vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2275,21 +2465,10 @@ func (pointer *Vec2) Mul(v *Vec2) *Vec2 { // MulWithK ... func (pointer *Vec2) MulWithK(k float32) *Vec2 { kToC := C.float(k) - retval := C.WrapMulVec2WithK(pointer.h, kToC) + retval := C.HarfangMulVec2WithK(pointer.h, kToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) - }) - return retvalGO -} - -// MulWithM ... -func (pointer *Vec2) MulWithM(m *Mat3) *Vec2 { - mToC := m.h - retval := C.WrapMulVec2WithM(pointer.h, mToC) - retvalGO := &Vec2{h: retval} - runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -2297,56 +2476,56 @@ func (pointer *Vec2) MulWithM(m *Mat3) *Vec2 { // InplaceAdd ... func (pointer *Vec2) InplaceAdd(v *Vec2) { vToC := v.h - C.WrapInplaceAddVec2(pointer.h, vToC) + C.HarfangInplaceAddVec2(pointer.h, vToC) } // InplaceAddWithK ... func (pointer *Vec2) InplaceAddWithK(k float32) { kToC := C.float(k) - C.WrapInplaceAddVec2WithK(pointer.h, kToC) + C.HarfangInplaceAddVec2WithK(pointer.h, kToC) } // InplaceSub ... func (pointer *Vec2) InplaceSub(v *Vec2) { vToC := v.h - C.WrapInplaceSubVec2(pointer.h, vToC) + C.HarfangInplaceSubVec2(pointer.h, vToC) } // InplaceSubWithK ... func (pointer *Vec2) InplaceSubWithK(k float32) { kToC := C.float(k) - C.WrapInplaceSubVec2WithK(pointer.h, kToC) + C.HarfangInplaceSubVec2WithK(pointer.h, kToC) } // InplaceMul ... func (pointer *Vec2) InplaceMul(v *Vec2) { vToC := v.h - C.WrapInplaceMulVec2(pointer.h, vToC) + C.HarfangInplaceMulVec2(pointer.h, vToC) } // InplaceMulWithK ... func (pointer *Vec2) InplaceMulWithK(k float32) { kToC := C.float(k) - C.WrapInplaceMulVec2WithK(pointer.h, kToC) + C.HarfangInplaceMulVec2WithK(pointer.h, kToC) } // InplaceDiv ... func (pointer *Vec2) InplaceDiv(v *Vec2) { vToC := v.h - C.WrapInplaceDivVec2(pointer.h, vToC) + C.HarfangInplaceDivVec2(pointer.h, vToC) } // InplaceDivWithK ... func (pointer *Vec2) InplaceDivWithK(k float32) { kToC := C.float(k) - C.WrapInplaceDivVec2WithK(pointer.h, kToC) + C.HarfangInplaceDivVec2WithK(pointer.h, kToC) } // Set ... func (pointer *Vec2) Set(x float32, y float32) { xToC := C.float(x) yToC := C.float(y) - C.WrapSetVec2(pointer.h, xToC, yToC) + C.HarfangSetVec2(pointer.h, xToC, yToC) } // GoSliceOfVec2 ... @@ -2354,15 +2533,21 @@ type GoSliceOfVec2 []*Vec2 // Vec2List ... type Vec2List struct { - h C.WrapVec2List + h C.HarfangVec2List +} + +// NewVec2ListFromCPointer ... +func NewVec2ListFromCPointer(p unsafe.Pointer) *Vec2List { + retvalGO := &Vec2List{h: (C.HarfangVec2List)(p)} + return retvalGO } // Get ... func (pointer *Vec2List) Get(id int) *Vec2 { - v := C.WrapVec2ListGetOperator(pointer.h, C.int(id)) + v := C.HarfangVec2ListGetOperator(pointer.h, C.int(id)) vGO := &Vec2{h: v} runtime.SetFinalizer(vGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return vGO } @@ -2370,148 +2555,154 @@ func (pointer *Vec2List) Get(id int) *Vec2 { // Set ... func (pointer *Vec2List) Set(id int, v *Vec2) { vToC := v.h - C.WrapVec2ListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangVec2ListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Vec2List) Len() int32 { - return int32(C.WrapVec2ListLenOperator(pointer.h)) + return int32(C.HarfangVec2ListLenOperator(pointer.h)) } // NewVec2List ... func NewVec2List() *Vec2List { - retval := C.WrapConstructorVec2List() + retval := C.HarfangConstructorVec2List() retvalGO := &Vec2List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2List) { - C.WrapVec2ListFree(cleanval.h) + C.HarfangVec2ListFree(cleanval.h) }) return retvalGO } // NewVec2ListWithSequence ... func NewVec2ListWithSequence(sequence GoSliceOfVec2) *Vec2List { - var sequencePointer []C.WrapVec2 + var sequencePointer []C.HarfangVec2 for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapVec2)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorVec2ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangVec2)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorVec2ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &Vec2List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2List) { - C.WrapVec2ListFree(cleanval.h) + C.HarfangVec2ListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec2List) Free() { - C.WrapVec2ListFree(pointer.h) + C.HarfangVec2ListFree(pointer.h) } // IsNil ... func (pointer *Vec2List) IsNil() bool { - return pointer.h == C.WrapVec2List(nil) + return pointer.h == C.HarfangVec2List(nil) } // Clear ... func (pointer *Vec2List) Clear() { - C.WrapClearVec2List(pointer.h) + C.HarfangClearVec2List(pointer.h) } // Reserve ... func (pointer *Vec2List) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveVec2List(pointer.h, sizeToC) + C.HarfangReserveVec2List(pointer.h, sizeToC) } // PushBack Adds an element to the end. func (pointer *Vec2List) PushBack(v *Vec2) { vToC := v.h - C.WrapPushBackVec2List(pointer.h, vToC) + C.HarfangPushBackVec2List(pointer.h, vToC) } // Size Returns the number of stored elements. func (pointer *Vec2List) Size() int32 { - retval := C.WrapSizeVec2List(pointer.h) + retval := C.HarfangSizeVec2List(pointer.h) return int32(retval) } // At Gets the element at the specified index. func (pointer *Vec2List) At(idx int32) *Vec2 { idxToC := C.size_t(idx) - retval := C.WrapAtVec2List(pointer.h, idxToC) + retval := C.HarfangAtVec2List(pointer.h, idxToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // IVec2 2-dimensional integer vector. type IVec2 struct { - h C.WrapIVec2 + h C.HarfangIVec2 +} + +// NewIVec2FromCPointer ... +func NewIVec2FromCPointer(p unsafe.Pointer) *IVec2 { + retvalGO := &IVec2{h: (C.HarfangIVec2)(p)} + return retvalGO } // GetZero ... func (pointer *IVec2) GetZero() *IVec2 { - v := C.WrapIVec2GetZero() + v := C.HarfangIVec2GetZero() vGO := &IVec2{h: v} return vGO } // IVec2GetZero ... func IVec2GetZero() *IVec2 { - v := C.WrapIVec2GetZero() + v := C.HarfangIVec2GetZero() vGO := &IVec2{h: v} return vGO } // GetOne ... func (pointer *IVec2) GetOne() *IVec2 { - v := C.WrapIVec2GetOne() + v := C.HarfangIVec2GetOne() vGO := &IVec2{h: v} return vGO } // IVec2GetOne ... func IVec2GetOne() *IVec2 { - v := C.WrapIVec2GetOne() + v := C.HarfangIVec2GetOne() vGO := &IVec2{h: v} return vGO } // GetX ... func (pointer *IVec2) GetX() int32 { - v := C.WrapIVec2GetX(pointer.h) + v := C.HarfangIVec2GetX(pointer.h) return int32(v) } // SetX ... func (pointer *IVec2) SetX(v int32) { vToC := C.int32_t(v) - C.WrapIVec2SetX(pointer.h, vToC) + C.HarfangIVec2SetX(pointer.h, vToC) } // GetY ... func (pointer *IVec2) GetY() int32 { - v := C.WrapIVec2GetY(pointer.h) + v := C.HarfangIVec2GetY(pointer.h) return int32(v) } // SetY ... func (pointer *IVec2) SetY(v int32) { vToC := C.int32_t(v) - C.WrapIVec2SetY(pointer.h, vToC) + C.HarfangIVec2SetY(pointer.h, vToC) } // NewIVec2 2-dimensional integer vector. func NewIVec2() *IVec2 { - retval := C.WrapConstructorIVec2() + retval := C.HarfangConstructorIVec2() retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2520,10 +2711,10 @@ func NewIVec2() *IVec2 { func NewIVec2WithXY(x int32, y int32) *IVec2 { xToC := C.int32_t(x) yToC := C.int32_t(y) - retval := C.WrapConstructorIVec2WithXY(xToC, yToC) + retval := C.HarfangConstructorIVec2WithXY(xToC, yToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2531,10 +2722,10 @@ func NewIVec2WithXY(x int32, y int32) *IVec2 { // NewIVec2WithV 2-dimensional integer vector. func NewIVec2WithV(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapConstructorIVec2WithV(vToC) + retval := C.HarfangConstructorIVec2WithV(vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2542,10 +2733,10 @@ func NewIVec2WithV(v *IVec2) *IVec2 { // NewIVec2WithVec3V 2-dimensional integer vector. func NewIVec2WithVec3V(v *Vec3) *IVec2 { vToC := v.h - retval := C.WrapConstructorIVec2WithVec3V(vToC) + retval := C.HarfangConstructorIVec2WithVec3V(vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2553,31 +2744,31 @@ func NewIVec2WithVec3V(v *Vec3) *IVec2 { // NewIVec2WithVec4V 2-dimensional integer vector. func NewIVec2WithVec4V(v *Vec4) *IVec2 { vToC := v.h - retval := C.WrapConstructorIVec2WithVec4V(vToC) + retval := C.HarfangConstructorIVec2WithVec4V(vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } // Free ... func (pointer *IVec2) Free() { - C.WrapIVec2Free(pointer.h) + C.HarfangIVec2Free(pointer.h) } // IsNil ... func (pointer *IVec2) IsNil() bool { - return pointer.h == C.WrapIVec2(nil) + return pointer.h == C.HarfangIVec2(nil) } // Add ... func (pointer *IVec2) Add(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapAddIVec2(pointer.h, vToC) + retval := C.HarfangAddIVec2(pointer.h, vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2585,10 +2776,10 @@ func (pointer *IVec2) Add(v *IVec2) *IVec2 { // AddWithK ... func (pointer *IVec2) AddWithK(k int32) *IVec2 { kToC := C.int32_t(k) - retval := C.WrapAddIVec2WithK(pointer.h, kToC) + retval := C.HarfangAddIVec2WithK(pointer.h, kToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2596,10 +2787,10 @@ func (pointer *IVec2) AddWithK(k int32) *IVec2 { // Sub ... func (pointer *IVec2) Sub(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapSubIVec2(pointer.h, vToC) + retval := C.HarfangSubIVec2(pointer.h, vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2607,10 +2798,10 @@ func (pointer *IVec2) Sub(v *IVec2) *IVec2 { // SubWithK ... func (pointer *IVec2) SubWithK(k int32) *IVec2 { kToC := C.int32_t(k) - retval := C.WrapSubIVec2WithK(pointer.h, kToC) + retval := C.HarfangSubIVec2WithK(pointer.h, kToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2618,10 +2809,10 @@ func (pointer *IVec2) SubWithK(k int32) *IVec2 { // Div ... func (pointer *IVec2) Div(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapDivIVec2(pointer.h, vToC) + retval := C.HarfangDivIVec2(pointer.h, vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2629,10 +2820,10 @@ func (pointer *IVec2) Div(v *IVec2) *IVec2 { // DivWithK ... func (pointer *IVec2) DivWithK(k int32) *IVec2 { kToC := C.int32_t(k) - retval := C.WrapDivIVec2WithK(pointer.h, kToC) + retval := C.HarfangDivIVec2WithK(pointer.h, kToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2640,10 +2831,10 @@ func (pointer *IVec2) DivWithK(k int32) *IVec2 { // Mul ... func (pointer *IVec2) Mul(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapMulIVec2(pointer.h, vToC) + retval := C.HarfangMulIVec2(pointer.h, vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2651,21 +2842,10 @@ func (pointer *IVec2) Mul(v *IVec2) *IVec2 { // MulWithK ... func (pointer *IVec2) MulWithK(k int32) *IVec2 { kToC := C.int32_t(k) - retval := C.WrapMulIVec2WithK(pointer.h, kToC) - retvalGO := &IVec2{h: retval} - runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) - }) - return retvalGO -} - -// MulWithM ... -func (pointer *IVec2) MulWithM(m *Mat3) *IVec2 { - mToC := m.h - retval := C.WrapMulIVec2WithM(pointer.h, mToC) + retval := C.HarfangMulIVec2WithK(pointer.h, kToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2673,56 +2853,56 @@ func (pointer *IVec2) MulWithM(m *Mat3) *IVec2 { // InplaceAdd ... func (pointer *IVec2) InplaceAdd(v *IVec2) { vToC := v.h - C.WrapInplaceAddIVec2(pointer.h, vToC) + C.HarfangInplaceAddIVec2(pointer.h, vToC) } // InplaceAddWithK ... func (pointer *IVec2) InplaceAddWithK(k int32) { kToC := C.int32_t(k) - C.WrapInplaceAddIVec2WithK(pointer.h, kToC) + C.HarfangInplaceAddIVec2WithK(pointer.h, kToC) } // InplaceSub ... func (pointer *IVec2) InplaceSub(v *IVec2) { vToC := v.h - C.WrapInplaceSubIVec2(pointer.h, vToC) + C.HarfangInplaceSubIVec2(pointer.h, vToC) } // InplaceSubWithK ... func (pointer *IVec2) InplaceSubWithK(k int32) { kToC := C.int32_t(k) - C.WrapInplaceSubIVec2WithK(pointer.h, kToC) + C.HarfangInplaceSubIVec2WithK(pointer.h, kToC) } // InplaceMul ... func (pointer *IVec2) InplaceMul(v *IVec2) { vToC := v.h - C.WrapInplaceMulIVec2(pointer.h, vToC) + C.HarfangInplaceMulIVec2(pointer.h, vToC) } // InplaceMulWithK ... func (pointer *IVec2) InplaceMulWithK(k int32) { kToC := C.int32_t(k) - C.WrapInplaceMulIVec2WithK(pointer.h, kToC) + C.HarfangInplaceMulIVec2WithK(pointer.h, kToC) } // InplaceDiv ... func (pointer *IVec2) InplaceDiv(v *IVec2) { vToC := v.h - C.WrapInplaceDivIVec2(pointer.h, vToC) + C.HarfangInplaceDivIVec2(pointer.h, vToC) } // InplaceDivWithK ... func (pointer *IVec2) InplaceDivWithK(k int32) { kToC := C.int32_t(k) - C.WrapInplaceDivIVec2WithK(pointer.h, kToC) + C.HarfangInplaceDivIVec2WithK(pointer.h, kToC) } // Set ... func (pointer *IVec2) Set(x int32, y int32) { xToC := C.int32_t(x) yToC := C.int32_t(y) - C.WrapSetIVec2(pointer.h, xToC, yToC) + C.HarfangSetIVec2(pointer.h, xToC, yToC) } // GoSliceOfiVec2 ... @@ -2730,15 +2910,21 @@ type GoSliceOfiVec2 []*IVec2 // IVec2List ... type IVec2List struct { - h C.WrapIVec2List + h C.HarfangIVec2List +} + +// NewIVec2ListFromCPointer ... +func NewIVec2ListFromCPointer(p unsafe.Pointer) *IVec2List { + retvalGO := &IVec2List{h: (C.HarfangIVec2List)(p)} + return retvalGO } // Get ... func (pointer *IVec2List) Get(id int) *IVec2 { - v := C.WrapIVec2ListGetOperator(pointer.h, C.int(id)) + v := C.HarfangIVec2ListGetOperator(pointer.h, C.int(id)) vGO := &IVec2{h: v} runtime.SetFinalizer(vGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return vGO } @@ -2746,81 +2932,81 @@ func (pointer *IVec2List) Get(id int) *IVec2 { // Set ... func (pointer *IVec2List) Set(id int, v *IVec2) { vToC := v.h - C.WrapIVec2ListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangIVec2ListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *IVec2List) Len() int32 { - return int32(C.WrapIVec2ListLenOperator(pointer.h)) + return int32(C.HarfangIVec2ListLenOperator(pointer.h)) } // NewIVec2List ... func NewIVec2List() *IVec2List { - retval := C.WrapConstructorIVec2List() + retval := C.HarfangConstructorIVec2List() retvalGO := &IVec2List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2List) { - C.WrapIVec2ListFree(cleanval.h) + C.HarfangIVec2ListFree(cleanval.h) }) return retvalGO } // NewIVec2ListWithSequence ... func NewIVec2ListWithSequence(sequence GoSliceOfiVec2) *IVec2List { - var sequencePointer []C.WrapIVec2 + var sequencePointer []C.HarfangIVec2 for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapIVec2)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorIVec2ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangIVec2)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorIVec2ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &IVec2List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2List) { - C.WrapIVec2ListFree(cleanval.h) + C.HarfangIVec2ListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *IVec2List) Free() { - C.WrapIVec2ListFree(pointer.h) + C.HarfangIVec2ListFree(pointer.h) } // IsNil ... func (pointer *IVec2List) IsNil() bool { - return pointer.h == C.WrapIVec2List(nil) + return pointer.h == C.HarfangIVec2List(nil) } // Clear ... func (pointer *IVec2List) Clear() { - C.WrapClearIVec2List(pointer.h) + C.HarfangClearIVec2List(pointer.h) } // Reserve ... func (pointer *IVec2List) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveIVec2List(pointer.h, sizeToC) + C.HarfangReserveIVec2List(pointer.h, sizeToC) } // PushBack ... func (pointer *IVec2List) PushBack(v *IVec2) { vToC := v.h - C.WrapPushBackIVec2List(pointer.h, vToC) + C.HarfangPushBackIVec2List(pointer.h, vToC) } // Size ... func (pointer *IVec2List) Size() int32 { - retval := C.WrapSizeIVec2List(pointer.h) + retval := C.HarfangSizeIVec2List(pointer.h) return int32(retval) } // At ... func (pointer *IVec2List) At(idx int32) *IVec2 { idxToC := C.size_t(idx) - retval := C.WrapAtIVec2List(pointer.h, idxToC) + retval := C.HarfangAtIVec2List(pointer.h, idxToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -2830,15 +3016,21 @@ type GoSliceOfVec4 []*Vec4 // Vec4List ... type Vec4List struct { - h C.WrapVec4List + h C.HarfangVec4List +} + +// NewVec4ListFromCPointer ... +func NewVec4ListFromCPointer(p unsafe.Pointer) *Vec4List { + retvalGO := &Vec4List{h: (C.HarfangVec4List)(p)} + return retvalGO } // Get ... func (pointer *Vec4List) Get(id int) *Vec4 { - v := C.WrapVec4ListGetOperator(pointer.h, C.int(id)) + v := C.HarfangVec4ListGetOperator(pointer.h, C.int(id)) vGO := &Vec4{h: v} runtime.SetFinalizer(vGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return vGO } @@ -2846,81 +3038,81 @@ func (pointer *Vec4List) Get(id int) *Vec4 { // Set ... func (pointer *Vec4List) Set(id int, v *Vec4) { vToC := v.h - C.WrapVec4ListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangVec4ListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Vec4List) Len() int32 { - return int32(C.WrapVec4ListLenOperator(pointer.h)) + return int32(C.HarfangVec4ListLenOperator(pointer.h)) } // NewVec4List ... func NewVec4List() *Vec4List { - retval := C.WrapConstructorVec4List() + retval := C.HarfangConstructorVec4List() retvalGO := &Vec4List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4List) { - C.WrapVec4ListFree(cleanval.h) + C.HarfangVec4ListFree(cleanval.h) }) return retvalGO } // NewVec4ListWithSequence ... func NewVec4ListWithSequence(sequence GoSliceOfVec4) *Vec4List { - var sequencePointer []C.WrapVec4 + var sequencePointer []C.HarfangVec4 for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapVec4)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorVec4ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangVec4)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorVec4ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &Vec4List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4List) { - C.WrapVec4ListFree(cleanval.h) + C.HarfangVec4ListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec4List) Free() { - C.WrapVec4ListFree(pointer.h) + C.HarfangVec4ListFree(pointer.h) } // IsNil ... func (pointer *Vec4List) IsNil() bool { - return pointer.h == C.WrapVec4List(nil) + return pointer.h == C.HarfangVec4List(nil) } // Clear ... func (pointer *Vec4List) Clear() { - C.WrapClearVec4List(pointer.h) + C.HarfangClearVec4List(pointer.h) } // Reserve ... func (pointer *Vec4List) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveVec4List(pointer.h, sizeToC) + C.HarfangReserveVec4List(pointer.h, sizeToC) } // PushBack ... func (pointer *Vec4List) PushBack(v *Vec4) { vToC := v.h - C.WrapPushBackVec4List(pointer.h, vToC) + C.HarfangPushBackVec4List(pointer.h, vToC) } // Size ... func (pointer *Vec4List) Size() int32 { - retval := C.WrapSizeVec4List(pointer.h) + retval := C.HarfangSizeVec4List(pointer.h) return int32(retval) } // At ... func (pointer *Vec4List) At(idx int32) *Vec4 { idxToC := C.size_t(idx) - retval := C.WrapAtVec4List(pointer.h, idxToC) + retval := C.HarfangAtVec4List(pointer.h, idxToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -2930,15 +3122,21 @@ type GoSliceOfMat4 []*Mat4 // Mat4List ... type Mat4List struct { - h C.WrapMat4List + h C.HarfangMat4List +} + +// NewMat4ListFromCPointer ... +func NewMat4ListFromCPointer(p unsafe.Pointer) *Mat4List { + retvalGO := &Mat4List{h: (C.HarfangMat4List)(p)} + return retvalGO } // Get ... func (pointer *Mat4List) Get(id int) *Mat4 { - v := C.WrapMat4ListGetOperator(pointer.h, C.int(id)) + v := C.HarfangMat4ListGetOperator(pointer.h, C.int(id)) vGO := &Mat4{h: v} runtime.SetFinalizer(vGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return vGO } @@ -2946,81 +3144,81 @@ func (pointer *Mat4List) Get(id int) *Mat4 { // Set ... func (pointer *Mat4List) Set(id int, v *Mat4) { vToC := v.h - C.WrapMat4ListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangMat4ListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Mat4List) Len() int32 { - return int32(C.WrapMat4ListLenOperator(pointer.h)) + return int32(C.HarfangMat4ListLenOperator(pointer.h)) } // NewMat4List ... func NewMat4List() *Mat4List { - retval := C.WrapConstructorMat4List() + retval := C.HarfangConstructorMat4List() retvalGO := &Mat4List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4List) { - C.WrapMat4ListFree(cleanval.h) + C.HarfangMat4ListFree(cleanval.h) }) return retvalGO } // NewMat4ListWithSequence ... func NewMat4ListWithSequence(sequence GoSliceOfMat4) *Mat4List { - var sequencePointer []C.WrapMat4 + var sequencePointer []C.HarfangMat4 for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapMat4)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorMat4ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangMat4)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorMat4ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &Mat4List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4List) { - C.WrapMat4ListFree(cleanval.h) + C.HarfangMat4ListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Mat4List) Free() { - C.WrapMat4ListFree(pointer.h) + C.HarfangMat4ListFree(pointer.h) } // IsNil ... func (pointer *Mat4List) IsNil() bool { - return pointer.h == C.WrapMat4List(nil) + return pointer.h == C.HarfangMat4List(nil) } // Clear ... func (pointer *Mat4List) Clear() { - C.WrapClearMat4List(pointer.h) + C.HarfangClearMat4List(pointer.h) } // Reserve ... func (pointer *Mat4List) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveMat4List(pointer.h, sizeToC) + C.HarfangReserveMat4List(pointer.h, sizeToC) } // PushBack ... func (pointer *Mat4List) PushBack(v *Mat4) { vToC := v.h - C.WrapPushBackMat4List(pointer.h, vToC) + C.HarfangPushBackMat4List(pointer.h, vToC) } // Size ... func (pointer *Mat4List) Size() int32 { - retval := C.WrapSizeMat4List(pointer.h) + retval := C.HarfangSizeMat4List(pointer.h) return int32(retval) } // At ... func (pointer *Mat4List) At(idx int32) *Mat4 { idxToC := C.size_t(idx) - retval := C.WrapAtMat4List(pointer.h, idxToC) + retval := C.HarfangAtMat4List(pointer.h, idxToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -3030,15 +3228,21 @@ type GoSliceOfVec3 []*Vec3 // Vec3List ... type Vec3List struct { - h C.WrapVec3List + h C.HarfangVec3List +} + +// NewVec3ListFromCPointer ... +func NewVec3ListFromCPointer(p unsafe.Pointer) *Vec3List { + retvalGO := &Vec3List{h: (C.HarfangVec3List)(p)} + return retvalGO } // Get ... func (pointer *Vec3List) Get(id int) *Vec3 { - v := C.WrapVec3ListGetOperator(pointer.h, C.int(id)) + v := C.HarfangVec3ListGetOperator(pointer.h, C.int(id)) vGO := &Vec3{h: v} runtime.SetFinalizer(vGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return vGO } @@ -3046,144 +3250,150 @@ func (pointer *Vec3List) Get(id int) *Vec3 { // Set ... func (pointer *Vec3List) Set(id int, v *Vec3) { vToC := v.h - C.WrapVec3ListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangVec3ListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *Vec3List) Len() int32 { - return int32(C.WrapVec3ListLenOperator(pointer.h)) + return int32(C.HarfangVec3ListLenOperator(pointer.h)) } // NewVec3List ... func NewVec3List() *Vec3List { - retval := C.WrapConstructorVec3List() + retval := C.HarfangConstructorVec3List() retvalGO := &Vec3List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3List) { - C.WrapVec3ListFree(cleanval.h) + C.HarfangVec3ListFree(cleanval.h) }) return retvalGO } // NewVec3ListWithSequence ... func NewVec3ListWithSequence(sequence GoSliceOfVec3) *Vec3List { - var sequencePointer []C.WrapVec3 + var sequencePointer []C.HarfangVec3 for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorVec3ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorVec3ListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &Vec3List{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3List) { - C.WrapVec3ListFree(cleanval.h) + C.HarfangVec3ListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vec3List) Free() { - C.WrapVec3ListFree(pointer.h) + C.HarfangVec3ListFree(pointer.h) } // IsNil ... func (pointer *Vec3List) IsNil() bool { - return pointer.h == C.WrapVec3List(nil) + return pointer.h == C.HarfangVec3List(nil) } // Clear ... func (pointer *Vec3List) Clear() { - C.WrapClearVec3List(pointer.h) + C.HarfangClearVec3List(pointer.h) } // Reserve ... func (pointer *Vec3List) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveVec3List(pointer.h, sizeToC) + C.HarfangReserveVec3List(pointer.h, sizeToC) } // PushBack ... func (pointer *Vec3List) PushBack(v *Vec3) { vToC := v.h - C.WrapPushBackVec3List(pointer.h, vToC) + C.HarfangPushBackVec3List(pointer.h, vToC) } // Size ... func (pointer *Vec3List) Size() int32 { - retval := C.WrapSizeVec3List(pointer.h) + retval := C.HarfangSizeVec3List(pointer.h) return int32(retval) } // At ... func (pointer *Vec3List) At(idx int32) *Vec3 { idxToC := C.size_t(idx) - retval := C.WrapAtVec3List(pointer.h, idxToC) + retval := C.HarfangAtVec3List(pointer.h, idxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } // Rect ... type Rect struct { - h C.WrapRect + h C.HarfangRect +} + +// NewRectFromCPointer ... +func NewRectFromCPointer(p unsafe.Pointer) *Rect { + retvalGO := &Rect{h: (C.HarfangRect)(p)} + return retvalGO } // GetSx ... func (pointer *Rect) GetSx() float32 { - v := C.WrapRectGetSx(pointer.h) + v := C.HarfangRectGetSx(pointer.h) return float32(v) } // SetSx ... func (pointer *Rect) SetSx(v float32) { vToC := C.float(v) - C.WrapRectSetSx(pointer.h, vToC) + C.HarfangRectSetSx(pointer.h, vToC) } // GetSy ... func (pointer *Rect) GetSy() float32 { - v := C.WrapRectGetSy(pointer.h) + v := C.HarfangRectGetSy(pointer.h) return float32(v) } // SetSy ... func (pointer *Rect) SetSy(v float32) { vToC := C.float(v) - C.WrapRectSetSy(pointer.h, vToC) + C.HarfangRectSetSy(pointer.h, vToC) } // GetEx ... func (pointer *Rect) GetEx() float32 { - v := C.WrapRectGetEx(pointer.h) + v := C.HarfangRectGetEx(pointer.h) return float32(v) } // SetEx ... func (pointer *Rect) SetEx(v float32) { vToC := C.float(v) - C.WrapRectSetEx(pointer.h, vToC) + C.HarfangRectSetEx(pointer.h, vToC) } // GetEy ... func (pointer *Rect) GetEy() float32 { - v := C.WrapRectGetEy(pointer.h) + v := C.HarfangRectGetEy(pointer.h) return float32(v) } // SetEy ... func (pointer *Rect) SetEy(v float32) { vToC := C.float(v) - C.WrapRectSetEy(pointer.h, vToC) + C.HarfangRectSetEy(pointer.h, vToC) } // NewRect ... func NewRect() *Rect { - retval := C.WrapConstructorRect() + retval := C.HarfangConstructorRect() retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -3192,10 +3402,10 @@ func NewRect() *Rect { func NewRectWithXY(x float32, y float32) *Rect { xToC := C.float(x) yToC := C.float(y) - retval := C.WrapConstructorRectWithXY(xToC, yToC) + retval := C.HarfangConstructorRectWithXY(xToC, yToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -3206,10 +3416,10 @@ func NewRectWithSxSyExEy(sx float32, sy float32, ex float32, ey float32) *Rect { syToC := C.float(sy) exToC := C.float(ex) eyToC := C.float(ey) - retval := C.WrapConstructorRectWithSxSyExEy(sxToC, syToC, exToC, eyToC) + retval := C.HarfangConstructorRectWithSxSyExEy(sxToC, syToC, exToC, eyToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -3217,83 +3427,89 @@ func NewRectWithSxSyExEy(sx float32, sy float32, ex float32, ey float32) *Rect { // NewRectWithRect ... func NewRectWithRect(rect *Rect) *Rect { rectToC := rect.h - retval := C.WrapConstructorRectWithRect(rectToC) + retval := C.HarfangConstructorRectWithRect(rectToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Rect) Free() { - C.WrapRectFree(pointer.h) + C.HarfangRectFree(pointer.h) } // IsNil ... func (pointer *Rect) IsNil() bool { - return pointer.h == C.WrapRect(nil) + return pointer.h == C.HarfangRect(nil) } // IntRect ... type IntRect struct { - h C.WrapIntRect + h C.HarfangIntRect +} + +// NewIntRectFromCPointer ... +func NewIntRectFromCPointer(p unsafe.Pointer) *IntRect { + retvalGO := &IntRect{h: (C.HarfangIntRect)(p)} + return retvalGO } // GetSx ... func (pointer *IntRect) GetSx() int32 { - v := C.WrapIntRectGetSx(pointer.h) + v := C.HarfangIntRectGetSx(pointer.h) return int32(v) } // SetSx ... func (pointer *IntRect) SetSx(v int32) { vToC := C.int32_t(v) - C.WrapIntRectSetSx(pointer.h, vToC) + C.HarfangIntRectSetSx(pointer.h, vToC) } // GetSy ... func (pointer *IntRect) GetSy() int32 { - v := C.WrapIntRectGetSy(pointer.h) + v := C.HarfangIntRectGetSy(pointer.h) return int32(v) } // SetSy ... func (pointer *IntRect) SetSy(v int32) { vToC := C.int32_t(v) - C.WrapIntRectSetSy(pointer.h, vToC) + C.HarfangIntRectSetSy(pointer.h, vToC) } // GetEx ... func (pointer *IntRect) GetEx() int32 { - v := C.WrapIntRectGetEx(pointer.h) + v := C.HarfangIntRectGetEx(pointer.h) return int32(v) } // SetEx ... func (pointer *IntRect) SetEx(v int32) { vToC := C.int32_t(v) - C.WrapIntRectSetEx(pointer.h, vToC) + C.HarfangIntRectSetEx(pointer.h, vToC) } // GetEy ... func (pointer *IntRect) GetEy() int32 { - v := C.WrapIntRectGetEy(pointer.h) + v := C.HarfangIntRectGetEy(pointer.h) return int32(v) } // SetEy ... func (pointer *IntRect) SetEy(v int32) { vToC := C.int32_t(v) - C.WrapIntRectSetEy(pointer.h, vToC) + C.HarfangIntRectSetEy(pointer.h, vToC) } // NewIntRect ... func NewIntRect() *IntRect { - retval := C.WrapConstructorIntRect() + retval := C.HarfangConstructorIntRect() retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -3302,10 +3518,10 @@ func NewIntRect() *IntRect { func NewIntRectWithXY(x int32, y int32) *IntRect { xToC := C.int32_t(x) yToC := C.int32_t(y) - retval := C.WrapConstructorIntRectWithXY(xToC, yToC) + retval := C.HarfangConstructorIntRectWithXY(xToC, yToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -3316,10 +3532,10 @@ func NewIntRectWithSxSyExEy(sx int32, sy int32, ex int32, ey int32) *IntRect { syToC := C.int32_t(sy) exToC := C.int32_t(ex) eyToC := C.int32_t(ey) - retval := C.WrapConstructorIntRectWithSxSyExEy(sxToC, syToC, exToC, eyToC) + retval := C.HarfangConstructorIntRectWithSxSyExEy(sxToC, syToC, exToC, eyToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -3327,45 +3543,51 @@ func NewIntRectWithSxSyExEy(sx int32, sy int32, ex int32, ey int32) *IntRect { // NewIntRectWithRect ... func NewIntRectWithRect(rect *IntRect) *IntRect { rectToC := rect.h - retval := C.WrapConstructorIntRectWithRect(rectToC) + retval := C.HarfangConstructorIntRectWithRect(rectToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *IntRect) Free() { - C.WrapIntRectFree(pointer.h) + C.HarfangIntRectFree(pointer.h) } // IsNil ... func (pointer *IntRect) IsNil() bool { - return pointer.h == C.WrapIntRect(nil) + return pointer.h == C.HarfangIntRect(nil) } // Frustum A view frustum, perspective or orthographic, holding the necessary information to perform culling queries. It can be used to test wether a volume is inside or outside the frustum it represents. type Frustum struct { - h C.WrapFrustum + h C.HarfangFrustum +} + +// NewFrustumFromCPointer ... +func NewFrustumFromCPointer(p unsafe.Pointer) *Frustum { + retvalGO := &Frustum{h: (C.HarfangFrustum)(p)} + return retvalGO } // Free ... func (pointer *Frustum) Free() { - C.WrapFrustumFree(pointer.h) + C.HarfangFrustumFree(pointer.h) } // IsNil ... func (pointer *Frustum) IsNil() bool { - return pointer.h == C.WrapFrustum(nil) + return pointer.h == C.HarfangFrustum(nil) } // GetTop ... func (pointer *Frustum) GetTop() *Vec4 { - retval := C.WrapGetTopFrustum(pointer.h) + retval := C.HarfangGetTopFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3373,15 +3595,15 @@ func (pointer *Frustum) GetTop() *Vec4 { // SetTop ... func (pointer *Frustum) SetTop(plane *Vec4) { planeToC := plane.h - C.WrapSetTopFrustum(pointer.h, planeToC) + C.HarfangSetTopFrustum(pointer.h, planeToC) } // GetBottom ... func (pointer *Frustum) GetBottom() *Vec4 { - retval := C.WrapGetBottomFrustum(pointer.h) + retval := C.HarfangGetBottomFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3389,15 +3611,15 @@ func (pointer *Frustum) GetBottom() *Vec4 { // SetBottom ... func (pointer *Frustum) SetBottom(plane *Vec4) { planeToC := plane.h - C.WrapSetBottomFrustum(pointer.h, planeToC) + C.HarfangSetBottomFrustum(pointer.h, planeToC) } // GetLeft ... func (pointer *Frustum) GetLeft() *Vec4 { - retval := C.WrapGetLeftFrustum(pointer.h) + retval := C.HarfangGetLeftFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3405,15 +3627,15 @@ func (pointer *Frustum) GetLeft() *Vec4 { // SetLeft ... func (pointer *Frustum) SetLeft(plane *Vec4) { planeToC := plane.h - C.WrapSetLeftFrustum(pointer.h, planeToC) + C.HarfangSetLeftFrustum(pointer.h, planeToC) } // GetRight ... func (pointer *Frustum) GetRight() *Vec4 { - retval := C.WrapGetRightFrustum(pointer.h) + retval := C.HarfangGetRightFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3421,15 +3643,15 @@ func (pointer *Frustum) GetRight() *Vec4 { // SetRight ... func (pointer *Frustum) SetRight(plane *Vec4) { planeToC := plane.h - C.WrapSetRightFrustum(pointer.h, planeToC) + C.HarfangSetRightFrustum(pointer.h, planeToC) } // GetNear ... func (pointer *Frustum) GetNear() *Vec4 { - retval := C.WrapGetNearFrustum(pointer.h) + retval := C.HarfangGetNearFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3437,15 +3659,15 @@ func (pointer *Frustum) GetNear() *Vec4 { // SetNear ... func (pointer *Frustum) SetNear(plane *Vec4) { planeToC := plane.h - C.WrapSetNearFrustum(pointer.h, planeToC) + C.HarfangSetNearFrustum(pointer.h, planeToC) } // GetFar ... func (pointer *Frustum) GetFar() *Vec4 { - retval := C.WrapGetFarFrustum(pointer.h) + retval := C.HarfangGetFarFrustum(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -3453,17 +3675,23 @@ func (pointer *Frustum) GetFar() *Vec4 { // SetFar ... func (pointer *Frustum) SetFar(plane *Vec4) { planeToC := plane.h - C.WrapSetFarFrustum(pointer.h, planeToC) + C.HarfangSetFarFrustum(pointer.h, planeToC) } // MonitorMode ... type MonitorMode struct { - h C.WrapMonitorMode + h C.HarfangMonitorMode +} + +// NewMonitorModeFromCPointer ... +func NewMonitorModeFromCPointer(p unsafe.Pointer) *MonitorMode { + retvalGO := &MonitorMode{h: (C.HarfangMonitorMode)(p)} + return retvalGO } // GetName ... func (pointer *MonitorMode) GetName() string { - v := C.WrapMonitorModeGetName(pointer.h) + v := C.HarfangMonitorModeGetName(pointer.h) return C.GoString(v) } @@ -3471,12 +3699,12 @@ func (pointer *MonitorMode) GetName() string { func (pointer *MonitorMode) SetName(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapMonitorModeSetName(pointer.h, vToC) + C.HarfangMonitorModeSetName(pointer.h, vToC) } // GetRect ... func (pointer *MonitorMode) GetRect() *IntRect { - v := C.WrapMonitorModeGetRect(pointer.h) + v := C.HarfangMonitorModeGetRect(pointer.h) vGO := &IntRect{h: v} return vGO } @@ -3484,53 +3712,53 @@ func (pointer *MonitorMode) GetRect() *IntRect { // SetRect ... func (pointer *MonitorMode) SetRect(v *IntRect) { vToC := v.h - C.WrapMonitorModeSetRect(pointer.h, vToC) + C.HarfangMonitorModeSetRect(pointer.h, vToC) } // GetFrequency ... func (pointer *MonitorMode) GetFrequency() int32 { - v := C.WrapMonitorModeGetFrequency(pointer.h) + v := C.HarfangMonitorModeGetFrequency(pointer.h) return int32(v) } // SetFrequency ... func (pointer *MonitorMode) SetFrequency(v int32) { vToC := C.int32_t(v) - C.WrapMonitorModeSetFrequency(pointer.h, vToC) + C.HarfangMonitorModeSetFrequency(pointer.h, vToC) } // GetRotation ... func (pointer *MonitorMode) GetRotation() MonitorRotation { - v := C.WrapMonitorModeGetRotation(pointer.h) + v := C.HarfangMonitorModeGetRotation(pointer.h) return MonitorRotation(v) } // SetRotation ... func (pointer *MonitorMode) SetRotation(v MonitorRotation) { vToC := C.uchar(v) - C.WrapMonitorModeSetRotation(pointer.h, vToC) + C.HarfangMonitorModeSetRotation(pointer.h, vToC) } // GetSupportedRotations ... func (pointer *MonitorMode) GetSupportedRotations() uint8 { - v := C.WrapMonitorModeGetSupportedRotations(pointer.h) + v := C.HarfangMonitorModeGetSupportedRotations(pointer.h) return uint8(v) } // SetSupportedRotations ... func (pointer *MonitorMode) SetSupportedRotations(v uint8) { vToC := C.uchar(v) - C.WrapMonitorModeSetSupportedRotations(pointer.h, vToC) + C.HarfangMonitorModeSetSupportedRotations(pointer.h, vToC) } // Free ... func (pointer *MonitorMode) Free() { - C.WrapMonitorModeFree(pointer.h) + C.HarfangMonitorModeFree(pointer.h) } // IsNil ... func (pointer *MonitorMode) IsNil() bool { - return pointer.h == C.WrapMonitorMode(nil) + return pointer.h == C.HarfangMonitorMode(nil) } // GoSliceOfMonitorMode ... @@ -3538,15 +3766,21 @@ type GoSliceOfMonitorMode []*MonitorMode // MonitorModeList ... type MonitorModeList struct { - h C.WrapMonitorModeList + h C.HarfangMonitorModeList +} + +// NewMonitorModeListFromCPointer ... +func NewMonitorModeListFromCPointer(p unsafe.Pointer) *MonitorModeList { + retvalGO := &MonitorModeList{h: (C.HarfangMonitorModeList)(p)} + return retvalGO } // Get ... func (pointer *MonitorModeList) Get(id int) *MonitorMode { - v := C.WrapMonitorModeListGetOperator(pointer.h, C.int(id)) + v := C.HarfangMonitorModeListGetOperator(pointer.h, C.int(id)) vGO := &MonitorMode{h: v} runtime.SetFinalizer(vGO, func(cleanval *MonitorMode) { - C.WrapMonitorModeFree(cleanval.h) + C.HarfangMonitorModeFree(cleanval.h) }) return vGO } @@ -3554,98 +3788,104 @@ func (pointer *MonitorModeList) Get(id int) *MonitorMode { // Set ... func (pointer *MonitorModeList) Set(id int, v *MonitorMode) { vToC := v.h - C.WrapMonitorModeListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangMonitorModeListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *MonitorModeList) Len() int32 { - return int32(C.WrapMonitorModeListLenOperator(pointer.h)) + return int32(C.HarfangMonitorModeListLenOperator(pointer.h)) } // NewMonitorModeList ... func NewMonitorModeList() *MonitorModeList { - retval := C.WrapConstructorMonitorModeList() + retval := C.HarfangConstructorMonitorModeList() retvalGO := &MonitorModeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorModeList) { - C.WrapMonitorModeListFree(cleanval.h) + C.HarfangMonitorModeListFree(cleanval.h) }) return retvalGO } // NewMonitorModeListWithSequence ... func NewMonitorModeListWithSequence(sequence GoSliceOfMonitorMode) *MonitorModeList { - var sequencePointer []C.WrapMonitorMode + var sequencePointer []C.HarfangMonitorMode for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapMonitorMode)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorMonitorModeListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangMonitorMode)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorMonitorModeListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &MonitorModeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorModeList) { - C.WrapMonitorModeListFree(cleanval.h) + C.HarfangMonitorModeListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *MonitorModeList) Free() { - C.WrapMonitorModeListFree(pointer.h) + C.HarfangMonitorModeListFree(pointer.h) } // IsNil ... func (pointer *MonitorModeList) IsNil() bool { - return pointer.h == C.WrapMonitorModeList(nil) + return pointer.h == C.HarfangMonitorModeList(nil) } // Clear ... func (pointer *MonitorModeList) Clear() { - C.WrapClearMonitorModeList(pointer.h) + C.HarfangClearMonitorModeList(pointer.h) } // Reserve ... func (pointer *MonitorModeList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveMonitorModeList(pointer.h, sizeToC) + C.HarfangReserveMonitorModeList(pointer.h, sizeToC) } // PushBack ... func (pointer *MonitorModeList) PushBack(v *MonitorMode) { vToC := v.h - C.WrapPushBackMonitorModeList(pointer.h, vToC) + C.HarfangPushBackMonitorModeList(pointer.h, vToC) } // Size ... func (pointer *MonitorModeList) Size() int32 { - retval := C.WrapSizeMonitorModeList(pointer.h) + retval := C.HarfangSizeMonitorModeList(pointer.h) return int32(retval) } // At ... func (pointer *MonitorModeList) At(idx int32) *MonitorMode { idxToC := C.size_t(idx) - retval := C.WrapAtMonitorModeList(pointer.h, idxToC) + retval := C.HarfangAtMonitorModeList(pointer.h, idxToC) retvalGO := &MonitorMode{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorMode) { - C.WrapMonitorModeFree(cleanval.h) + C.HarfangMonitorModeFree(cleanval.h) }) return retvalGO } // Monitor ... type Monitor struct { - h C.WrapMonitor + h C.HarfangMonitor +} + +// NewMonitorFromCPointer ... +func NewMonitorFromCPointer(p unsafe.Pointer) *Monitor { + retvalGO := &Monitor{h: (C.HarfangMonitor)(p)} + return retvalGO } // Free ... func (pointer *Monitor) Free() { - C.WrapMonitorFree(pointer.h) + C.HarfangMonitorFree(pointer.h) } // IsNil ... func (pointer *Monitor) IsNil() bool { - return pointer.h == C.WrapMonitor(nil) + return pointer.h == C.HarfangMonitor(nil) } // GoSliceOfMonitor ... @@ -3653,12 +3893,18 @@ type GoSliceOfMonitor []*Monitor // MonitorList ... type MonitorList struct { - h C.WrapMonitorList + h C.HarfangMonitorList +} + +// NewMonitorListFromCPointer ... +func NewMonitorListFromCPointer(p unsafe.Pointer) *MonitorList { + retvalGO := &MonitorList{h: (C.HarfangMonitorList)(p)} + return retvalGO } // Get ... func (pointer *MonitorList) Get(id int) *Monitor { - v := C.WrapMonitorListGetOperator(pointer.h, C.int(id)) + v := C.HarfangMonitorListGetOperator(pointer.h, C.int(id)) var vGO *Monitor if v != nil { vGO = &Monitor{h: v} @@ -3669,78 +3915,78 @@ func (pointer *MonitorList) Get(id int) *Monitor { // Set ... func (pointer *MonitorList) Set(id int, v *Monitor) { vToC := v.h - C.WrapMonitorListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangMonitorListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *MonitorList) Len() int32 { - return int32(C.WrapMonitorListLenOperator(pointer.h)) + return int32(C.HarfangMonitorListLenOperator(pointer.h)) } // NewMonitorList ... func NewMonitorList() *MonitorList { - retval := C.WrapConstructorMonitorList() + retval := C.HarfangConstructorMonitorList() retvalGO := &MonitorList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorList) { - C.WrapMonitorListFree(cleanval.h) + C.HarfangMonitorListFree(cleanval.h) }) return retvalGO } // NewMonitorListWithSequence ... func NewMonitorListWithSequence(sequence GoSliceOfMonitor) *MonitorList { - var sequencePointer []C.WrapMonitor + var sequencePointer []C.HarfangMonitor for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapMonitor)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorMonitorListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangMonitor)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorMonitorListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &MonitorList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorList) { - C.WrapMonitorListFree(cleanval.h) + C.HarfangMonitorListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *MonitorList) Free() { - C.WrapMonitorListFree(pointer.h) + C.HarfangMonitorListFree(pointer.h) } // IsNil ... func (pointer *MonitorList) IsNil() bool { - return pointer.h == C.WrapMonitorList(nil) + return pointer.h == C.HarfangMonitorList(nil) } // Clear ... func (pointer *MonitorList) Clear() { - C.WrapClearMonitorList(pointer.h) + C.HarfangClearMonitorList(pointer.h) } // Reserve ... func (pointer *MonitorList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveMonitorList(pointer.h, sizeToC) + C.HarfangReserveMonitorList(pointer.h, sizeToC) } // PushBack ... func (pointer *MonitorList) PushBack(v *Monitor) { vToC := v.h - C.WrapPushBackMonitorList(pointer.h, vToC) + C.HarfangPushBackMonitorList(pointer.h, vToC) } // Size ... func (pointer *MonitorList) Size() int32 { - retval := C.WrapSizeMonitorList(pointer.h) + retval := C.HarfangSizeMonitorList(pointer.h) return int32(retval) } // At ... func (pointer *MonitorList) At(idx int32) *Monitor { idxToC := C.size_t(idx) - retval := C.WrapAtMonitorList(pointer.h, idxToC) + retval := C.HarfangAtMonitorList(pointer.h, idxToC) var retvalGO *Monitor if retval != nil { retvalGO = &Monitor{h: retval} @@ -3750,246 +3996,258 @@ func (pointer *MonitorList) At(idx int32) *Monitor { // Window Window object. type Window struct { - h C.WrapWindow + h C.HarfangWindow +} + +// NewWindowFromCPointer ... +func NewWindowFromCPointer(p unsafe.Pointer) *Window { + retvalGO := &Window{h: (C.HarfangWindow)(p)} + return retvalGO } // Free ... func (pointer *Window) Free() { - C.WrapWindowFree(pointer.h) + C.HarfangWindowFree(pointer.h) } // IsNil ... func (pointer *Window) IsNil() bool { - return pointer.h == C.WrapWindow(nil) + return pointer.h == C.HarfangWindow(nil) } // Color Four-component RGBA color object. type Color struct { - h C.WrapColor + h C.HarfangColor +} + +// NewColorFromCPointer ... +func NewColorFromCPointer(p unsafe.Pointer) *Color { + retvalGO := &Color{h: (C.HarfangColor)(p)} + return retvalGO } // GetZero ... func (pointer *Color) GetZero() *Color { - v := C.WrapColorGetZero() + v := C.HarfangColorGetZero() vGO := &Color{h: v} return vGO } // ColorGetZero ... func ColorGetZero() *Color { - v := C.WrapColorGetZero() + v := C.HarfangColorGetZero() vGO := &Color{h: v} return vGO } // GetOne ... func (pointer *Color) GetOne() *Color { - v := C.WrapColorGetOne() + v := C.HarfangColorGetOne() vGO := &Color{h: v} return vGO } // ColorGetOne ... func ColorGetOne() *Color { - v := C.WrapColorGetOne() + v := C.HarfangColorGetOne() vGO := &Color{h: v} return vGO } // GetWhite ... func (pointer *Color) GetWhite() *Color { - v := C.WrapColorGetWhite() + v := C.HarfangColorGetWhite() vGO := &Color{h: v} return vGO } // ColorGetWhite ... func ColorGetWhite() *Color { - v := C.WrapColorGetWhite() + v := C.HarfangColorGetWhite() vGO := &Color{h: v} return vGO } // GetGrey ... func (pointer *Color) GetGrey() *Color { - v := C.WrapColorGetGrey() + v := C.HarfangColorGetGrey() vGO := &Color{h: v} return vGO } // ColorGetGrey ... func ColorGetGrey() *Color { - v := C.WrapColorGetGrey() + v := C.HarfangColorGetGrey() vGO := &Color{h: v} return vGO } // GetBlack ... func (pointer *Color) GetBlack() *Color { - v := C.WrapColorGetBlack() + v := C.HarfangColorGetBlack() vGO := &Color{h: v} return vGO } // ColorGetBlack ... func ColorGetBlack() *Color { - v := C.WrapColorGetBlack() + v := C.HarfangColorGetBlack() vGO := &Color{h: v} return vGO } // GetRed ... func (pointer *Color) GetRed() *Color { - v := C.WrapColorGetRed() + v := C.HarfangColorGetRed() vGO := &Color{h: v} return vGO } // ColorGetRed ... func ColorGetRed() *Color { - v := C.WrapColorGetRed() + v := C.HarfangColorGetRed() vGO := &Color{h: v} return vGO } // GetGreen ... func (pointer *Color) GetGreen() *Color { - v := C.WrapColorGetGreen() + v := C.HarfangColorGetGreen() vGO := &Color{h: v} return vGO } // ColorGetGreen ... func ColorGetGreen() *Color { - v := C.WrapColorGetGreen() + v := C.HarfangColorGetGreen() vGO := &Color{h: v} return vGO } // GetBlue ... func (pointer *Color) GetBlue() *Color { - v := C.WrapColorGetBlue() + v := C.HarfangColorGetBlue() vGO := &Color{h: v} return vGO } // ColorGetBlue ... func ColorGetBlue() *Color { - v := C.WrapColorGetBlue() + v := C.HarfangColorGetBlue() vGO := &Color{h: v} return vGO } // GetYellow ... func (pointer *Color) GetYellow() *Color { - v := C.WrapColorGetYellow() + v := C.HarfangColorGetYellow() vGO := &Color{h: v} return vGO } // ColorGetYellow ... func ColorGetYellow() *Color { - v := C.WrapColorGetYellow() + v := C.HarfangColorGetYellow() vGO := &Color{h: v} return vGO } // GetOrange ... func (pointer *Color) GetOrange() *Color { - v := C.WrapColorGetOrange() + v := C.HarfangColorGetOrange() vGO := &Color{h: v} return vGO } // ColorGetOrange ... func ColorGetOrange() *Color { - v := C.WrapColorGetOrange() + v := C.HarfangColorGetOrange() vGO := &Color{h: v} return vGO } // GetPurple ... func (pointer *Color) GetPurple() *Color { - v := C.WrapColorGetPurple() + v := C.HarfangColorGetPurple() vGO := &Color{h: v} return vGO } // ColorGetPurple ... func ColorGetPurple() *Color { - v := C.WrapColorGetPurple() + v := C.HarfangColorGetPurple() vGO := &Color{h: v} return vGO } // GetTransparent ... func (pointer *Color) GetTransparent() *Color { - v := C.WrapColorGetTransparent() + v := C.HarfangColorGetTransparent() vGO := &Color{h: v} return vGO } // ColorGetTransparent ... func ColorGetTransparent() *Color { - v := C.WrapColorGetTransparent() + v := C.HarfangColorGetTransparent() vGO := &Color{h: v} return vGO } // GetR ... func (pointer *Color) GetR() float32 { - v := C.WrapColorGetR(pointer.h) + v := C.HarfangColorGetR(pointer.h) return float32(v) } // SetR ... func (pointer *Color) SetR(v float32) { vToC := C.float(v) - C.WrapColorSetR(pointer.h, vToC) + C.HarfangColorSetR(pointer.h, vToC) } // GetG ... func (pointer *Color) GetG() float32 { - v := C.WrapColorGetG(pointer.h) + v := C.HarfangColorGetG(pointer.h) return float32(v) } // SetG ... func (pointer *Color) SetG(v float32) { vToC := C.float(v) - C.WrapColorSetG(pointer.h, vToC) + C.HarfangColorSetG(pointer.h, vToC) } // GetB ... func (pointer *Color) GetB() float32 { - v := C.WrapColorGetB(pointer.h) + v := C.HarfangColorGetB(pointer.h) return float32(v) } // SetB ... func (pointer *Color) SetB(v float32) { vToC := C.float(v) - C.WrapColorSetB(pointer.h, vToC) + C.HarfangColorSetB(pointer.h, vToC) } // GetA ... func (pointer *Color) GetA() float32 { - v := C.WrapColorGetA(pointer.h) + v := C.HarfangColorGetA(pointer.h) return float32(v) } // SetA ... func (pointer *Color) SetA(v float32) { vToC := C.float(v) - C.WrapColorSetA(pointer.h, vToC) + C.HarfangColorSetA(pointer.h, vToC) } // NewColor Four-component RGBA color object. func NewColor() *Color { - retval := C.WrapConstructorColor() + retval := C.HarfangConstructorColor() retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -3997,10 +4255,10 @@ func NewColor() *Color { // NewColorWithColor Four-component RGBA color object. func NewColorWithColor(color *Color) *Color { colorToC := color.h - retval := C.WrapConstructorColorWithColor(colorToC) + retval := C.HarfangConstructorColorWithColor(colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4010,10 +4268,10 @@ func NewColorWithRGB(r float32, g float32, b float32) *Color { rToC := C.float(r) gToC := C.float(g) bToC := C.float(b) - retval := C.WrapConstructorColorWithRGB(rToC, gToC, bToC) + retval := C.HarfangConstructorColorWithRGB(rToC, gToC, bToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4024,31 +4282,31 @@ func NewColorWithRGBA(r float32, g float32, b float32, a float32) *Color { gToC := C.float(g) bToC := C.float(b) aToC := C.float(a) - retval := C.WrapConstructorColorWithRGBA(rToC, gToC, bToC, aToC) + retval := C.HarfangConstructorColorWithRGBA(rToC, gToC, bToC, aToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Color) Free() { - C.WrapColorFree(pointer.h) + C.HarfangColorFree(pointer.h) } // IsNil ... func (pointer *Color) IsNil() bool { - return pointer.h == C.WrapColor(nil) + return pointer.h == C.HarfangColor(nil) } // Add ... func (pointer *Color) Add(color *Color) *Color { colorToC := color.h - retval := C.WrapAddColor(pointer.h, colorToC) + retval := C.HarfangAddColor(pointer.h, colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4056,10 +4314,10 @@ func (pointer *Color) Add(color *Color) *Color { // AddWithK ... func (pointer *Color) AddWithK(k float32) *Color { kToC := C.float(k) - retval := C.WrapAddColorWithK(pointer.h, kToC) + retval := C.HarfangAddColorWithK(pointer.h, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4067,10 +4325,10 @@ func (pointer *Color) AddWithK(k float32) *Color { // Sub ... func (pointer *Color) Sub(color *Color) *Color { colorToC := color.h - retval := C.WrapSubColor(pointer.h, colorToC) + retval := C.HarfangSubColor(pointer.h, colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4078,10 +4336,10 @@ func (pointer *Color) Sub(color *Color) *Color { // SubWithK ... func (pointer *Color) SubWithK(k float32) *Color { kToC := C.float(k) - retval := C.WrapSubColorWithK(pointer.h, kToC) + retval := C.HarfangSubColorWithK(pointer.h, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4089,10 +4347,10 @@ func (pointer *Color) SubWithK(k float32) *Color { // Div ... func (pointer *Color) Div(color *Color) *Color { colorToC := color.h - retval := C.WrapDivColor(pointer.h, colorToC) + retval := C.HarfangDivColor(pointer.h, colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4100,10 +4358,10 @@ func (pointer *Color) Div(color *Color) *Color { // DivWithK ... func (pointer *Color) DivWithK(k float32) *Color { kToC := C.float(k) - retval := C.WrapDivColorWithK(pointer.h, kToC) + retval := C.HarfangDivColorWithK(pointer.h, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4111,10 +4369,10 @@ func (pointer *Color) DivWithK(k float32) *Color { // Mul ... func (pointer *Color) Mul(color *Color) *Color { colorToC := color.h - retval := C.WrapMulColor(pointer.h, colorToC) + retval := C.HarfangMulColor(pointer.h, colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4122,10 +4380,10 @@ func (pointer *Color) Mul(color *Color) *Color { // MulWithK ... func (pointer *Color) MulWithK(k float32) *Color { kToC := C.float(k) - retval := C.WrapMulColorWithK(pointer.h, kToC) + retval := C.HarfangMulColorWithK(pointer.h, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4133,62 +4391,62 @@ func (pointer *Color) MulWithK(k float32) *Color { // InplaceAdd ... func (pointer *Color) InplaceAdd(color *Color) { colorToC := color.h - C.WrapInplaceAddColor(pointer.h, colorToC) + C.HarfangInplaceAddColor(pointer.h, colorToC) } // InplaceAddWithK ... func (pointer *Color) InplaceAddWithK(k float32) { kToC := C.float(k) - C.WrapInplaceAddColorWithK(pointer.h, kToC) + C.HarfangInplaceAddColorWithK(pointer.h, kToC) } // InplaceSub ... func (pointer *Color) InplaceSub(color *Color) { colorToC := color.h - C.WrapInplaceSubColor(pointer.h, colorToC) + C.HarfangInplaceSubColor(pointer.h, colorToC) } // InplaceSubWithK ... func (pointer *Color) InplaceSubWithK(k float32) { kToC := C.float(k) - C.WrapInplaceSubColorWithK(pointer.h, kToC) + C.HarfangInplaceSubColorWithK(pointer.h, kToC) } // InplaceMul ... func (pointer *Color) InplaceMul(color *Color) { colorToC := color.h - C.WrapInplaceMulColor(pointer.h, colorToC) + C.HarfangInplaceMulColor(pointer.h, colorToC) } // InplaceMulWithK ... func (pointer *Color) InplaceMulWithK(k float32) { kToC := C.float(k) - C.WrapInplaceMulColorWithK(pointer.h, kToC) + C.HarfangInplaceMulColorWithK(pointer.h, kToC) } // InplaceDiv ... func (pointer *Color) InplaceDiv(color *Color) { colorToC := color.h - C.WrapInplaceDivColor(pointer.h, colorToC) + C.HarfangInplaceDivColor(pointer.h, colorToC) } // InplaceDivWithK ... func (pointer *Color) InplaceDivWithK(k float32) { kToC := C.float(k) - C.WrapInplaceDivColorWithK(pointer.h, kToC) + C.HarfangInplaceDivColorWithK(pointer.h, kToC) } // Eq ... func (pointer *Color) Eq(color *Color) bool { colorToC := color.h - retval := C.WrapEqColor(pointer.h, colorToC) + retval := C.HarfangEqColor(pointer.h, colorToC) return bool(retval) } // Ne ... func (pointer *Color) Ne(color *Color) bool { colorToC := color.h - retval := C.WrapNeColor(pointer.h, colorToC) + retval := C.HarfangNeColor(pointer.h, colorToC) return bool(retval) } @@ -4197,15 +4455,21 @@ type GoSliceOfColor []*Color // ColorList ... type ColorList struct { - h C.WrapColorList + h C.HarfangColorList +} + +// NewColorListFromCPointer ... +func NewColorListFromCPointer(p unsafe.Pointer) *ColorList { + retvalGO := &ColorList{h: (C.HarfangColorList)(p)} + return retvalGO } // Get ... func (pointer *ColorList) Get(id int) *Color { - v := C.WrapColorListGetOperator(pointer.h, C.int(id)) + v := C.HarfangColorListGetOperator(pointer.h, C.int(id)) vGO := &Color{h: v} runtime.SetFinalizer(vGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return vGO } @@ -4213,96 +4477,102 @@ func (pointer *ColorList) Get(id int) *Color { // Set ... func (pointer *ColorList) Set(id int, v *Color) { vToC := v.h - C.WrapColorListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangColorListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *ColorList) Len() int32 { - return int32(C.WrapColorListLenOperator(pointer.h)) + return int32(C.HarfangColorListLenOperator(pointer.h)) } // NewColorList ... func NewColorList() *ColorList { - retval := C.WrapConstructorColorList() + retval := C.HarfangConstructorColorList() retvalGO := &ColorList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ColorList) { - C.WrapColorListFree(cleanval.h) + C.HarfangColorListFree(cleanval.h) }) return retvalGO } // NewColorListWithSequence ... func NewColorListWithSequence(sequence GoSliceOfColor) *ColorList { - var sequencePointer []C.WrapColor + var sequencePointer []C.HarfangColor for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapColor)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorColorListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangColor)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorColorListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &ColorList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ColorList) { - C.WrapColorListFree(cleanval.h) + C.HarfangColorListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ColorList) Free() { - C.WrapColorListFree(pointer.h) + C.HarfangColorListFree(pointer.h) } // IsNil ... func (pointer *ColorList) IsNil() bool { - return pointer.h == C.WrapColorList(nil) + return pointer.h == C.HarfangColorList(nil) } // Clear ... func (pointer *ColorList) Clear() { - C.WrapClearColorList(pointer.h) + C.HarfangClearColorList(pointer.h) } // Reserve ... func (pointer *ColorList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveColorList(pointer.h, sizeToC) + C.HarfangReserveColorList(pointer.h, sizeToC) } // PushBack ... func (pointer *ColorList) PushBack(v *Color) { vToC := v.h - C.WrapPushBackColorList(pointer.h, vToC) + C.HarfangPushBackColorList(pointer.h, vToC) } // Size ... func (pointer *ColorList) Size() int32 { - retval := C.WrapSizeColorList(pointer.h) + retval := C.HarfangSizeColorList(pointer.h) return int32(retval) } // At ... func (pointer *ColorList) At(idx int32) *Color { idxToC := C.size_t(idx) - retval := C.WrapAtColorList(pointer.h, idxToC) + retval := C.HarfangAtColorList(pointer.h, idxToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } // Picture The picture origin (0, 0) is in the top-left corner of its frame with the X and Y axises increasing toward the right and bottom. To load and save a picture use [harfang.LoadPicture], [harfang.LoadPNG] or [harfang.SavePNG]. The [harfang.Picture_SetData] and [harfang.Picture_GetData] methods can be used to transfer data to and from a picture object. type Picture struct { - h C.WrapPicture + h C.HarfangPicture +} + +// NewPictureFromCPointer ... +func NewPictureFromCPointer(p unsafe.Pointer) *Picture { + retvalGO := &Picture{h: (C.HarfangPicture)(p)} + return retvalGO } // NewPicture The picture origin (0, 0) is in the top-left corner of its frame with the X and Y axises increasing toward the right and bottom. To load and save a picture use [harfang.LoadPicture], [harfang.LoadPNG] or [harfang.SavePNG]. The [harfang.Picture_SetData] and [harfang.Picture_GetData] methods can be used to transfer data to and from a picture object. func NewPicture() *Picture { - retval := C.WrapConstructorPicture() + retval := C.HarfangConstructorPicture() retvalGO := &Picture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Picture) { - C.WrapPictureFree(cleanval.h) + C.HarfangPictureFree(cleanval.h) }) return retvalGO } @@ -4310,10 +4580,10 @@ func NewPicture() *Picture { // NewPictureWithPicture The picture origin (0, 0) is in the top-left corner of its frame with the X and Y axises increasing toward the right and bottom. To load and save a picture use [harfang.LoadPicture], [harfang.LoadPNG] or [harfang.SavePNG]. The [harfang.Picture_SetData] and [harfang.Picture_GetData] methods can be used to transfer data to and from a picture object. func NewPictureWithPicture(picture *Picture) *Picture { pictureToC := picture.h - retval := C.WrapConstructorPictureWithPicture(pictureToC) + retval := C.HarfangConstructorPictureWithPicture(pictureToC) retvalGO := &Picture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Picture) { - C.WrapPictureFree(cleanval.h) + C.HarfangPictureFree(cleanval.h) }) return retvalGO } @@ -4323,10 +4593,10 @@ func NewPictureWithWidthHeightFormat(width uint16, height uint16, format Picture widthToC := C.ushort(width) heightToC := C.ushort(height) formatToC := C.int32_t(format) - retval := C.WrapConstructorPictureWithWidthHeightFormat(widthToC, heightToC, formatToC) + retval := C.HarfangConstructorPictureWithWidthHeightFormat(widthToC, heightToC, formatToC) retvalGO := &Picture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Picture) { - C.WrapPictureFree(cleanval.h) + C.HarfangPictureFree(cleanval.h) }) return retvalGO } @@ -4337,45 +4607,45 @@ func NewPictureWithDataWidthHeightFormat(data *VoidPointer, width uint16, height widthToC := C.ushort(width) heightToC := C.ushort(height) formatToC := C.int32_t(format) - retval := C.WrapConstructorPictureWithDataWidthHeightFormat(dataToC, widthToC, heightToC, formatToC) + retval := C.HarfangConstructorPictureWithDataWidthHeightFormat(dataToC, widthToC, heightToC, formatToC) retvalGO := &Picture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Picture) { - C.WrapPictureFree(cleanval.h) + C.HarfangPictureFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Picture) Free() { - C.WrapPictureFree(pointer.h) + C.HarfangPictureFree(pointer.h) } // IsNil ... func (pointer *Picture) IsNil() bool { - return pointer.h == C.WrapPicture(nil) + return pointer.h == C.HarfangPicture(nil) } // GetWidth Return the picture width. func (pointer *Picture) GetWidth() uint32 { - retval := C.WrapGetWidthPicture(pointer.h) + retval := C.HarfangGetWidthPicture(pointer.h) return uint32(retval) } // GetHeight Return the picture height. func (pointer *Picture) GetHeight() uint32 { - retval := C.WrapGetHeightPicture(pointer.h) + retval := C.HarfangGetHeightPicture(pointer.h) return uint32(retval) } // GetFormat ... func (pointer *Picture) GetFormat() PictureFormat { - retval := C.WrapGetFormatPicture(pointer.h) + retval := C.HarfangGetFormatPicture(pointer.h) return PictureFormat(retval) } // GetData ... func (pointer *Picture) GetData() uintptr { - retval := C.WrapGetDataPicture(pointer.h) + retval := C.HarfangGetDataPicture(pointer.h) return uintptr(retval) } @@ -4385,7 +4655,7 @@ func (pointer *Picture) SetData(data *VoidPointer, width uint16, height uint16, widthToC := C.ushort(width) heightToC := C.ushort(height) formatToC := C.int32_t(format) - C.WrapSetDataPicture(pointer.h, dataToC, widthToC, heightToC, formatToC) + C.HarfangSetDataPicture(pointer.h, dataToC, widthToC, heightToC, formatToC) } // CopyData ... @@ -4394,17 +4664,17 @@ func (pointer *Picture) CopyData(data *VoidPointer, width uint16, height uint16, widthToC := C.ushort(width) heightToC := C.ushort(height) formatToC := C.int32_t(format) - C.WrapCopyDataPicture(pointer.h, dataToC, widthToC, heightToC, formatToC) + C.HarfangCopyDataPicture(pointer.h, dataToC, widthToC, heightToC, formatToC) } // GetPixelRGBA ... func (pointer *Picture) GetPixelRGBA(x uint16, y uint16) *Color { xToC := C.ushort(x) yToC := C.ushort(y) - retval := C.WrapGetPixelRGBAPicture(pointer.h, xToC, yToC) + retval := C.HarfangGetPixelRGBAPicture(pointer.h, xToC, yToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -4414,52 +4684,64 @@ func (pointer *Picture) SetPixelRGBA(x uint16, y uint16, col *Color) { xToC := C.ushort(x) yToC := C.ushort(y) colToC := col.h - C.WrapSetPixelRGBAPicture(pointer.h, xToC, yToC, colToC) + C.HarfangSetPixelRGBAPicture(pointer.h, xToC, yToC, colToC) } // FrameBufferHandle ... type FrameBufferHandle struct { - h C.WrapFrameBufferHandle + h C.HarfangFrameBufferHandle +} + +// NewFrameBufferHandleFromCPointer ... +func NewFrameBufferHandleFromCPointer(p unsafe.Pointer) *FrameBufferHandle { + retvalGO := &FrameBufferHandle{h: (C.HarfangFrameBufferHandle)(p)} + return retvalGO } // Free ... func (pointer *FrameBufferHandle) Free() { - C.WrapFrameBufferHandleFree(pointer.h) + C.HarfangFrameBufferHandleFree(pointer.h) } // IsNil ... func (pointer *FrameBufferHandle) IsNil() bool { - return pointer.h == C.WrapFrameBufferHandle(nil) + return pointer.h == C.HarfangFrameBufferHandle(nil) } // VertexLayout Memory layout and types of vertex attributes. type VertexLayout struct { - h C.WrapVertexLayout + h C.HarfangVertexLayout +} + +// NewVertexLayoutFromCPointer ... +func NewVertexLayoutFromCPointer(p unsafe.Pointer) *VertexLayout { + retvalGO := &VertexLayout{h: (C.HarfangVertexLayout)(p)} + return retvalGO } // NewVertexLayout Memory layout and types of vertex attributes. func NewVertexLayout() *VertexLayout { - retval := C.WrapConstructorVertexLayout() + retval := C.HarfangConstructorVertexLayout() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *VertexLayout) Free() { - C.WrapVertexLayoutFree(pointer.h) + C.HarfangVertexLayoutFree(pointer.h) } // IsNil ... func (pointer *VertexLayout) IsNil() bool { - return pointer.h == C.WrapVertexLayout(nil) + return pointer.h == C.HarfangVertexLayout(nil) } // Begin ... func (pointer *VertexLayout) Begin() *VertexLayout { - retval := C.WrapBeginVertexLayout(pointer.h) + retval := C.HarfangBeginVertexLayout(pointer.h) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -4472,7 +4754,7 @@ func (pointer *VertexLayout) Add(attrib Attrib, count uint8, typeGo AttribType) attribToC := C.int32_t(attrib) countToC := C.uchar(count) typeGoToC := C.int32_t(typeGo) - retval := C.WrapAddVertexLayout(pointer.h, attribToC, countToC, typeGoToC) + retval := C.HarfangAddVertexLayout(pointer.h, attribToC, countToC, typeGoToC) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -4486,7 +4768,7 @@ func (pointer *VertexLayout) AddWithNormalized(attrib Attrib, count uint8, typeG countToC := C.uchar(count) typeGoToC := C.int32_t(typeGo) normalizedToC := C.bool(normalized) - retval := C.WrapAddVertexLayoutWithNormalized(pointer.h, attribToC, countToC, typeGoToC, normalizedToC) + retval := C.HarfangAddVertexLayoutWithNormalized(pointer.h, attribToC, countToC, typeGoToC, normalizedToC) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -4501,7 +4783,7 @@ func (pointer *VertexLayout) AddWithNormalizedAsInt(attrib Attrib, count uint8, typeGoToC := C.int32_t(typeGo) normalizedToC := C.bool(normalized) asintToC := C.bool(asint) - retval := C.WrapAddVertexLayoutWithNormalizedAsInt(pointer.h, attribToC, countToC, typeGoToC, normalizedToC, asintToC) + retval := C.HarfangAddVertexLayoutWithNormalizedAsInt(pointer.h, attribToC, countToC, typeGoToC, normalizedToC, asintToC) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -4512,7 +4794,7 @@ func (pointer *VertexLayout) AddWithNormalizedAsInt(attrib Attrib, count uint8, // Skip ... func (pointer *VertexLayout) Skip(size uint8) *VertexLayout { sizeToC := C.uchar(size) - retval := C.WrapSkipVertexLayout(pointer.h, sizeToC) + retval := C.HarfangSkipVertexLayout(pointer.h, sizeToC) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -4522,338 +4804,386 @@ func (pointer *VertexLayout) Skip(size uint8) *VertexLayout { // End ... func (pointer *VertexLayout) End() { - C.WrapEndVertexLayout(pointer.h) + C.HarfangEndVertexLayout(pointer.h) } // Has ... func (pointer *VertexLayout) Has(attrib Attrib) bool { attribToC := C.int32_t(attrib) - retval := C.WrapHasVertexLayout(pointer.h, attribToC) + retval := C.HarfangHasVertexLayout(pointer.h, attribToC) return bool(retval) } // GetOffset ... func (pointer *VertexLayout) GetOffset(attrib Attrib) uint16 { attribToC := C.int32_t(attrib) - retval := C.WrapGetOffsetVertexLayout(pointer.h, attribToC) + retval := C.HarfangGetOffsetVertexLayout(pointer.h, attribToC) return uint16(retval) } // GetStride ... func (pointer *VertexLayout) GetStride() uint16 { - retval := C.WrapGetStrideVertexLayout(pointer.h) + retval := C.HarfangGetStrideVertexLayout(pointer.h) return uint16(retval) } // GetSize ... func (pointer *VertexLayout) GetSize(count uint32) uint32 { countToC := C.uint32_t(count) - retval := C.WrapGetSizeVertexLayout(pointer.h, countToC) + retval := C.HarfangGetSizeVertexLayout(pointer.h, countToC) return uint32(retval) } // ProgramHandle Handle to a shader program. type ProgramHandle struct { - h C.WrapProgramHandle + h C.HarfangProgramHandle +} + +// NewProgramHandleFromCPointer ... +func NewProgramHandleFromCPointer(p unsafe.Pointer) *ProgramHandle { + retvalGO := &ProgramHandle{h: (C.HarfangProgramHandle)(p)} + return retvalGO } // Free ... func (pointer *ProgramHandle) Free() { - C.WrapProgramHandleFree(pointer.h) + C.HarfangProgramHandleFree(pointer.h) } // IsNil ... func (pointer *ProgramHandle) IsNil() bool { - return pointer.h == C.WrapProgramHandle(nil) + return pointer.h == C.HarfangProgramHandle(nil) } // TextureInfo ... type TextureInfo struct { - h C.WrapTextureInfo + h C.HarfangTextureInfo +} + +// NewTextureInfoFromCPointer ... +func NewTextureInfoFromCPointer(p unsafe.Pointer) *TextureInfo { + retvalGO := &TextureInfo{h: (C.HarfangTextureInfo)(p)} + return retvalGO } // GetFormat ... func (pointer *TextureInfo) GetFormat() TextureFormat { - v := C.WrapTextureInfoGetFormat(pointer.h) + v := C.HarfangTextureInfoGetFormat(pointer.h) return TextureFormat(v) } // SetFormat ... func (pointer *TextureInfo) SetFormat(v TextureFormat) { vToC := C.int32_t(v) - C.WrapTextureInfoSetFormat(pointer.h, vToC) + C.HarfangTextureInfoSetFormat(pointer.h, vToC) } // GetStorageSize ... func (pointer *TextureInfo) GetStorageSize() uint32 { - v := C.WrapTextureInfoGetStorageSize(pointer.h) + v := C.HarfangTextureInfoGetStorageSize(pointer.h) return uint32(v) } // SetStorageSize ... func (pointer *TextureInfo) SetStorageSize(v uint32) { vToC := C.uint32_t(v) - C.WrapTextureInfoSetStorageSize(pointer.h, vToC) + C.HarfangTextureInfoSetStorageSize(pointer.h, vToC) } // GetWidth ... func (pointer *TextureInfo) GetWidth() uint16 { - v := C.WrapTextureInfoGetWidth(pointer.h) + v := C.HarfangTextureInfoGetWidth(pointer.h) return uint16(v) } // SetWidth ... func (pointer *TextureInfo) SetWidth(v uint16) { vToC := C.ushort(v) - C.WrapTextureInfoSetWidth(pointer.h, vToC) + C.HarfangTextureInfoSetWidth(pointer.h, vToC) } // GetHeight ... func (pointer *TextureInfo) GetHeight() uint16 { - v := C.WrapTextureInfoGetHeight(pointer.h) + v := C.HarfangTextureInfoGetHeight(pointer.h) return uint16(v) } // SetHeight ... func (pointer *TextureInfo) SetHeight(v uint16) { vToC := C.ushort(v) - C.WrapTextureInfoSetHeight(pointer.h, vToC) + C.HarfangTextureInfoSetHeight(pointer.h, vToC) } // GetDepth ... func (pointer *TextureInfo) GetDepth() uint16 { - v := C.WrapTextureInfoGetDepth(pointer.h) + v := C.HarfangTextureInfoGetDepth(pointer.h) return uint16(v) } // SetDepth ... func (pointer *TextureInfo) SetDepth(v uint16) { vToC := C.ushort(v) - C.WrapTextureInfoSetDepth(pointer.h, vToC) + C.HarfangTextureInfoSetDepth(pointer.h, vToC) } // GetNumLayers ... func (pointer *TextureInfo) GetNumLayers() uint16 { - v := C.WrapTextureInfoGetNumLayers(pointer.h) + v := C.HarfangTextureInfoGetNumLayers(pointer.h) return uint16(v) } // SetNumLayers ... func (pointer *TextureInfo) SetNumLayers(v uint16) { vToC := C.ushort(v) - C.WrapTextureInfoSetNumLayers(pointer.h, vToC) + C.HarfangTextureInfoSetNumLayers(pointer.h, vToC) } // GetNumMips ... func (pointer *TextureInfo) GetNumMips() uint8 { - v := C.WrapTextureInfoGetNumMips(pointer.h) + v := C.HarfangTextureInfoGetNumMips(pointer.h) return uint8(v) } // SetNumMips ... func (pointer *TextureInfo) SetNumMips(v uint8) { vToC := C.uchar(v) - C.WrapTextureInfoSetNumMips(pointer.h, vToC) + C.HarfangTextureInfoSetNumMips(pointer.h, vToC) } // GetBitsPerPixel ... func (pointer *TextureInfo) GetBitsPerPixel() uint8 { - v := C.WrapTextureInfoGetBitsPerPixel(pointer.h) + v := C.HarfangTextureInfoGetBitsPerPixel(pointer.h) return uint8(v) } // SetBitsPerPixel ... func (pointer *TextureInfo) SetBitsPerPixel(v uint8) { vToC := C.uchar(v) - C.WrapTextureInfoSetBitsPerPixel(pointer.h, vToC) + C.HarfangTextureInfoSetBitsPerPixel(pointer.h, vToC) } // GetCubeMap ... func (pointer *TextureInfo) GetCubeMap() bool { - v := C.WrapTextureInfoGetCubeMap(pointer.h) + v := C.HarfangTextureInfoGetCubeMap(pointer.h) return bool(v) } // SetCubeMap ... func (pointer *TextureInfo) SetCubeMap(v bool) { vToC := C.bool(v) - C.WrapTextureInfoSetCubeMap(pointer.h, vToC) + C.HarfangTextureInfoSetCubeMap(pointer.h, vToC) } // NewTextureInfo ... func NewTextureInfo() *TextureInfo { - retval := C.WrapConstructorTextureInfo() + retval := C.HarfangConstructorTextureInfo() retvalGO := &TextureInfo{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureInfo) { - C.WrapTextureInfoFree(cleanval.h) + C.HarfangTextureInfoFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *TextureInfo) Free() { - C.WrapTextureInfoFree(pointer.h) + C.HarfangTextureInfoFree(pointer.h) } // IsNil ... func (pointer *TextureInfo) IsNil() bool { - return pointer.h == C.WrapTextureInfo(nil) + return pointer.h == C.HarfangTextureInfo(nil) } // ModelRef Reference to a [harfang.Model] inside a [harfang.PipelineResources] object. See [harfang.LoadModelFromFile], [harfang.LoadModelFromAssets] and [harfang.PipelineResources_AddModel]. type ModelRef struct { - h C.WrapModelRef + h C.HarfangModelRef +} + +// NewModelRefFromCPointer ... +func NewModelRefFromCPointer(p unsafe.Pointer) *ModelRef { + retvalGO := &ModelRef{h: (C.HarfangModelRef)(p)} + return retvalGO } // Free ... func (pointer *ModelRef) Free() { - C.WrapModelRefFree(pointer.h) + C.HarfangModelRefFree(pointer.h) } // IsNil ... func (pointer *ModelRef) IsNil() bool { - return pointer.h == C.WrapModelRef(nil) + return pointer.h == C.HarfangModelRef(nil) } // Eq ... func (pointer *ModelRef) Eq(m *ModelRef) bool { mToC := m.h - retval := C.WrapEqModelRef(pointer.h, mToC) + retval := C.HarfangEqModelRef(pointer.h, mToC) return bool(retval) } // Ne ... func (pointer *ModelRef) Ne(m *ModelRef) bool { mToC := m.h - retval := C.WrapNeModelRef(pointer.h, mToC) + retval := C.HarfangNeModelRef(pointer.h, mToC) return bool(retval) } // TextureRef ... type TextureRef struct { - h C.WrapTextureRef + h C.HarfangTextureRef +} + +// NewTextureRefFromCPointer ... +func NewTextureRefFromCPointer(p unsafe.Pointer) *TextureRef { + retvalGO := &TextureRef{h: (C.HarfangTextureRef)(p)} + return retvalGO } // Free ... func (pointer *TextureRef) Free() { - C.WrapTextureRefFree(pointer.h) + C.HarfangTextureRefFree(pointer.h) } // IsNil ... func (pointer *TextureRef) IsNil() bool { - return pointer.h == C.WrapTextureRef(nil) + return pointer.h == C.HarfangTextureRef(nil) } // Eq ... func (pointer *TextureRef) Eq(t *TextureRef) bool { tToC := t.h - retval := C.WrapEqTextureRef(pointer.h, tToC) + retval := C.HarfangEqTextureRef(pointer.h, tToC) return bool(retval) } // Ne ... func (pointer *TextureRef) Ne(t *TextureRef) bool { tToC := t.h - retval := C.WrapNeTextureRef(pointer.h, tToC) + retval := C.HarfangNeTextureRef(pointer.h, tToC) return bool(retval) } // MaterialRef Reference to a [harfang.Material] inside a [harfang.PipelineResources] object. type MaterialRef struct { - h C.WrapMaterialRef + h C.HarfangMaterialRef +} + +// NewMaterialRefFromCPointer ... +func NewMaterialRefFromCPointer(p unsafe.Pointer) *MaterialRef { + retvalGO := &MaterialRef{h: (C.HarfangMaterialRef)(p)} + return retvalGO } // Free ... func (pointer *MaterialRef) Free() { - C.WrapMaterialRefFree(pointer.h) + C.HarfangMaterialRefFree(pointer.h) } // IsNil ... func (pointer *MaterialRef) IsNil() bool { - return pointer.h == C.WrapMaterialRef(nil) + return pointer.h == C.HarfangMaterialRef(nil) } // Eq ... func (pointer *MaterialRef) Eq(m *MaterialRef) bool { mToC := m.h - retval := C.WrapEqMaterialRef(pointer.h, mToC) + retval := C.HarfangEqMaterialRef(pointer.h, mToC) return bool(retval) } // Ne ... func (pointer *MaterialRef) Ne(m *MaterialRef) bool { mToC := m.h - retval := C.WrapNeMaterialRef(pointer.h, mToC) + retval := C.HarfangNeMaterialRef(pointer.h, mToC) return bool(retval) } // PipelineProgramRef ... type PipelineProgramRef struct { - h C.WrapPipelineProgramRef + h C.HarfangPipelineProgramRef +} + +// NewPipelineProgramRefFromCPointer ... +func NewPipelineProgramRefFromCPointer(p unsafe.Pointer) *PipelineProgramRef { + retvalGO := &PipelineProgramRef{h: (C.HarfangPipelineProgramRef)(p)} + return retvalGO } // Free ... func (pointer *PipelineProgramRef) Free() { - C.WrapPipelineProgramRefFree(pointer.h) + C.HarfangPipelineProgramRefFree(pointer.h) } // IsNil ... func (pointer *PipelineProgramRef) IsNil() bool { - return pointer.h == C.WrapPipelineProgramRef(nil) + return pointer.h == C.HarfangPipelineProgramRef(nil) } // Eq ... func (pointer *PipelineProgramRef) Eq(p *PipelineProgramRef) bool { pToC := p.h - retval := C.WrapEqPipelineProgramRef(pointer.h, pToC) + retval := C.HarfangEqPipelineProgramRef(pointer.h, pToC) return bool(retval) } // Ne ... func (pointer *PipelineProgramRef) Ne(p *PipelineProgramRef) bool { pToC := p.h - retval := C.WrapNePipelineProgramRef(pointer.h, pToC) + retval := C.HarfangNePipelineProgramRef(pointer.h, pToC) return bool(retval) } // Texture ... type Texture struct { - h C.WrapTexture + h C.HarfangTexture +} + +// NewTextureFromCPointer ... +func NewTextureFromCPointer(p unsafe.Pointer) *Texture { + retvalGO := &Texture{h: (C.HarfangTexture)(p)} + return retvalGO } // NewTexture ... func NewTexture() *Texture { - retval := C.WrapConstructorTexture() + retval := C.HarfangConstructorTexture() retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Texture) Free() { - C.WrapTextureFree(pointer.h) + C.HarfangTextureFree(pointer.h) } // IsNil ... func (pointer *Texture) IsNil() bool { - return pointer.h == C.WrapTexture(nil) + return pointer.h == C.HarfangTexture(nil) } // UniformSetValue Command object to set a uniform value at draw time. type UniformSetValue struct { - h C.WrapUniformSetValue + h C.HarfangUniformSetValue +} + +// NewUniformSetValueFromCPointer ... +func NewUniformSetValueFromCPointer(p unsafe.Pointer) *UniformSetValue { + retvalGO := &UniformSetValue{h: (C.HarfangUniformSetValue)(p)} + return retvalGO } // Free ... func (pointer *UniformSetValue) Free() { - C.WrapUniformSetValueFree(pointer.h) + C.HarfangUniformSetValueFree(pointer.h) } // IsNil ... func (pointer *UniformSetValue) IsNil() bool { - return pointer.h == C.WrapUniformSetValue(nil) + return pointer.h == C.HarfangUniformSetValue(nil) } // GoSliceOfUniformSetValue ... @@ -4861,15 +5191,21 @@ type GoSliceOfUniformSetValue []*UniformSetValue // UniformSetValueList ... type UniformSetValueList struct { - h C.WrapUniformSetValueList + h C.HarfangUniformSetValueList +} + +// NewUniformSetValueListFromCPointer ... +func NewUniformSetValueListFromCPointer(p unsafe.Pointer) *UniformSetValueList { + retvalGO := &UniformSetValueList{h: (C.HarfangUniformSetValueList)(p)} + return retvalGO } // Get ... func (pointer *UniformSetValueList) Get(id int) *UniformSetValue { - v := C.WrapUniformSetValueListGetOperator(pointer.h, C.int(id)) + v := C.HarfangUniformSetValueListGetOperator(pointer.h, C.int(id)) vGO := &UniformSetValue{h: v} runtime.SetFinalizer(vGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return vGO } @@ -4877,98 +5213,104 @@ func (pointer *UniformSetValueList) Get(id int) *UniformSetValue { // Set ... func (pointer *UniformSetValueList) Set(id int, v *UniformSetValue) { vToC := v.h - C.WrapUniformSetValueListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangUniformSetValueListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *UniformSetValueList) Len() int32 { - return int32(C.WrapUniformSetValueListLenOperator(pointer.h)) + return int32(C.HarfangUniformSetValueListLenOperator(pointer.h)) } // NewUniformSetValueList ... func NewUniformSetValueList() *UniformSetValueList { - retval := C.WrapConstructorUniformSetValueList() + retval := C.HarfangConstructorUniformSetValueList() retvalGO := &UniformSetValueList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValueList) { - C.WrapUniformSetValueListFree(cleanval.h) + C.HarfangUniformSetValueListFree(cleanval.h) }) return retvalGO } // NewUniformSetValueListWithSequence ... func NewUniformSetValueListWithSequence(sequence GoSliceOfUniformSetValue) *UniformSetValueList { - var sequencePointer []C.WrapUniformSetValue + var sequencePointer []C.HarfangUniformSetValue for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorUniformSetValueListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorUniformSetValueListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &UniformSetValueList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValueList) { - C.WrapUniformSetValueListFree(cleanval.h) + C.HarfangUniformSetValueListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *UniformSetValueList) Free() { - C.WrapUniformSetValueListFree(pointer.h) + C.HarfangUniformSetValueListFree(pointer.h) } // IsNil ... func (pointer *UniformSetValueList) IsNil() bool { - return pointer.h == C.WrapUniformSetValueList(nil) + return pointer.h == C.HarfangUniformSetValueList(nil) } // Clear ... func (pointer *UniformSetValueList) Clear() { - C.WrapClearUniformSetValueList(pointer.h) + C.HarfangClearUniformSetValueList(pointer.h) } // Reserve ... func (pointer *UniformSetValueList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveUniformSetValueList(pointer.h, sizeToC) + C.HarfangReserveUniformSetValueList(pointer.h, sizeToC) } // PushBack ... func (pointer *UniformSetValueList) PushBack(v *UniformSetValue) { vToC := v.h - C.WrapPushBackUniformSetValueList(pointer.h, vToC) + C.HarfangPushBackUniformSetValueList(pointer.h, vToC) } // Size ... func (pointer *UniformSetValueList) Size() int32 { - retval := C.WrapSizeUniformSetValueList(pointer.h) + retval := C.HarfangSizeUniformSetValueList(pointer.h) return int32(retval) } // At ... func (pointer *UniformSetValueList) At(idx int32) *UniformSetValue { idxToC := C.size_t(idx) - retval := C.WrapAtUniformSetValueList(pointer.h, idxToC) + retval := C.HarfangAtUniformSetValueList(pointer.h, idxToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } // UniformSetTexture Command object to set a uniform texture at draw time. type UniformSetTexture struct { - h C.WrapUniformSetTexture + h C.HarfangUniformSetTexture +} + +// NewUniformSetTextureFromCPointer ... +func NewUniformSetTextureFromCPointer(p unsafe.Pointer) *UniformSetTexture { + retvalGO := &UniformSetTexture{h: (C.HarfangUniformSetTexture)(p)} + return retvalGO } // Free ... func (pointer *UniformSetTexture) Free() { - C.WrapUniformSetTextureFree(pointer.h) + C.HarfangUniformSetTextureFree(pointer.h) } // IsNil ... func (pointer *UniformSetTexture) IsNil() bool { - return pointer.h == C.WrapUniformSetTexture(nil) + return pointer.h == C.HarfangUniformSetTexture(nil) } // GoSliceOfUniformSetTexture ... @@ -4976,15 +5318,21 @@ type GoSliceOfUniformSetTexture []*UniformSetTexture // UniformSetTextureList ... type UniformSetTextureList struct { - h C.WrapUniformSetTextureList + h C.HarfangUniformSetTextureList +} + +// NewUniformSetTextureListFromCPointer ... +func NewUniformSetTextureListFromCPointer(p unsafe.Pointer) *UniformSetTextureList { + retvalGO := &UniformSetTextureList{h: (C.HarfangUniformSetTextureList)(p)} + return retvalGO } // Get ... func (pointer *UniformSetTextureList) Get(id int) *UniformSetTexture { - v := C.WrapUniformSetTextureListGetOperator(pointer.h, C.int(id)) + v := C.HarfangUniformSetTextureListGetOperator(pointer.h, C.int(id)) vGO := &UniformSetTexture{h: v} runtime.SetFinalizer(vGO, func(cleanval *UniformSetTexture) { - C.WrapUniformSetTextureFree(cleanval.h) + C.HarfangUniformSetTextureFree(cleanval.h) }) return vGO } @@ -4992,108 +5340,120 @@ func (pointer *UniformSetTextureList) Get(id int) *UniformSetTexture { // Set ... func (pointer *UniformSetTextureList) Set(id int, v *UniformSetTexture) { vToC := v.h - C.WrapUniformSetTextureListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangUniformSetTextureListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *UniformSetTextureList) Len() int32 { - return int32(C.WrapUniformSetTextureListLenOperator(pointer.h)) + return int32(C.HarfangUniformSetTextureListLenOperator(pointer.h)) } // NewUniformSetTextureList ... func NewUniformSetTextureList() *UniformSetTextureList { - retval := C.WrapConstructorUniformSetTextureList() + retval := C.HarfangConstructorUniformSetTextureList() retvalGO := &UniformSetTextureList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetTextureList) { - C.WrapUniformSetTextureListFree(cleanval.h) + C.HarfangUniformSetTextureListFree(cleanval.h) }) return retvalGO } // NewUniformSetTextureListWithSequence ... func NewUniformSetTextureListWithSequence(sequence GoSliceOfUniformSetTexture) *UniformSetTextureList { - var sequencePointer []C.WrapUniformSetTexture + var sequencePointer []C.HarfangUniformSetTexture for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorUniformSetTextureListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorUniformSetTextureListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &UniformSetTextureList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetTextureList) { - C.WrapUniformSetTextureListFree(cleanval.h) + C.HarfangUniformSetTextureListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *UniformSetTextureList) Free() { - C.WrapUniformSetTextureListFree(pointer.h) + C.HarfangUniformSetTextureListFree(pointer.h) } // IsNil ... func (pointer *UniformSetTextureList) IsNil() bool { - return pointer.h == C.WrapUniformSetTextureList(nil) + return pointer.h == C.HarfangUniformSetTextureList(nil) } // Clear ... func (pointer *UniformSetTextureList) Clear() { - C.WrapClearUniformSetTextureList(pointer.h) + C.HarfangClearUniformSetTextureList(pointer.h) } // Reserve ... func (pointer *UniformSetTextureList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveUniformSetTextureList(pointer.h, sizeToC) + C.HarfangReserveUniformSetTextureList(pointer.h, sizeToC) } // PushBack ... func (pointer *UniformSetTextureList) PushBack(v *UniformSetTexture) { vToC := v.h - C.WrapPushBackUniformSetTextureList(pointer.h, vToC) + C.HarfangPushBackUniformSetTextureList(pointer.h, vToC) } // Size ... func (pointer *UniformSetTextureList) Size() int32 { - retval := C.WrapSizeUniformSetTextureList(pointer.h) + retval := C.HarfangSizeUniformSetTextureList(pointer.h) return int32(retval) } // At ... func (pointer *UniformSetTextureList) At(idx int32) *UniformSetTexture { idxToC := C.size_t(idx) - retval := C.WrapAtUniformSetTextureList(pointer.h, idxToC) + retval := C.HarfangAtUniformSetTextureList(pointer.h, idxToC) retvalGO := &UniformSetTexture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetTexture) { - C.WrapUniformSetTextureFree(cleanval.h) + C.HarfangUniformSetTextureFree(cleanval.h) }) return retvalGO } // PipelineProgram ... type PipelineProgram struct { - h C.WrapPipelineProgram + h C.HarfangPipelineProgram +} + +// NewPipelineProgramFromCPointer ... +func NewPipelineProgramFromCPointer(p unsafe.Pointer) *PipelineProgram { + retvalGO := &PipelineProgram{h: (C.HarfangPipelineProgram)(p)} + return retvalGO } // Free ... func (pointer *PipelineProgram) Free() { - C.WrapPipelineProgramFree(pointer.h) + C.HarfangPipelineProgramFree(pointer.h) } // IsNil ... func (pointer *PipelineProgram) IsNil() bool { - return pointer.h == C.WrapPipelineProgram(nil) + return pointer.h == C.HarfangPipelineProgram(nil) } // ViewState Everything required to define an observer inside a 3d world. This object holds the projection matrix and its associated frustum as well as the transformation of the observer. The world content is transformed by the observer view matrix before being projected to screen using its projection matrix. type ViewState struct { - h C.WrapViewState + h C.HarfangViewState +} + +// NewViewStateFromCPointer ... +func NewViewStateFromCPointer(p unsafe.Pointer) *ViewState { + retvalGO := &ViewState{h: (C.HarfangViewState)(p)} + return retvalGO } // GetFrustum ... func (pointer *ViewState) GetFrustum() *Frustum { - v := C.WrapViewStateGetFrustum(pointer.h) + v := C.HarfangViewStateGetFrustum(pointer.h) vGO := &Frustum{h: v} return vGO } @@ -5101,12 +5461,12 @@ func (pointer *ViewState) GetFrustum() *Frustum { // SetFrustum ... func (pointer *ViewState) SetFrustum(v *Frustum) { vToC := v.h - C.WrapViewStateSetFrustum(pointer.h, vToC) + C.HarfangViewStateSetFrustum(pointer.h, vToC) } // GetProj ... func (pointer *ViewState) GetProj() *Mat44 { - v := C.WrapViewStateGetProj(pointer.h) + v := C.HarfangViewStateGetProj(pointer.h) vGO := &Mat44{h: v} return vGO } @@ -5114,12 +5474,12 @@ func (pointer *ViewState) GetProj() *Mat44 { // SetProj ... func (pointer *ViewState) SetProj(v *Mat44) { vToC := v.h - C.WrapViewStateSetProj(pointer.h, vToC) + C.HarfangViewStateSetProj(pointer.h, vToC) } // GetView ... func (pointer *ViewState) GetView() *Mat4 { - v := C.WrapViewStateGetView(pointer.h) + v := C.HarfangViewStateGetView(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -5127,52 +5487,58 @@ func (pointer *ViewState) GetView() *Mat4 { // SetView ... func (pointer *ViewState) SetView(v *Mat4) { vToC := v.h - C.WrapViewStateSetView(pointer.h, vToC) + C.HarfangViewStateSetView(pointer.h, vToC) } // NewViewState Everything required to define an observer inside a 3d world. This object holds the projection matrix and its associated frustum as well as the transformation of the observer. The world content is transformed by the observer view matrix before being projected to screen using its projection matrix. func NewViewState() *ViewState { - retval := C.WrapConstructorViewState() + retval := C.HarfangConstructorViewState() retvalGO := &ViewState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ViewState) { - C.WrapViewStateFree(cleanval.h) + C.HarfangViewStateFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ViewState) Free() { - C.WrapViewStateFree(pointer.h) + C.HarfangViewStateFree(pointer.h) } // IsNil ... func (pointer *ViewState) IsNil() bool { - return pointer.h == C.WrapViewState(nil) + return pointer.h == C.HarfangViewState(nil) } // Material High-level description of visual aspects of a surface. A material is comprised of a [harfang.PipelineProgramRef], per-uniform value or texture, and a [harfang.RenderState]. See [harfang.man.ForwardPipeline] and [harfang.man.PipelineShader]. type Material struct { - h C.WrapMaterial + h C.HarfangMaterial +} + +// NewMaterialFromCPointer ... +func NewMaterialFromCPointer(p unsafe.Pointer) *Material { + retvalGO := &Material{h: (C.HarfangMaterial)(p)} + return retvalGO } // NewMaterial High-level description of visual aspects of a surface. A material is comprised of a [harfang.PipelineProgramRef], per-uniform value or texture, and a [harfang.RenderState]. See [harfang.man.ForwardPipeline] and [harfang.man.PipelineShader]. func NewMaterial() *Material { - retval := C.WrapConstructorMaterial() + retval := C.HarfangConstructorMaterial() retvalGO := &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Material) Free() { - C.WrapMaterialFree(pointer.h) + C.HarfangMaterialFree(pointer.h) } // IsNil ... func (pointer *Material) IsNil() bool { - return pointer.h == C.WrapMaterial(nil) + return pointer.h == C.HarfangMaterial(nil) } // GoSliceOfMaterial ... @@ -5180,15 +5546,21 @@ type GoSliceOfMaterial []*Material // MaterialList ... type MaterialList struct { - h C.WrapMaterialList + h C.HarfangMaterialList +} + +// NewMaterialListFromCPointer ... +func NewMaterialListFromCPointer(p unsafe.Pointer) *MaterialList { + retvalGO := &MaterialList{h: (C.HarfangMaterialList)(p)} + return retvalGO } // Get ... func (pointer *MaterialList) Get(id int) *Material { - v := C.WrapMaterialListGetOperator(pointer.h, C.int(id)) + v := C.HarfangMaterialListGetOperator(pointer.h, C.int(id)) vGO := &Material{h: v} runtime.SetFinalizer(vGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return vGO } @@ -5196,138 +5568,156 @@ func (pointer *MaterialList) Get(id int) *Material { // Set ... func (pointer *MaterialList) Set(id int, v *Material) { vToC := v.h - C.WrapMaterialListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangMaterialListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *MaterialList) Len() int32 { - return int32(C.WrapMaterialListLenOperator(pointer.h)) + return int32(C.HarfangMaterialListLenOperator(pointer.h)) } // NewMaterialList ... func NewMaterialList() *MaterialList { - retval := C.WrapConstructorMaterialList() + retval := C.HarfangConstructorMaterialList() retvalGO := &MaterialList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MaterialList) { - C.WrapMaterialListFree(cleanval.h) + C.HarfangMaterialListFree(cleanval.h) }) return retvalGO } // NewMaterialListWithSequence ... func NewMaterialListWithSequence(sequence GoSliceOfMaterial) *MaterialList { - var sequencePointer []C.WrapMaterial + var sequencePointer []C.HarfangMaterial for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorMaterialListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorMaterialListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &MaterialList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MaterialList) { - C.WrapMaterialListFree(cleanval.h) + C.HarfangMaterialListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *MaterialList) Free() { - C.WrapMaterialListFree(pointer.h) + C.HarfangMaterialListFree(pointer.h) } // IsNil ... func (pointer *MaterialList) IsNil() bool { - return pointer.h == C.WrapMaterialList(nil) + return pointer.h == C.HarfangMaterialList(nil) } // Clear ... func (pointer *MaterialList) Clear() { - C.WrapClearMaterialList(pointer.h) + C.HarfangClearMaterialList(pointer.h) } // Reserve ... func (pointer *MaterialList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveMaterialList(pointer.h, sizeToC) + C.HarfangReserveMaterialList(pointer.h, sizeToC) } // PushBack ... func (pointer *MaterialList) PushBack(v *Material) { vToC := v.h - C.WrapPushBackMaterialList(pointer.h, vToC) + C.HarfangPushBackMaterialList(pointer.h, vToC) } // Size ... func (pointer *MaterialList) Size() int32 { - retval := C.WrapSizeMaterialList(pointer.h) + retval := C.HarfangSizeMaterialList(pointer.h) return int32(retval) } // At ... func (pointer *MaterialList) At(idx int32) *Material { idxToC := C.size_t(idx) - retval := C.WrapAtMaterialList(pointer.h, idxToC) + retval := C.HarfangAtMaterialList(pointer.h, idxToC) retvalGO := &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return retvalGO } // RenderState ... type RenderState struct { - h C.WrapRenderState + h C.HarfangRenderState +} + +// NewRenderStateFromCPointer ... +func NewRenderStateFromCPointer(p unsafe.Pointer) *RenderState { + retvalGO := &RenderState{h: (C.HarfangRenderState)(p)} + return retvalGO } // Free ... func (pointer *RenderState) Free() { - C.WrapRenderStateFree(pointer.h) + C.HarfangRenderStateFree(pointer.h) } // IsNil ... func (pointer *RenderState) IsNil() bool { - return pointer.h == C.WrapRenderState(nil) + return pointer.h == C.HarfangRenderState(nil) } // Model Runtime version of a [harfang.Geometry]. A model can be drawn to screen by calling [harfang.DrawModel] or by assigning it to the [harfang.Object] component of a node. To programmatically create a model see [harfang.ModelBuilder]. type Model struct { - h C.WrapModel + h C.HarfangModel +} + +// NewModelFromCPointer ... +func NewModelFromCPointer(p unsafe.Pointer) *Model { + retvalGO := &Model{h: (C.HarfangModel)(p)} + return retvalGO } // Free ... func (pointer *Model) Free() { - C.WrapModelFree(pointer.h) + C.HarfangModelFree(pointer.h) } // IsNil ... func (pointer *Model) IsNil() bool { - return pointer.h == C.WrapModel(nil) + return pointer.h == C.HarfangModel(nil) } // PipelineResources ... type PipelineResources struct { - h C.WrapPipelineResources + h C.HarfangPipelineResources +} + +// NewPipelineResourcesFromCPointer ... +func NewPipelineResourcesFromCPointer(p unsafe.Pointer) *PipelineResources { + retvalGO := &PipelineResources{h: (C.HarfangPipelineResources)(p)} + return retvalGO } // NewPipelineResources ... func NewPipelineResources() *PipelineResources { - retval := C.WrapConstructorPipelineResources() + retval := C.HarfangConstructorPipelineResources() retvalGO := &PipelineResources{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineResources) { - C.WrapPipelineResourcesFree(cleanval.h) + C.HarfangPipelineResourcesFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *PipelineResources) Free() { - C.WrapPipelineResourcesFree(pointer.h) + C.HarfangPipelineResourcesFree(pointer.h) } // IsNil ... func (pointer *PipelineResources) IsNil() bool { - return pointer.h == C.WrapPipelineResources(nil) + return pointer.h == C.HarfangPipelineResources(nil) } // AddTexture ... @@ -5335,10 +5725,10 @@ func (pointer *PipelineResources) AddTexture(name string, tex *Texture) *Texture nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() texToC := tex.h - retval := C.WrapAddTexturePipelineResources(pointer.h, nameToC, texToC) + retval := C.HarfangAddTexturePipelineResources(pointer.h, nameToC, texToC) retvalGO := &TextureRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureRef) { - C.WrapTextureRefFree(cleanval.h) + C.HarfangTextureRefFree(cleanval.h) }) return retvalGO } @@ -5348,10 +5738,10 @@ func (pointer *PipelineResources) AddModel(name string, mdl *Model) *ModelRef { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() mdlToC := mdl.h - retval := C.WrapAddModelPipelineResources(pointer.h, nameToC, mdlToC) + retval := C.HarfangAddModelPipelineResources(pointer.h, nameToC, mdlToC) retvalGO := &ModelRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ModelRef) { - C.WrapModelRefFree(cleanval.h) + C.HarfangModelRefFree(cleanval.h) }) return retvalGO } @@ -5361,10 +5751,10 @@ func (pointer *PipelineResources) AddProgram(name string, prg *PipelineProgram) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() prgToC := prg.h - retval := C.WrapAddProgramPipelineResources(pointer.h, nameToC, prgToC) + retval := C.HarfangAddProgramPipelineResources(pointer.h, nameToC, prgToC) retvalGO := &PipelineProgramRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgramRef) { - C.WrapPipelineProgramRefFree(cleanval.h) + C.HarfangPipelineProgramRefFree(cleanval.h) }) return retvalGO } @@ -5373,10 +5763,10 @@ func (pointer *PipelineResources) AddProgram(name string, prg *PipelineProgram) func (pointer *PipelineResources) HasTexture(name string) *TextureRef { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapHasTexturePipelineResources(pointer.h, nameToC) + retval := C.HarfangHasTexturePipelineResources(pointer.h, nameToC) retvalGO := &TextureRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureRef) { - C.WrapTextureRefFree(cleanval.h) + C.HarfangTextureRefFree(cleanval.h) }) return retvalGO } @@ -5385,10 +5775,10 @@ func (pointer *PipelineResources) HasTexture(name string) *TextureRef { func (pointer *PipelineResources) HasModel(name string) *ModelRef { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapHasModelPipelineResources(pointer.h, nameToC) + retval := C.HarfangHasModelPipelineResources(pointer.h, nameToC) retvalGO := &ModelRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ModelRef) { - C.WrapModelRefFree(cleanval.h) + C.HarfangModelRefFree(cleanval.h) }) return retvalGO } @@ -5397,10 +5787,10 @@ func (pointer *PipelineResources) HasModel(name string) *ModelRef { func (pointer *PipelineResources) HasProgram(name string) *PipelineProgramRef { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapHasProgramPipelineResources(pointer.h, nameToC) + retval := C.HarfangHasProgramPipelineResources(pointer.h, nameToC) retvalGO := &PipelineProgramRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgramRef) { - C.WrapPipelineProgramRefFree(cleanval.h) + C.HarfangPipelineProgramRefFree(cleanval.h) }) return retvalGO } @@ -5409,27 +5799,27 @@ func (pointer *PipelineResources) HasProgram(name string) *PipelineProgramRef { func (pointer *PipelineResources) UpdateTexture(ref *TextureRef, tex *Texture) { refToC := ref.h texToC := tex.h - C.WrapUpdateTexturePipelineResources(pointer.h, refToC, texToC) + C.HarfangUpdateTexturePipelineResources(pointer.h, refToC, texToC) } // UpdateModel ... func (pointer *PipelineResources) UpdateModel(ref *ModelRef, mdl *Model) { refToC := ref.h mdlToC := mdl.h - C.WrapUpdateModelPipelineResources(pointer.h, refToC, mdlToC) + C.HarfangUpdateModelPipelineResources(pointer.h, refToC, mdlToC) } // UpdateProgram ... func (pointer *PipelineResources) UpdateProgram(ref *PipelineProgramRef, prg *PipelineProgram) { refToC := ref.h prgToC := prg.h - C.WrapUpdateProgramPipelineResources(pointer.h, refToC, prgToC) + C.HarfangUpdateProgramPipelineResources(pointer.h, refToC, prgToC) } // GetTexture ... func (pointer *PipelineResources) GetTexture(ref *TextureRef) *Texture { refToC := ref.h - retval := C.WrapGetTexturePipelineResources(pointer.h, refToC) + retval := C.HarfangGetTexturePipelineResources(pointer.h, refToC) var retvalGO *Texture if retval != nil { retvalGO = &Texture{h: retval} @@ -5440,7 +5830,7 @@ func (pointer *PipelineResources) GetTexture(ref *TextureRef) *Texture { // GetModel ... func (pointer *PipelineResources) GetModel(ref *ModelRef) *Model { refToC := ref.h - retval := C.WrapGetModelPipelineResources(pointer.h, refToC) + retval := C.HarfangGetModelPipelineResources(pointer.h, refToC) var retvalGO *Model if retval != nil { retvalGO = &Model{h: retval} @@ -5451,7 +5841,7 @@ func (pointer *PipelineResources) GetModel(ref *ModelRef) *Model { // GetProgram ... func (pointer *PipelineResources) GetProgram(ref *PipelineProgramRef) *PipelineProgram { refToC := ref.h - retval := C.WrapGetProgramPipelineResources(pointer.h, refToC) + retval := C.HarfangGetProgramPipelineResources(pointer.h, refToC) var retvalGO *PipelineProgram if retval != nil { retvalGO = &PipelineProgram{h: retval} @@ -5462,83 +5852,89 @@ func (pointer *PipelineResources) GetProgram(ref *PipelineProgramRef) *PipelineP // GetTextureName ... func (pointer *PipelineResources) GetTextureName(ref *TextureRef) string { refToC := ref.h - retval := C.WrapGetTextureNamePipelineResources(pointer.h, refToC) + retval := C.HarfangGetTextureNamePipelineResources(pointer.h, refToC) return C.GoString(retval) } // GetModelName ... func (pointer *PipelineResources) GetModelName(ref *ModelRef) string { refToC := ref.h - retval := C.WrapGetModelNamePipelineResources(pointer.h, refToC) + retval := C.HarfangGetModelNamePipelineResources(pointer.h, refToC) return C.GoString(retval) } // GetProgramName ... func (pointer *PipelineResources) GetProgramName(ref *PipelineProgramRef) string { refToC := ref.h - retval := C.WrapGetProgramNamePipelineResources(pointer.h, refToC) + retval := C.HarfangGetProgramNamePipelineResources(pointer.h, refToC) return C.GoString(retval) } // DestroyAllTextures ... func (pointer *PipelineResources) DestroyAllTextures() { - C.WrapDestroyAllTexturesPipelineResources(pointer.h) + C.HarfangDestroyAllTexturesPipelineResources(pointer.h) } // DestroyAllModels ... func (pointer *PipelineResources) DestroyAllModels() { - C.WrapDestroyAllModelsPipelineResources(pointer.h) + C.HarfangDestroyAllModelsPipelineResources(pointer.h) } // DestroyAllPrograms ... func (pointer *PipelineResources) DestroyAllPrograms() { - C.WrapDestroyAllProgramsPipelineResources(pointer.h) + C.HarfangDestroyAllProgramsPipelineResources(pointer.h) } // DestroyTexture ... func (pointer *PipelineResources) DestroyTexture(ref *TextureRef) { refToC := ref.h - C.WrapDestroyTexturePipelineResources(pointer.h, refToC) + C.HarfangDestroyTexturePipelineResources(pointer.h, refToC) } // DestroyModel ... func (pointer *PipelineResources) DestroyModel(ref *ModelRef) { refToC := ref.h - C.WrapDestroyModelPipelineResources(pointer.h, refToC) + C.HarfangDestroyModelPipelineResources(pointer.h, refToC) } // DestroyProgram ... func (pointer *PipelineResources) DestroyProgram(ref *PipelineProgramRef) { refToC := ref.h - C.WrapDestroyProgramPipelineResources(pointer.h, refToC) + C.HarfangDestroyProgramPipelineResources(pointer.h, refToC) } // HasTextureInfo ... func (pointer *PipelineResources) HasTextureInfo(ref *TextureRef) bool { refToC := ref.h - retval := C.WrapHasTextureInfoPipelineResources(pointer.h, refToC) + retval := C.HarfangHasTextureInfoPipelineResources(pointer.h, refToC) return bool(retval) } // GetTextureInfo ... func (pointer *PipelineResources) GetTextureInfo(ref *TextureRef) *TextureInfo { refToC := ref.h - retval := C.WrapGetTextureInfoPipelineResources(pointer.h, refToC) + retval := C.HarfangGetTextureInfoPipelineResources(pointer.h, refToC) retvalGO := &TextureInfo{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureInfo) { - C.WrapTextureInfoFree(cleanval.h) + C.HarfangTextureInfoFree(cleanval.h) }) return retvalGO } // FrameBuffer ... type FrameBuffer struct { - h C.WrapFrameBuffer + h C.HarfangFrameBuffer +} + +// NewFrameBufferFromCPointer ... +func NewFrameBufferFromCPointer(p unsafe.Pointer) *FrameBuffer { + retvalGO := &FrameBuffer{h: (C.HarfangFrameBuffer)(p)} + return retvalGO } // GetHandle ... func (pointer *FrameBuffer) GetHandle() *FrameBufferHandle { - v := C.WrapFrameBufferGetHandle(pointer.h) + v := C.HarfangFrameBufferGetHandle(pointer.h) vGO := &FrameBufferHandle{h: v} return vGO } @@ -5546,49 +5942,55 @@ func (pointer *FrameBuffer) GetHandle() *FrameBufferHandle { // SetHandle ... func (pointer *FrameBuffer) SetHandle(v *FrameBufferHandle) { vToC := v.h - C.WrapFrameBufferSetHandle(pointer.h, vToC) + C.HarfangFrameBufferSetHandle(pointer.h, vToC) } // Free ... func (pointer *FrameBuffer) Free() { - C.WrapFrameBufferFree(pointer.h) + C.HarfangFrameBufferFree(pointer.h) } // IsNil ... func (pointer *FrameBuffer) IsNil() bool { - return pointer.h == C.WrapFrameBuffer(nil) + return pointer.h == C.HarfangFrameBuffer(nil) } // Vertices Helper class to generate vertex buffers for drawing primitives. type Vertices struct { - h C.WrapVertices + h C.HarfangVertices +} + +// NewVerticesFromCPointer ... +func NewVerticesFromCPointer(p unsafe.Pointer) *Vertices { + retvalGO := &Vertices{h: (C.HarfangVertices)(p)} + return retvalGO } // NewVertices Helper class to generate vertex buffers for drawing primitives. func NewVertices(decl *VertexLayout, count int32) *Vertices { declToC := decl.h countToC := C.size_t(count) - retval := C.WrapConstructorVertices(declToC, countToC) + retval := C.HarfangConstructorVertices(declToC, countToC) retvalGO := &Vertices{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertices) { - C.WrapVerticesFree(cleanval.h) + C.HarfangVerticesFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vertices) Free() { - C.WrapVerticesFree(pointer.h) + C.HarfangVerticesFree(pointer.h) } // IsNil ... func (pointer *Vertices) IsNil() bool { - return pointer.h == C.WrapVertices(nil) + return pointer.h == C.HarfangVertices(nil) } // GetDecl ... func (pointer *Vertices) GetDecl() *VertexLayout { - retval := C.WrapGetDeclVertices(pointer.h) + retval := C.HarfangGetDeclVertices(pointer.h) var retvalGO *VertexLayout if retval != nil { retvalGO = &VertexLayout{h: retval} @@ -5599,7 +6001,7 @@ func (pointer *Vertices) GetDecl() *VertexLayout { // Begin ... func (pointer *Vertices) Begin(vertexindex int32) *Vertices { vertexindexToC := C.size_t(vertexindex) - retval := C.WrapBeginVertices(pointer.h, vertexindexToC) + retval := C.HarfangBeginVertices(pointer.h, vertexindexToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5610,7 +6012,7 @@ func (pointer *Vertices) Begin(vertexindex int32) *Vertices { // SetPos ... func (pointer *Vertices) SetPos(pos *Vec3) *Vertices { posToC := pos.h - retval := C.WrapSetPosVertices(pointer.h, posToC) + retval := C.HarfangSetPosVertices(pointer.h, posToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5621,7 +6023,7 @@ func (pointer *Vertices) SetPos(pos *Vec3) *Vertices { // SetNormal ... func (pointer *Vertices) SetNormal(normal *Vec3) *Vertices { normalToC := normal.h - retval := C.WrapSetNormalVertices(pointer.h, normalToC) + retval := C.HarfangSetNormalVertices(pointer.h, normalToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5632,7 +6034,7 @@ func (pointer *Vertices) SetNormal(normal *Vec3) *Vertices { // SetTangent ... func (pointer *Vertices) SetTangent(tangent *Vec3) *Vertices { tangentToC := tangent.h - retval := C.WrapSetTangentVertices(pointer.h, tangentToC) + retval := C.HarfangSetTangentVertices(pointer.h, tangentToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5643,7 +6045,7 @@ func (pointer *Vertices) SetTangent(tangent *Vec3) *Vertices { // SetBinormal ... func (pointer *Vertices) SetBinormal(binormal *Vec3) *Vertices { binormalToC := binormal.h - retval := C.WrapSetBinormalVertices(pointer.h, binormalToC) + retval := C.HarfangSetBinormalVertices(pointer.h, binormalToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5654,7 +6056,7 @@ func (pointer *Vertices) SetBinormal(binormal *Vec3) *Vertices { // SetTexCoord0 ... func (pointer *Vertices) SetTexCoord0(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord0Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord0Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5665,7 +6067,7 @@ func (pointer *Vertices) SetTexCoord0(uv *Vec2) *Vertices { // SetTexCoord1 ... func (pointer *Vertices) SetTexCoord1(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord1Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord1Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5676,7 +6078,7 @@ func (pointer *Vertices) SetTexCoord1(uv *Vec2) *Vertices { // SetTexCoord2 ... func (pointer *Vertices) SetTexCoord2(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord2Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord2Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5687,7 +6089,7 @@ func (pointer *Vertices) SetTexCoord2(uv *Vec2) *Vertices { // SetTexCoord3 ... func (pointer *Vertices) SetTexCoord3(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord3Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord3Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5698,7 +6100,7 @@ func (pointer *Vertices) SetTexCoord3(uv *Vec2) *Vertices { // SetTexCoord4 ... func (pointer *Vertices) SetTexCoord4(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord4Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord4Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5709,7 +6111,7 @@ func (pointer *Vertices) SetTexCoord4(uv *Vec2) *Vertices { // SetTexCoord5 ... func (pointer *Vertices) SetTexCoord5(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord5Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord5Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5720,7 +6122,7 @@ func (pointer *Vertices) SetTexCoord5(uv *Vec2) *Vertices { // SetTexCoord6 ... func (pointer *Vertices) SetTexCoord6(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord6Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord6Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5731,7 +6133,7 @@ func (pointer *Vertices) SetTexCoord6(uv *Vec2) *Vertices { // SetTexCoord7 ... func (pointer *Vertices) SetTexCoord7(uv *Vec2) *Vertices { uvToC := uv.h - retval := C.WrapSetTexCoord7Vertices(pointer.h, uvToC) + retval := C.HarfangSetTexCoord7Vertices(pointer.h, uvToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5742,7 +6144,7 @@ func (pointer *Vertices) SetTexCoord7(uv *Vec2) *Vertices { // SetColor0 ... func (pointer *Vertices) SetColor0(color *Color) *Vertices { colorToC := color.h - retval := C.WrapSetColor0Vertices(pointer.h, colorToC) + retval := C.HarfangSetColor0Vertices(pointer.h, colorToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5753,7 +6155,7 @@ func (pointer *Vertices) SetColor0(color *Color) *Vertices { // SetColor1 ... func (pointer *Vertices) SetColor1(color *Color) *Vertices { colorToC := color.h - retval := C.WrapSetColor1Vertices(pointer.h, colorToC) + retval := C.HarfangSetColor1Vertices(pointer.h, colorToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5764,7 +6166,7 @@ func (pointer *Vertices) SetColor1(color *Color) *Vertices { // SetColor2 ... func (pointer *Vertices) SetColor2(color *Color) *Vertices { colorToC := color.h - retval := C.WrapSetColor2Vertices(pointer.h, colorToC) + retval := C.HarfangSetColor2Vertices(pointer.h, colorToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5775,7 +6177,7 @@ func (pointer *Vertices) SetColor2(color *Color) *Vertices { // SetColor3 ... func (pointer *Vertices) SetColor3(color *Color) *Vertices { colorToC := color.h - retval := C.WrapSetColor3Vertices(pointer.h, colorToC) + retval := C.HarfangSetColor3Vertices(pointer.h, colorToC) var retvalGO *Vertices if retval != nil { retvalGO = &Vertices{h: retval} @@ -5785,35 +6187,35 @@ func (pointer *Vertices) SetColor3(color *Color) *Vertices { // End ... func (pointer *Vertices) End() { - C.WrapEndVertices(pointer.h) + C.HarfangEndVertices(pointer.h) } // EndWithValidate ... func (pointer *Vertices) EndWithValidate(validate bool) { validateToC := C.bool(validate) - C.WrapEndVerticesWithValidate(pointer.h, validateToC) + C.HarfangEndVerticesWithValidate(pointer.h, validateToC) } // Clear ... func (pointer *Vertices) Clear() { - C.WrapClearVertices(pointer.h) + C.HarfangClearVertices(pointer.h) } // Reserve ... func (pointer *Vertices) Reserve(count int32) { countToC := C.size_t(count) - C.WrapReserveVertices(pointer.h, countToC) + C.HarfangReserveVertices(pointer.h, countToC) } // Resize ... func (pointer *Vertices) Resize(count int32) { countToC := C.size_t(count) - C.WrapResizeVertices(pointer.h, countToC) + C.HarfangResizeVertices(pointer.h, countToC) } // GetData ... func (pointer *Vertices) GetData() *VoidPointer { - retval := C.WrapGetDataVertices(pointer.h) + retval := C.HarfangGetDataVertices(pointer.h) var retvalGO *VoidPointer if retval != nil { retvalGO = &VoidPointer{h: retval} @@ -5823,45 +6225,57 @@ func (pointer *Vertices) GetData() *VoidPointer { // GetSize ... func (pointer *Vertices) GetSize() int32 { - retval := C.WrapGetSizeVertices(pointer.h) + retval := C.HarfangGetSizeVertices(pointer.h) return int32(retval) } // GetCount ... func (pointer *Vertices) GetCount() int32 { - retval := C.WrapGetCountVertices(pointer.h) + retval := C.HarfangGetCountVertices(pointer.h) return int32(retval) } // GetCapacity ... func (pointer *Vertices) GetCapacity() int32 { - retval := C.WrapGetCapacityVertices(pointer.h) + retval := C.HarfangGetCapacityVertices(pointer.h) return int32(retval) } // Pipeline Rendering pipeline base class. type Pipeline struct { - h C.WrapPipeline + h C.HarfangPipeline +} + +// NewPipelineFromCPointer ... +func NewPipelineFromCPointer(p unsafe.Pointer) *Pipeline { + retvalGO := &Pipeline{h: (C.HarfangPipeline)(p)} + return retvalGO } // Free ... func (pointer *Pipeline) Free() { - C.WrapPipelineFree(pointer.h) + C.HarfangPipelineFree(pointer.h) } // IsNil ... func (pointer *Pipeline) IsNil() bool { - return pointer.h == C.WrapPipeline(nil) + return pointer.h == C.HarfangPipeline(nil) } // PipelineInfo ... type PipelineInfo struct { - h C.WrapPipelineInfo + h C.HarfangPipelineInfo +} + +// NewPipelineInfoFromCPointer ... +func NewPipelineInfoFromCPointer(p unsafe.Pointer) *PipelineInfo { + retvalGO := &PipelineInfo{h: (C.HarfangPipelineInfo)(p)} + return retvalGO } // GetName ... func (pointer *PipelineInfo) GetName() string { - v := C.WrapPipelineInfoGetName(pointer.h) + v := C.HarfangPipelineInfoGetName(pointer.h) return C.GoString(v) } @@ -5869,54 +6283,66 @@ func (pointer *PipelineInfo) GetName() string { func (pointer *PipelineInfo) SetName(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapPipelineInfoSetName(pointer.h, vToC) + C.HarfangPipelineInfoSetName(pointer.h, vToC) } // Free ... func (pointer *PipelineInfo) Free() { - C.WrapPipelineInfoFree(pointer.h) + C.HarfangPipelineInfoFree(pointer.h) } // IsNil ... func (pointer *PipelineInfo) IsNil() bool { - return pointer.h == C.WrapPipelineInfo(nil) + return pointer.h == C.HarfangPipelineInfo(nil) } // ForwardPipeline Rendering pipeline implementing a forward rendering strategy. The main characteristics of this pipeline are: - Render in two passes: opaque display lists then transparent ones. - Fixed 8 light slots supporting 1 linear light with PSSM shadow mapping, 1 spot with shadow mapping and up to 6 point lights with no shadow mapping. type ForwardPipeline struct { - h C.WrapForwardPipeline + h C.HarfangForwardPipeline +} + +// NewForwardPipelineFromCPointer ... +func NewForwardPipelineFromCPointer(p unsafe.Pointer) *ForwardPipeline { + retvalGO := &ForwardPipeline{h: (C.HarfangForwardPipeline)(p)} + return retvalGO } // Free ... func (pointer *ForwardPipeline) Free() { - C.WrapForwardPipelineFree(pointer.h) + C.HarfangForwardPipelineFree(pointer.h) } // IsNil ... func (pointer *ForwardPipeline) IsNil() bool { - return pointer.h == C.WrapForwardPipeline(nil) + return pointer.h == C.HarfangForwardPipeline(nil) } // ForwardPipelineLight Single light for the forward pipeline. The complete lighting rig is passed as a [harfang.ForwardPipelineLights], see [harfang.PrepareForwardPipelineLights]. type ForwardPipelineLight struct { - h C.WrapForwardPipelineLight + h C.HarfangForwardPipelineLight +} + +// NewForwardPipelineLightFromCPointer ... +func NewForwardPipelineLightFromCPointer(p unsafe.Pointer) *ForwardPipelineLight { + retvalGO := &ForwardPipelineLight{h: (C.HarfangForwardPipelineLight)(p)} + return retvalGO } // GetType ... func (pointer *ForwardPipelineLight) GetType() ForwardPipelineLightType { - v := C.WrapForwardPipelineLightGetType(pointer.h) + v := C.HarfangForwardPipelineLightGetType(pointer.h) return ForwardPipelineLightType(v) } // SetType ... func (pointer *ForwardPipelineLight) SetType(v ForwardPipelineLightType) { vToC := C.int32_t(v) - C.WrapForwardPipelineLightSetType(pointer.h, vToC) + C.HarfangForwardPipelineLightSetType(pointer.h, vToC) } // GetWorld ... func (pointer *ForwardPipelineLight) GetWorld() *Mat4 { - v := C.WrapForwardPipelineLightGetWorld(pointer.h) + v := C.HarfangForwardPipelineLightGetWorld(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -5924,12 +6350,12 @@ func (pointer *ForwardPipelineLight) GetWorld() *Mat4 { // SetWorld ... func (pointer *ForwardPipelineLight) SetWorld(v *Mat4) { vToC := v.h - C.WrapForwardPipelineLightSetWorld(pointer.h, vToC) + C.HarfangForwardPipelineLightSetWorld(pointer.h, vToC) } // GetDiffuse ... func (pointer *ForwardPipelineLight) GetDiffuse() *Color { - v := C.WrapForwardPipelineLightGetDiffuse(pointer.h) + v := C.HarfangForwardPipelineLightGetDiffuse(pointer.h) vGO := &Color{h: v} return vGO } @@ -5937,12 +6363,12 @@ func (pointer *ForwardPipelineLight) GetDiffuse() *Color { // SetDiffuse ... func (pointer *ForwardPipelineLight) SetDiffuse(v *Color) { vToC := v.h - C.WrapForwardPipelineLightSetDiffuse(pointer.h, vToC) + C.HarfangForwardPipelineLightSetDiffuse(pointer.h, vToC) } // GetSpecular ... func (pointer *ForwardPipelineLight) GetSpecular() *Color { - v := C.WrapForwardPipelineLightGetSpecular(pointer.h) + v := C.HarfangForwardPipelineLightGetSpecular(pointer.h) vGO := &Color{h: v} return vGO } @@ -5950,48 +6376,48 @@ func (pointer *ForwardPipelineLight) GetSpecular() *Color { // SetSpecular ... func (pointer *ForwardPipelineLight) SetSpecular(v *Color) { vToC := v.h - C.WrapForwardPipelineLightSetSpecular(pointer.h, vToC) + C.HarfangForwardPipelineLightSetSpecular(pointer.h, vToC) } // GetRadius ... func (pointer *ForwardPipelineLight) GetRadius() float32 { - v := C.WrapForwardPipelineLightGetRadius(pointer.h) + v := C.HarfangForwardPipelineLightGetRadius(pointer.h) return float32(v) } // SetRadius ... func (pointer *ForwardPipelineLight) SetRadius(v float32) { vToC := C.float(v) - C.WrapForwardPipelineLightSetRadius(pointer.h, vToC) + C.HarfangForwardPipelineLightSetRadius(pointer.h, vToC) } // GetInnerAngle ... func (pointer *ForwardPipelineLight) GetInnerAngle() float32 { - v := C.WrapForwardPipelineLightGetInnerAngle(pointer.h) + v := C.HarfangForwardPipelineLightGetInnerAngle(pointer.h) return float32(v) } // SetInnerAngle ... func (pointer *ForwardPipelineLight) SetInnerAngle(v float32) { vToC := C.float(v) - C.WrapForwardPipelineLightSetInnerAngle(pointer.h, vToC) + C.HarfangForwardPipelineLightSetInnerAngle(pointer.h, vToC) } // GetOuterAngle ... func (pointer *ForwardPipelineLight) GetOuterAngle() float32 { - v := C.WrapForwardPipelineLightGetOuterAngle(pointer.h) + v := C.HarfangForwardPipelineLightGetOuterAngle(pointer.h) return float32(v) } // SetOuterAngle ... func (pointer *ForwardPipelineLight) SetOuterAngle(v float32) { vToC := C.float(v) - C.WrapForwardPipelineLightSetOuterAngle(pointer.h, vToC) + C.HarfangForwardPipelineLightSetOuterAngle(pointer.h, vToC) } // GetPssmSplit ... func (pointer *ForwardPipelineLight) GetPssmSplit() *Vec4 { - v := C.WrapForwardPipelineLightGetPssmSplit(pointer.h) + v := C.HarfangForwardPipelineLightGetPssmSplit(pointer.h) vGO := &Vec4{h: v} return vGO } @@ -5999,39 +6425,39 @@ func (pointer *ForwardPipelineLight) GetPssmSplit() *Vec4 { // SetPssmSplit ... func (pointer *ForwardPipelineLight) SetPssmSplit(v *Vec4) { vToC := v.h - C.WrapForwardPipelineLightSetPssmSplit(pointer.h, vToC) + C.HarfangForwardPipelineLightSetPssmSplit(pointer.h, vToC) } // GetPriority ... func (pointer *ForwardPipelineLight) GetPriority() float32 { - v := C.WrapForwardPipelineLightGetPriority(pointer.h) + v := C.HarfangForwardPipelineLightGetPriority(pointer.h) return float32(v) } // SetPriority ... func (pointer *ForwardPipelineLight) SetPriority(v float32) { vToC := C.float(v) - C.WrapForwardPipelineLightSetPriority(pointer.h, vToC) + C.HarfangForwardPipelineLightSetPriority(pointer.h, vToC) } // NewForwardPipelineLight Single light for the forward pipeline. The complete lighting rig is passed as a [harfang.ForwardPipelineLights], see [harfang.PrepareForwardPipelineLights]. func NewForwardPipelineLight() *ForwardPipelineLight { - retval := C.WrapConstructorForwardPipelineLight() + retval := C.HarfangConstructorForwardPipelineLight() retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ForwardPipelineLight) Free() { - C.WrapForwardPipelineLightFree(pointer.h) + C.HarfangForwardPipelineLightFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineLight) IsNil() bool { - return pointer.h == C.WrapForwardPipelineLight(nil) + return pointer.h == C.HarfangForwardPipelineLight(nil) } // GoSliceOfForwardPipelineLight ... @@ -6039,15 +6465,21 @@ type GoSliceOfForwardPipelineLight []*ForwardPipelineLight // ForwardPipelineLightList ... type ForwardPipelineLightList struct { - h C.WrapForwardPipelineLightList + h C.HarfangForwardPipelineLightList +} + +// NewForwardPipelineLightListFromCPointer ... +func NewForwardPipelineLightListFromCPointer(p unsafe.Pointer) *ForwardPipelineLightList { + retvalGO := &ForwardPipelineLightList{h: (C.HarfangForwardPipelineLightList)(p)} + return retvalGO } // Get ... func (pointer *ForwardPipelineLightList) Get(id int) *ForwardPipelineLight { - v := C.WrapForwardPipelineLightListGetOperator(pointer.h, C.int(id)) + v := C.HarfangForwardPipelineLightListGetOperator(pointer.h, C.int(id)) vGO := &ForwardPipelineLight{h: v} runtime.SetFinalizer(vGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return vGO } @@ -6055,132 +6487,144 @@ func (pointer *ForwardPipelineLightList) Get(id int) *ForwardPipelineLight { // Set ... func (pointer *ForwardPipelineLightList) Set(id int, v *ForwardPipelineLight) { vToC := v.h - C.WrapForwardPipelineLightListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangForwardPipelineLightListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *ForwardPipelineLightList) Len() int32 { - return int32(C.WrapForwardPipelineLightListLenOperator(pointer.h)) + return int32(C.HarfangForwardPipelineLightListLenOperator(pointer.h)) } // NewForwardPipelineLightList ... func NewForwardPipelineLightList() *ForwardPipelineLightList { - retval := C.WrapConstructorForwardPipelineLightList() + retval := C.HarfangConstructorForwardPipelineLightList() retvalGO := &ForwardPipelineLightList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLightList) { - C.WrapForwardPipelineLightListFree(cleanval.h) + C.HarfangForwardPipelineLightListFree(cleanval.h) }) return retvalGO } // NewForwardPipelineLightListWithSequence ... func NewForwardPipelineLightListWithSequence(sequence GoSliceOfForwardPipelineLight) *ForwardPipelineLightList { - var sequencePointer []C.WrapForwardPipelineLight + var sequencePointer []C.HarfangForwardPipelineLight for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapForwardPipelineLight)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorForwardPipelineLightListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangForwardPipelineLight)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorForwardPipelineLightListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &ForwardPipelineLightList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLightList) { - C.WrapForwardPipelineLightListFree(cleanval.h) + C.HarfangForwardPipelineLightListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ForwardPipelineLightList) Free() { - C.WrapForwardPipelineLightListFree(pointer.h) + C.HarfangForwardPipelineLightListFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineLightList) IsNil() bool { - return pointer.h == C.WrapForwardPipelineLightList(nil) + return pointer.h == C.HarfangForwardPipelineLightList(nil) } // Clear ... func (pointer *ForwardPipelineLightList) Clear() { - C.WrapClearForwardPipelineLightList(pointer.h) + C.HarfangClearForwardPipelineLightList(pointer.h) } // Reserve ... func (pointer *ForwardPipelineLightList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveForwardPipelineLightList(pointer.h, sizeToC) + C.HarfangReserveForwardPipelineLightList(pointer.h, sizeToC) } // PushBack ... func (pointer *ForwardPipelineLightList) PushBack(v *ForwardPipelineLight) { vToC := v.h - C.WrapPushBackForwardPipelineLightList(pointer.h, vToC) + C.HarfangPushBackForwardPipelineLightList(pointer.h, vToC) } // Size ... func (pointer *ForwardPipelineLightList) Size() int32 { - retval := C.WrapSizeForwardPipelineLightList(pointer.h) + retval := C.HarfangSizeForwardPipelineLightList(pointer.h) return int32(retval) } // At ... func (pointer *ForwardPipelineLightList) At(idx int32) *ForwardPipelineLight { idxToC := C.size_t(idx) - retval := C.WrapAtForwardPipelineLightList(pointer.h, idxToC) + retval := C.HarfangAtForwardPipelineLightList(pointer.h, idxToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } // ForwardPipelineLights ... type ForwardPipelineLights struct { - h C.WrapForwardPipelineLights + h C.HarfangForwardPipelineLights +} + +// NewForwardPipelineLightsFromCPointer ... +func NewForwardPipelineLightsFromCPointer(p unsafe.Pointer) *ForwardPipelineLights { + retvalGO := &ForwardPipelineLights{h: (C.HarfangForwardPipelineLights)(p)} + return retvalGO } // Free ... func (pointer *ForwardPipelineLights) Free() { - C.WrapForwardPipelineLightsFree(pointer.h) + C.HarfangForwardPipelineLightsFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineLights) IsNil() bool { - return pointer.h == C.WrapForwardPipelineLights(nil) + return pointer.h == C.HarfangForwardPipelineLights(nil) } // ForwardPipelineFog Fog properties for the forward pipeline. type ForwardPipelineFog struct { - h C.WrapForwardPipelineFog + h C.HarfangForwardPipelineFog +} + +// NewForwardPipelineFogFromCPointer ... +func NewForwardPipelineFogFromCPointer(p unsafe.Pointer) *ForwardPipelineFog { + retvalGO := &ForwardPipelineFog{h: (C.HarfangForwardPipelineFog)(p)} + return retvalGO } // GetNear ... func (pointer *ForwardPipelineFog) GetNear() float32 { - v := C.WrapForwardPipelineFogGetNear(pointer.h) + v := C.HarfangForwardPipelineFogGetNear(pointer.h) return float32(v) } // SetNear ... func (pointer *ForwardPipelineFog) SetNear(v float32) { vToC := C.float(v) - C.WrapForwardPipelineFogSetNear(pointer.h, vToC) + C.HarfangForwardPipelineFogSetNear(pointer.h, vToC) } // GetFar ... func (pointer *ForwardPipelineFog) GetFar() float32 { - v := C.WrapForwardPipelineFogGetFar(pointer.h) + v := C.HarfangForwardPipelineFogGetFar(pointer.h) return float32(v) } // SetFar ... func (pointer *ForwardPipelineFog) SetFar(v float32) { vToC := C.float(v) - C.WrapForwardPipelineFogSetFar(pointer.h, vToC) + C.HarfangForwardPipelineFogSetFar(pointer.h, vToC) } // GetColor ... func (pointer *ForwardPipelineFog) GetColor() *Color { - v := C.WrapForwardPipelineFogGetColor(pointer.h) + v := C.HarfangForwardPipelineFogGetColor(pointer.h) vGO := &Color{h: v} return vGO } @@ -6188,82 +6632,100 @@ func (pointer *ForwardPipelineFog) GetColor() *Color { // SetColor ... func (pointer *ForwardPipelineFog) SetColor(v *Color) { vToC := v.h - C.WrapForwardPipelineFogSetColor(pointer.h, vToC) + C.HarfangForwardPipelineFogSetColor(pointer.h, vToC) } // NewForwardPipelineFog Fog properties for the forward pipeline. func NewForwardPipelineFog() *ForwardPipelineFog { - retval := C.WrapConstructorForwardPipelineFog() + retval := C.HarfangConstructorForwardPipelineFog() retvalGO := &ForwardPipelineFog{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineFog) { - C.WrapForwardPipelineFogFree(cleanval.h) + C.HarfangForwardPipelineFogFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ForwardPipelineFog) Free() { - C.WrapForwardPipelineFogFree(pointer.h) + C.HarfangForwardPipelineFogFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineFog) IsNil() bool { - return pointer.h == C.WrapForwardPipelineFog(nil) + return pointer.h == C.HarfangForwardPipelineFog(nil) } // Font Font object for realtime rendering. type Font struct { - h C.WrapFont + h C.HarfangFont +} + +// NewFontFromCPointer ... +func NewFontFromCPointer(p unsafe.Pointer) *Font { + retvalGO := &Font{h: (C.HarfangFont)(p)} + return retvalGO } // Free ... func (pointer *Font) Free() { - C.WrapFontFree(pointer.h) + C.HarfangFontFree(pointer.h) } // IsNil ... func (pointer *Font) IsNil() bool { - return pointer.h == C.WrapFont(nil) + return pointer.h == C.HarfangFont(nil) } // JSON JSON read/write object. type JSON struct { - h C.WrapJSON + h C.HarfangJSON +} + +// NewJSONFromCPointer ... +func NewJSONFromCPointer(p unsafe.Pointer) *JSON { + retvalGO := &JSON{h: (C.HarfangJSON)(p)} + return retvalGO } // NewJSON JSON read/write object. func NewJSON() *JSON { - retval := C.WrapConstructorJSON() + retval := C.HarfangConstructorJSON() retvalGO := &JSON{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *JSON) { - C.WrapJSONFree(cleanval.h) + C.HarfangJSONFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *JSON) Free() { - C.WrapJSONFree(pointer.h) + C.HarfangJSONFree(pointer.h) } // IsNil ... func (pointer *JSON) IsNil() bool { - return pointer.h == C.WrapJSON(nil) + return pointer.h == C.HarfangJSON(nil) } // LuaObject Opaque reference to an Lua object. This type is used to transfer values between VMs, see [harfang.man.Scripting]. type LuaObject struct { - h C.WrapLuaObject + h C.HarfangLuaObject +} + +// NewLuaObjectFromCPointer ... +func NewLuaObjectFromCPointer(p unsafe.Pointer) *LuaObject { + retvalGO := &LuaObject{h: (C.HarfangLuaObject)(p)} + return retvalGO } // Free ... func (pointer *LuaObject) Free() { - C.WrapLuaObjectFree(pointer.h) + C.HarfangLuaObjectFree(pointer.h) } // IsNil ... func (pointer *LuaObject) IsNil() bool { - return pointer.h == C.WrapLuaObject(nil) + return pointer.h == C.HarfangLuaObject(nil) } // GoSliceOfLuaObject ... @@ -6271,15 +6733,21 @@ type GoSliceOfLuaObject []*LuaObject // LuaObjectList ... type LuaObjectList struct { - h C.WrapLuaObjectList + h C.HarfangLuaObjectList +} + +// NewLuaObjectListFromCPointer ... +func NewLuaObjectListFromCPointer(p unsafe.Pointer) *LuaObjectList { + retvalGO := &LuaObjectList{h: (C.HarfangLuaObjectList)(p)} + return retvalGO } // Get ... func (pointer *LuaObjectList) Get(id int) *LuaObject { - v := C.WrapLuaObjectListGetOperator(pointer.h, C.int(id)) + v := C.HarfangLuaObjectListGetOperator(pointer.h, C.int(id)) vGO := &LuaObject{h: v} runtime.SetFinalizer(vGO, func(cleanval *LuaObject) { - C.WrapLuaObjectFree(cleanval.h) + C.HarfangLuaObjectFree(cleanval.h) }) return vGO } @@ -6287,111 +6755,117 @@ func (pointer *LuaObjectList) Get(id int) *LuaObject { // Set ... func (pointer *LuaObjectList) Set(id int, v *LuaObject) { vToC := v.h - C.WrapLuaObjectListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangLuaObjectListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *LuaObjectList) Len() int32 { - return int32(C.WrapLuaObjectListLenOperator(pointer.h)) + return int32(C.HarfangLuaObjectListLenOperator(pointer.h)) } // NewLuaObjectList ... func NewLuaObjectList() *LuaObjectList { - retval := C.WrapConstructorLuaObjectList() + retval := C.HarfangConstructorLuaObjectList() retvalGO := &LuaObjectList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObjectList) { - C.WrapLuaObjectListFree(cleanval.h) + C.HarfangLuaObjectListFree(cleanval.h) }) return retvalGO } // NewLuaObjectListWithSequence ... func NewLuaObjectListWithSequence(sequence GoSliceOfLuaObject) *LuaObjectList { - var sequencePointer []C.WrapLuaObject + var sequencePointer []C.HarfangLuaObject for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapLuaObject)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorLuaObjectListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangLuaObject)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorLuaObjectListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &LuaObjectList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObjectList) { - C.WrapLuaObjectListFree(cleanval.h) + C.HarfangLuaObjectListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *LuaObjectList) Free() { - C.WrapLuaObjectListFree(pointer.h) + C.HarfangLuaObjectListFree(pointer.h) } // IsNil ... func (pointer *LuaObjectList) IsNil() bool { - return pointer.h == C.WrapLuaObjectList(nil) + return pointer.h == C.HarfangLuaObjectList(nil) } // Clear ... func (pointer *LuaObjectList) Clear() { - C.WrapClearLuaObjectList(pointer.h) + C.HarfangClearLuaObjectList(pointer.h) } // Reserve ... func (pointer *LuaObjectList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveLuaObjectList(pointer.h, sizeToC) + C.HarfangReserveLuaObjectList(pointer.h, sizeToC) } // PushBack ... func (pointer *LuaObjectList) PushBack(v *LuaObject) { vToC := v.h - C.WrapPushBackLuaObjectList(pointer.h, vToC) + C.HarfangPushBackLuaObjectList(pointer.h, vToC) } // Size ... func (pointer *LuaObjectList) Size() int32 { - retval := C.WrapSizeLuaObjectList(pointer.h) + retval := C.HarfangSizeLuaObjectList(pointer.h) return int32(retval) } // At ... func (pointer *LuaObjectList) At(idx int32) *LuaObject { idxToC := C.size_t(idx) - retval := C.WrapAtLuaObjectList(pointer.h, idxToC) + retval := C.HarfangAtLuaObjectList(pointer.h, idxToC) retvalGO := &LuaObject{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObject) { - C.WrapLuaObjectFree(cleanval.h) + C.HarfangLuaObjectFree(cleanval.h) }) return retvalGO } // SceneAnimRef Reference to a scene animation. type SceneAnimRef struct { - h C.WrapSceneAnimRef + h C.HarfangSceneAnimRef +} + +// NewSceneAnimRefFromCPointer ... +func NewSceneAnimRefFromCPointer(p unsafe.Pointer) *SceneAnimRef { + retvalGO := &SceneAnimRef{h: (C.HarfangSceneAnimRef)(p)} + return retvalGO } // Free ... func (pointer *SceneAnimRef) Free() { - C.WrapSceneAnimRefFree(pointer.h) + C.HarfangSceneAnimRefFree(pointer.h) } // IsNil ... func (pointer *SceneAnimRef) IsNil() bool { - return pointer.h == C.WrapSceneAnimRef(nil) + return pointer.h == C.HarfangSceneAnimRef(nil) } // Eq ... func (pointer *SceneAnimRef) Eq(ref *SceneAnimRef) bool { refToC := ref.h - retval := C.WrapEqSceneAnimRef(pointer.h, refToC) + retval := C.HarfangEqSceneAnimRef(pointer.h, refToC) return bool(retval) } // Ne ... func (pointer *SceneAnimRef) Ne(ref *SceneAnimRef) bool { refToC := ref.h - retval := C.WrapNeSceneAnimRef(pointer.h, refToC) + retval := C.HarfangNeSceneAnimRef(pointer.h, refToC) return bool(retval) } @@ -6400,15 +6874,21 @@ type GoSliceOfSceneAnimRef []*SceneAnimRef // SceneAnimRefList ... type SceneAnimRefList struct { - h C.WrapSceneAnimRefList + h C.HarfangSceneAnimRefList +} + +// NewSceneAnimRefListFromCPointer ... +func NewSceneAnimRefListFromCPointer(p unsafe.Pointer) *SceneAnimRefList { + retvalGO := &SceneAnimRefList{h: (C.HarfangSceneAnimRefList)(p)} + return retvalGO } // Get ... func (pointer *SceneAnimRefList) Get(id int) *SceneAnimRef { - v := C.WrapSceneAnimRefListGetOperator(pointer.h, C.int(id)) + v := C.HarfangSceneAnimRefListGetOperator(pointer.h, C.int(id)) vGO := &SceneAnimRef{h: v} runtime.SetFinalizer(vGO, func(cleanval *SceneAnimRef) { - C.WrapSceneAnimRefFree(cleanval.h) + C.HarfangSceneAnimRefFree(cleanval.h) }) return vGO } @@ -6416,111 +6896,117 @@ func (pointer *SceneAnimRefList) Get(id int) *SceneAnimRef { // Set ... func (pointer *SceneAnimRefList) Set(id int, v *SceneAnimRef) { vToC := v.h - C.WrapSceneAnimRefListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangSceneAnimRefListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *SceneAnimRefList) Len() int32 { - return int32(C.WrapSceneAnimRefListLenOperator(pointer.h)) + return int32(C.HarfangSceneAnimRefListLenOperator(pointer.h)) } // NewSceneAnimRefList ... func NewSceneAnimRefList() *SceneAnimRefList { - retval := C.WrapConstructorSceneAnimRefList() + retval := C.HarfangConstructorSceneAnimRefList() retvalGO := &SceneAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRefList) { - C.WrapSceneAnimRefListFree(cleanval.h) + C.HarfangSceneAnimRefListFree(cleanval.h) }) return retvalGO } // NewSceneAnimRefListWithSequence ... func NewSceneAnimRefListWithSequence(sequence GoSliceOfSceneAnimRef) *SceneAnimRefList { - var sequencePointer []C.WrapSceneAnimRef + var sequencePointer []C.HarfangSceneAnimRef for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapSceneAnimRef)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorSceneAnimRefListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangSceneAnimRef)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorSceneAnimRefListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &SceneAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRefList) { - C.WrapSceneAnimRefListFree(cleanval.h) + C.HarfangSceneAnimRefListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneAnimRefList) Free() { - C.WrapSceneAnimRefListFree(pointer.h) + C.HarfangSceneAnimRefListFree(pointer.h) } // IsNil ... func (pointer *SceneAnimRefList) IsNil() bool { - return pointer.h == C.WrapSceneAnimRefList(nil) + return pointer.h == C.HarfangSceneAnimRefList(nil) } // Clear ... func (pointer *SceneAnimRefList) Clear() { - C.WrapClearSceneAnimRefList(pointer.h) + C.HarfangClearSceneAnimRefList(pointer.h) } // Reserve ... func (pointer *SceneAnimRefList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveSceneAnimRefList(pointer.h, sizeToC) + C.HarfangReserveSceneAnimRefList(pointer.h, sizeToC) } // PushBack ... func (pointer *SceneAnimRefList) PushBack(v *SceneAnimRef) { vToC := v.h - C.WrapPushBackSceneAnimRefList(pointer.h, vToC) + C.HarfangPushBackSceneAnimRefList(pointer.h, vToC) } // Size ... func (pointer *SceneAnimRefList) Size() int32 { - retval := C.WrapSizeSceneAnimRefList(pointer.h) + retval := C.HarfangSizeSceneAnimRefList(pointer.h) return int32(retval) } // At ... func (pointer *SceneAnimRefList) At(idx int32) *SceneAnimRef { idxToC := C.size_t(idx) - retval := C.WrapAtSceneAnimRefList(pointer.h, idxToC) + retval := C.HarfangAtSceneAnimRefList(pointer.h, idxToC) retvalGO := &SceneAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRef) { - C.WrapSceneAnimRefFree(cleanval.h) + C.HarfangSceneAnimRefFree(cleanval.h) }) return retvalGO } // ScenePlayAnimRef Reference to a playing scene animation. type ScenePlayAnimRef struct { - h C.WrapScenePlayAnimRef + h C.HarfangScenePlayAnimRef +} + +// NewScenePlayAnimRefFromCPointer ... +func NewScenePlayAnimRefFromCPointer(p unsafe.Pointer) *ScenePlayAnimRef { + retvalGO := &ScenePlayAnimRef{h: (C.HarfangScenePlayAnimRef)(p)} + return retvalGO } // Free ... func (pointer *ScenePlayAnimRef) Free() { - C.WrapScenePlayAnimRefFree(pointer.h) + C.HarfangScenePlayAnimRefFree(pointer.h) } // IsNil ... func (pointer *ScenePlayAnimRef) IsNil() bool { - return pointer.h == C.WrapScenePlayAnimRef(nil) + return pointer.h == C.HarfangScenePlayAnimRef(nil) } // Eq ... func (pointer *ScenePlayAnimRef) Eq(ref *ScenePlayAnimRef) bool { refToC := ref.h - retval := C.WrapEqScenePlayAnimRef(pointer.h, refToC) + retval := C.HarfangEqScenePlayAnimRef(pointer.h, refToC) return bool(retval) } // Ne ... func (pointer *ScenePlayAnimRef) Ne(ref *ScenePlayAnimRef) bool { refToC := ref.h - retval := C.WrapNeScenePlayAnimRef(pointer.h, refToC) + retval := C.HarfangNeScenePlayAnimRef(pointer.h, refToC) return bool(retval) } @@ -6529,15 +7015,21 @@ type GoSliceOfScenePlayAnimRef []*ScenePlayAnimRef // ScenePlayAnimRefList ... type ScenePlayAnimRefList struct { - h C.WrapScenePlayAnimRefList + h C.HarfangScenePlayAnimRefList +} + +// NewScenePlayAnimRefListFromCPointer ... +func NewScenePlayAnimRefListFromCPointer(p unsafe.Pointer) *ScenePlayAnimRefList { + retvalGO := &ScenePlayAnimRefList{h: (C.HarfangScenePlayAnimRefList)(p)} + return retvalGO } // Get ... func (pointer *ScenePlayAnimRefList) Get(id int) *ScenePlayAnimRef { - v := C.WrapScenePlayAnimRefListGetOperator(pointer.h, C.int(id)) + v := C.HarfangScenePlayAnimRefListGetOperator(pointer.h, C.int(id)) vGO := &ScenePlayAnimRef{h: v} runtime.SetFinalizer(vGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return vGO } @@ -6545,93 +7037,99 @@ func (pointer *ScenePlayAnimRefList) Get(id int) *ScenePlayAnimRef { // Set ... func (pointer *ScenePlayAnimRefList) Set(id int, v *ScenePlayAnimRef) { vToC := v.h - C.WrapScenePlayAnimRefListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangScenePlayAnimRefListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *ScenePlayAnimRefList) Len() int32 { - return int32(C.WrapScenePlayAnimRefListLenOperator(pointer.h)) + return int32(C.HarfangScenePlayAnimRefListLenOperator(pointer.h)) } // NewScenePlayAnimRefList ... func NewScenePlayAnimRefList() *ScenePlayAnimRefList { - retval := C.WrapConstructorScenePlayAnimRefList() + retval := C.HarfangConstructorScenePlayAnimRefList() retvalGO := &ScenePlayAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRefList) { - C.WrapScenePlayAnimRefListFree(cleanval.h) + C.HarfangScenePlayAnimRefListFree(cleanval.h) }) return retvalGO } // NewScenePlayAnimRefListWithSequence ... func NewScenePlayAnimRefListWithSequence(sequence GoSliceOfScenePlayAnimRef) *ScenePlayAnimRefList { - var sequencePointer []C.WrapScenePlayAnimRef + var sequencePointer []C.HarfangScenePlayAnimRef for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapScenePlayAnimRef)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorScenePlayAnimRefListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangScenePlayAnimRef)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorScenePlayAnimRefListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &ScenePlayAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRefList) { - C.WrapScenePlayAnimRefListFree(cleanval.h) + C.HarfangScenePlayAnimRefListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ScenePlayAnimRefList) Free() { - C.WrapScenePlayAnimRefListFree(pointer.h) + C.HarfangScenePlayAnimRefListFree(pointer.h) } // IsNil ... func (pointer *ScenePlayAnimRefList) IsNil() bool { - return pointer.h == C.WrapScenePlayAnimRefList(nil) + return pointer.h == C.HarfangScenePlayAnimRefList(nil) } // Clear ... func (pointer *ScenePlayAnimRefList) Clear() { - C.WrapClearScenePlayAnimRefList(pointer.h) + C.HarfangClearScenePlayAnimRefList(pointer.h) } // Reserve ... func (pointer *ScenePlayAnimRefList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveScenePlayAnimRefList(pointer.h, sizeToC) + C.HarfangReserveScenePlayAnimRefList(pointer.h, sizeToC) } // PushBack ... func (pointer *ScenePlayAnimRefList) PushBack(v *ScenePlayAnimRef) { vToC := v.h - C.WrapPushBackScenePlayAnimRefList(pointer.h, vToC) + C.HarfangPushBackScenePlayAnimRefList(pointer.h, vToC) } // Size ... func (pointer *ScenePlayAnimRefList) Size() int32 { - retval := C.WrapSizeScenePlayAnimRefList(pointer.h) + retval := C.HarfangSizeScenePlayAnimRefList(pointer.h) return int32(retval) } // At ... func (pointer *ScenePlayAnimRefList) At(idx int32) *ScenePlayAnimRef { idxToC := C.size_t(idx) - retval := C.WrapAtScenePlayAnimRefList(pointer.h, idxToC) + retval := C.HarfangAtScenePlayAnimRefList(pointer.h, idxToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } // Scene A scene object representing a world populated with [harfang.Node], see [harfang.man.Scene]. type Scene struct { - h C.WrapScene + h C.HarfangScene +} + +// NewSceneFromCPointer ... +func NewSceneFromCPointer(p unsafe.Pointer) *Scene { + retvalGO := &Scene{h: (C.HarfangScene)(p)} + return retvalGO } // GetCanvas ... func (pointer *Scene) GetCanvas() *Canvas { - v := C.WrapSceneGetCanvas(pointer.h) + v := C.HarfangSceneGetCanvas(pointer.h) vGO := &Canvas{h: v} return vGO } @@ -6639,12 +7137,12 @@ func (pointer *Scene) GetCanvas() *Canvas { // SetCanvas ... func (pointer *Scene) SetCanvas(v *Canvas) { vToC := v.h - C.WrapSceneSetCanvas(pointer.h, vToC) + C.HarfangSceneSetCanvas(pointer.h, vToC) } // GetEnvironment ... func (pointer *Scene) GetEnvironment() *Environment { - v := C.WrapSceneGetEnvironment(pointer.h) + v := C.HarfangSceneGetEnvironment(pointer.h) vGO := &Environment{h: v} return vGO } @@ -6652,37 +7150,37 @@ func (pointer *Scene) GetEnvironment() *Environment { // SetEnvironment ... func (pointer *Scene) SetEnvironment(v *Environment) { vToC := v.h - C.WrapSceneSetEnvironment(pointer.h, vToC) + C.HarfangSceneSetEnvironment(pointer.h, vToC) } // NewScene A scene object representing a world populated with [harfang.Node], see [harfang.man.Scene]. func NewScene() *Scene { - retval := C.WrapConstructorScene() + retval := C.HarfangConstructorScene() retvalGO := &Scene{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Scene) { - C.WrapSceneFree(cleanval.h) + C.HarfangSceneFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Scene) Free() { - C.WrapSceneFree(pointer.h) + C.HarfangSceneFree(pointer.h) } // IsNil ... func (pointer *Scene) IsNil() bool { - return pointer.h == C.WrapScene(nil) + return pointer.h == C.HarfangScene(nil) } // GetNode Get a node by name. For more complex queries see [harfang.Scene_GetNodeEx]. func (pointer *Scene) GetNode(name string) *Node { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetNodeScene(pointer.h, nameToC) + retval := C.HarfangGetNodeScene(pointer.h, nameToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -6691,30 +7189,30 @@ func (pointer *Scene) GetNode(name string) *Node { func (pointer *Scene) GetNodeEx(path string) *Node { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapGetNodeExScene(pointer.h, pathToC) + retval := C.HarfangGetNodeExScene(pointer.h, pathToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } // GetNodes Return all nodes in scene. func (pointer *Scene) GetNodes() *NodeList { - retval := C.WrapGetNodesScene(pointer.h) + retval := C.HarfangGetNodesScene(pointer.h) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } // GetAllNodes ... func (pointer *Scene) GetAllNodes() *NodeList { - retval := C.WrapGetAllNodesScene(pointer.h) + retval := C.HarfangGetAllNodesScene(pointer.h) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -6722,10 +7220,10 @@ func (pointer *Scene) GetAllNodes() *NodeList { // GetNodesWithComponent ... func (pointer *Scene) GetNodesWithComponent(idx NodeComponentIdx) *NodeList { idxToC := C.int32_t(idx) - retval := C.WrapGetNodesWithComponentScene(pointer.h, idxToC) + retval := C.HarfangGetNodesWithComponentScene(pointer.h, idxToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -6733,33 +7231,33 @@ func (pointer *Scene) GetNodesWithComponent(idx NodeComponentIdx) *NodeList { // GetAllNodesWithComponent ... func (pointer *Scene) GetAllNodesWithComponent(idx NodeComponentIdx) *NodeList { idxToC := C.int32_t(idx) - retval := C.WrapGetAllNodesWithComponentScene(pointer.h, idxToC) + retval := C.HarfangGetAllNodesWithComponentScene(pointer.h, idxToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } // GetNodeCount Return the number of nodes in the scene excluding instantiated ones. To include those, use [harfang.Scene_GetAllNodeCount]. func (pointer *Scene) GetNodeCount() int32 { - retval := C.WrapGetNodeCountScene(pointer.h) + retval := C.HarfangGetNodeCountScene(pointer.h) return int32(retval) } // GetAllNodeCount Return the total number of nodes in the scene including instantiated ones. To exclude those, use [harfang.Scene_GetNodeCount]. func (pointer *Scene) GetAllNodeCount() int32 { - retval := C.WrapGetAllNodeCountScene(pointer.h) + retval := C.HarfangGetAllNodeCountScene(pointer.h) return int32(retval) } // GetNodeChildren Return all children for a given node. func (pointer *Scene) GetNodeChildren(node *Node) *NodeList { nodeToC := node.h - retval := C.WrapGetNodeChildrenScene(pointer.h, nodeToC) + retval := C.HarfangGetNodeChildrenScene(pointer.h, nodeToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -6768,39 +7266,39 @@ func (pointer *Scene) GetNodeChildren(node *Node) *NodeList { func (pointer *Scene) IsChildOf(node *Node, parent *Node) bool { nodeToC := node.h parentToC := parent.h - retval := C.WrapIsChildOfScene(pointer.h, nodeToC, parentToC) + retval := C.HarfangIsChildOfScene(pointer.h, nodeToC, parentToC) return bool(retval) } // IsRoot ... func (pointer *Scene) IsRoot(node *Node) bool { nodeToC := node.h - retval := C.WrapIsRootScene(pointer.h, nodeToC) + retval := C.HarfangIsRootScene(pointer.h, nodeToC) return bool(retval) } // ReadyWorldMatrices ... func (pointer *Scene) ReadyWorldMatrices() { - C.WrapReadyWorldMatricesScene(pointer.h) + C.HarfangReadyWorldMatricesScene(pointer.h) } // ComputeWorldMatrices ... func (pointer *Scene) ComputeWorldMatrices() { - C.WrapComputeWorldMatricesScene(pointer.h) + C.HarfangComputeWorldMatricesScene(pointer.h) } // Update Start the _Update_ phase of the scene. func (pointer *Scene) Update(dt int64) { dtToC := C.int64_t(dt) - C.WrapUpdateScene(pointer.h, dtToC) + C.HarfangUpdateScene(pointer.h, dtToC) } // GetSceneAnims ... func (pointer *Scene) GetSceneAnims() *SceneAnimRefList { - retval := C.WrapGetSceneAnimsScene(pointer.h) + retval := C.HarfangGetSceneAnimsScene(pointer.h) retvalGO := &SceneAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRefList) { - C.WrapSceneAnimRefListFree(cleanval.h) + C.HarfangSceneAnimRefListFree(cleanval.h) }) return retvalGO } @@ -6809,10 +7307,10 @@ func (pointer *Scene) GetSceneAnims() *SceneAnimRefList { func (pointer *Scene) GetSceneAnim(name string) *SceneAnimRef { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetSceneAnimScene(pointer.h, nameToC) + retval := C.HarfangGetSceneAnimScene(pointer.h, nameToC) retvalGO := &SceneAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRef) { - C.WrapSceneAnimRefFree(cleanval.h) + C.HarfangSceneAnimRefFree(cleanval.h) }) return retvalGO } @@ -6820,10 +7318,10 @@ func (pointer *Scene) GetSceneAnim(name string) *SceneAnimRef { // PlayAnim ... func (pointer *Scene) PlayAnim(ref *SceneAnimRef) *ScenePlayAnimRef { refToC := ref.h - retval := C.WrapPlayAnimScene(pointer.h, refToC) + retval := C.HarfangPlayAnimScene(pointer.h, refToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6832,10 +7330,10 @@ func (pointer *Scene) PlayAnim(ref *SceneAnimRef) *ScenePlayAnimRef { func (pointer *Scene) PlayAnimWithLoopMode(ref *SceneAnimRef, loopmode AnimLoopMode) *ScenePlayAnimRef { refToC := ref.h loopmodeToC := C.int32_t(loopmode) - retval := C.WrapPlayAnimSceneWithLoopMode(pointer.h, refToC, loopmodeToC) + retval := C.HarfangPlayAnimSceneWithLoopMode(pointer.h, refToC, loopmodeToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6845,10 +7343,10 @@ func (pointer *Scene) PlayAnimWithLoopModeEasing(ref *SceneAnimRef, loopmode Ani refToC := ref.h loopmodeToC := C.int32_t(loopmode) easingToC := C.uchar(easing) - retval := C.WrapPlayAnimSceneWithLoopModeEasing(pointer.h, refToC, loopmodeToC, easingToC) + retval := C.HarfangPlayAnimSceneWithLoopModeEasing(pointer.h, refToC, loopmodeToC, easingToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6859,10 +7357,10 @@ func (pointer *Scene) PlayAnimWithLoopModeEasingTStart(ref *SceneAnimRef, loopmo loopmodeToC := C.int32_t(loopmode) easingToC := C.uchar(easing) tstartToC := C.int64_t(tstart) - retval := C.WrapPlayAnimSceneWithLoopModeEasingTStart(pointer.h, refToC, loopmodeToC, easingToC, tstartToC) + retval := C.HarfangPlayAnimSceneWithLoopModeEasingTStart(pointer.h, refToC, loopmodeToC, easingToC, tstartToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6874,10 +7372,10 @@ func (pointer *Scene) PlayAnimWithLoopModeEasingTStartTEnd(ref *SceneAnimRef, lo easingToC := C.uchar(easing) tstartToC := C.int64_t(tstart) tendToC := C.int64_t(tend) - retval := C.WrapPlayAnimSceneWithLoopModeEasingTStartTEnd(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC) + retval := C.HarfangPlayAnimSceneWithLoopModeEasingTStartTEnd(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6890,10 +7388,10 @@ func (pointer *Scene) PlayAnimWithLoopModeEasingTStartTEndPaused(ref *SceneAnimR tstartToC := C.int64_t(tstart) tendToC := C.int64_t(tend) pausedToC := C.bool(paused) - retval := C.WrapPlayAnimSceneWithLoopModeEasingTStartTEndPaused(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC, pausedToC) + retval := C.HarfangPlayAnimSceneWithLoopModeEasingTStartTEndPaused(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC, pausedToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6907,10 +7405,10 @@ func (pointer *Scene) PlayAnimWithLoopModeEasingTStartTEndPausedTScale(ref *Scen tendToC := C.int64_t(tend) pausedToC := C.bool(paused) tscaleToC := C.float(tscale) - retval := C.WrapPlayAnimSceneWithLoopModeEasingTStartTEndPausedTScale(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC, pausedToC, tscaleToC) + retval := C.HarfangPlayAnimSceneWithLoopModeEasingTStartTEndPausedTScale(pointer.h, refToC, loopmodeToC, easingToC, tstartToC, tendToC, pausedToC, tscaleToC) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } @@ -6918,37 +7416,37 @@ func (pointer *Scene) PlayAnimWithLoopModeEasingTStartTEndPausedTScale(ref *Scen // IsPlaying ... func (pointer *Scene) IsPlaying(ref *ScenePlayAnimRef) bool { refToC := ref.h - retval := C.WrapIsPlayingScene(pointer.h, refToC) + retval := C.HarfangIsPlayingScene(pointer.h, refToC) return bool(retval) } // StopAnim ... func (pointer *Scene) StopAnim(ref *ScenePlayAnimRef) { refToC := ref.h - C.WrapStopAnimScene(pointer.h, refToC) + C.HarfangStopAnimScene(pointer.h, refToC) } // StopAllAnims ... func (pointer *Scene) StopAllAnims() { - C.WrapStopAllAnimsScene(pointer.h) + C.HarfangStopAllAnimsScene(pointer.h) } // GetPlayingAnimNames ... func (pointer *Scene) GetPlayingAnimNames() *StringList { - retval := C.WrapGetPlayingAnimNamesScene(pointer.h) + retval := C.HarfangGetPlayingAnimNamesScene(pointer.h) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // GetPlayingAnimRefs ... func (pointer *Scene) GetPlayingAnimRefs() *ScenePlayAnimRefList { - retval := C.WrapGetPlayingAnimRefsScene(pointer.h) + retval := C.HarfangGetPlayingAnimRefsScene(pointer.h) retvalGO := &ScenePlayAnimRefList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRefList) { - C.WrapScenePlayAnimRefListFree(cleanval.h) + C.HarfangScenePlayAnimRefListFree(cleanval.h) }) return retvalGO } @@ -6956,23 +7454,23 @@ func (pointer *Scene) GetPlayingAnimRefs() *ScenePlayAnimRefList { // UpdatePlayingAnims ... func (pointer *Scene) UpdatePlayingAnims(dt int64) { dtToC := C.int64_t(dt) - C.WrapUpdatePlayingAnimsScene(pointer.h, dtToC) + C.HarfangUpdatePlayingAnimsScene(pointer.h, dtToC) } // HasKey ... func (pointer *Scene) HasKey(key string) bool { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() - retval := C.WrapHasKeyScene(pointer.h, keyToC) + retval := C.HarfangHasKeyScene(pointer.h, keyToC) return bool(retval) } // GetKeys ... func (pointer *Scene) GetKeys() *StringList { - retval := C.WrapGetKeysScene(pointer.h) + retval := C.HarfangGetKeysScene(pointer.h) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } @@ -6981,14 +7479,14 @@ func (pointer *Scene) GetKeys() *StringList { func (pointer *Scene) RemoveKey(key string) { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() - C.WrapRemoveKeyScene(pointer.h, keyToC) + C.HarfangRemoveKeyScene(pointer.h, keyToC) } // GetValue ... func (pointer *Scene) GetValue(key string) string { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() - retval := C.WrapGetValueScene(pointer.h, keyToC) + retval := C.HarfangGetValueScene(pointer.h, keyToC) return C.GoString(retval) } @@ -6998,32 +7496,32 @@ func (pointer *Scene) SetValue(key string, value string) { defer idFinkeyToC() valueToC, idFinvalueToC := wrapString(value) defer idFinvalueToC() - C.WrapSetValueScene(pointer.h, keyToC, valueToC) + C.HarfangSetValueScene(pointer.h, keyToC, valueToC) } // GarbageCollect Destroy any unreferenced components in the scene. func (pointer *Scene) GarbageCollect() int32 { - retval := C.WrapGarbageCollectScene(pointer.h) + retval := C.HarfangGarbageCollectScene(pointer.h) return int32(retval) } // Clear Remove all nodes from the scene. func (pointer *Scene) Clear() { - C.WrapClearScene(pointer.h) + C.HarfangClearScene(pointer.h) } // ReserveNodes Allocates internal storage for the required number of nodes in one go. func (pointer *Scene) ReserveNodes(count int32) { countToC := C.size_t(count) - C.WrapReserveNodesScene(pointer.h, countToC) + C.HarfangReserveNodesScene(pointer.h, countToC) } // CreateNode Create a [harfang.Node] in the scene. func (pointer *Scene) CreateNode() *Node { - retval := C.WrapCreateNodeScene(pointer.h) + retval := C.HarfangCreateNodeScene(pointer.h) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -7032,10 +7530,10 @@ func (pointer *Scene) CreateNode() *Node { func (pointer *Scene) CreateNodeWithName(name string) *Node { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapCreateNodeSceneWithName(pointer.h, nameToC) + retval := C.HarfangCreateNodeSceneWithName(pointer.h, nameToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -7043,21 +7541,21 @@ func (pointer *Scene) CreateNodeWithName(name string) *Node { // DestroyNode Remove a [harfang.Node] from the scene. func (pointer *Scene) DestroyNode(node *Node) { nodeToC := node.h - C.WrapDestroyNodeScene(pointer.h, nodeToC) + C.HarfangDestroyNodeScene(pointer.h, nodeToC) } // ReserveTransforms Allocates internal storage for the required number of [harfang.Transform] components in one go. func (pointer *Scene) ReserveTransforms(count int32) { countToC := C.size_t(count) - C.WrapReserveTransformsScene(pointer.h, countToC) + C.HarfangReserveTransformsScene(pointer.h, countToC) } // CreateTransform ... func (pointer *Scene) CreateTransform() *Transform { - retval := C.WrapCreateTransformScene(pointer.h) + retval := C.HarfangCreateTransformScene(pointer.h) retvalGO := &Transform{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Transform) { - C.WrapTransformFree(cleanval.h) + C.HarfangTransformFree(cleanval.h) }) return retvalGO } @@ -7065,10 +7563,10 @@ func (pointer *Scene) CreateTransform() *Transform { // CreateTransformWithT ... func (pointer *Scene) CreateTransformWithT(T *Vec3) *Transform { TToC := T.h - retval := C.WrapCreateTransformSceneWithT(pointer.h, TToC) + retval := C.HarfangCreateTransformSceneWithT(pointer.h, TToC) retvalGO := &Transform{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Transform) { - C.WrapTransformFree(cleanval.h) + C.HarfangTransformFree(cleanval.h) }) return retvalGO } @@ -7077,10 +7575,10 @@ func (pointer *Scene) CreateTransformWithT(T *Vec3) *Transform { func (pointer *Scene) CreateTransformWithTR(T *Vec3, R *Vec3) *Transform { TToC := T.h RToC := R.h - retval := C.WrapCreateTransformSceneWithTR(pointer.h, TToC, RToC) + retval := C.HarfangCreateTransformSceneWithTR(pointer.h, TToC, RToC) retvalGO := &Transform{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Transform) { - C.WrapTransformFree(cleanval.h) + C.HarfangTransformFree(cleanval.h) }) return retvalGO } @@ -7090,10 +7588,10 @@ func (pointer *Scene) CreateTransformWithTRS(T *Vec3, R *Vec3, S *Vec3) *Transfo TToC := T.h RToC := R.h SToC := S.h - retval := C.WrapCreateTransformSceneWithTRS(pointer.h, TToC, RToC, SToC) + retval := C.HarfangCreateTransformSceneWithTRS(pointer.h, TToC, RToC, SToC) retvalGO := &Transform{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Transform) { - C.WrapTransformFree(cleanval.h) + C.HarfangTransformFree(cleanval.h) }) return retvalGO } @@ -7101,21 +7599,21 @@ func (pointer *Scene) CreateTransformWithTRS(T *Vec3, R *Vec3, S *Vec3) *Transfo // DestroyTransform ... func (pointer *Scene) DestroyTransform(transform *Transform) { transformToC := transform.h - C.WrapDestroyTransformScene(pointer.h, transformToC) + C.HarfangDestroyTransformScene(pointer.h, transformToC) } // ReserveCameras ... func (pointer *Scene) ReserveCameras(count int32) { countToC := C.size_t(count) - C.WrapReserveCamerasScene(pointer.h, countToC) + C.HarfangReserveCamerasScene(pointer.h, countToC) } // CreateCamera ... func (pointer *Scene) CreateCamera() *Camera { - retval := C.WrapCreateCameraScene(pointer.h) + retval := C.HarfangCreateCameraScene(pointer.h) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7124,10 +7622,10 @@ func (pointer *Scene) CreateCamera() *Camera { func (pointer *Scene) CreateCameraWithZnearZfar(znear float32, zfar float32) *Camera { znearToC := C.float(znear) zfarToC := C.float(zfar) - retval := C.WrapCreateCameraSceneWithZnearZfar(pointer.h, znearToC, zfarToC) + retval := C.HarfangCreateCameraSceneWithZnearZfar(pointer.h, znearToC, zfarToC) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7137,10 +7635,10 @@ func (pointer *Scene) CreateCameraWithZnearZfarFov(znear float32, zfar float32, znearToC := C.float(znear) zfarToC := C.float(zfar) fovToC := C.float(fov) - retval := C.WrapCreateCameraSceneWithZnearZfarFov(pointer.h, znearToC, zfarToC, fovToC) + retval := C.HarfangCreateCameraSceneWithZnearZfarFov(pointer.h, znearToC, zfarToC, fovToC) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7149,10 +7647,10 @@ func (pointer *Scene) CreateCameraWithZnearZfarFov(znear float32, zfar float32, func (pointer *Scene) CreateOrthographicCamera(znear float32, zfar float32) *Camera { znearToC := C.float(znear) zfarToC := C.float(zfar) - retval := C.WrapCreateOrthographicCameraScene(pointer.h, znearToC, zfarToC) + retval := C.HarfangCreateOrthographicCameraScene(pointer.h, znearToC, zfarToC) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7162,10 +7660,10 @@ func (pointer *Scene) CreateOrthographicCameraWithSize(znear float32, zfar float znearToC := C.float(znear) zfarToC := C.float(zfar) sizeToC := C.float(size) - retval := C.WrapCreateOrthographicCameraSceneWithSize(pointer.h, znearToC, zfarToC, sizeToC) + retval := C.HarfangCreateOrthographicCameraSceneWithSize(pointer.h, znearToC, zfarToC, sizeToC) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7173,16 +7671,16 @@ func (pointer *Scene) CreateOrthographicCameraWithSize(znear float32, zfar float // DestroyCamera ... func (pointer *Scene) DestroyCamera(camera *Camera) { cameraToC := camera.h - C.WrapDestroyCameraScene(pointer.h, cameraToC) + C.HarfangDestroyCameraScene(pointer.h, cameraToC) } // ComputeCurrentCameraViewState ... func (pointer *Scene) ComputeCurrentCameraViewState(aspectratio *Vec2) *ViewState { aspectratioToC := aspectratio.h - retval := C.WrapComputeCurrentCameraViewStateScene(pointer.h, aspectratioToC) + retval := C.HarfangComputeCurrentCameraViewStateScene(pointer.h, aspectratioToC) retvalGO := &ViewState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ViewState) { - C.WrapViewStateFree(cleanval.h) + C.HarfangViewStateFree(cleanval.h) }) return retvalGO } @@ -7190,15 +7688,15 @@ func (pointer *Scene) ComputeCurrentCameraViewState(aspectratio *Vec2) *ViewStat // ReserveObjects Allocates internal storage for the required number of [harfang.Object] components in one go. func (pointer *Scene) ReserveObjects(count int32) { countToC := C.size_t(count) - C.WrapReserveObjectsScene(pointer.h, countToC) + C.HarfangReserveObjectsScene(pointer.h, countToC) } // CreateObject ... func (pointer *Scene) CreateObject() *Object { - retval := C.WrapCreateObjectScene(pointer.h) + retval := C.HarfangCreateObjectScene(pointer.h) retvalGO := &Object{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Object) { - C.WrapObjectFree(cleanval.h) + C.HarfangObjectFree(cleanval.h) }) return retvalGO } @@ -7207,10 +7705,10 @@ func (pointer *Scene) CreateObject() *Object { func (pointer *Scene) CreateObjectWithModelMaterials(model *ModelRef, materials *MaterialList) *Object { modelToC := model.h materialsToC := materials.h - retval := C.WrapCreateObjectSceneWithModelMaterials(pointer.h, modelToC, materialsToC) + retval := C.HarfangCreateObjectSceneWithModelMaterials(pointer.h, modelToC, materialsToC) retvalGO := &Object{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Object) { - C.WrapObjectFree(cleanval.h) + C.HarfangObjectFree(cleanval.h) }) return retvalGO } @@ -7218,17 +7716,17 @@ func (pointer *Scene) CreateObjectWithModelMaterials(model *ModelRef, materials // CreateObjectWithModelSliceOfMaterials ... func (pointer *Scene) CreateObjectWithModelSliceOfMaterials(model *ModelRef, SliceOfmaterials GoSliceOfMaterial) *Object { modelToC := model.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) - retval := C.WrapCreateObjectSceneWithModelSliceOfMaterials(pointer.h, modelToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + retval := C.HarfangCreateObjectSceneWithModelSliceOfMaterials(pointer.h, modelToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) retvalGO := &Object{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Object) { - C.WrapObjectFree(cleanval.h) + C.HarfangObjectFree(cleanval.h) }) return retvalGO } @@ -7236,21 +7734,21 @@ func (pointer *Scene) CreateObjectWithModelSliceOfMaterials(model *ModelRef, Sli // DestroyObject ... func (pointer *Scene) DestroyObject(object *Object) { objectToC := object.h - C.WrapDestroyObjectScene(pointer.h, objectToC) + C.HarfangDestroyObjectScene(pointer.h, objectToC) } // ReserveLights Allocates internal storage for the required number of [harfang.Light] components in one go. func (pointer *Scene) ReserveLights(count int32) { countToC := C.size_t(count) - C.WrapReserveLightsScene(pointer.h, countToC) + C.HarfangReserveLightsScene(pointer.h, countToC) } // CreateLight ... func (pointer *Scene) CreateLight() *Light { - retval := C.WrapCreateLightScene(pointer.h) + retval := C.HarfangCreateLightScene(pointer.h) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7258,7 +7756,7 @@ func (pointer *Scene) CreateLight() *Light { // DestroyLight ... func (pointer *Scene) DestroyLight(light *Light) { lightToC := light.h - C.WrapDestroyLightScene(pointer.h, lightToC) + C.HarfangDestroyLightScene(pointer.h, lightToC) } // CreateLinearLightWithDiffuseIntensitySpecularSpecularIntensity ... @@ -7267,10 +7765,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7282,10 +7780,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7298,10 +7796,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7315,10 +7813,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7333,10 +7831,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) pssmsplitToC := pssmsplit.h - retval := C.WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) + retval := C.HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(pointer.h, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7345,10 +7843,10 @@ func (pointer *Scene) CreateLinearLightWithDiffuseIntensitySpecularSpecularInten func (pointer *Scene) CreateLinearLight(diffuse *Color, specular *Color) *Light { diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreateLinearLightScene(pointer.h, diffuseToC, specularToC) + retval := C.HarfangCreateLinearLightScene(pointer.h, diffuseToC, specularToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7358,10 +7856,10 @@ func (pointer *Scene) CreateLinearLightWithPriority(diffuse *Color, specular *Co diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreateLinearLightSceneWithPriority(pointer.h, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreateLinearLightSceneWithPriority(pointer.h, diffuseToC, specularToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7372,10 +7870,10 @@ func (pointer *Scene) CreateLinearLightWithPriorityShadowType(diffuse *Color, sp specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateLinearLightSceneWithPriorityShadowType(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateLinearLightSceneWithPriorityShadowType(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7387,10 +7885,10 @@ func (pointer *Scene) CreateLinearLightWithPriorityShadowTypeShadowBias(diffuse priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateLinearLightSceneWithPriorityShadowTypeShadowBias(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateLinearLightSceneWithPriorityShadowTypeShadowBias(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7403,10 +7901,10 @@ func (pointer *Scene) CreateLinearLightWithPriorityShadowTypeShadowBiasPssmSplit shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) pssmsplitToC := pssmsplit.h - retval := C.WrapCreateLinearLightSceneWithPriorityShadowTypeShadowBiasPssmSplit(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) + retval := C.HarfangCreateLinearLightSceneWithPriorityShadowTypeShadowBiasPssmSplit(pointer.h, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7418,10 +7916,10 @@ func (pointer *Scene) CreatePointLightWithDiffuseIntensitySpecularSpecularIntens diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7434,10 +7932,10 @@ func (pointer *Scene) CreatePointLightWithDiffuseIntensitySpecularSpecularIntens specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7451,10 +7949,10 @@ func (pointer *Scene) CreatePointLightWithDiffuseIntensitySpecularSpecularIntens specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7469,10 +7967,10 @@ func (pointer *Scene) CreatePointLightWithDiffuseIntensitySpecularSpecularIntens priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7482,10 +7980,10 @@ func (pointer *Scene) CreatePointLight(radius float32, diffuse *Color, specular radiusToC := C.float(radius) diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreatePointLightScene(pointer.h, radiusToC, diffuseToC, specularToC) + retval := C.HarfangCreatePointLightScene(pointer.h, radiusToC, diffuseToC, specularToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7496,10 +7994,10 @@ func (pointer *Scene) CreatePointLightWithPriority(radius float32, diffuse *Colo diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreatePointLightSceneWithPriority(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreatePointLightSceneWithPriority(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7511,10 +8009,10 @@ func (pointer *Scene) CreatePointLightWithPriorityShadowType(radius float32, dif specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreatePointLightSceneWithPriorityShadowType(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreatePointLightSceneWithPriorityShadowType(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7527,10 +8025,10 @@ func (pointer *Scene) CreatePointLightWithPriorityShadowTypeShadowBias(radius fl priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreatePointLightSceneWithPriorityShadowTypeShadowBias(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreatePointLightSceneWithPriorityShadowTypeShadowBias(pointer.h, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7544,10 +8042,10 @@ func (pointer *Scene) CreateSpotLightWithDiffuseIntensitySpecularSpecularIntensi diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensity(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7562,10 +8060,10 @@ func (pointer *Scene) CreateSpotLightWithDiffuseIntensitySpecularSpecularIntensi specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7581,10 +8079,10 @@ func (pointer *Scene) CreateSpotLightWithDiffuseIntensitySpecularSpecularIntensi specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7601,10 +8099,10 @@ func (pointer *Scene) CreateSpotLightWithDiffuseIntensitySpecularSpecularIntensi priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7616,10 +8114,10 @@ func (pointer *Scene) CreateSpotLight(radius float32, innerangle float32, outera outerangleToC := C.float(outerangle) diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreateSpotLightScene(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC) + retval := C.HarfangCreateSpotLightScene(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7632,10 +8130,10 @@ func (pointer *Scene) CreateSpotLightWithPriority(radius float32, innerangle flo diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreateSpotLightSceneWithPriority(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreateSpotLightSceneWithPriority(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7649,10 +8147,10 @@ func (pointer *Scene) CreateSpotLightWithPriorityShadowType(radius float32, inne specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateSpotLightSceneWithPriorityShadowType(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateSpotLightSceneWithPriorityShadowType(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7667,10 +8165,10 @@ func (pointer *Scene) CreateSpotLightWithPriorityShadowTypeShadowBias(radius flo priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateSpotLightSceneWithPriorityShadowTypeShadowBias(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateSpotLightSceneWithPriorityShadowTypeShadowBias(pointer.h, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -7678,15 +8176,15 @@ func (pointer *Scene) CreateSpotLightWithPriorityShadowTypeShadowBias(radius flo // ReserveScripts ... func (pointer *Scene) ReserveScripts(count int32) { countToC := C.size_t(count) - C.WrapReserveScriptsScene(pointer.h, countToC) + C.HarfangReserveScriptsScene(pointer.h, countToC) } // CreateScript ... func (pointer *Scene) CreateScript() *Script { - retval := C.WrapCreateScriptScene(pointer.h) + retval := C.HarfangCreateScriptScene(pointer.h) retvalGO := &Script{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return retvalGO } @@ -7695,10 +8193,10 @@ func (pointer *Scene) CreateScript() *Script { func (pointer *Scene) CreateScriptWithPath(path string) *Script { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCreateScriptSceneWithPath(pointer.h, pathToC) + retval := C.HarfangCreateScriptSceneWithPath(pointer.h, pathToC) retvalGO := &Script{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return retvalGO } @@ -7706,12 +8204,12 @@ func (pointer *Scene) CreateScriptWithPath(path string) *Script { // DestroyScript ... func (pointer *Scene) DestroyScript(script *Script) { scriptToC := script.h - C.WrapDestroyScriptScene(pointer.h, scriptToC) + C.HarfangDestroyScriptScene(pointer.h, scriptToC) } // GetScriptCount ... func (pointer *Scene) GetScriptCount() int32 { - retval := C.WrapGetScriptCountScene(pointer.h) + retval := C.HarfangGetScriptCountScene(pointer.h) return int32(retval) } @@ -7719,26 +8217,26 @@ func (pointer *Scene) GetScriptCount() int32 { func (pointer *Scene) SetScript(slotidx int32, script *Script) { slotidxToC := C.size_t(slotidx) scriptToC := script.h - C.WrapSetScriptScene(pointer.h, slotidxToC, scriptToC) + C.HarfangSetScriptScene(pointer.h, slotidxToC, scriptToC) } // GetScript ... func (pointer *Scene) GetScript(slotidx int32) *Script { slotidxToC := C.size_t(slotidx) - retval := C.WrapGetScriptScene(pointer.h, slotidxToC) + retval := C.HarfangGetScriptScene(pointer.h, slotidxToC) retvalGO := &Script{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return retvalGO } // CreateRigidBody ... func (pointer *Scene) CreateRigidBody() *RigidBody { - retval := C.WrapCreateRigidBodyScene(pointer.h) + retval := C.HarfangCreateRigidBodyScene(pointer.h) retvalGO := &RigidBody{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RigidBody) { - C.WrapRigidBodyFree(cleanval.h) + C.HarfangRigidBodyFree(cleanval.h) }) return retvalGO } @@ -7746,15 +8244,15 @@ func (pointer *Scene) CreateRigidBody() *RigidBody { // DestroyRigidBody ... func (pointer *Scene) DestroyRigidBody(rigidbody *RigidBody) { rigidbodyToC := rigidbody.h - C.WrapDestroyRigidBodyScene(pointer.h, rigidbodyToC) + C.HarfangDestroyRigidBodyScene(pointer.h, rigidbodyToC) } // CreateCollision ... func (pointer *Scene) CreateCollision() *Collision { - retval := C.WrapCreateCollisionScene(pointer.h) + retval := C.HarfangCreateCollisionScene(pointer.h) retvalGO := &Collision{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Collision) { - C.WrapCollisionFree(cleanval.h) + C.HarfangCollisionFree(cleanval.h) }) return retvalGO } @@ -7762,15 +8260,15 @@ func (pointer *Scene) CreateCollision() *Collision { // DestroyCollision ... func (pointer *Scene) DestroyCollision(collision *Collision) { collisionToC := collision.h - C.WrapDestroyCollisionScene(pointer.h, collisionToC) + C.HarfangDestroyCollisionScene(pointer.h, collisionToC) } // CreateInstance ... func (pointer *Scene) CreateInstance() *Instance { - retval := C.WrapCreateInstanceScene(pointer.h) + retval := C.HarfangCreateInstanceScene(pointer.h) retvalGO := &Instance{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Instance) { - C.WrapInstanceFree(cleanval.h) + C.HarfangInstanceFree(cleanval.h) }) return retvalGO } @@ -7778,7 +8276,7 @@ func (pointer *Scene) CreateInstance() *Instance { // DestroyInstance ... func (pointer *Scene) DestroyInstance(Instance *Instance) { InstanceToC := Instance.h - C.WrapDestroyInstanceScene(pointer.h, InstanceToC) + C.HarfangDestroyInstanceScene(pointer.h, InstanceToC) } // SetProbe ... @@ -7786,15 +8284,15 @@ func (pointer *Scene) SetProbe(irradiance *TextureRef, radiance *TextureRef, brd irradianceToC := irradiance.h radianceToC := radiance.h brdfToC := brdf.h - C.WrapSetProbeScene(pointer.h, irradianceToC, radianceToC, brdfToC) + C.HarfangSetProbeScene(pointer.h, irradianceToC, radianceToC, brdfToC) } // GetCurrentCamera Get the current camera. func (pointer *Scene) GetCurrentCamera() *Node { - retval := C.WrapGetCurrentCameraScene(pointer.h) + retval := C.HarfangGetCurrentCameraScene(pointer.h) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -7802,7 +8300,7 @@ func (pointer *Scene) GetCurrentCamera() *Node { // SetCurrentCamera Set the current camera. func (pointer *Scene) SetCurrentCamera(camera *Node) { cameraToC := camera.h - C.WrapSetCurrentCameraScene(pointer.h, cameraToC) + C.HarfangSetCurrentCameraScene(pointer.h, cameraToC) } // GetMinMax ... @@ -7810,32 +8308,38 @@ func (pointer *Scene) GetMinMax(resources *PipelineResources) (bool, *MinMax) { resourcesToC := resources.h minmax := NewMinMax() minmaxToC := minmax.h - retval := C.WrapGetMinMaxScene(pointer.h, resourcesToC, minmaxToC) + retval := C.HarfangGetMinMaxScene(pointer.h, resourcesToC, minmaxToC) return bool(retval), minmax } // SceneView Holds a view to a subset of a scene. Used by the instance system to track instantiated scene content. See [harfang.Node_GetInstanceSceneView] and [harfang.man.Scene]. type SceneView struct { - h C.WrapSceneView + h C.HarfangSceneView +} + +// NewSceneViewFromCPointer ... +func NewSceneViewFromCPointer(p unsafe.Pointer) *SceneView { + retvalGO := &SceneView{h: (C.HarfangSceneView)(p)} + return retvalGO } // Free ... func (pointer *SceneView) Free() { - C.WrapSceneViewFree(pointer.h) + C.HarfangSceneViewFree(pointer.h) } // IsNil ... func (pointer *SceneView) IsNil() bool { - return pointer.h == C.WrapSceneView(nil) + return pointer.h == C.HarfangSceneView(nil) } // GetNodes Return all nodes in the view. Pass the host scene as the `scene` parameter. See [harfang.man.Scene]. func (pointer *SceneView) GetNodes(scene *Scene) *NodeList { sceneToC := scene.h - retval := C.WrapGetNodesSceneView(pointer.h, sceneToC) + retval := C.HarfangGetNodesSceneView(pointer.h, sceneToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -7845,94 +8349,100 @@ func (pointer *SceneView) GetNode(scene *Scene, name string) *Node { sceneToC := scene.h nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetNodeSceneView(pointer.h, sceneToC, nameToC) + retval := C.HarfangGetNodeSceneView(pointer.h, sceneToC, nameToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } // Node The base element of a scene, see [harfang.man.Scene]. type Node struct { - h C.WrapNode + h C.HarfangNode +} + +// NewNodeFromCPointer ... +func NewNodeFromCPointer(p unsafe.Pointer) *Node { + retvalGO := &Node{h: (C.HarfangNode)(p)} + return retvalGO } // Free ... func (pointer *Node) Free() { - C.WrapNodeFree(pointer.h) + C.HarfangNodeFree(pointer.h) } // IsNil ... func (pointer *Node) IsNil() bool { - return pointer.h == C.WrapNode(nil) + return pointer.h == C.HarfangNode(nil) } // Eq ... func (pointer *Node) Eq(n *Node) bool { nToC := n.h - retval := C.WrapEqNode(pointer.h, nToC) + retval := C.HarfangEqNode(pointer.h, nToC) return bool(retval) } // IsValid Return `true` if the [harfang.Node] still exist. func (pointer *Node) IsValid() bool { - retval := C.WrapIsValidNode(pointer.h) + retval := C.HarfangIsValidNode(pointer.h) return bool(retval) } // GetUid Return the unique ID. func (pointer *Node) GetUid() uint32 { - retval := C.WrapGetUidNode(pointer.h) + retval := C.HarfangGetUidNode(pointer.h) return uint32(retval) } // GetFlags ... func (pointer *Node) GetFlags() uint32 { - retval := C.WrapGetFlagsNode(pointer.h) + retval := C.HarfangGetFlagsNode(pointer.h) return uint32(retval) } // SetFlags ... func (pointer *Node) SetFlags(flags uint32) { flagsToC := C.uint32_t(flags) - C.WrapSetFlagsNode(pointer.h, flagsToC) + C.HarfangSetFlagsNode(pointer.h, flagsToC) } // Enable ... func (pointer *Node) Enable() { - C.WrapEnableNode(pointer.h) + C.HarfangEnableNode(pointer.h) } // Disable ... func (pointer *Node) Disable() { - C.WrapDisableNode(pointer.h) + C.HarfangDisableNode(pointer.h) } // IsEnabled ... func (pointer *Node) IsEnabled() bool { - retval := C.WrapIsEnabledNode(pointer.h) + retval := C.HarfangIsEnabledNode(pointer.h) return bool(retval) } // IsItselfEnabled ... func (pointer *Node) IsItselfEnabled() bool { - retval := C.WrapIsItselfEnabledNode(pointer.h) + retval := C.HarfangIsItselfEnabledNode(pointer.h) return bool(retval) } // HasTransform Return `true` if the [harfang.Node] has a [harfang.Transform] component. func (pointer *Node) HasTransform() bool { - retval := C.WrapHasTransformNode(pointer.h) + retval := C.HarfangHasTransformNode(pointer.h) return bool(retval) } // GetTransform Return the [harfang.Transform] component of the node. func (pointer *Node) GetTransform() *Transform { - retval := C.WrapGetTransformNode(pointer.h) + retval := C.HarfangGetTransformNode(pointer.h) retvalGO := &Transform{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Transform) { - C.WrapTransformFree(cleanval.h) + C.HarfangTransformFree(cleanval.h) }) return retvalGO } @@ -7940,26 +8450,26 @@ func (pointer *Node) GetTransform() *Transform { // SetTransform Set the [harfang.Transform] component of a node. See [harfang.Scene_CreateTransform]. func (pointer *Node) SetTransform(t *Transform) { tToC := t.h - C.WrapSetTransformNode(pointer.h, tToC) + C.HarfangSetTransformNode(pointer.h, tToC) } // RemoveTransform Remove the [harfang.Transform] component from the [harfang.Node]. func (pointer *Node) RemoveTransform() { - C.WrapRemoveTransformNode(pointer.h) + C.HarfangRemoveTransformNode(pointer.h) } // HasCamera Return `true` if the [harfang.Node] has a [harfang.Camera] component. func (pointer *Node) HasCamera() bool { - retval := C.WrapHasCameraNode(pointer.h) + retval := C.HarfangHasCameraNode(pointer.h) return bool(retval) } // GetCamera Return the [harfang.Camera] component of the node. func (pointer *Node) GetCamera() *Camera { - retval := C.WrapGetCameraNode(pointer.h) + retval := C.HarfangGetCameraNode(pointer.h) retvalGO := &Camera{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Camera) { - C.WrapCameraFree(cleanval.h) + C.HarfangCameraFree(cleanval.h) }) return retvalGO } @@ -7967,37 +8477,37 @@ func (pointer *Node) GetCamera() *Camera { // SetCamera Set the [harfang.Camera] component of a node. See [harfang.Scene_CreateCamera]. func (pointer *Node) SetCamera(c *Camera) { cToC := c.h - C.WrapSetCameraNode(pointer.h, cToC) + C.HarfangSetCameraNode(pointer.h, cToC) } // RemoveCamera Remove the [harfang.Camera] component from the [harfang.Node]. func (pointer *Node) RemoveCamera() { - C.WrapRemoveCameraNode(pointer.h) + C.HarfangRemoveCameraNode(pointer.h) } // ComputeCameraViewState ... func (pointer *Node) ComputeCameraViewState(aspectratio *Vec2) *ViewState { aspectratioToC := aspectratio.h - retval := C.WrapComputeCameraViewStateNode(pointer.h, aspectratioToC) + retval := C.HarfangComputeCameraViewStateNode(pointer.h, aspectratioToC) retvalGO := &ViewState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ViewState) { - C.WrapViewStateFree(cleanval.h) + C.HarfangViewStateFree(cleanval.h) }) return retvalGO } // HasObject Return `true` if the [harfang.Node] has an [harfang.Object] (a geometry) component. func (pointer *Node) HasObject() bool { - retval := C.WrapHasObjectNode(pointer.h) + retval := C.HarfangHasObjectNode(pointer.h) return bool(retval) } // GetObject Return [harfang.Object] component of the node. func (pointer *Node) GetObject() *Object { - retval := C.WrapGetObjectNode(pointer.h) + retval := C.HarfangGetObjectNode(pointer.h) retvalGO := &Object{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Object) { - C.WrapObjectFree(cleanval.h) + C.HarfangObjectFree(cleanval.h) }) return retvalGO } @@ -8005,12 +8515,12 @@ func (pointer *Node) GetObject() *Object { // SetObject Set the [harfang.Object] component of a node. See [harfang.Scene_CreateObject]. func (pointer *Node) SetObject(o *Object) { oToC := o.h - C.WrapSetObjectNode(pointer.h, oToC) + C.HarfangSetObjectNode(pointer.h, oToC) } // RemoveObject Remove the [harfang.Object] component from the [harfang.Node]. func (pointer *Node) RemoveObject() { - C.WrapRemoveObjectNode(pointer.h) + C.HarfangRemoveObjectNode(pointer.h) } // GetMinMax ... @@ -8018,22 +8528,22 @@ func (pointer *Node) GetMinMax(resources *PipelineResources) (bool, *MinMax) { resourcesToC := resources.h minmax := NewMinMax() minmaxToC := minmax.h - retval := C.WrapGetMinMaxNode(pointer.h, resourcesToC, minmaxToC) + retval := C.HarfangGetMinMaxNode(pointer.h, resourcesToC, minmaxToC) return bool(retval), minmax } // HasLight Return `true` if the [harfang.Node] has a [harfang.Light] component. func (pointer *Node) HasLight() bool { - retval := C.WrapHasLightNode(pointer.h) + retval := C.HarfangHasLightNode(pointer.h) return bool(retval) } // GetLight Return the [harfang.Light] component of the node. func (pointer *Node) GetLight() *Light { - retval := C.WrapGetLightNode(pointer.h) + retval := C.HarfangGetLightNode(pointer.h) retvalGO := &Light{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Light) { - C.WrapLightFree(cleanval.h) + C.HarfangLightFree(cleanval.h) }) return retvalGO } @@ -8041,26 +8551,26 @@ func (pointer *Node) GetLight() *Light { // SetLight Set the [harfang.Light] component of a node. See [harfang.Scene_CreateLight], [harfang.Scene_CreatePointLight], [harfang.Scene_CreateSpotLight] or [harfang.Scene_CreateLinearLight]. func (pointer *Node) SetLight(l *Light) { lToC := l.h - C.WrapSetLightNode(pointer.h, lToC) + C.HarfangSetLightNode(pointer.h, lToC) } // RemoveLight Remove the [harfang.Light] component from the [harfang.Node]. func (pointer *Node) RemoveLight() { - C.WrapRemoveLightNode(pointer.h) + C.HarfangRemoveLightNode(pointer.h) } // HasRigidBody Return `true` if the [harfang.Node] has a [harfang.RigidBody] component. func (pointer *Node) HasRigidBody() bool { - retval := C.WrapHasRigidBodyNode(pointer.h) + retval := C.HarfangHasRigidBodyNode(pointer.h) return bool(retval) } // GetRigidBody Return the [harfang.RigidBody] component of a [harfang.Node]. func (pointer *Node) GetRigidBody() *RigidBody { - retval := C.WrapGetRigidBodyNode(pointer.h) + retval := C.HarfangGetRigidBodyNode(pointer.h) retvalGO := &RigidBody{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RigidBody) { - C.WrapRigidBodyFree(cleanval.h) + C.HarfangRigidBodyFree(cleanval.h) }) return retvalGO } @@ -8068,27 +8578,27 @@ func (pointer *Node) GetRigidBody() *RigidBody { // SetRigidBody Set the [harfang.RigidBody] component of a node. func (pointer *Node) SetRigidBody(b *RigidBody) { bToC := b.h - C.WrapSetRigidBodyNode(pointer.h, bToC) + C.HarfangSetRigidBodyNode(pointer.h, bToC) } // RemoveRigidBody Remove the [harfang.RigidBody] component from the [harfang.Node]. func (pointer *Node) RemoveRigidBody() { - C.WrapRemoveRigidBodyNode(pointer.h) + C.HarfangRemoveRigidBodyNode(pointer.h) } // GetCollisionCount Return the amount of [harfang.Collision] components of a [harfang.Node]. func (pointer *Node) GetCollisionCount() int32 { - retval := C.WrapGetCollisionCountNode(pointer.h) + retval := C.HarfangGetCollisionCountNode(pointer.h) return int32(retval) } // GetCollision Return the [harfang.Collision] component attached to the [harfang.Node] at the desired `slot`. func (pointer *Node) GetCollision(slot int32) *Collision { slotToC := C.size_t(slot) - retval := C.WrapGetCollisionNode(pointer.h, slotToC) + retval := C.HarfangGetCollisionNode(pointer.h, slotToC) retvalGO := &Collision{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Collision) { - C.WrapCollisionFree(cleanval.h) + C.HarfangCollisionFree(cleanval.h) }) return retvalGO } @@ -8097,24 +8607,24 @@ func (pointer *Node) GetCollision(slot int32) *Collision { func (pointer *Node) SetCollision(slot int32, c *Collision) { slotToC := C.size_t(slot) cToC := c.h - C.WrapSetCollisionNode(pointer.h, slotToC, cToC) + C.HarfangSetCollisionNode(pointer.h, slotToC, cToC) } // RemoveCollision Remove the [harfang.Collision] component attached to the `slot` of the [harfang.Node]. func (pointer *Node) RemoveCollision(c *Collision) { cToC := c.h - C.WrapRemoveCollisionNode(pointer.h, cToC) + C.HarfangRemoveCollisionNode(pointer.h, cToC) } // RemoveCollisionWithSlot Remove the [harfang.Collision] component attached to the `slot` of the [harfang.Node]. func (pointer *Node) RemoveCollisionWithSlot(slot int32) { slotToC := C.size_t(slot) - C.WrapRemoveCollisionNodeWithSlot(pointer.h, slotToC) + C.HarfangRemoveCollisionNodeWithSlot(pointer.h, slotToC) } // GetName Return the node name. func (pointer *Node) GetName() string { - retval := C.WrapGetNameNode(pointer.h) + retval := C.HarfangGetNameNode(pointer.h) return C.GoString(retval) } @@ -8122,22 +8632,22 @@ func (pointer *Node) GetName() string { func (pointer *Node) SetName(name string) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - C.WrapSetNameNode(pointer.h, nameToC) + C.HarfangSetNameNode(pointer.h, nameToC) } // GetScriptCount ... func (pointer *Node) GetScriptCount() int32 { - retval := C.WrapGetScriptCountNode(pointer.h) + retval := C.HarfangGetScriptCountNode(pointer.h) return int32(retval) } // GetScript ... func (pointer *Node) GetScript(idx int32) *Script { idxToC := C.size_t(idx) - retval := C.WrapGetScriptNode(pointer.h, idxToC) + retval := C.HarfangGetScriptNode(pointer.h, idxToC) retvalGO := &Script{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return retvalGO } @@ -8146,33 +8656,33 @@ func (pointer *Node) GetScript(idx int32) *Script { func (pointer *Node) SetScript(idx int32, s *Script) { idxToC := C.size_t(idx) sToC := s.h - C.WrapSetScriptNode(pointer.h, idxToC, sToC) + C.HarfangSetScriptNode(pointer.h, idxToC, sToC) } // RemoveScript ... func (pointer *Node) RemoveScript(s *Script) { sToC := s.h - C.WrapRemoveScriptNode(pointer.h, sToC) + C.HarfangRemoveScriptNode(pointer.h, sToC) } // RemoveScriptWithSlot ... func (pointer *Node) RemoveScriptWithSlot(slot int32) { slotToC := C.size_t(slot) - C.WrapRemoveScriptNodeWithSlot(pointer.h, slotToC) + C.HarfangRemoveScriptNodeWithSlot(pointer.h, slotToC) } // HasInstance Return `true` if the [harfang.Node] has an [harfang.Instance] component. func (pointer *Node) HasInstance() bool { - retval := C.WrapHasInstanceNode(pointer.h) + retval := C.HarfangHasInstanceNode(pointer.h) return bool(retval) } // GetInstance Return the [harfang.Instance] component of a [harfang.Node]. func (pointer *Node) GetInstance() *Instance { - retval := C.WrapGetInstanceNode(pointer.h) + retval := C.HarfangGetInstanceNode(pointer.h) retvalGO := &Instance{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Instance) { - C.WrapInstanceFree(cleanval.h) + C.HarfangInstanceFree(cleanval.h) }) return retvalGO } @@ -8180,14 +8690,14 @@ func (pointer *Node) GetInstance() *Instance { // SetInstance Set the [harfang.Instance] component of a [harfang.Node]. func (pointer *Node) SetInstance(instance *Instance) { instanceToC := instance.h - C.WrapSetInstanceNode(pointer.h, instanceToC) + C.HarfangSetInstanceNode(pointer.h, instanceToC) } // SetupInstanceFromFile ... func (pointer *Node) SetupInstanceFromFile(resources *PipelineResources, pipeline *PipelineInfo) bool { resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapSetupInstanceFromFileNode(pointer.h, resourcesToC, pipelineToC) + retval := C.HarfangSetupInstanceFromFileNode(pointer.h, resourcesToC, pipelineToC) return bool(retval) } @@ -8196,7 +8706,7 @@ func (pointer *Node) SetupInstanceFromFileWithFlags(resources *PipelineResources resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapSetupInstanceFromFileNodeWithFlags(pointer.h, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangSetupInstanceFromFileNodeWithFlags(pointer.h, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -8204,7 +8714,7 @@ func (pointer *Node) SetupInstanceFromFileWithFlags(resources *PipelineResources func (pointer *Node) SetupInstanceFromAssets(resources *PipelineResources, pipeline *PipelineInfo) bool { resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapSetupInstanceFromAssetsNode(pointer.h, resourcesToC, pipelineToC) + retval := C.HarfangSetupInstanceFromAssetsNode(pointer.h, resourcesToC, pipelineToC) return bool(retval) } @@ -8213,31 +8723,31 @@ func (pointer *Node) SetupInstanceFromAssetsWithFlags(resources *PipelineResourc resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapSetupInstanceFromAssetsNodeWithFlags(pointer.h, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangSetupInstanceFromAssetsNodeWithFlags(pointer.h, resourcesToC, pipelineToC, flagsToC) return bool(retval) } // DestroyInstance ... func (pointer *Node) DestroyInstance() { - C.WrapDestroyInstanceNode(pointer.h) + C.HarfangDestroyInstanceNode(pointer.h) } // IsInstantiatedBy ... func (pointer *Node) IsInstantiatedBy() *Node { - retval := C.WrapIsInstantiatedByNode(pointer.h) + retval := C.HarfangIsInstantiatedByNode(pointer.h) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } // GetInstanceSceneView ... func (pointer *Node) GetInstanceSceneView() *SceneView { - retval := C.WrapGetInstanceSceneViewNode(pointer.h) + retval := C.HarfangGetInstanceSceneViewNode(pointer.h) retvalGO := &SceneView{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneView) { - C.WrapSceneViewFree(cleanval.h) + C.HarfangSceneViewFree(cleanval.h) }) return retvalGO } @@ -8246,30 +8756,30 @@ func (pointer *Node) GetInstanceSceneView() *SceneView { func (pointer *Node) GetInstanceSceneAnim(path string) *SceneAnimRef { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapGetInstanceSceneAnimNode(pointer.h, pathToC) + retval := C.HarfangGetInstanceSceneAnimNode(pointer.h, pathToC) retvalGO := &SceneAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneAnimRef) { - C.WrapSceneAnimRefFree(cleanval.h) + C.HarfangSceneAnimRefFree(cleanval.h) }) return retvalGO } // StartOnInstantiateAnim ... func (pointer *Node) StartOnInstantiateAnim() { - C.WrapStartOnInstantiateAnimNode(pointer.h) + C.HarfangStartOnInstantiateAnimNode(pointer.h) } // StopOnInstantiateAnim ... func (pointer *Node) StopOnInstantiateAnim() { - C.WrapStopOnInstantiateAnimNode(pointer.h) + C.HarfangStopOnInstantiateAnimNode(pointer.h) } // GetWorld ... func (pointer *Node) GetWorld() *Mat4 { - retval := C.WrapGetWorldNode(pointer.h) + retval := C.HarfangGetWorldNode(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -8277,27 +8787,33 @@ func (pointer *Node) GetWorld() *Mat4 { // SetWorld ... func (pointer *Node) SetWorld(world *Mat4) { worldToC := world.h - C.WrapSetWorldNode(pointer.h, worldToC) + C.HarfangSetWorldNode(pointer.h, worldToC) } // ComputeWorld ... func (pointer *Node) ComputeWorld() *Mat4 { - retval := C.WrapComputeWorldNode(pointer.h) + retval := C.HarfangComputeWorldNode(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } // TransformTRS Translation, rotation and scale packed as a single object. type TransformTRS struct { - h C.WrapTransformTRS + h C.HarfangTransformTRS +} + +// NewTransformTRSFromCPointer ... +func NewTransformTRSFromCPointer(p unsafe.Pointer) *TransformTRS { + retvalGO := &TransformTRS{h: (C.HarfangTransformTRS)(p)} + return retvalGO } // GetPos ... func (pointer *TransformTRS) GetPos() *Vec3 { - v := C.WrapTransformTRSGetPos(pointer.h) + v := C.HarfangTransformTRSGetPos(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -8305,12 +8821,12 @@ func (pointer *TransformTRS) GetPos() *Vec3 { // SetPos ... func (pointer *TransformTRS) SetPos(v *Vec3) { vToC := v.h - C.WrapTransformTRSSetPos(pointer.h, vToC) + C.HarfangTransformTRSSetPos(pointer.h, vToC) } // GetRot ... func (pointer *TransformTRS) GetRot() *Vec3 { - v := C.WrapTransformTRSGetRot(pointer.h) + v := C.HarfangTransformTRSGetRot(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -8318,12 +8834,12 @@ func (pointer *TransformTRS) GetRot() *Vec3 { // SetRot ... func (pointer *TransformTRS) SetRot(v *Vec3) { vToC := v.h - C.WrapTransformTRSSetRot(pointer.h, vToC) + C.HarfangTransformTRSSetRot(pointer.h, vToC) } // GetScl ... func (pointer *TransformTRS) GetScl() *Vec3 { - v := C.WrapTransformTRSGetScl(pointer.h) + v := C.HarfangTransformTRSGetScl(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -8331,63 +8847,69 @@ func (pointer *TransformTRS) GetScl() *Vec3 { // SetScl ... func (pointer *TransformTRS) SetScl(v *Vec3) { vToC := v.h - C.WrapTransformTRSSetScl(pointer.h, vToC) + C.HarfangTransformTRSSetScl(pointer.h, vToC) } // NewTransformTRS Translation, rotation and scale packed as a single object. func NewTransformTRS() *TransformTRS { - retval := C.WrapConstructorTransformTRS() + retval := C.HarfangConstructorTransformTRS() retvalGO := &TransformTRS{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TransformTRS) { - C.WrapTransformTRSFree(cleanval.h) + C.HarfangTransformTRSFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *TransformTRS) Free() { - C.WrapTransformTRSFree(pointer.h) + C.HarfangTransformTRSFree(pointer.h) } // IsNil ... func (pointer *TransformTRS) IsNil() bool { - return pointer.h == C.WrapTransformTRS(nil) + return pointer.h == C.HarfangTransformTRS(nil) } // Transform Transformation component for a [harfang.Node], see [harfang.man.Scene]. type Transform struct { - h C.WrapTransform + h C.HarfangTransform +} + +// NewTransformFromCPointer ... +func NewTransformFromCPointer(p unsafe.Pointer) *Transform { + retvalGO := &Transform{h: (C.HarfangTransform)(p)} + return retvalGO } // Free ... func (pointer *Transform) Free() { - C.WrapTransformFree(pointer.h) + C.HarfangTransformFree(pointer.h) } // IsNil ... func (pointer *Transform) IsNil() bool { - return pointer.h == C.WrapTransform(nil) + return pointer.h == C.HarfangTransform(nil) } // Eq ... func (pointer *Transform) Eq(t *Transform) bool { tToC := t.h - retval := C.WrapEqTransform(pointer.h, tToC) + retval := C.HarfangEqTransform(pointer.h, tToC) return bool(retval) } // IsValid ... func (pointer *Transform) IsValid() bool { - retval := C.WrapIsValidTransform(pointer.h) + retval := C.HarfangIsValidTransform(pointer.h) return bool(retval) } // GetPos Return the transform position. > If you want the visual position of a Node with a rigid body, use [harfang.GetT] on [harfang.Transform_GetWorld]. See [harfang.man.Physics]. func (pointer *Transform) GetPos() *Vec3 { - retval := C.WrapGetPosTransform(pointer.h) + retval := C.HarfangGetPosTransform(pointer.h) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -8395,15 +8917,15 @@ func (pointer *Transform) GetPos() *Vec3 { // SetPos Set the transform position. > When the Node has a RigidBody component, [harfang.Transform_SetPos] is overrided by physics. See [harfang.man.Physics]. func (pointer *Transform) SetPos(T *Vec3) { TToC := T.h - C.WrapSetPosTransform(pointer.h, TToC) + C.HarfangSetPosTransform(pointer.h, TToC) } // GetRot Get the transform rotation. If you want the visual rotation of a Node with a rigid body, use [harfang.GetRotation] on the matrix returned by [harfang.Transform_GetWorld]. See [harfang.man.Physics]. func (pointer *Transform) GetRot() *Vec3 { - retval := C.WrapGetRotTransform(pointer.h) + retval := C.HarfangGetRotTransform(pointer.h) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -8411,15 +8933,15 @@ func (pointer *Transform) GetRot() *Vec3 { // SetRot Set the transform rotation from a vector of _Euler_ angles. > When the Node has a RigidBody component, [harfang.Transform_SetRot] is overrided by physics. See [harfang.man.Physics]. func (pointer *Transform) SetRot(R *Vec3) { RToC := R.h - C.WrapSetRotTransform(pointer.h, RToC) + C.HarfangSetRotTransform(pointer.h, RToC) } // GetScale Get the transform scale. func (pointer *Transform) GetScale() *Vec3 { - retval := C.WrapGetScaleTransform(pointer.h) + retval := C.HarfangGetScaleTransform(pointer.h) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -8427,15 +8949,15 @@ func (pointer *Transform) GetScale() *Vec3 { // SetScale Set the transform scale. func (pointer *Transform) SetScale(S *Vec3) { SToC := S.h - C.WrapSetScaleTransform(pointer.h, SToC) + C.HarfangSetScaleTransform(pointer.h, SToC) } // GetTRS Return the [harfang.TransformTRS]. func (pointer *Transform) GetTRS() *TransformTRS { - retval := C.WrapGetTRSTransform(pointer.h) + retval := C.HarfangGetTRSTransform(pointer.h) retvalGO := &TransformTRS{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TransformTRS) { - C.WrapTransformTRSFree(cleanval.h) + C.HarfangTransformTRSFree(cleanval.h) }) return retvalGO } @@ -8443,7 +8965,7 @@ func (pointer *Transform) GetTRS() *TransformTRS { // SetTRS Set the [harfang.TransformTRS]. func (pointer *Transform) SetTRS(TRS *TransformTRS) { TRSToC := TRS.h - C.WrapSetTRSTransform(pointer.h, TRSToC) + C.HarfangSetTRSTransform(pointer.h, TRSToC) } // GetPosRot ... @@ -8452,7 +8974,7 @@ func (pointer *Transform) GetPosRot() (*Vec3, *Vec3) { posToC := pos.h rot := NewVec3() rotToC := rot.h - C.WrapGetPosRotTransform(pointer.h, posToC, rotToC) + C.HarfangGetPosRotTransform(pointer.h, posToC, rotToC) return pos, rot } @@ -8460,15 +8982,15 @@ func (pointer *Transform) GetPosRot() (*Vec3, *Vec3) { func (pointer *Transform) SetPosRot(pos *Vec3, rot *Vec3) { posToC := pos.h rotToC := rot.h - C.WrapSetPosRotTransform(pointer.h, posToC, rotToC) + C.HarfangSetPosRotTransform(pointer.h, posToC, rotToC) } // GetParent Return the parent node for this [harfang.Transform]. func (pointer *Transform) GetParent() *Node { - retval := C.WrapGetParentTransform(pointer.h) + retval := C.HarfangGetParentTransform(pointer.h) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -8476,20 +8998,20 @@ func (pointer *Transform) GetParent() *Node { // SetParent Set the parent node for this transform. This transform will then inherit the transformation of its parent node's [harfang.Transform] component. func (pointer *Transform) SetParent(n *Node) { nToC := n.h - C.WrapSetParentTransform(pointer.h, nToC) + C.HarfangSetParentTransform(pointer.h, nToC) } // ClearParent ... func (pointer *Transform) ClearParent() { - C.WrapClearParentTransform(pointer.h) + C.HarfangClearParentTransform(pointer.h) } // GetWorld Return the world matrix. func (pointer *Transform) GetWorld() *Mat4 { - retval := C.WrapGetWorldTransform(pointer.h) + retval := C.HarfangGetWorldTransform(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -8497,122 +9019,134 @@ func (pointer *Transform) GetWorld() *Mat4 { // SetWorld Set the world matrix. > When the Node has a RigidBody component, SetWorld is overrided by physics. func (pointer *Transform) SetWorld(world *Mat4) { worldToC := world.h - C.WrapSetWorldTransform(pointer.h, worldToC) + C.HarfangSetWorldTransform(pointer.h, worldToC) } // SetLocal ... func (pointer *Transform) SetLocal(local *Mat4) { localToC := local.h - C.WrapSetLocalTransform(pointer.h, localToC) + C.HarfangSetLocalTransform(pointer.h, localToC) } // CameraZRange ... type CameraZRange struct { - h C.WrapCameraZRange + h C.HarfangCameraZRange +} + +// NewCameraZRangeFromCPointer ... +func NewCameraZRangeFromCPointer(p unsafe.Pointer) *CameraZRange { + retvalGO := &CameraZRange{h: (C.HarfangCameraZRange)(p)} + return retvalGO } // GetZnear ... func (pointer *CameraZRange) GetZnear() float32 { - v := C.WrapCameraZRangeGetZnear(pointer.h) + v := C.HarfangCameraZRangeGetZnear(pointer.h) return float32(v) } // SetZnear ... func (pointer *CameraZRange) SetZnear(v float32) { vToC := C.float(v) - C.WrapCameraZRangeSetZnear(pointer.h, vToC) + C.HarfangCameraZRangeSetZnear(pointer.h, vToC) } // GetZfar ... func (pointer *CameraZRange) GetZfar() float32 { - v := C.WrapCameraZRangeGetZfar(pointer.h) + v := C.HarfangCameraZRangeGetZfar(pointer.h) return float32(v) } // SetZfar ... func (pointer *CameraZRange) SetZfar(v float32) { vToC := C.float(v) - C.WrapCameraZRangeSetZfar(pointer.h, vToC) + C.HarfangCameraZRangeSetZfar(pointer.h, vToC) } // NewCameraZRange ... func NewCameraZRange() *CameraZRange { - retval := C.WrapConstructorCameraZRange() + retval := C.HarfangConstructorCameraZRange() retvalGO := &CameraZRange{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *CameraZRange) { - C.WrapCameraZRangeFree(cleanval.h) + C.HarfangCameraZRangeFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *CameraZRange) Free() { - C.WrapCameraZRangeFree(pointer.h) + C.HarfangCameraZRangeFree(pointer.h) } // IsNil ... func (pointer *CameraZRange) IsNil() bool { - return pointer.h == C.WrapCameraZRange(nil) + return pointer.h == C.HarfangCameraZRange(nil) } // Camera Add this component to a [harfang.Node] to implement the camera aspect. Create a camera component with [harfang.Scene_CreateCamera], use [harfang.CreateCamera] to create a complete camera node. type Camera struct { - h C.WrapCamera + h C.HarfangCamera +} + +// NewCameraFromCPointer ... +func NewCameraFromCPointer(p unsafe.Pointer) *Camera { + retvalGO := &Camera{h: (C.HarfangCamera)(p)} + return retvalGO } // Free ... func (pointer *Camera) Free() { - C.WrapCameraFree(pointer.h) + C.HarfangCameraFree(pointer.h) } // IsNil ... func (pointer *Camera) IsNil() bool { - return pointer.h == C.WrapCamera(nil) + return pointer.h == C.HarfangCamera(nil) } // Eq ... func (pointer *Camera) Eq(c *Camera) bool { cToC := c.h - retval := C.WrapEqCamera(pointer.h, cToC) + retval := C.HarfangEqCamera(pointer.h, cToC) return bool(retval) } // IsValid ... func (pointer *Camera) IsValid() bool { - retval := C.WrapIsValidCamera(pointer.h) + retval := C.HarfangIsValidCamera(pointer.h) return bool(retval) } // GetZNear Return the camera near clipping plane. func (pointer *Camera) GetZNear() float32 { - retval := C.WrapGetZNearCamera(pointer.h) + retval := C.HarfangGetZNearCamera(pointer.h) return float32(retval) } // SetZNear Set the camera near clipping plane. func (pointer *Camera) SetZNear(v float32) { vToC := C.float(v) - C.WrapSetZNearCamera(pointer.h, vToC) + C.HarfangSetZNearCamera(pointer.h, vToC) } // GetZFar Return the camera far clipping plane. func (pointer *Camera) GetZFar() float32 { - retval := C.WrapGetZFarCamera(pointer.h) + retval := C.HarfangGetZFarCamera(pointer.h) return float32(retval) } // SetZFar Set the camera far clipping plane. func (pointer *Camera) SetZFar(v float32) { vToC := C.float(v) - C.WrapSetZFarCamera(pointer.h, vToC) + C.HarfangSetZFarCamera(pointer.h, vToC) } // GetZRange ... func (pointer *Camera) GetZRange() *CameraZRange { - retval := C.WrapGetZRangeCamera(pointer.h) + retval := C.HarfangGetZRangeCamera(pointer.h) retvalGO := &CameraZRange{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *CameraZRange) { - C.WrapCameraZRangeFree(cleanval.h) + C.HarfangCameraZRangeFree(cleanval.h) }) return retvalGO } @@ -8620,79 +9154,85 @@ func (pointer *Camera) GetZRange() *CameraZRange { // SetZRange ... func (pointer *Camera) SetZRange(z *CameraZRange) { zToC := z.h - C.WrapSetZRangeCamera(pointer.h, zToC) + C.HarfangSetZRangeCamera(pointer.h, zToC) } // GetFov Return the camera field of view. func (pointer *Camera) GetFov() float32 { - retval := C.WrapGetFovCamera(pointer.h) + retval := C.HarfangGetFovCamera(pointer.h) return float32(retval) } // SetFov Set the camera field of view. func (pointer *Camera) SetFov(v float32) { vToC := C.float(v) - C.WrapSetFovCamera(pointer.h, vToC) + C.HarfangSetFovCamera(pointer.h, vToC) } // GetIsOrthographic Return `true` if orthographic projection is used, `false` if perspective projection. func (pointer *Camera) GetIsOrthographic() bool { - retval := C.WrapGetIsOrthographicCamera(pointer.h) + retval := C.HarfangGetIsOrthographicCamera(pointer.h) return bool(retval) } // SetIsOrthographic Configure the camera to use orthographic or perspective projection. func (pointer *Camera) SetIsOrthographic(v bool) { vToC := C.bool(v) - C.WrapSetIsOrthographicCamera(pointer.h, vToC) + C.HarfangSetIsOrthographicCamera(pointer.h, vToC) } // GetSize ... func (pointer *Camera) GetSize() float32 { - retval := C.WrapGetSizeCamera(pointer.h) + retval := C.HarfangGetSizeCamera(pointer.h) return float32(retval) } // SetSize ... func (pointer *Camera) SetSize(v float32) { vToC := C.float(v) - C.WrapSetSizeCamera(pointer.h, vToC) + C.HarfangSetSizeCamera(pointer.h, vToC) } // Object This components draws a [harfang.Model]. It stores the material table used to draw the model. type Object struct { - h C.WrapObject + h C.HarfangObject +} + +// NewObjectFromCPointer ... +func NewObjectFromCPointer(p unsafe.Pointer) *Object { + retvalGO := &Object{h: (C.HarfangObject)(p)} + return retvalGO } // Free ... func (pointer *Object) Free() { - C.WrapObjectFree(pointer.h) + C.HarfangObjectFree(pointer.h) } // IsNil ... func (pointer *Object) IsNil() bool { - return pointer.h == C.WrapObject(nil) + return pointer.h == C.HarfangObject(nil) } // Eq ... func (pointer *Object) Eq(o *Object) bool { oToC := o.h - retval := C.WrapEqObject(pointer.h, oToC) + retval := C.HarfangEqObject(pointer.h, oToC) return bool(retval) } // IsValid ... func (pointer *Object) IsValid() bool { - retval := C.WrapIsValidObject(pointer.h) + retval := C.HarfangIsValidObject(pointer.h) return bool(retval) } // GetModelRef Return the [harfang.ModelRef] to display. func (pointer *Object) GetModelRef() *ModelRef { - retval := C.WrapGetModelRefObject(pointer.h) + retval := C.HarfangGetModelRefObject(pointer.h) retvalGO := &ModelRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ModelRef) { - C.WrapModelRefFree(cleanval.h) + C.HarfangModelRefFree(cleanval.h) }) return retvalGO } @@ -8700,18 +9240,18 @@ func (pointer *Object) GetModelRef() *ModelRef { // SetModelRef Set the [harfang.ModelRef] to display. func (pointer *Object) SetModelRef(r *ModelRef) { rToC := r.h - C.WrapSetModelRefObject(pointer.h, rToC) + C.HarfangSetModelRefObject(pointer.h, rToC) } // ClearModelRef ... func (pointer *Object) ClearModelRef() { - C.WrapClearModelRefObject(pointer.h) + C.HarfangClearModelRefObject(pointer.h) } // GetMaterial Return the object [harfang.Material] at index. func (pointer *Object) GetMaterial(slotidx int32) *Material { slotidxToC := C.size_t(slotidx) - retval := C.WrapGetMaterialObject(pointer.h, slotidxToC) + retval := C.HarfangGetMaterialObject(pointer.h, slotidxToC) var retvalGO *Material if retval != nil { retvalGO = &Material{h: retval} @@ -8723,12 +9263,12 @@ func (pointer *Object) GetMaterial(slotidx int32) *Material { func (pointer *Object) GetMaterialWithName(name string) *Material { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetMaterialObjectWithName(pointer.h, nameToC) + retval := C.HarfangGetMaterialObjectWithName(pointer.h, nameToC) var retvalGO *Material if retval != nil { retvalGO = &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) } return retvalGO @@ -8738,25 +9278,25 @@ func (pointer *Object) GetMaterialWithName(name string) *Material { func (pointer *Object) SetMaterial(slotidx int32, mat *Material) { slotidxToC := C.size_t(slotidx) matToC := mat.h - C.WrapSetMaterialObject(pointer.h, slotidxToC, matToC) + C.HarfangSetMaterialObject(pointer.h, slotidxToC, matToC) } // GetMaterialCount Return the number of [harfang.Material] in the object material table. func (pointer *Object) GetMaterialCount() int32 { - retval := C.WrapGetMaterialCountObject(pointer.h) + retval := C.HarfangGetMaterialCountObject(pointer.h) return int32(retval) } // SetMaterialCount Set the number of [harfang.Material] in the object material table. func (pointer *Object) SetMaterialCount(count int32) { countToC := C.size_t(count) - C.WrapSetMaterialCountObject(pointer.h, countToC) + C.HarfangSetMaterialCountObject(pointer.h, countToC) } // GetMaterialName ... func (pointer *Object) GetMaterialName(slotidx int32) string { slotidxToC := C.size_t(slotidx) - retval := C.WrapGetMaterialNameObject(pointer.h, slotidxToC) + retval := C.HarfangGetMaterialNameObject(pointer.h, slotidxToC) return C.GoString(retval) } @@ -8765,7 +9305,7 @@ func (pointer *Object) SetMaterialName(slotidx int32, name string) { slotidxToC := C.size_t(slotidx) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - C.WrapSetMaterialNameObject(pointer.h, slotidxToC, nameToC) + C.HarfangSetMaterialNameObject(pointer.h, slotidxToC, nameToC) } // GetMinMax ... @@ -8773,99 +9313,105 @@ func (pointer *Object) GetMinMax(resources *PipelineResources) (bool, *MinMax) { resourcesToC := resources.h minmax := NewMinMax() minmaxToC := minmax.h - retval := C.WrapGetMinMaxObject(pointer.h, resourcesToC, minmaxToC) + retval := C.HarfangGetMinMaxObject(pointer.h, resourcesToC, minmaxToC) return bool(retval), minmax } // GetBoneCount ... func (pointer *Object) GetBoneCount() int32 { - retval := C.WrapGetBoneCountObject(pointer.h) + retval := C.HarfangGetBoneCountObject(pointer.h) return int32(retval) } // SetBoneCount ... func (pointer *Object) SetBoneCount(count int32) { countToC := C.size_t(count) - C.WrapSetBoneCountObject(pointer.h, countToC) + C.HarfangSetBoneCountObject(pointer.h, countToC) } // SetBone ... func (pointer *Object) SetBone(idx int32, node *Node) bool { idxToC := C.size_t(idx) nodeToC := node.h - retval := C.WrapSetBoneObject(pointer.h, idxToC, nodeToC) + retval := C.HarfangSetBoneObject(pointer.h, idxToC, nodeToC) return bool(retval) } // GetBone ... func (pointer *Object) GetBone(idx int32) *Node { idxToC := C.size_t(idx) - retval := C.WrapGetBoneObject(pointer.h, idxToC) + retval := C.HarfangGetBoneObject(pointer.h, idxToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } // Light Add this component to a node to turn it into a light source, see [harfang.man.ForwardPipeline]. type Light struct { - h C.WrapLight + h C.HarfangLight +} + +// NewLightFromCPointer ... +func NewLightFromCPointer(p unsafe.Pointer) *Light { + retvalGO := &Light{h: (C.HarfangLight)(p)} + return retvalGO } // Free ... func (pointer *Light) Free() { - C.WrapLightFree(pointer.h) + C.HarfangLightFree(pointer.h) } // IsNil ... func (pointer *Light) IsNil() bool { - return pointer.h == C.WrapLight(nil) + return pointer.h == C.HarfangLight(nil) } // Eq ... func (pointer *Light) Eq(l *Light) bool { lToC := l.h - retval := C.WrapEqLight(pointer.h, lToC) + retval := C.HarfangEqLight(pointer.h, lToC) return bool(retval) } // IsValid ... func (pointer *Light) IsValid() bool { - retval := C.WrapIsValidLight(pointer.h) + retval := C.HarfangIsValidLight(pointer.h) return bool(retval) } // GetType Return the [harfang.LightType]. func (pointer *Light) GetType() LightType { - retval := C.WrapGetTypeLight(pointer.h) + retval := C.HarfangGetTypeLight(pointer.h) return LightType(retval) } // SetType Set the [harfang.LightType]. func (pointer *Light) SetType(v LightType) { vToC := C.int32_t(v) - C.WrapSetTypeLight(pointer.h, vToC) + C.HarfangSetTypeLight(pointer.h, vToC) } // GetShadowType ... func (pointer *Light) GetShadowType() LightShadowType { - retval := C.WrapGetShadowTypeLight(pointer.h) + retval := C.HarfangGetShadowTypeLight(pointer.h) return LightShadowType(retval) } // SetShadowType ... func (pointer *Light) SetShadowType(v LightShadowType) { vToC := C.int32_t(v) - C.WrapSetShadowTypeLight(pointer.h, vToC) + C.HarfangSetShadowTypeLight(pointer.h, vToC) } // GetDiffuseColor ... func (pointer *Light) GetDiffuseColor() *Color { - retval := C.WrapGetDiffuseColorLight(pointer.h) + retval := C.HarfangGetDiffuseColorLight(pointer.h) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -8873,27 +9419,27 @@ func (pointer *Light) GetDiffuseColor() *Color { // SetDiffuseColor ... func (pointer *Light) SetDiffuseColor(v *Color) { vToC := v.h - C.WrapSetDiffuseColorLight(pointer.h, vToC) + C.HarfangSetDiffuseColorLight(pointer.h, vToC) } // GetDiffuseIntensity ... func (pointer *Light) GetDiffuseIntensity() float32 { - retval := C.WrapGetDiffuseIntensityLight(pointer.h) + retval := C.HarfangGetDiffuseIntensityLight(pointer.h) return float32(retval) } // SetDiffuseIntensity ... func (pointer *Light) SetDiffuseIntensity(v float32) { vToC := C.float(v) - C.WrapSetDiffuseIntensityLight(pointer.h, vToC) + C.HarfangSetDiffuseIntensityLight(pointer.h, vToC) } // GetSpecularColor ... func (pointer *Light) GetSpecularColor() *Color { - retval := C.WrapGetSpecularColorLight(pointer.h) + retval := C.HarfangGetSpecularColorLight(pointer.h) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -8901,63 +9447,63 @@ func (pointer *Light) GetSpecularColor() *Color { // SetSpecularColor ... func (pointer *Light) SetSpecularColor(v *Color) { vToC := v.h - C.WrapSetSpecularColorLight(pointer.h, vToC) + C.HarfangSetSpecularColorLight(pointer.h, vToC) } // GetSpecularIntensity ... func (pointer *Light) GetSpecularIntensity() float32 { - retval := C.WrapGetSpecularIntensityLight(pointer.h) + retval := C.HarfangGetSpecularIntensityLight(pointer.h) return float32(retval) } // SetSpecularIntensity ... func (pointer *Light) SetSpecularIntensity(v float32) { vToC := C.float(v) - C.WrapSetSpecularIntensityLight(pointer.h, vToC) + C.HarfangSetSpecularIntensityLight(pointer.h, vToC) } // GetRadius Get the light range in meters. func (pointer *Light) GetRadius() float32 { - retval := C.WrapGetRadiusLight(pointer.h) + retval := C.HarfangGetRadiusLight(pointer.h) return float32(retval) } // SetRadius Set the light range in meters. No light will be contributed to elements further away than this distance from the node world position. func (pointer *Light) SetRadius(v float32) { vToC := C.float(v) - C.WrapSetRadiusLight(pointer.h, vToC) + C.HarfangSetRadiusLight(pointer.h, vToC) } // GetInnerAngle ... func (pointer *Light) GetInnerAngle() float32 { - retval := C.WrapGetInnerAngleLight(pointer.h) + retval := C.HarfangGetInnerAngleLight(pointer.h) return float32(retval) } // SetInnerAngle ... func (pointer *Light) SetInnerAngle(v float32) { vToC := C.float(v) - C.WrapSetInnerAngleLight(pointer.h, vToC) + C.HarfangSetInnerAngleLight(pointer.h, vToC) } // GetOuterAngle ... func (pointer *Light) GetOuterAngle() float32 { - retval := C.WrapGetOuterAngleLight(pointer.h) + retval := C.HarfangGetOuterAngleLight(pointer.h) return float32(retval) } // SetOuterAngle ... func (pointer *Light) SetOuterAngle(v float32) { vToC := C.float(v) - C.WrapSetOuterAngleLight(pointer.h, vToC) + C.HarfangSetOuterAngleLight(pointer.h, vToC) } // GetPSSMSplit ... func (pointer *Light) GetPSSMSplit() *Vec4 { - retval := C.WrapGetPSSMSplitLight(pointer.h) + retval := C.HarfangGetPSSMSplitLight(pointer.h) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -8965,29 +9511,35 @@ func (pointer *Light) GetPSSMSplit() *Vec4 { // SetPSSMSplit ... func (pointer *Light) SetPSSMSplit(v *Vec4) { vToC := v.h - C.WrapSetPSSMSplitLight(pointer.h, vToC) + C.HarfangSetPSSMSplitLight(pointer.h, vToC) } // GetPriority ... func (pointer *Light) GetPriority() float32 { - retval := C.WrapGetPriorityLight(pointer.h) + retval := C.HarfangGetPriorityLight(pointer.h) return float32(retval) } // SetPriority ... func (pointer *Light) SetPriority(v float32) { vToC := C.float(v) - C.WrapSetPriorityLight(pointer.h, vToC) + C.HarfangSetPriorityLight(pointer.h, vToC) } // Contact Object containing the world space position, normal and depth of a contact as reported by the collision system. type Contact struct { - h C.WrapContact + h C.HarfangContact +} + +// NewContactFromCPointer ... +func NewContactFromCPointer(p unsafe.Pointer) *Contact { + retvalGO := &Contact{h: (C.HarfangContact)(p)} + return retvalGO } // GetP ... func (pointer *Contact) GetP() *Vec3 { - v := C.WrapContactGetP(pointer.h) + v := C.HarfangContactGetP(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -8995,12 +9547,12 @@ func (pointer *Contact) GetP() *Vec3 { // SetP ... func (pointer *Contact) SetP(v *Vec3) { vToC := v.h - C.WrapContactSetP(pointer.h, vToC) + C.HarfangContactSetP(pointer.h, vToC) } // GetN ... func (pointer *Contact) GetN() *Vec3 { - v := C.WrapContactGetN(pointer.h) + v := C.HarfangContactGetN(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -9008,29 +9560,29 @@ func (pointer *Contact) GetN() *Vec3 { // SetN ... func (pointer *Contact) SetN(v *Vec3) { vToC := v.h - C.WrapContactSetN(pointer.h, vToC) + C.HarfangContactSetN(pointer.h, vToC) } // GetD ... func (pointer *Contact) GetD() float32 { - v := C.WrapContactGetD(pointer.h) + v := C.HarfangContactGetD(pointer.h) return float32(v) } // SetD ... func (pointer *Contact) SetD(v float32) { vToC := C.float(v) - C.WrapContactSetD(pointer.h, vToC) + C.HarfangContactSetD(pointer.h, vToC) } // Free ... func (pointer *Contact) Free() { - C.WrapContactFree(pointer.h) + C.HarfangContactFree(pointer.h) } // IsNil ... func (pointer *Contact) IsNil() bool { - return pointer.h == C.WrapContact(nil) + return pointer.h == C.HarfangContact(nil) } // GoSliceOfContact ... @@ -9038,15 +9590,21 @@ type GoSliceOfContact []*Contact // ContactList ... type ContactList struct { - h C.WrapContactList + h C.HarfangContactList +} + +// NewContactListFromCPointer ... +func NewContactListFromCPointer(p unsafe.Pointer) *ContactList { + retvalGO := &ContactList{h: (C.HarfangContactList)(p)} + return retvalGO } // Get ... func (pointer *ContactList) Get(id int) *Contact { - v := C.WrapContactListGetOperator(pointer.h, C.int(id)) + v := C.HarfangContactListGetOperator(pointer.h, C.int(id)) vGO := &Contact{h: v} runtime.SetFinalizer(vGO, func(cleanval *Contact) { - C.WrapContactFree(cleanval.h) + C.HarfangContactFree(cleanval.h) }) return vGO } @@ -9054,231 +9612,243 @@ func (pointer *ContactList) Get(id int) *Contact { // Set ... func (pointer *ContactList) Set(id int, v *Contact) { vToC := v.h - C.WrapContactListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangContactListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *ContactList) Len() int32 { - return int32(C.WrapContactListLenOperator(pointer.h)) + return int32(C.HarfangContactListLenOperator(pointer.h)) } // NewContactList ... func NewContactList() *ContactList { - retval := C.WrapConstructorContactList() + retval := C.HarfangConstructorContactList() retvalGO := &ContactList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ContactList) { - C.WrapContactListFree(cleanval.h) + C.HarfangContactListFree(cleanval.h) }) return retvalGO } // NewContactListWithSequence ... func NewContactListWithSequence(sequence GoSliceOfContact) *ContactList { - var sequencePointer []C.WrapContact + var sequencePointer []C.HarfangContact for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapContact)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorContactListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangContact)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorContactListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &ContactList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ContactList) { - C.WrapContactListFree(cleanval.h) + C.HarfangContactListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ContactList) Free() { - C.WrapContactListFree(pointer.h) + C.HarfangContactListFree(pointer.h) } // IsNil ... func (pointer *ContactList) IsNil() bool { - return pointer.h == C.WrapContactList(nil) + return pointer.h == C.HarfangContactList(nil) } // Clear ... func (pointer *ContactList) Clear() { - C.WrapClearContactList(pointer.h) + C.HarfangClearContactList(pointer.h) } // Reserve ... func (pointer *ContactList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveContactList(pointer.h, sizeToC) + C.HarfangReserveContactList(pointer.h, sizeToC) } // PushBack ... func (pointer *ContactList) PushBack(v *Contact) { vToC := v.h - C.WrapPushBackContactList(pointer.h, vToC) + C.HarfangPushBackContactList(pointer.h, vToC) } // Size ... func (pointer *ContactList) Size() int32 { - retval := C.WrapSizeContactList(pointer.h) + retval := C.HarfangSizeContactList(pointer.h) return int32(retval) } // At ... func (pointer *ContactList) At(idx int32) *Contact { idxToC := C.size_t(idx) - retval := C.WrapAtContactList(pointer.h, idxToC) + retval := C.HarfangAtContactList(pointer.h, idxToC) retvalGO := &Contact{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Contact) { - C.WrapContactFree(cleanval.h) + C.HarfangContactFree(cleanval.h) }) return retvalGO } // RigidBody Rigid body component, see [harfang.man.Physics]. type RigidBody struct { - h C.WrapRigidBody + h C.HarfangRigidBody +} + +// NewRigidBodyFromCPointer ... +func NewRigidBodyFromCPointer(p unsafe.Pointer) *RigidBody { + retvalGO := &RigidBody{h: (C.HarfangRigidBody)(p)} + return retvalGO } // Free ... func (pointer *RigidBody) Free() { - C.WrapRigidBodyFree(pointer.h) + C.HarfangRigidBodyFree(pointer.h) } // IsNil ... func (pointer *RigidBody) IsNil() bool { - return pointer.h == C.WrapRigidBody(nil) + return pointer.h == C.HarfangRigidBody(nil) } // Eq ... func (pointer *RigidBody) Eq(b *RigidBody) bool { bToC := b.h - retval := C.WrapEqRigidBody(pointer.h, bToC) + retval := C.HarfangEqRigidBody(pointer.h, bToC) return bool(retval) } // IsValid ... func (pointer *RigidBody) IsValid() bool { - retval := C.WrapIsValidRigidBody(pointer.h) + retval := C.HarfangIsValidRigidBody(pointer.h) return bool(retval) } // GetType Return the rigid body type. See [harfang.RigidBody_SetType]. func (pointer *RigidBody) GetType() RigidBodyType { - retval := C.WrapGetTypeRigidBody(pointer.h) + retval := C.HarfangGetTypeRigidBody(pointer.h) return RigidBodyType(retval) } // SetType Set the rigid body type. func (pointer *RigidBody) SetType(typeGo RigidBodyType) { typeGoToC := C.uchar(typeGo) - C.WrapSetTypeRigidBody(pointer.h, typeGoToC) + C.HarfangSetTypeRigidBody(pointer.h, typeGoToC) } // GetLinearDamping ... func (pointer *RigidBody) GetLinearDamping() float32 { - retval := C.WrapGetLinearDampingRigidBody(pointer.h) + retval := C.HarfangGetLinearDampingRigidBody(pointer.h) return float32(retval) } // SetLinearDamping ... func (pointer *RigidBody) SetLinearDamping(damping float32) { dampingToC := C.float(damping) - C.WrapSetLinearDampingRigidBody(pointer.h, dampingToC) + C.HarfangSetLinearDampingRigidBody(pointer.h, dampingToC) } // GetAngularDamping Return the rigid body angular damping. A value of 0.0 means no damping, 1.0 means the maximal dissipation of the energy. func (pointer *RigidBody) GetAngularDamping() float32 { - retval := C.WrapGetAngularDampingRigidBody(pointer.h) + retval := C.HarfangGetAngularDampingRigidBody(pointer.h) return float32(retval) } // SetAngularDamping Set the rigid body angular damping. A value of 0.0 means no damping, 1.0 means the maximal dissipation of the energy. func (pointer *RigidBody) SetAngularDamping(damping float32) { dampingToC := C.float(damping) - C.WrapSetAngularDampingRigidBody(pointer.h, dampingToC) + C.HarfangSetAngularDampingRigidBody(pointer.h, dampingToC) } // GetRestitution ... func (pointer *RigidBody) GetRestitution() float32 { - retval := C.WrapGetRestitutionRigidBody(pointer.h) + retval := C.HarfangGetRestitutionRigidBody(pointer.h) return float32(retval) } // SetRestitution ... func (pointer *RigidBody) SetRestitution(restitution float32) { restitutionToC := C.float(restitution) - C.WrapSetRestitutionRigidBody(pointer.h, restitutionToC) + C.HarfangSetRestitutionRigidBody(pointer.h, restitutionToC) } // GetFriction ... func (pointer *RigidBody) GetFriction() float32 { - retval := C.WrapGetFrictionRigidBody(pointer.h) + retval := C.HarfangGetFrictionRigidBody(pointer.h) return float32(retval) } // SetFriction ... func (pointer *RigidBody) SetFriction(friction float32) { frictionToC := C.float(friction) - C.WrapSetFrictionRigidBody(pointer.h, frictionToC) + C.HarfangSetFrictionRigidBody(pointer.h, frictionToC) } // GetRollingFriction ... func (pointer *RigidBody) GetRollingFriction() float32 { - retval := C.WrapGetRollingFrictionRigidBody(pointer.h) + retval := C.HarfangGetRollingFrictionRigidBody(pointer.h) return float32(retval) } // SetRollingFriction ... func (pointer *RigidBody) SetRollingFriction(rollingfriction float32) { rollingfrictionToC := C.float(rollingfriction) - C.WrapSetRollingFrictionRigidBody(pointer.h, rollingfrictionToC) + C.HarfangSetRollingFrictionRigidBody(pointer.h, rollingfrictionToC) } // Collision Collision component, see [harfang.man.Physics]. type Collision struct { - h C.WrapCollision + h C.HarfangCollision +} + +// NewCollisionFromCPointer ... +func NewCollisionFromCPointer(p unsafe.Pointer) *Collision { + retvalGO := &Collision{h: (C.HarfangCollision)(p)} + return retvalGO } // Free ... func (pointer *Collision) Free() { - C.WrapCollisionFree(pointer.h) + C.HarfangCollisionFree(pointer.h) } // IsNil ... func (pointer *Collision) IsNil() bool { - return pointer.h == C.WrapCollision(nil) + return pointer.h == C.HarfangCollision(nil) } // Eq ... func (pointer *Collision) Eq(c *Collision) bool { cToC := c.h - retval := C.WrapEqCollision(pointer.h, cToC) + retval := C.HarfangEqCollision(pointer.h, cToC) return bool(retval) } // IsValid ... func (pointer *Collision) IsValid() bool { - retval := C.WrapIsValidCollision(pointer.h) + retval := C.HarfangIsValidCollision(pointer.h) return bool(retval) } // GetType Return the [harfang.CollisionType] of a [harfang.Collision] component. func (pointer *Collision) GetType() CollisionType { - retval := C.WrapGetTypeCollision(pointer.h) + retval := C.HarfangGetTypeCollision(pointer.h) return CollisionType(retval) } // SetType Set the [harfang.CollisionType] of a [harfang.Collision] component. func (pointer *Collision) SetType(typeGo CollisionType) { typeGoToC := C.uchar(typeGo) - C.WrapSetTypeCollision(pointer.h, typeGoToC) + C.HarfangSetTypeCollision(pointer.h, typeGoToC) } // GetLocalTransform ... func (pointer *Collision) GetLocalTransform() *Mat4 { - retval := C.WrapGetLocalTransformCollision(pointer.h) + retval := C.HarfangGetLocalTransformCollision(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -9286,54 +9856,54 @@ func (pointer *Collision) GetLocalTransform() *Mat4 { // SetLocalTransform ... func (pointer *Collision) SetLocalTransform(m *Mat4) { mToC := m.h - C.WrapSetLocalTransformCollision(pointer.h, mToC) + C.HarfangSetLocalTransformCollision(pointer.h, mToC) } // GetMass Return the collision shape mass in Kg. func (pointer *Collision) GetMass() float32 { - retval := C.WrapGetMassCollision(pointer.h) + retval := C.HarfangGetMassCollision(pointer.h) return float32(retval) } // SetMass Set the collision shape mass in Kg. func (pointer *Collision) SetMass(mass float32) { massToC := C.float(mass) - C.WrapSetMassCollision(pointer.h, massToC) + C.HarfangSetMassCollision(pointer.h, massToC) } // GetRadius ... func (pointer *Collision) GetRadius() float32 { - retval := C.WrapGetRadiusCollision(pointer.h) + retval := C.HarfangGetRadiusCollision(pointer.h) return float32(retval) } // SetRadius ... func (pointer *Collision) SetRadius(radius float32) { radiusToC := C.float(radius) - C.WrapSetRadiusCollision(pointer.h, radiusToC) + C.HarfangSetRadiusCollision(pointer.h, radiusToC) } // GetHeight ... func (pointer *Collision) GetHeight() float32 { - retval := C.WrapGetHeightCollision(pointer.h) + retval := C.HarfangGetHeightCollision(pointer.h) return float32(retval) } // SetHeight ... func (pointer *Collision) SetHeight(height float32) { heightToC := C.float(height) - C.WrapSetHeightCollision(pointer.h, heightToC) + C.HarfangSetHeightCollision(pointer.h, heightToC) } // SetSize ... func (pointer *Collision) SetSize(size *Vec3) { sizeToC := size.h - C.WrapSetSizeCollision(pointer.h, sizeToC) + C.HarfangSetSizeCollision(pointer.h, sizeToC) } // GetCollisionResource ... func (pointer *Collision) GetCollisionResource() string { - retval := C.WrapGetCollisionResourceCollision(pointer.h) + retval := C.HarfangGetCollisionResourceCollision(pointer.h) return C.GoString(retval) } @@ -9341,40 +9911,46 @@ func (pointer *Collision) GetCollisionResource() string { func (pointer *Collision) SetCollisionResource(path string) { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - C.WrapSetCollisionResourceCollision(pointer.h, pathToC) + C.HarfangSetCollisionResourceCollision(pointer.h, pathToC) } // Instance Component to instantiate a scene as a child of a node upon setup. type Instance struct { - h C.WrapInstance + h C.HarfangInstance +} + +// NewInstanceFromCPointer ... +func NewInstanceFromCPointer(p unsafe.Pointer) *Instance { + retvalGO := &Instance{h: (C.HarfangInstance)(p)} + return retvalGO } // Free ... func (pointer *Instance) Free() { - C.WrapInstanceFree(pointer.h) + C.HarfangInstanceFree(pointer.h) } // IsNil ... func (pointer *Instance) IsNil() bool { - return pointer.h == C.WrapInstance(nil) + return pointer.h == C.HarfangInstance(nil) } // Eq ... func (pointer *Instance) Eq(i *Instance) bool { iToC := i.h - retval := C.WrapEqInstance(pointer.h, iToC) + retval := C.HarfangEqInstance(pointer.h, iToC) return bool(retval) } // IsValid ... func (pointer *Instance) IsValid() bool { - retval := C.WrapIsValidInstance(pointer.h) + retval := C.HarfangIsValidInstance(pointer.h) return bool(retval) } // GetPath ... func (pointer *Instance) GetPath() string { - retval := C.WrapGetPathInstance(pointer.h) + retval := C.HarfangGetPathInstance(pointer.h) return C.GoString(retval) } @@ -9382,80 +9958,86 @@ func (pointer *Instance) GetPath() string { func (pointer *Instance) SetPath(path string) { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - C.WrapSetPathInstance(pointer.h, pathToC) + C.HarfangSetPathInstance(pointer.h, pathToC) } // SetOnInstantiateAnim ... func (pointer *Instance) SetOnInstantiateAnim(anim string) { animToC, idFinanimToC := wrapString(anim) defer idFinanimToC() - C.WrapSetOnInstantiateAnimInstance(pointer.h, animToC) + C.HarfangSetOnInstantiateAnimInstance(pointer.h, animToC) } // SetOnInstantiateAnimLoopMode ... func (pointer *Instance) SetOnInstantiateAnimLoopMode(loopmode AnimLoopMode) { loopmodeToC := C.int32_t(loopmode) - C.WrapSetOnInstantiateAnimLoopModeInstance(pointer.h, loopmodeToC) + C.HarfangSetOnInstantiateAnimLoopModeInstance(pointer.h, loopmodeToC) } // ClearOnInstantiateAnim ... func (pointer *Instance) ClearOnInstantiateAnim() { - C.WrapClearOnInstantiateAnimInstance(pointer.h) + C.HarfangClearOnInstantiateAnimInstance(pointer.h) } // GetOnInstantiateAnim ... func (pointer *Instance) GetOnInstantiateAnim() string { - retval := C.WrapGetOnInstantiateAnimInstance(pointer.h) + retval := C.HarfangGetOnInstantiateAnimInstance(pointer.h) return C.GoString(retval) } // GetOnInstantiateAnimLoopMode ... func (pointer *Instance) GetOnInstantiateAnimLoopMode() AnimLoopMode { - retval := C.WrapGetOnInstantiateAnimLoopModeInstance(pointer.h) + retval := C.HarfangGetOnInstantiateAnimLoopModeInstance(pointer.h) return AnimLoopMode(retval) } // GetOnInstantiatePlayAnimRef ... func (pointer *Instance) GetOnInstantiatePlayAnimRef() *ScenePlayAnimRef { - retval := C.WrapGetOnInstantiatePlayAnimRefInstance(pointer.h) + retval := C.HarfangGetOnInstantiatePlayAnimRefInstance(pointer.h) retvalGO := &ScenePlayAnimRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScenePlayAnimRef) { - C.WrapScenePlayAnimRefFree(cleanval.h) + C.HarfangScenePlayAnimRefFree(cleanval.h) }) return retvalGO } // Script ... type Script struct { - h C.WrapScript + h C.HarfangScript +} + +// NewScriptFromCPointer ... +func NewScriptFromCPointer(p unsafe.Pointer) *Script { + retvalGO := &Script{h: (C.HarfangScript)(p)} + return retvalGO } // Free ... func (pointer *Script) Free() { - C.WrapScriptFree(pointer.h) + C.HarfangScriptFree(pointer.h) } // IsNil ... func (pointer *Script) IsNil() bool { - return pointer.h == C.WrapScript(nil) + return pointer.h == C.HarfangScript(nil) } // Eq ... func (pointer *Script) Eq(s *Script) bool { sToC := s.h - retval := C.WrapEqScript(pointer.h, sToC) + retval := C.HarfangEqScript(pointer.h, sToC) return bool(retval) } // IsValid ... func (pointer *Script) IsValid() bool { - retval := C.WrapIsValidScript(pointer.h) + retval := C.HarfangIsValidScript(pointer.h) return bool(retval) } // GetPath ... func (pointer *Script) GetPath() string { - retval := C.WrapGetPathScript(pointer.h) + retval := C.HarfangGetPathScript(pointer.h) return C.GoString(retval) } @@ -9463,7 +10045,7 @@ func (pointer *Script) GetPath() string { func (pointer *Script) SetPath(path string) { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - C.WrapSetPathScript(pointer.h, pathToC) + C.HarfangSetPathScript(pointer.h, pathToC) } // GoSliceOfScript ... @@ -9471,15 +10053,21 @@ type GoSliceOfScript []*Script // ScriptList ... type ScriptList struct { - h C.WrapScriptList + h C.HarfangScriptList +} + +// NewScriptListFromCPointer ... +func NewScriptListFromCPointer(p unsafe.Pointer) *ScriptList { + retvalGO := &ScriptList{h: (C.HarfangScriptList)(p)} + return retvalGO } // Get ... func (pointer *ScriptList) Get(id int) *Script { - v := C.WrapScriptListGetOperator(pointer.h, C.int(id)) + v := C.HarfangScriptListGetOperator(pointer.h, C.int(id)) vGO := &Script{h: v} runtime.SetFinalizer(vGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return vGO } @@ -9487,81 +10075,81 @@ func (pointer *ScriptList) Get(id int) *Script { // Set ... func (pointer *ScriptList) Set(id int, v *Script) { vToC := v.h - C.WrapScriptListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangScriptListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *ScriptList) Len() int32 { - return int32(C.WrapScriptListLenOperator(pointer.h)) + return int32(C.HarfangScriptListLenOperator(pointer.h)) } // NewScriptList ... func NewScriptList() *ScriptList { - retval := C.WrapConstructorScriptList() + retval := C.HarfangConstructorScriptList() retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } // NewScriptListWithSequence ... func NewScriptListWithSequence(sequence GoSliceOfScript) *ScriptList { - var sequencePointer []C.WrapScript + var sequencePointer []C.HarfangScript for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapScript)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorScriptListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangScript)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorScriptListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ScriptList) Free() { - C.WrapScriptListFree(pointer.h) + C.HarfangScriptListFree(pointer.h) } // IsNil ... func (pointer *ScriptList) IsNil() bool { - return pointer.h == C.WrapScriptList(nil) + return pointer.h == C.HarfangScriptList(nil) } // Clear ... func (pointer *ScriptList) Clear() { - C.WrapClearScriptList(pointer.h) + C.HarfangClearScriptList(pointer.h) } // Reserve ... func (pointer *ScriptList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveScriptList(pointer.h, sizeToC) + C.HarfangReserveScriptList(pointer.h, sizeToC) } // PushBack ... func (pointer *ScriptList) PushBack(v *Script) { vToC := v.h - C.WrapPushBackScriptList(pointer.h, vToC) + C.HarfangPushBackScriptList(pointer.h, vToC) } // Size ... func (pointer *ScriptList) Size() int32 { - retval := C.WrapSizeScriptList(pointer.h) + retval := C.HarfangSizeScriptList(pointer.h) return int32(retval) } // At ... func (pointer *ScriptList) At(idx int32) *Script { idxToC := C.size_t(idx) - retval := C.WrapAtScriptList(pointer.h, idxToC) + retval := C.HarfangAtScriptList(pointer.h, idxToC) retvalGO := &Script{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Script) { - C.WrapScriptFree(cleanval.h) + C.HarfangScriptFree(cleanval.h) }) return retvalGO } @@ -9571,15 +10159,21 @@ type GoSliceOfNode []*Node // NodeList ... type NodeList struct { - h C.WrapNodeList + h C.HarfangNodeList +} + +// NewNodeListFromCPointer ... +func NewNodeListFromCPointer(p unsafe.Pointer) *NodeList { + retvalGO := &NodeList{h: (C.HarfangNodeList)(p)} + return retvalGO } // Get ... func (pointer *NodeList) Get(id int) *Node { - v := C.WrapNodeListGetOperator(pointer.h, C.int(id)) + v := C.HarfangNodeListGetOperator(pointer.h, C.int(id)) vGO := &Node{h: v} runtime.SetFinalizer(vGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return vGO } @@ -9587,93 +10181,99 @@ func (pointer *NodeList) Get(id int) *Node { // Set ... func (pointer *NodeList) Set(id int, v *Node) { vToC := v.h - C.WrapNodeListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangNodeListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *NodeList) Len() int32 { - return int32(C.WrapNodeListLenOperator(pointer.h)) + return int32(C.HarfangNodeListLenOperator(pointer.h)) } // NewNodeList ... func NewNodeList() *NodeList { - retval := C.WrapConstructorNodeList() + retval := C.HarfangConstructorNodeList() retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } // NewNodeListWithSequence ... func NewNodeListWithSequence(sequence GoSliceOfNode) *NodeList { - var sequencePointer []C.WrapNode + var sequencePointer []C.HarfangNode for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapNode)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorNodeListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangNode)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorNodeListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *NodeList) Free() { - C.WrapNodeListFree(pointer.h) + C.HarfangNodeListFree(pointer.h) } // IsNil ... func (pointer *NodeList) IsNil() bool { - return pointer.h == C.WrapNodeList(nil) + return pointer.h == C.HarfangNodeList(nil) } // Clear ... func (pointer *NodeList) Clear() { - C.WrapClearNodeList(pointer.h) + C.HarfangClearNodeList(pointer.h) } // Reserve ... func (pointer *NodeList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveNodeList(pointer.h, sizeToC) + C.HarfangReserveNodeList(pointer.h, sizeToC) } // PushBack ... func (pointer *NodeList) PushBack(v *Node) { vToC := v.h - C.WrapPushBackNodeList(pointer.h, vToC) + C.HarfangPushBackNodeList(pointer.h, vToC) } // Size ... func (pointer *NodeList) Size() int32 { - retval := C.WrapSizeNodeList(pointer.h) + retval := C.HarfangSizeNodeList(pointer.h) return int32(retval) } // At ... func (pointer *NodeList) At(idx int32) *Node { idxToC := C.size_t(idx) - retval := C.WrapAtNodeList(pointer.h, idxToC) + retval := C.HarfangAtNodeList(pointer.h, idxToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } // RaycastOut Contains the result of a physics raycast. * `P`: Position of the raycast hit * `N`: Normal of the raycast hit * `Node`: Node hit by the raycast * `t`: Parametric value of the intersection, ratio of the distance to the hit by the length of the raycast type RaycastOut struct { - h C.WrapRaycastOut + h C.HarfangRaycastOut +} + +// NewRaycastOutFromCPointer ... +func NewRaycastOutFromCPointer(p unsafe.Pointer) *RaycastOut { + retvalGO := &RaycastOut{h: (C.HarfangRaycastOut)(p)} + return retvalGO } // GetP ... func (pointer *RaycastOut) GetP() *Vec3 { - v := C.WrapRaycastOutGetP(pointer.h) + v := C.HarfangRaycastOutGetP(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -9681,12 +10281,12 @@ func (pointer *RaycastOut) GetP() *Vec3 { // SetP ... func (pointer *RaycastOut) SetP(v *Vec3) { vToC := v.h - C.WrapRaycastOutSetP(pointer.h, vToC) + C.HarfangRaycastOutSetP(pointer.h, vToC) } // GetN ... func (pointer *RaycastOut) GetN() *Vec3 { - v := C.WrapRaycastOutGetN(pointer.h) + v := C.HarfangRaycastOutGetN(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -9694,12 +10294,12 @@ func (pointer *RaycastOut) GetN() *Vec3 { // SetN ... func (pointer *RaycastOut) SetN(v *Vec3) { vToC := v.h - C.WrapRaycastOutSetN(pointer.h, vToC) + C.HarfangRaycastOutSetN(pointer.h, vToC) } // GetNode ... func (pointer *RaycastOut) GetNode() *Node { - v := C.WrapRaycastOutGetNode(pointer.h) + v := C.HarfangRaycastOutGetNode(pointer.h) vGO := &Node{h: v} return vGO } @@ -9707,29 +10307,29 @@ func (pointer *RaycastOut) GetNode() *Node { // SetNode ... func (pointer *RaycastOut) SetNode(v *Node) { vToC := v.h - C.WrapRaycastOutSetNode(pointer.h, vToC) + C.HarfangRaycastOutSetNode(pointer.h, vToC) } // GetT ... func (pointer *RaycastOut) GetT() float32 { - v := C.WrapRaycastOutGetT(pointer.h) + v := C.HarfangRaycastOutGetT(pointer.h) return float32(v) } // SetT ... func (pointer *RaycastOut) SetT(v float32) { vToC := C.float(v) - C.WrapRaycastOutSetT(pointer.h, vToC) + C.HarfangRaycastOutSetT(pointer.h, vToC) } // Free ... func (pointer *RaycastOut) Free() { - C.WrapRaycastOutFree(pointer.h) + C.HarfangRaycastOutFree(pointer.h) } // IsNil ... func (pointer *RaycastOut) IsNil() bool { - return pointer.h == C.WrapRaycastOut(nil) + return pointer.h == C.HarfangRaycastOut(nil) } // GoSliceOfRaycastOut ... @@ -9737,15 +10337,21 @@ type GoSliceOfRaycastOut []*RaycastOut // RaycastOutList ... type RaycastOutList struct { - h C.WrapRaycastOutList + h C.HarfangRaycastOutList +} + +// NewRaycastOutListFromCPointer ... +func NewRaycastOutListFromCPointer(p unsafe.Pointer) *RaycastOutList { + retvalGO := &RaycastOutList{h: (C.HarfangRaycastOutList)(p)} + return retvalGO } // Get ... func (pointer *RaycastOutList) Get(id int) *RaycastOut { - v := C.WrapRaycastOutListGetOperator(pointer.h, C.int(id)) + v := C.HarfangRaycastOutListGetOperator(pointer.h, C.int(id)) vGO := &RaycastOut{h: v} runtime.SetFinalizer(vGO, func(cleanval *RaycastOut) { - C.WrapRaycastOutFree(cleanval.h) + C.HarfangRaycastOutFree(cleanval.h) }) return vGO } @@ -9753,122 +10359,134 @@ func (pointer *RaycastOutList) Get(id int) *RaycastOut { // Set ... func (pointer *RaycastOutList) Set(id int, v *RaycastOut) { vToC := v.h - C.WrapRaycastOutListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangRaycastOutListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *RaycastOutList) Len() int32 { - return int32(C.WrapRaycastOutListLenOperator(pointer.h)) + return int32(C.HarfangRaycastOutListLenOperator(pointer.h)) } // NewRaycastOutList ... func NewRaycastOutList() *RaycastOutList { - retval := C.WrapConstructorRaycastOutList() + retval := C.HarfangConstructorRaycastOutList() retvalGO := &RaycastOutList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RaycastOutList) { - C.WrapRaycastOutListFree(cleanval.h) + C.HarfangRaycastOutListFree(cleanval.h) }) return retvalGO } // NewRaycastOutListWithSequence ... func NewRaycastOutListWithSequence(sequence GoSliceOfRaycastOut) *RaycastOutList { - var sequencePointer []C.WrapRaycastOut + var sequencePointer []C.HarfangRaycastOut for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapRaycastOut)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorRaycastOutListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangRaycastOut)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorRaycastOutListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &RaycastOutList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RaycastOutList) { - C.WrapRaycastOutListFree(cleanval.h) + C.HarfangRaycastOutListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *RaycastOutList) Free() { - C.WrapRaycastOutListFree(pointer.h) + C.HarfangRaycastOutListFree(pointer.h) } // IsNil ... func (pointer *RaycastOutList) IsNil() bool { - return pointer.h == C.WrapRaycastOutList(nil) + return pointer.h == C.HarfangRaycastOutList(nil) } // Clear ... func (pointer *RaycastOutList) Clear() { - C.WrapClearRaycastOutList(pointer.h) + C.HarfangClearRaycastOutList(pointer.h) } // Reserve ... func (pointer *RaycastOutList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveRaycastOutList(pointer.h, sizeToC) + C.HarfangReserveRaycastOutList(pointer.h, sizeToC) } // PushBack ... func (pointer *RaycastOutList) PushBack(v *RaycastOut) { vToC := v.h - C.WrapPushBackRaycastOutList(pointer.h, vToC) + C.HarfangPushBackRaycastOutList(pointer.h, vToC) } // Size ... func (pointer *RaycastOutList) Size() int32 { - retval := C.WrapSizeRaycastOutList(pointer.h) + retval := C.HarfangSizeRaycastOutList(pointer.h) return int32(retval) } // At ... func (pointer *RaycastOutList) At(idx int32) *RaycastOut { idxToC := C.size_t(idx) - retval := C.WrapAtRaycastOutList(pointer.h, idxToC) + retval := C.HarfangAtRaycastOutList(pointer.h, idxToC) retvalGO := &RaycastOut{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RaycastOut) { - C.WrapRaycastOutFree(cleanval.h) + C.HarfangRaycastOutFree(cleanval.h) }) return retvalGO } // TimeCallbackConnection A [harfang.TimeCallback] connection to a [harfang.Signal_returning_void_taking_time_ns]. type TimeCallbackConnection struct { - h C.WrapTimeCallbackConnection + h C.HarfangTimeCallbackConnection +} + +// NewTimeCallbackConnectionFromCPointer ... +func NewTimeCallbackConnectionFromCPointer(p unsafe.Pointer) *TimeCallbackConnection { + retvalGO := &TimeCallbackConnection{h: (C.HarfangTimeCallbackConnection)(p)} + return retvalGO } // Free ... func (pointer *TimeCallbackConnection) Free() { - C.WrapTimeCallbackConnectionFree(pointer.h) + C.HarfangTimeCallbackConnectionFree(pointer.h) } // IsNil ... func (pointer *TimeCallbackConnection) IsNil() bool { - return pointer.h == C.WrapTimeCallbackConnection(nil) + return pointer.h == C.HarfangTimeCallbackConnection(nil) } // SignalReturningVoidTakingTimeNs ... type SignalReturningVoidTakingTimeNs struct { - h C.WrapSignalReturningVoidTakingTimeNs + h C.HarfangSignalReturningVoidTakingTimeNs +} + +// NewSignalReturningVoidTakingTimeNsFromCPointer ... +func NewSignalReturningVoidTakingTimeNsFromCPointer(p unsafe.Pointer) *SignalReturningVoidTakingTimeNs { + retvalGO := &SignalReturningVoidTakingTimeNs{h: (C.HarfangSignalReturningVoidTakingTimeNs)(p)} + return retvalGO } // Free ... func (pointer *SignalReturningVoidTakingTimeNs) Free() { - C.WrapSignalReturningVoidTakingTimeNsFree(pointer.h) + C.HarfangSignalReturningVoidTakingTimeNsFree(pointer.h) } // IsNil ... func (pointer *SignalReturningVoidTakingTimeNs) IsNil() bool { - return pointer.h == C.WrapSignalReturningVoidTakingTimeNs(nil) + return pointer.h == C.HarfangSignalReturningVoidTakingTimeNs(nil) } // Connect ... func (pointer *SignalReturningVoidTakingTimeNs) Connect(listener unsafe.Pointer) *TimeCallbackConnection { - listenerToC := (C.WrapFunctionReturningVoidTakingTimeNs)(listener) - retval := C.WrapConnectSignalReturningVoidTakingTimeNs(pointer.h, listenerToC) + listenerToC := (C.HarfangFunctionReturningVoidTakingTimeNs)(listener) + retval := C.HarfangConnectSignalReturningVoidTakingTimeNs(pointer.h, listenerToC) retvalGO := &TimeCallbackConnection{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TimeCallbackConnection) { - C.WrapTimeCallbackConnectionFree(cleanval.h) + C.HarfangTimeCallbackConnectionFree(cleanval.h) }) return retvalGO } @@ -9876,58 +10494,64 @@ func (pointer *SignalReturningVoidTakingTimeNs) Connect(listener unsafe.Pointer) // Disconnect ... func (pointer *SignalReturningVoidTakingTimeNs) Disconnect(connection *TimeCallbackConnection) { connectionToC := connection.h - C.WrapDisconnectSignalReturningVoidTakingTimeNs(pointer.h, connectionToC) + C.HarfangDisconnectSignalReturningVoidTakingTimeNs(pointer.h, connectionToC) } // DisconnectAll ... func (pointer *SignalReturningVoidTakingTimeNs) DisconnectAll() { - C.WrapDisconnectAllSignalReturningVoidTakingTimeNs(pointer.h) + C.HarfangDisconnectAllSignalReturningVoidTakingTimeNs(pointer.h) } // Emit ... func (pointer *SignalReturningVoidTakingTimeNs) Emit(arg0 int64) { arg0ToC := C.int64_t(arg0) - C.WrapEmitSignalReturningVoidTakingTimeNs(pointer.h, arg0ToC) + C.HarfangEmitSignalReturningVoidTakingTimeNs(pointer.h, arg0ToC) } // GetListenerCount ... func (pointer *SignalReturningVoidTakingTimeNs) GetListenerCount() int32 { - retval := C.WrapGetListenerCountSignalReturningVoidTakingTimeNs(pointer.h) + retval := C.HarfangGetListenerCountSignalReturningVoidTakingTimeNs(pointer.h) return int32(retval) } // Canvas Holds the canvas properties of a scene, see the `canvas` member of class [harfang.Scene]. type Canvas struct { - h C.WrapCanvas + h C.HarfangCanvas +} + +// NewCanvasFromCPointer ... +func NewCanvasFromCPointer(p unsafe.Pointer) *Canvas { + retvalGO := &Canvas{h: (C.HarfangCanvas)(p)} + return retvalGO } // GetClearZ ... func (pointer *Canvas) GetClearZ() bool { - v := C.WrapCanvasGetClearZ(pointer.h) + v := C.HarfangCanvasGetClearZ(pointer.h) return bool(v) } // SetClearZ ... func (pointer *Canvas) SetClearZ(v bool) { vToC := C.bool(v) - C.WrapCanvasSetClearZ(pointer.h, vToC) + C.HarfangCanvasSetClearZ(pointer.h, vToC) } // GetClearColor ... func (pointer *Canvas) GetClearColor() bool { - v := C.WrapCanvasGetClearColor(pointer.h) + v := C.HarfangCanvasGetClearColor(pointer.h) return bool(v) } // SetClearColor ... func (pointer *Canvas) SetClearColor(v bool) { vToC := C.bool(v) - C.WrapCanvasSetClearColor(pointer.h, vToC) + C.HarfangCanvasSetClearColor(pointer.h, vToC) } // GetColor ... func (pointer *Canvas) GetColor() *Color { - v := C.WrapCanvasGetColor(pointer.h) + v := C.HarfangCanvasGetColor(pointer.h) vGO := &Color{h: v} return vGO } @@ -9935,27 +10559,33 @@ func (pointer *Canvas) GetColor() *Color { // SetColor ... func (pointer *Canvas) SetColor(v *Color) { vToC := v.h - C.WrapCanvasSetColor(pointer.h, vToC) + C.HarfangCanvasSetColor(pointer.h, vToC) } // Free ... func (pointer *Canvas) Free() { - C.WrapCanvasFree(pointer.h) + C.HarfangCanvasFree(pointer.h) } // IsNil ... func (pointer *Canvas) IsNil() bool { - return pointer.h == C.WrapCanvas(nil) + return pointer.h == C.HarfangCanvas(nil) } // Environment Environment properties of a scene, see `environment` member of the [harfang.Scene] class. type Environment struct { - h C.WrapEnvironment + h C.HarfangEnvironment +} + +// NewEnvironmentFromCPointer ... +func NewEnvironmentFromCPointer(p unsafe.Pointer) *Environment { + retvalGO := &Environment{h: (C.HarfangEnvironment)(p)} + return retvalGO } // GetAmbient ... func (pointer *Environment) GetAmbient() *Color { - v := C.WrapEnvironmentGetAmbient(pointer.h) + v := C.HarfangEnvironmentGetAmbient(pointer.h) vGO := &Color{h: v} return vGO } @@ -9963,12 +10593,12 @@ func (pointer *Environment) GetAmbient() *Color { // SetAmbient ... func (pointer *Environment) SetAmbient(v *Color) { vToC := v.h - C.WrapEnvironmentSetAmbient(pointer.h, vToC) + C.HarfangEnvironmentSetAmbient(pointer.h, vToC) } // GetFogColor ... func (pointer *Environment) GetFogColor() *Color { - v := C.WrapEnvironmentGetFogColor(pointer.h) + v := C.HarfangEnvironmentGetFogColor(pointer.h) vGO := &Color{h: v} return vGO } @@ -9976,36 +10606,36 @@ func (pointer *Environment) GetFogColor() *Color { // SetFogColor ... func (pointer *Environment) SetFogColor(v *Color) { vToC := v.h - C.WrapEnvironmentSetFogColor(pointer.h, vToC) + C.HarfangEnvironmentSetFogColor(pointer.h, vToC) } // GetFogNear ... func (pointer *Environment) GetFogNear() float32 { - v := C.WrapEnvironmentGetFogNear(pointer.h) + v := C.HarfangEnvironmentGetFogNear(pointer.h) return float32(v) } // SetFogNear ... func (pointer *Environment) SetFogNear(v float32) { vToC := C.float(v) - C.WrapEnvironmentSetFogNear(pointer.h, vToC) + C.HarfangEnvironmentSetFogNear(pointer.h, vToC) } // GetFogFar ... func (pointer *Environment) GetFogFar() float32 { - v := C.WrapEnvironmentGetFogFar(pointer.h) + v := C.HarfangEnvironmentGetFogFar(pointer.h) return float32(v) } // SetFogFar ... func (pointer *Environment) SetFogFar(v float32) { vToC := C.float(v) - C.WrapEnvironmentSetFogFar(pointer.h, vToC) + C.HarfangEnvironmentSetFogFar(pointer.h, vToC) } // GetBrdfMap ... func (pointer *Environment) GetBrdfMap() *TextureRef { - v := C.WrapEnvironmentGetBrdfMap(pointer.h) + v := C.HarfangEnvironmentGetBrdfMap(pointer.h) vGO := &TextureRef{h: v} return vGO } @@ -10013,271 +10643,328 @@ func (pointer *Environment) GetBrdfMap() *TextureRef { // SetBrdfMap ... func (pointer *Environment) SetBrdfMap(v *TextureRef) { vToC := v.h - C.WrapEnvironmentSetBrdfMap(pointer.h, vToC) + C.HarfangEnvironmentSetBrdfMap(pointer.h, vToC) } // Free ... func (pointer *Environment) Free() { - C.WrapEnvironmentFree(pointer.h) + C.HarfangEnvironmentFree(pointer.h) } // IsNil ... func (pointer *Environment) IsNil() bool { - return pointer.h == C.WrapEnvironment(nil) + return pointer.h == C.HarfangEnvironment(nil) } // SceneForwardPipelinePassViewId ... type SceneForwardPipelinePassViewId struct { - h C.WrapSceneForwardPipelinePassViewId + h C.HarfangSceneForwardPipelinePassViewId +} + +// NewSceneForwardPipelinePassViewIdFromCPointer ... +func NewSceneForwardPipelinePassViewIdFromCPointer(p unsafe.Pointer) *SceneForwardPipelinePassViewId { + retvalGO := &SceneForwardPipelinePassViewId{h: (C.HarfangSceneForwardPipelinePassViewId)(p)} + return retvalGO } // NewSceneForwardPipelinePassViewId ... func NewSceneForwardPipelinePassViewId() *SceneForwardPipelinePassViewId { - retval := C.WrapConstructorSceneForwardPipelinePassViewId() + retval := C.HarfangConstructorSceneForwardPipelinePassViewId() retvalGO := &SceneForwardPipelinePassViewId{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneForwardPipelinePassViewId) { - C.WrapSceneForwardPipelinePassViewIdFree(cleanval.h) + C.HarfangSceneForwardPipelinePassViewIdFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneForwardPipelinePassViewId) Free() { - C.WrapSceneForwardPipelinePassViewIdFree(pointer.h) + C.HarfangSceneForwardPipelinePassViewIdFree(pointer.h) } // IsNil ... func (pointer *SceneForwardPipelinePassViewId) IsNil() bool { - return pointer.h == C.WrapSceneForwardPipelinePassViewId(nil) + return pointer.h == C.HarfangSceneForwardPipelinePassViewId(nil) } // SceneForwardPipelineRenderData Holds all data required to draw a scene with the forward pipeline. See [harfang.man.ForwardPipeline]. type SceneForwardPipelineRenderData struct { - h C.WrapSceneForwardPipelineRenderData + h C.HarfangSceneForwardPipelineRenderData +} + +// NewSceneForwardPipelineRenderDataFromCPointer ... +func NewSceneForwardPipelineRenderDataFromCPointer(p unsafe.Pointer) *SceneForwardPipelineRenderData { + retvalGO := &SceneForwardPipelineRenderData{h: (C.HarfangSceneForwardPipelineRenderData)(p)} + return retvalGO } // NewSceneForwardPipelineRenderData Holds all data required to draw a scene with the forward pipeline. See [harfang.man.ForwardPipeline]. func NewSceneForwardPipelineRenderData() *SceneForwardPipelineRenderData { - retval := C.WrapConstructorSceneForwardPipelineRenderData() + retval := C.HarfangConstructorSceneForwardPipelineRenderData() retvalGO := &SceneForwardPipelineRenderData{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneForwardPipelineRenderData) { - C.WrapSceneForwardPipelineRenderDataFree(cleanval.h) + C.HarfangSceneForwardPipelineRenderDataFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneForwardPipelineRenderData) Free() { - C.WrapSceneForwardPipelineRenderDataFree(pointer.h) + C.HarfangSceneForwardPipelineRenderDataFree(pointer.h) } // IsNil ... func (pointer *SceneForwardPipelineRenderData) IsNil() bool { - return pointer.h == C.WrapSceneForwardPipelineRenderData(nil) + return pointer.h == C.HarfangSceneForwardPipelineRenderData(nil) } // ForwardPipelineAAAConfig ... type ForwardPipelineAAAConfig struct { - h C.WrapForwardPipelineAAAConfig + h C.HarfangForwardPipelineAAAConfig +} + +// NewForwardPipelineAAAConfigFromCPointer ... +func NewForwardPipelineAAAConfigFromCPointer(p unsafe.Pointer) *ForwardPipelineAAAConfig { + retvalGO := &ForwardPipelineAAAConfig{h: (C.HarfangForwardPipelineAAAConfig)(p)} + return retvalGO } // GetTemporalAaWeight ... func (pointer *ForwardPipelineAAAConfig) GetTemporalAaWeight() float32 { - v := C.WrapForwardPipelineAAAConfigGetTemporalAaWeight(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetTemporalAaWeight(pointer.h) return float32(v) } // SetTemporalAaWeight ... func (pointer *ForwardPipelineAAAConfig) SetTemporalAaWeight(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetTemporalAaWeight(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetTemporalAaWeight(pointer.h, vToC) } // GetSampleCount ... func (pointer *ForwardPipelineAAAConfig) GetSampleCount() int32 { - v := C.WrapForwardPipelineAAAConfigGetSampleCount(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetSampleCount(pointer.h) return int32(v) } // SetSampleCount ... func (pointer *ForwardPipelineAAAConfig) SetSampleCount(v int32) { vToC := C.int32_t(v) - C.WrapForwardPipelineAAAConfigSetSampleCount(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetSampleCount(pointer.h, vToC) } // GetMaxDistance ... func (pointer *ForwardPipelineAAAConfig) GetMaxDistance() float32 { - v := C.WrapForwardPipelineAAAConfigGetMaxDistance(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetMaxDistance(pointer.h) return float32(v) } // SetMaxDistance ... func (pointer *ForwardPipelineAAAConfig) SetMaxDistance(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetMaxDistance(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetMaxDistance(pointer.h, vToC) } // GetZThickness ... func (pointer *ForwardPipelineAAAConfig) GetZThickness() float32 { - v := C.WrapForwardPipelineAAAConfigGetZThickness(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetZThickness(pointer.h) return float32(v) } // SetZThickness ... func (pointer *ForwardPipelineAAAConfig) SetZThickness(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetZThickness(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetZThickness(pointer.h, vToC) } // GetBloomThreshold ... func (pointer *ForwardPipelineAAAConfig) GetBloomThreshold() float32 { - v := C.WrapForwardPipelineAAAConfigGetBloomThreshold(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetBloomThreshold(pointer.h) return float32(v) } // SetBloomThreshold ... func (pointer *ForwardPipelineAAAConfig) SetBloomThreshold(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetBloomThreshold(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetBloomThreshold(pointer.h, vToC) } // GetBloomBias ... func (pointer *ForwardPipelineAAAConfig) GetBloomBias() float32 { - v := C.WrapForwardPipelineAAAConfigGetBloomBias(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetBloomBias(pointer.h) return float32(v) } // SetBloomBias ... func (pointer *ForwardPipelineAAAConfig) SetBloomBias(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetBloomBias(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetBloomBias(pointer.h, vToC) } // GetBloomIntensity ... func (pointer *ForwardPipelineAAAConfig) GetBloomIntensity() float32 { - v := C.WrapForwardPipelineAAAConfigGetBloomIntensity(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetBloomIntensity(pointer.h) return float32(v) } // SetBloomIntensity ... func (pointer *ForwardPipelineAAAConfig) SetBloomIntensity(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetBloomIntensity(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetBloomIntensity(pointer.h, vToC) } // GetMotionBlur ... func (pointer *ForwardPipelineAAAConfig) GetMotionBlur() float32 { - v := C.WrapForwardPipelineAAAConfigGetMotionBlur(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetMotionBlur(pointer.h) return float32(v) } // SetMotionBlur ... func (pointer *ForwardPipelineAAAConfig) SetMotionBlur(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetMotionBlur(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetMotionBlur(pointer.h, vToC) } // GetExposure ... func (pointer *ForwardPipelineAAAConfig) GetExposure() float32 { - v := C.WrapForwardPipelineAAAConfigGetExposure(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetExposure(pointer.h) return float32(v) } // SetExposure ... func (pointer *ForwardPipelineAAAConfig) SetExposure(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetExposure(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetExposure(pointer.h, vToC) } // GetGamma ... func (pointer *ForwardPipelineAAAConfig) GetGamma() float32 { - v := C.WrapForwardPipelineAAAConfigGetGamma(pointer.h) + v := C.HarfangForwardPipelineAAAConfigGetGamma(pointer.h) return float32(v) } // SetGamma ... func (pointer *ForwardPipelineAAAConfig) SetGamma(v float32) { vToC := C.float(v) - C.WrapForwardPipelineAAAConfigSetGamma(pointer.h, vToC) + C.HarfangForwardPipelineAAAConfigSetGamma(pointer.h, vToC) } // NewForwardPipelineAAAConfig ... func NewForwardPipelineAAAConfig() *ForwardPipelineAAAConfig { - retval := C.WrapConstructorForwardPipelineAAAConfig() + retval := C.HarfangConstructorForwardPipelineAAAConfig() retvalGO := &ForwardPipelineAAAConfig{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAAConfig) { - C.WrapForwardPipelineAAAConfigFree(cleanval.h) + C.HarfangForwardPipelineAAAConfigFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ForwardPipelineAAAConfig) Free() { - C.WrapForwardPipelineAAAConfigFree(pointer.h) + C.HarfangForwardPipelineAAAConfigFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineAAAConfig) IsNil() bool { - return pointer.h == C.WrapForwardPipelineAAAConfig(nil) + return pointer.h == C.HarfangForwardPipelineAAAConfig(nil) } // ForwardPipelineAAA ... type ForwardPipelineAAA struct { - h C.WrapForwardPipelineAAA + h C.HarfangForwardPipelineAAA +} + +// NewForwardPipelineAAAFromCPointer ... +func NewForwardPipelineAAAFromCPointer(p unsafe.Pointer) *ForwardPipelineAAA { + retvalGO := &ForwardPipelineAAA{h: (C.HarfangForwardPipelineAAA)(p)} + return retvalGO } // Free ... func (pointer *ForwardPipelineAAA) Free() { - C.WrapForwardPipelineAAAFree(pointer.h) + C.HarfangForwardPipelineAAAFree(pointer.h) } // IsNil ... func (pointer *ForwardPipelineAAA) IsNil() bool { - return pointer.h == C.WrapForwardPipelineAAA(nil) + return pointer.h == C.HarfangForwardPipelineAAA(nil) } // Flip ... func (pointer *ForwardPipelineAAA) Flip(viewstate *ViewState) { viewstateToC := viewstate.h - C.WrapFlipForwardPipelineAAA(pointer.h, viewstateToC) + C.HarfangFlipForwardPipelineAAA(pointer.h, viewstateToC) } // NodePairContacts ... type NodePairContacts struct { - h C.WrapNodePairContacts + h C.HarfangNodePairContacts +} + +// NewNodePairContactsFromCPointer ... +func NewNodePairContactsFromCPointer(p unsafe.Pointer) *NodePairContacts { + retvalGO := &NodePairContacts{h: (C.HarfangNodePairContacts)(p)} + return retvalGO } // NewNodePairContacts ... func NewNodePairContacts() *NodePairContacts { - retval := C.WrapConstructorNodePairContacts() + retval := C.HarfangConstructorNodePairContacts() retvalGO := &NodePairContacts{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodePairContacts) { - C.WrapNodePairContactsFree(cleanval.h) + C.HarfangNodePairContactsFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *NodePairContacts) Free() { - C.WrapNodePairContactsFree(pointer.h) + C.HarfangNodePairContactsFree(pointer.h) } // IsNil ... func (pointer *NodePairContacts) IsNil() bool { - return pointer.h == C.WrapNodePairContacts(nil) + return pointer.h == C.HarfangNodePairContacts(nil) +} + +// BtGeneric6DofConstraint ... +type BtGeneric6DofConstraint struct { + h C.HarfangBtGeneric6DofConstraint +} + +// NewBtGeneric6DofConstraintFromCPointer ... +func NewBtGeneric6DofConstraintFromCPointer(p unsafe.Pointer) *BtGeneric6DofConstraint { + retvalGO := &BtGeneric6DofConstraint{h: (C.HarfangBtGeneric6DofConstraint)(p)} + return retvalGO +} + +// Free ... +func (pointer *BtGeneric6DofConstraint) Free() { + C.HarfangBtGeneric6DofConstraintFree(pointer.h) +} + +// IsNil ... +func (pointer *BtGeneric6DofConstraint) IsNil() bool { + return pointer.h == C.HarfangBtGeneric6DofConstraint(nil) } // SceneBullet3Physics Newton physics for scene physics and collision components. See [harfang.man.Physics]. type SceneBullet3Physics struct { - h C.WrapSceneBullet3Physics + h C.HarfangSceneBullet3Physics +} + +// NewSceneBullet3PhysicsFromCPointer ... +func NewSceneBullet3PhysicsFromCPointer(p unsafe.Pointer) *SceneBullet3Physics { + retvalGO := &SceneBullet3Physics{h: (C.HarfangSceneBullet3Physics)(p)} + return retvalGO } // NewSceneBullet3Physics Newton physics for scene physics and collision components. See [harfang.man.Physics]. func NewSceneBullet3Physics() *SceneBullet3Physics { - retval := C.WrapConstructorSceneBullet3Physics() + retval := C.HarfangConstructorSceneBullet3Physics() retvalGO := &SceneBullet3Physics{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneBullet3Physics) { - C.WrapSceneBullet3PhysicsFree(cleanval.h) + C.HarfangSceneBullet3PhysicsFree(cleanval.h) }) return retvalGO } @@ -10285,91 +10972,91 @@ func NewSceneBullet3Physics() *SceneBullet3Physics { // NewSceneBullet3PhysicsWithThreadCount Newton physics for scene physics and collision components. See [harfang.man.Physics]. func NewSceneBullet3PhysicsWithThreadCount(threadcount int32) *SceneBullet3Physics { threadcountToC := C.int32_t(threadcount) - retval := C.WrapConstructorSceneBullet3PhysicsWithThreadCount(threadcountToC) + retval := C.HarfangConstructorSceneBullet3PhysicsWithThreadCount(threadcountToC) retvalGO := &SceneBullet3Physics{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneBullet3Physics) { - C.WrapSceneBullet3PhysicsFree(cleanval.h) + C.HarfangSceneBullet3PhysicsFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneBullet3Physics) Free() { - C.WrapSceneBullet3PhysicsFree(pointer.h) + C.HarfangSceneBullet3PhysicsFree(pointer.h) } // IsNil ... func (pointer *SceneBullet3Physics) IsNil() bool { - return pointer.h == C.WrapSceneBullet3Physics(nil) + return pointer.h == C.HarfangSceneBullet3Physics(nil) } // SceneCreatePhysicsFromFile ... func (pointer *SceneBullet3Physics) SceneCreatePhysicsFromFile(scene *Scene) { sceneToC := scene.h - C.WrapSceneCreatePhysicsFromFileSceneBullet3Physics(pointer.h, sceneToC) + C.HarfangSceneCreatePhysicsFromFileSceneBullet3Physics(pointer.h, sceneToC) } // SceneCreatePhysicsFromAssets ... func (pointer *SceneBullet3Physics) SceneCreatePhysicsFromAssets(scene *Scene) { sceneToC := scene.h - C.WrapSceneCreatePhysicsFromAssetsSceneBullet3Physics(pointer.h, sceneToC) + C.HarfangSceneCreatePhysicsFromAssetsSceneBullet3Physics(pointer.h, sceneToC) } // NodeCreatePhysicsFromFile ... func (pointer *SceneBullet3Physics) NodeCreatePhysicsFromFile(node *Node) { nodeToC := node.h - C.WrapNodeCreatePhysicsFromFileSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeCreatePhysicsFromFileSceneBullet3Physics(pointer.h, nodeToC) } // NodeCreatePhysicsFromAssets ... func (pointer *SceneBullet3Physics) NodeCreatePhysicsFromAssets(node *Node) { nodeToC := node.h - C.WrapNodeCreatePhysicsFromAssetsSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeCreatePhysicsFromAssetsSceneBullet3Physics(pointer.h, nodeToC) } // NodeStartTrackingCollisionEvents ... func (pointer *SceneBullet3Physics) NodeStartTrackingCollisionEvents(node *Node) { nodeToC := node.h - C.WrapNodeStartTrackingCollisionEventsSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeStartTrackingCollisionEventsSceneBullet3Physics(pointer.h, nodeToC) } // NodeStartTrackingCollisionEventsWithMode ... func (pointer *SceneBullet3Physics) NodeStartTrackingCollisionEventsWithMode(node *Node, mode CollisionEventTrackingMode) { nodeToC := node.h modeToC := C.uchar(mode) - C.WrapNodeStartTrackingCollisionEventsSceneBullet3PhysicsWithMode(pointer.h, nodeToC, modeToC) + C.HarfangNodeStartTrackingCollisionEventsSceneBullet3PhysicsWithMode(pointer.h, nodeToC, modeToC) } // NodeStopTrackingCollisionEvents ... func (pointer *SceneBullet3Physics) NodeStopTrackingCollisionEvents(node *Node) { nodeToC := node.h - C.WrapNodeStopTrackingCollisionEventsSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeStopTrackingCollisionEventsSceneBullet3Physics(pointer.h, nodeToC) } // NodeDestroyPhysics ... func (pointer *SceneBullet3Physics) NodeDestroyPhysics(node *Node) { nodeToC := node.h - C.WrapNodeDestroyPhysicsSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeDestroyPhysicsSceneBullet3Physics(pointer.h, nodeToC) } // NodeHasBody ... func (pointer *SceneBullet3Physics) NodeHasBody(node *Node) bool { nodeToC := node.h - retval := C.WrapNodeHasBodySceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeHasBodySceneBullet3Physics(pointer.h, nodeToC) return bool(retval) } // StepSimulation ... func (pointer *SceneBullet3Physics) StepSimulation(displaydt int64) { displaydtToC := C.int64_t(displaydt) - C.WrapStepSimulationSceneBullet3Physics(pointer.h, displaydtToC) + C.HarfangStepSimulationSceneBullet3Physics(pointer.h, displaydtToC) } // StepSimulationWithStepDt ... func (pointer *SceneBullet3Physics) StepSimulationWithStepDt(displaydt int64, stepdt int64) { displaydtToC := C.int64_t(displaydt) stepdtToC := C.int64_t(stepdt) - C.WrapStepSimulationSceneBullet3PhysicsWithStepDt(pointer.h, displaydtToC, stepdtToC) + C.HarfangStepSimulationSceneBullet3PhysicsWithStepDt(pointer.h, displaydtToC, stepdtToC) } // StepSimulationWithStepDtMaxStep ... @@ -10377,7 +11064,7 @@ func (pointer *SceneBullet3Physics) StepSimulationWithStepDtMaxStep(displaydt in displaydtToC := C.int64_t(displaydt) stepdtToC := C.int64_t(stepdt) maxstepToC := C.int32_t(maxstep) - C.WrapStepSimulationSceneBullet3PhysicsWithStepDtMaxStep(pointer.h, displaydtToC, stepdtToC, maxstepToC) + C.HarfangStepSimulationSceneBullet3PhysicsWithStepDtMaxStep(pointer.h, displaydtToC, stepdtToC, maxstepToC) } // CollectCollisionEvents ... @@ -10385,62 +11072,62 @@ func (pointer *SceneBullet3Physics) CollectCollisionEvents(scene *Scene) *NodePa sceneToC := scene.h nodepaircontacts := NewNodePairContacts() nodepaircontactsToC := nodepaircontacts.h - C.WrapCollectCollisionEventsSceneBullet3Physics(pointer.h, sceneToC, nodepaircontactsToC) + C.HarfangCollectCollisionEventsSceneBullet3Physics(pointer.h, sceneToC, nodepaircontactsToC) return nodepaircontacts } // SyncTransformsFromScene ... func (pointer *SceneBullet3Physics) SyncTransformsFromScene(scene *Scene) { sceneToC := scene.h - C.WrapSyncTransformsFromSceneSceneBullet3Physics(pointer.h, sceneToC) + C.HarfangSyncTransformsFromSceneSceneBullet3Physics(pointer.h, sceneToC) } // SyncTransformsToScene ... func (pointer *SceneBullet3Physics) SyncTransformsToScene(scene *Scene) { sceneToC := scene.h - C.WrapSyncTransformsToSceneSceneBullet3Physics(pointer.h, sceneToC) + C.HarfangSyncTransformsToSceneSceneBullet3Physics(pointer.h, sceneToC) } // GarbageCollect ... func (pointer *SceneBullet3Physics) GarbageCollect(scene *Scene) int32 { sceneToC := scene.h - retval := C.WrapGarbageCollectSceneBullet3Physics(pointer.h, sceneToC) + retval := C.HarfangGarbageCollectSceneBullet3Physics(pointer.h, sceneToC) return int32(retval) } // GarbageCollectResources ... func (pointer *SceneBullet3Physics) GarbageCollectResources() int32 { - retval := C.WrapGarbageCollectResourcesSceneBullet3Physics(pointer.h) + retval := C.HarfangGarbageCollectResourcesSceneBullet3Physics(pointer.h) return int32(retval) } // ClearNodes ... func (pointer *SceneBullet3Physics) ClearNodes() { - C.WrapClearNodesSceneBullet3Physics(pointer.h) + C.HarfangClearNodesSceneBullet3Physics(pointer.h) } // Clear ... func (pointer *SceneBullet3Physics) Clear() { - C.WrapClearSceneBullet3Physics(pointer.h) + C.HarfangClearSceneBullet3Physics(pointer.h) } // NodeWake ... func (pointer *SceneBullet3Physics) NodeWake(node *Node) { nodeToC := node.h - C.WrapNodeWakeSceneBullet3Physics(pointer.h, nodeToC) + C.HarfangNodeWakeSceneBullet3Physics(pointer.h, nodeToC) } // NodeSetDeactivation ... func (pointer *SceneBullet3Physics) NodeSetDeactivation(node *Node, enable bool) { nodeToC := node.h enableToC := C.bool(enable) - C.WrapNodeSetDeactivationSceneBullet3Physics(pointer.h, nodeToC, enableToC) + C.HarfangNodeSetDeactivationSceneBullet3Physics(pointer.h, nodeToC, enableToC) } // NodeGetDeactivation ... func (pointer *SceneBullet3Physics) NodeGetDeactivation(node *Node) bool { nodeToC := node.h - retval := C.WrapNodeGetDeactivationSceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeGetDeactivationSceneBullet3Physics(pointer.h, nodeToC) return bool(retval) } @@ -10448,21 +11135,21 @@ func (pointer *SceneBullet3Physics) NodeGetDeactivation(node *Node) bool { func (pointer *SceneBullet3Physics) NodeResetWorld(node *Node, world *Mat4) { nodeToC := node.h worldToC := world.h - C.WrapNodeResetWorldSceneBullet3Physics(pointer.h, nodeToC, worldToC) + C.HarfangNodeResetWorldSceneBullet3Physics(pointer.h, nodeToC, worldToC) } // NodeTeleport ... func (pointer *SceneBullet3Physics) NodeTeleport(node *Node, world *Mat4) { nodeToC := node.h worldToC := world.h - C.WrapNodeTeleportSceneBullet3Physics(pointer.h, nodeToC, worldToC) + C.HarfangNodeTeleportSceneBullet3Physics(pointer.h, nodeToC, worldToC) } // NodeAddForce ... func (pointer *SceneBullet3Physics) NodeAddForce(node *Node, F *Vec3) { nodeToC := node.h FToC := F.h - C.WrapNodeAddForceSceneBullet3Physics(pointer.h, nodeToC, FToC) + C.HarfangNodeAddForceSceneBullet3Physics(pointer.h, nodeToC, FToC) } // NodeAddForceWithWorldPos ... @@ -10470,14 +11157,14 @@ func (pointer *SceneBullet3Physics) NodeAddForceWithWorldPos(node *Node, F *Vec3 nodeToC := node.h FToC := F.h worldposToC := worldpos.h - C.WrapNodeAddForceSceneBullet3PhysicsWithWorldPos(pointer.h, nodeToC, FToC, worldposToC) + C.HarfangNodeAddForceSceneBullet3PhysicsWithWorldPos(pointer.h, nodeToC, FToC, worldposToC) } // NodeAddImpulse ... func (pointer *SceneBullet3Physics) NodeAddImpulse(node *Node, dtvelocity *Vec3) { nodeToC := node.h dtvelocityToC := dtvelocity.h - C.WrapNodeAddImpulseSceneBullet3Physics(pointer.h, nodeToC, dtvelocityToC) + C.HarfangNodeAddImpulseSceneBullet3Physics(pointer.h, nodeToC, dtvelocityToC) } // NodeAddImpulseWithWorldPos ... @@ -10485,31 +11172,31 @@ func (pointer *SceneBullet3Physics) NodeAddImpulseWithWorldPos(node *Node, dtvel nodeToC := node.h dtvelocityToC := dtvelocity.h worldposToC := worldpos.h - C.WrapNodeAddImpulseSceneBullet3PhysicsWithWorldPos(pointer.h, nodeToC, dtvelocityToC, worldposToC) + C.HarfangNodeAddImpulseSceneBullet3PhysicsWithWorldPos(pointer.h, nodeToC, dtvelocityToC, worldposToC) } // NodeAddTorque ... func (pointer *SceneBullet3Physics) NodeAddTorque(node *Node, T *Vec3) { nodeToC := node.h TToC := T.h - C.WrapNodeAddTorqueSceneBullet3Physics(pointer.h, nodeToC, TToC) + C.HarfangNodeAddTorqueSceneBullet3Physics(pointer.h, nodeToC, TToC) } // NodeAddTorqueImpulse ... func (pointer *SceneBullet3Physics) NodeAddTorqueImpulse(node *Node, dtangularvelocity *Vec3) { nodeToC := node.h dtangularvelocityToC := dtangularvelocity.h - C.WrapNodeAddTorqueImpulseSceneBullet3Physics(pointer.h, nodeToC, dtangularvelocityToC) + C.HarfangNodeAddTorqueImpulseSceneBullet3Physics(pointer.h, nodeToC, dtangularvelocityToC) } // NodeGetPointVelocity ... func (pointer *SceneBullet3Physics) NodeGetPointVelocity(node *Node, worldpos *Vec3) *Vec3 { nodeToC := node.h worldposToC := worldpos.h - retval := C.WrapNodeGetPointVelocitySceneBullet3Physics(pointer.h, nodeToC, worldposToC) + retval := C.HarfangNodeGetPointVelocitySceneBullet3Physics(pointer.h, nodeToC, worldposToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -10517,10 +11204,10 @@ func (pointer *SceneBullet3Physics) NodeGetPointVelocity(node *Node, worldpos *V // NodeGetLinearVelocity ... func (pointer *SceneBullet3Physics) NodeGetLinearVelocity(node *Node) *Vec3 { nodeToC := node.h - retval := C.WrapNodeGetLinearVelocitySceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeGetLinearVelocitySceneBullet3Physics(pointer.h, nodeToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -10529,16 +11216,16 @@ func (pointer *SceneBullet3Physics) NodeGetLinearVelocity(node *Node) *Vec3 { func (pointer *SceneBullet3Physics) NodeSetLinearVelocity(node *Node, V *Vec3) { nodeToC := node.h VToC := V.h - C.WrapNodeSetLinearVelocitySceneBullet3Physics(pointer.h, nodeToC, VToC) + C.HarfangNodeSetLinearVelocitySceneBullet3Physics(pointer.h, nodeToC, VToC) } // NodeGetAngularVelocity ... func (pointer *SceneBullet3Physics) NodeGetAngularVelocity(node *Node) *Vec3 { nodeToC := node.h - retval := C.WrapNodeGetAngularVelocitySceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeGetAngularVelocitySceneBullet3Physics(pointer.h, nodeToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -10547,16 +11234,16 @@ func (pointer *SceneBullet3Physics) NodeGetAngularVelocity(node *Node) *Vec3 { func (pointer *SceneBullet3Physics) NodeSetAngularVelocity(node *Node, W *Vec3) { nodeToC := node.h WToC := W.h - C.WrapNodeSetAngularVelocitySceneBullet3Physics(pointer.h, nodeToC, WToC) + C.HarfangNodeSetAngularVelocitySceneBullet3Physics(pointer.h, nodeToC, WToC) } // NodeGetLinearFactor ... func (pointer *SceneBullet3Physics) NodeGetLinearFactor(node *Node) *Vec3 { nodeToC := node.h - retval := C.WrapNodeGetLinearFactorSceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeGetLinearFactorSceneBullet3Physics(pointer.h, nodeToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -10565,16 +11252,16 @@ func (pointer *SceneBullet3Physics) NodeGetLinearFactor(node *Node) *Vec3 { func (pointer *SceneBullet3Physics) NodeSetLinearFactor(node *Node, k *Vec3) { nodeToC := node.h kToC := k.h - C.WrapNodeSetLinearFactorSceneBullet3Physics(pointer.h, nodeToC, kToC) + C.HarfangNodeSetLinearFactorSceneBullet3Physics(pointer.h, nodeToC, kToC) } // NodeGetAngularFactor ... func (pointer *SceneBullet3Physics) NodeGetAngularFactor(node *Node) *Vec3 { nodeToC := node.h - retval := C.WrapNodeGetAngularFactorSceneBullet3Physics(pointer.h, nodeToC) + retval := C.HarfangNodeGetAngularFactorSceneBullet3Physics(pointer.h, nodeToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -10583,17 +11270,40 @@ func (pointer *SceneBullet3Physics) NodeGetAngularFactor(node *Node) *Vec3 { func (pointer *SceneBullet3Physics) NodeSetAngularFactor(node *Node, k *Vec3) { nodeToC := node.h kToC := k.h - C.WrapNodeSetAngularFactorSceneBullet3Physics(pointer.h, nodeToC, kToC) + C.HarfangNodeSetAngularFactorSceneBullet3Physics(pointer.h, nodeToC, kToC) +} + +// Add6DofConstraint ... +func (pointer *SceneBullet3Physics) Add6DofConstraint(nodeA *Node, nodeB *Node, anchorALocal *Mat4, anchorBInLocalSpaceA *Mat4) *BtGeneric6DofConstraint { + nodeAToC := nodeA.h + nodeBToC := nodeB.h + anchorALocalToC := anchorALocal.h + anchorBInLocalSpaceAToC := anchorBInLocalSpaceA.h + retval := C.HarfangAdd6DofConstraintSceneBullet3Physics(pointer.h, nodeAToC, nodeBToC, anchorALocalToC, anchorBInLocalSpaceAToC) + var retvalGO *BtGeneric6DofConstraint + if retval != nil { + retvalGO = &BtGeneric6DofConstraint{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *BtGeneric6DofConstraint) { + C.HarfangBtGeneric6DofConstraintFree(cleanval.h) + }) + } + return retvalGO +} + +// Remove6DofConstraint ... +func (pointer *SceneBullet3Physics) Remove6DofConstraint(constraint6Dof *BtGeneric6DofConstraint) { + constraint6DofToC := constraint6Dof.h + C.HarfangRemove6DofConstraintSceneBullet3Physics(pointer.h, constraint6DofToC) } // NodeCollideWorld ... func (pointer *SceneBullet3Physics) NodeCollideWorld(node *Node, world *Mat4) *NodePairContacts { nodeToC := node.h worldToC := world.h - retval := C.WrapNodeCollideWorldSceneBullet3Physics(pointer.h, nodeToC, worldToC) + retval := C.HarfangNodeCollideWorldSceneBullet3Physics(pointer.h, nodeToC, worldToC) retvalGO := &NodePairContacts{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodePairContacts) { - C.WrapNodePairContactsFree(cleanval.h) + C.HarfangNodePairContactsFree(cleanval.h) }) return retvalGO } @@ -10603,10 +11313,10 @@ func (pointer *SceneBullet3Physics) NodeCollideWorldWithMaxContact(node *Node, w nodeToC := node.h worldToC := world.h maxcontactToC := C.int32_t(maxcontact) - retval := C.WrapNodeCollideWorldSceneBullet3PhysicsWithMaxContact(pointer.h, nodeToC, worldToC, maxcontactToC) + retval := C.HarfangNodeCollideWorldSceneBullet3PhysicsWithMaxContact(pointer.h, nodeToC, worldToC, maxcontactToC) retvalGO := &NodePairContacts{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodePairContacts) { - C.WrapNodePairContactsFree(cleanval.h) + C.HarfangNodePairContactsFree(cleanval.h) }) return retvalGO } @@ -10616,10 +11326,10 @@ func (pointer *SceneBullet3Physics) RaycastFirstHit(scene *Scene, p0 *Vec3, p1 * sceneToC := scene.h p0ToC := p0.h p1ToC := p1.h - retval := C.WrapRaycastFirstHitSceneBullet3Physics(pointer.h, sceneToC, p0ToC, p1ToC) + retval := C.HarfangRaycastFirstHitSceneBullet3Physics(pointer.h, sceneToC, p0ToC, p1ToC) retvalGO := &RaycastOut{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RaycastOut) { - C.WrapRaycastOutFree(cleanval.h) + C.HarfangRaycastOutFree(cleanval.h) }) return retvalGO } @@ -10629,10 +11339,10 @@ func (pointer *SceneBullet3Physics) RaycastAllHits(scene *Scene, p0 *Vec3, p1 *V sceneToC := scene.h p0ToC := p0.h p1ToC := p1.h - retval := C.WrapRaycastAllHitsSceneBullet3Physics(pointer.h, sceneToC, p0ToC, p1ToC) + retval := C.HarfangRaycastAllHitsSceneBullet3Physics(pointer.h, sceneToC, p0ToC, p1ToC) retvalGO := &RaycastOutList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RaycastOutList) { - C.WrapRaycastOutListFree(cleanval.h) + C.HarfangRaycastOutListFree(cleanval.h) }) return retvalGO } @@ -10644,32 +11354,44 @@ func (pointer *SceneBullet3Physics) RenderCollision(viewid uint16, vtxlayout *Ve prgToC := prg.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapRenderCollisionSceneBullet3Physics(pointer.h, viewidToC, vtxlayoutToC, prgToC, renderstateToC, depthToC) + C.HarfangRenderCollisionSceneBullet3Physics(pointer.h, viewidToC, vtxlayoutToC, prgToC, renderstateToC, depthToC) +} + +// SetPreTickCallback ... +func (pointer *SceneBullet3Physics) SetPreTickCallback(cbk unsafe.Pointer) { + cbkToC := (C.HarfangFunctionReturningVoidTakingSceneBullet3PhysicsRefTimeNs)(cbk) + C.HarfangSetPreTickCallbackSceneBullet3Physics(pointer.h, cbkToC) } // SceneLuaVM Lua VM for scene script components. See [harfang.man.Scripting]. type SceneLuaVM struct { - h C.WrapSceneLuaVM + h C.HarfangSceneLuaVM +} + +// NewSceneLuaVMFromCPointer ... +func NewSceneLuaVMFromCPointer(p unsafe.Pointer) *SceneLuaVM { + retvalGO := &SceneLuaVM{h: (C.HarfangSceneLuaVM)(p)} + return retvalGO } // NewSceneLuaVM Lua VM for scene script components. See [harfang.man.Scripting]. func NewSceneLuaVM() *SceneLuaVM { - retval := C.WrapConstructorSceneLuaVM() + retval := C.HarfangConstructorSceneLuaVM() retvalGO := &SceneLuaVM{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneLuaVM) { - C.WrapSceneLuaVMFree(cleanval.h) + C.HarfangSceneLuaVMFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneLuaVM) Free() { - C.WrapSceneLuaVMFree(pointer.h) + C.HarfangSceneLuaVMFree(pointer.h) } // IsNil ... func (pointer *SceneLuaVM) IsNil() bool { - return pointer.h == C.WrapSceneLuaVM(nil) + return pointer.h == C.HarfangSceneLuaVM(nil) } // CreateScriptFromSource ... @@ -10678,7 +11400,7 @@ func (pointer *SceneLuaVM) CreateScriptFromSource(scene *Scene, script *Script, scriptToC := script.h srcToC, idFinsrcToC := wrapString(src) defer idFinsrcToC() - retval := C.WrapCreateScriptFromSourceSceneLuaVM(pointer.h, sceneToC, scriptToC, srcToC) + retval := C.HarfangCreateScriptFromSourceSceneLuaVM(pointer.h, sceneToC, scriptToC, srcToC) return bool(retval) } @@ -10686,7 +11408,7 @@ func (pointer *SceneLuaVM) CreateScriptFromSource(scene *Scene, script *Script, func (pointer *SceneLuaVM) CreateScriptFromFile(scene *Scene, script *Script) bool { sceneToC := scene.h scriptToC := script.h - retval := C.WrapCreateScriptFromFileSceneLuaVM(pointer.h, sceneToC, scriptToC) + retval := C.HarfangCreateScriptFromFileSceneLuaVM(pointer.h, sceneToC, scriptToC) return bool(retval) } @@ -10694,7 +11416,7 @@ func (pointer *SceneLuaVM) CreateScriptFromFile(scene *Scene, script *Script) bo func (pointer *SceneLuaVM) CreateScriptFromAssets(scene *Scene, script *Script) bool { sceneToC := scene.h scriptToC := script.h - retval := C.WrapCreateScriptFromAssetsSceneLuaVM(pointer.h, sceneToC, scriptToC) + retval := C.HarfangCreateScriptFromAssetsSceneLuaVM(pointer.h, sceneToC, scriptToC) return bool(retval) } @@ -10702,10 +11424,10 @@ func (pointer *SceneLuaVM) CreateScriptFromAssets(scene *Scene, script *Script) func (pointer *SceneLuaVM) CreateNodeScriptsFromFile(scene *Scene, node *Node) *ScriptList { sceneToC := scene.h nodeToC := node.h - retval := C.WrapCreateNodeScriptsFromFileSceneLuaVM(pointer.h, sceneToC, nodeToC) + retval := C.HarfangCreateNodeScriptsFromFileSceneLuaVM(pointer.h, sceneToC, nodeToC) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } @@ -10714,10 +11436,10 @@ func (pointer *SceneLuaVM) CreateNodeScriptsFromFile(scene *Scene, node *Node) * func (pointer *SceneLuaVM) CreateNodeScriptsFromAssets(scene *Scene, node *Node) *ScriptList { sceneToC := scene.h nodeToC := node.h - retval := C.WrapCreateNodeScriptsFromAssetsSceneLuaVM(pointer.h, sceneToC, nodeToC) + retval := C.HarfangCreateNodeScriptsFromAssetsSceneLuaVM(pointer.h, sceneToC, nodeToC) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } @@ -10725,10 +11447,10 @@ func (pointer *SceneLuaVM) CreateNodeScriptsFromAssets(scene *Scene, node *Node) // SceneCreateScriptsFromFile ... func (pointer *SceneLuaVM) SceneCreateScriptsFromFile(scene *Scene) *ScriptList { sceneToC := scene.h - retval := C.WrapSceneCreateScriptsFromFileSceneLuaVM(pointer.h, sceneToC) + retval := C.HarfangSceneCreateScriptsFromFileSceneLuaVM(pointer.h, sceneToC) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } @@ -10736,10 +11458,10 @@ func (pointer *SceneLuaVM) SceneCreateScriptsFromFile(scene *Scene) *ScriptList // SceneCreateScriptsFromAssets ... func (pointer *SceneLuaVM) SceneCreateScriptsFromAssets(scene *Scene) *ScriptList { sceneToC := scene.h - retval := C.WrapSceneCreateScriptsFromAssetsSceneLuaVM(pointer.h, sceneToC) + retval := C.HarfangSceneCreateScriptsFromAssetsSceneLuaVM(pointer.h, sceneToC) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } @@ -10747,10 +11469,10 @@ func (pointer *SceneLuaVM) SceneCreateScriptsFromAssets(scene *Scene) *ScriptLis // GarbageCollect ... func (pointer *SceneLuaVM) GarbageCollect(scene *Scene) *ScriptList { sceneToC := scene.h - retval := C.WrapGarbageCollectSceneLuaVM(pointer.h, sceneToC) + retval := C.HarfangGarbageCollectSceneLuaVM(pointer.h, sceneToC) retvalGO := &ScriptList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ScriptList) { - C.WrapScriptListFree(cleanval.h) + C.HarfangScriptListFree(cleanval.h) }) return retvalGO } @@ -10758,33 +11480,33 @@ func (pointer *SceneLuaVM) GarbageCollect(scene *Scene) *ScriptList { // DestroyScripts ... func (pointer *SceneLuaVM) DestroyScripts(scripts *ScriptList) { scriptsToC := scripts.h - C.WrapDestroyScriptsSceneLuaVM(pointer.h, scriptsToC) + C.HarfangDestroyScriptsSceneLuaVM(pointer.h, scriptsToC) } // GetScriptInterface ... func (pointer *SceneLuaVM) GetScriptInterface(script *Script) *StringList { scriptToC := script.h - retval := C.WrapGetScriptInterfaceSceneLuaVM(pointer.h, scriptToC) + retval := C.HarfangGetScriptInterfaceSceneLuaVM(pointer.h, scriptToC) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // GetScriptCount ... func (pointer *SceneLuaVM) GetScriptCount() int32 { - retval := C.WrapGetScriptCountSceneLuaVM(pointer.h) + retval := C.HarfangGetScriptCountSceneLuaVM(pointer.h) return int32(retval) } // GetScriptEnv ... func (pointer *SceneLuaVM) GetScriptEnv(script *Script) *LuaObject { scriptToC := script.h - retval := C.WrapGetScriptEnvSceneLuaVM(pointer.h, scriptToC) + retval := C.HarfangGetScriptEnvSceneLuaVM(pointer.h, scriptToC) retvalGO := &LuaObject{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObject) { - C.WrapLuaObjectFree(cleanval.h) + C.HarfangLuaObjectFree(cleanval.h) }) return retvalGO } @@ -10794,10 +11516,10 @@ func (pointer *SceneLuaVM) GetScriptValue(script *Script, name string) *LuaObjec scriptToC := script.h nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetScriptValueSceneLuaVM(pointer.h, scriptToC, nameToC) + retval := C.HarfangGetScriptValueSceneLuaVM(pointer.h, scriptToC, nameToC) retvalGO := &LuaObject{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObject) { - C.WrapLuaObjectFree(cleanval.h) + C.HarfangLuaObjectFree(cleanval.h) }) return retvalGO } @@ -10808,7 +11530,7 @@ func (pointer *SceneLuaVM) SetScriptValue(script *Script, name string, value *Lu nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() valueToC := value.h - retval := C.WrapSetScriptValueSceneLuaVM(pointer.h, scriptToC, nameToC, valueToC) + retval := C.HarfangSetScriptValueSceneLuaVM(pointer.h, scriptToC, nameToC, valueToC) return bool(retval) } @@ -10819,7 +11541,7 @@ func (pointer *SceneLuaVM) SetScriptValueWithNotify(script *Script, name string, defer idFinnameToC() valueToC := value.h notifyToC := C.bool(notify) - retval := C.WrapSetScriptValueSceneLuaVMWithNotify(pointer.h, scriptToC, nameToC, valueToC, notifyToC) + retval := C.HarfangSetScriptValueSceneLuaVMWithNotify(pointer.h, scriptToC, nameToC, valueToC, notifyToC) return bool(retval) } @@ -10831,7 +11553,7 @@ func (pointer *SceneLuaVM) Call(script *Script, function string, args *LuaObject argsToC := args.h retvals := NewLuaObjectList() retvalsToC := retvals.h - retval := C.WrapCallSceneLuaVM(pointer.h, scriptToC, functionToC, argsToC, retvalsToC) + retval := C.HarfangCallSceneLuaVM(pointer.h, scriptToC, functionToC, argsToC, retvalsToC) return bool(retval), retvals } @@ -10840,111 +11562,129 @@ func (pointer *SceneLuaVM) CallWithSliceOfArgs(script *Script, function string, scriptToC := script.h functionToC, idFinfunctionToC := wrapString(function) defer idFinfunctionToC() - var SliceOfargsPointer []C.WrapLuaObject + var SliceOfargsPointer []C.HarfangLuaObject for _, s := range SliceOfargs { SliceOfargsPointer = append(SliceOfargsPointer, s.h) } SliceOfargsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfargsPointer)) SliceOfargsPointerToCSize := C.size_t(SliceOfargsPointerToC.Len) - SliceOfargsPointerToCBuf := (*C.WrapLuaObject)(unsafe.Pointer(SliceOfargsPointerToC.Data)) + SliceOfargsPointerToCBuf := (*C.HarfangLuaObject)(unsafe.Pointer(SliceOfargsPointerToC.Data)) retvals := NewLuaObjectList() retvalsToC := retvals.h - retval := C.WrapCallSceneLuaVMWithSliceOfArgs(pointer.h, scriptToC, functionToC, SliceOfargsPointerToCSize, SliceOfargsPointerToCBuf, retvalsToC) + retval := C.HarfangCallSceneLuaVMWithSliceOfArgs(pointer.h, scriptToC, functionToC, SliceOfargsPointerToCSize, SliceOfargsPointerToCBuf, retvalsToC) return bool(retval), retvals } // MakeLuaObject ... func (pointer *SceneLuaVM) MakeLuaObject() *LuaObject { - retval := C.WrapMakeLuaObjectSceneLuaVM(pointer.h) + retval := C.HarfangMakeLuaObjectSceneLuaVM(pointer.h) retvalGO := &LuaObject{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *LuaObject) { - C.WrapLuaObjectFree(cleanval.h) + C.HarfangLuaObjectFree(cleanval.h) }) return retvalGO } // SceneClocks Holds clocks for the different scene systems. This is required as some system such as the physics system may run at a different rate than the scene. type SceneClocks struct { - h C.WrapSceneClocks + h C.HarfangSceneClocks +} + +// NewSceneClocksFromCPointer ... +func NewSceneClocksFromCPointer(p unsafe.Pointer) *SceneClocks { + retvalGO := &SceneClocks{h: (C.HarfangSceneClocks)(p)} + return retvalGO } // NewSceneClocks Holds clocks for the different scene systems. This is required as some system such as the physics system may run at a different rate than the scene. func NewSceneClocks() *SceneClocks { - retval := C.WrapConstructorSceneClocks() + retval := C.HarfangConstructorSceneClocks() retvalGO := &SceneClocks{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SceneClocks) { - C.WrapSceneClocksFree(cleanval.h) + C.HarfangSceneClocksFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SceneClocks) Free() { - C.WrapSceneClocksFree(pointer.h) + C.HarfangSceneClocksFree(pointer.h) } // IsNil ... func (pointer *SceneClocks) IsNil() bool { - return pointer.h == C.WrapSceneClocks(nil) + return pointer.h == C.HarfangSceneClocks(nil) } // MouseState ... type MouseState struct { - h C.WrapMouseState + h C.HarfangMouseState +} + +// NewMouseStateFromCPointer ... +func NewMouseStateFromCPointer(p unsafe.Pointer) *MouseState { + retvalGO := &MouseState{h: (C.HarfangMouseState)(p)} + return retvalGO } // Free ... func (pointer *MouseState) Free() { - C.WrapMouseStateFree(pointer.h) + C.HarfangMouseStateFree(pointer.h) } // IsNil ... func (pointer *MouseState) IsNil() bool { - return pointer.h == C.WrapMouseState(nil) + return pointer.h == C.HarfangMouseState(nil) } // X ... func (pointer *MouseState) X() int32 { - retval := C.WrapXMouseState(pointer.h) + retval := C.HarfangXMouseState(pointer.h) return int32(retval) } // Y ... func (pointer *MouseState) Y() int32 { - retval := C.WrapYMouseState(pointer.h) + retval := C.HarfangYMouseState(pointer.h) return int32(retval) } // Button ... func (pointer *MouseState) Button(btn MouseButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapButtonMouseState(pointer.h, btnToC) + retval := C.HarfangButtonMouseState(pointer.h, btnToC) return bool(retval) } // Wheel ... func (pointer *MouseState) Wheel() int32 { - retval := C.WrapWheelMouseState(pointer.h) + retval := C.HarfangWheelMouseState(pointer.h) return int32(retval) } // HWheel ... func (pointer *MouseState) HWheel() int32 { - retval := C.WrapHWheelMouseState(pointer.h) + retval := C.HarfangHWheelMouseState(pointer.h) return int32(retval) } // Mouse Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetMouseNames] to query for available mouse devices. type Mouse struct { - h C.WrapMouse + h C.HarfangMouse +} + +// NewMouseFromCPointer ... +func NewMouseFromCPointer(p unsafe.Pointer) *Mouse { + retvalGO := &Mouse{h: (C.HarfangMouse)(p)} + return retvalGO } // NewMouse Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetMouseNames] to query for available mouse devices. func NewMouse() *Mouse { - retval := C.WrapConstructorMouse() + retval := C.HarfangConstructorMouse() retvalGO := &Mouse{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mouse) { - C.WrapMouseFree(cleanval.h) + C.HarfangMouseFree(cleanval.h) }) return retvalGO } @@ -10953,139 +11693,151 @@ func NewMouse() *Mouse { func NewMouseWithName(name string) *Mouse { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorMouseWithName(nameToC) + retval := C.HarfangConstructorMouseWithName(nameToC) retvalGO := &Mouse{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mouse) { - C.WrapMouseFree(cleanval.h) + C.HarfangMouseFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Mouse) Free() { - C.WrapMouseFree(pointer.h) + C.HarfangMouseFree(pointer.h) } // IsNil ... func (pointer *Mouse) IsNil() bool { - return pointer.h == C.WrapMouse(nil) + return pointer.h == C.HarfangMouse(nil) } // X ... func (pointer *Mouse) X() int32 { - retval := C.WrapXMouse(pointer.h) + retval := C.HarfangXMouse(pointer.h) return int32(retval) } // Y ... func (pointer *Mouse) Y() int32 { - retval := C.WrapYMouse(pointer.h) + retval := C.HarfangYMouse(pointer.h) return int32(retval) } // DtX ... func (pointer *Mouse) DtX() int32 { - retval := C.WrapDtXMouse(pointer.h) + retval := C.HarfangDtXMouse(pointer.h) return int32(retval) } // DtY ... func (pointer *Mouse) DtY() int32 { - retval := C.WrapDtYMouse(pointer.h) + retval := C.HarfangDtYMouse(pointer.h) return int32(retval) } // Down ... func (pointer *Mouse) Down(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapDownMouse(pointer.h, buttonToC) + retval := C.HarfangDownMouse(pointer.h, buttonToC) return bool(retval) } // Pressed ... func (pointer *Mouse) Pressed(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapPressedMouse(pointer.h, buttonToC) + retval := C.HarfangPressedMouse(pointer.h, buttonToC) return bool(retval) } // Released ... func (pointer *Mouse) Released(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapReleasedMouse(pointer.h, buttonToC) + retval := C.HarfangReleasedMouse(pointer.h, buttonToC) return bool(retval) } // Wheel ... func (pointer *Mouse) Wheel() int32 { - retval := C.WrapWheelMouse(pointer.h) + retval := C.HarfangWheelMouse(pointer.h) return int32(retval) } // HWheel ... func (pointer *Mouse) HWheel() int32 { - retval := C.WrapHWheelMouse(pointer.h) + retval := C.HarfangHWheelMouse(pointer.h) return int32(retval) } // Update ... func (pointer *Mouse) Update() { - C.WrapUpdateMouse(pointer.h) + C.HarfangUpdateMouse(pointer.h) } // GetState ... func (pointer *Mouse) GetState() *MouseState { - retval := C.WrapGetStateMouse(pointer.h) + retval := C.HarfangGetStateMouse(pointer.h) retvalGO := &MouseState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MouseState) { - C.WrapMouseStateFree(cleanval.h) + C.HarfangMouseStateFree(cleanval.h) }) return retvalGO } // GetOldState ... func (pointer *Mouse) GetOldState() *MouseState { - retval := C.WrapGetOldStateMouse(pointer.h) + retval := C.HarfangGetOldStateMouse(pointer.h) retvalGO := &MouseState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MouseState) { - C.WrapMouseStateFree(cleanval.h) + C.HarfangMouseStateFree(cleanval.h) }) return retvalGO } // KeyboardState ... type KeyboardState struct { - h C.WrapKeyboardState + h C.HarfangKeyboardState +} + +// NewKeyboardStateFromCPointer ... +func NewKeyboardStateFromCPointer(p unsafe.Pointer) *KeyboardState { + retvalGO := &KeyboardState{h: (C.HarfangKeyboardState)(p)} + return retvalGO } // Free ... func (pointer *KeyboardState) Free() { - C.WrapKeyboardStateFree(pointer.h) + C.HarfangKeyboardStateFree(pointer.h) } // IsNil ... func (pointer *KeyboardState) IsNil() bool { - return pointer.h == C.WrapKeyboardState(nil) + return pointer.h == C.HarfangKeyboardState(nil) } // Key ... func (pointer *KeyboardState) Key(key Key) bool { keyToC := C.int32_t(key) - retval := C.WrapKeyKeyboardState(pointer.h, keyToC) + retval := C.HarfangKeyKeyboardState(pointer.h, keyToC) return bool(retval) } // Keyboard Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetKeyboardNames] to query for available keyboard devices. type Keyboard struct { - h C.WrapKeyboard + h C.HarfangKeyboard +} + +// NewKeyboardFromCPointer ... +func NewKeyboardFromCPointer(p unsafe.Pointer) *Keyboard { + retvalGO := &Keyboard{h: (C.HarfangKeyboard)(p)} + return retvalGO } // NewKeyboard Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetKeyboardNames] to query for available keyboard devices. func NewKeyboard() *Keyboard { - retval := C.WrapConstructorKeyboard() + retval := C.HarfangConstructorKeyboard() retvalGO := &Keyboard{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Keyboard) { - C.WrapKeyboardFree(cleanval.h) + C.HarfangKeyboardFree(cleanval.h) }) return retvalGO } @@ -11094,107 +11846,119 @@ func NewKeyboard() *Keyboard { func NewKeyboardWithName(name string) *Keyboard { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorKeyboardWithName(nameToC) + retval := C.HarfangConstructorKeyboardWithName(nameToC) retvalGO := &Keyboard{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Keyboard) { - C.WrapKeyboardFree(cleanval.h) + C.HarfangKeyboardFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Keyboard) Free() { - C.WrapKeyboardFree(pointer.h) + C.HarfangKeyboardFree(pointer.h) } // IsNil ... func (pointer *Keyboard) IsNil() bool { - return pointer.h == C.WrapKeyboard(nil) + return pointer.h == C.HarfangKeyboard(nil) } // Down ... func (pointer *Keyboard) Down(key Key) bool { keyToC := C.int32_t(key) - retval := C.WrapDownKeyboard(pointer.h, keyToC) + retval := C.HarfangDownKeyboard(pointer.h, keyToC) return bool(retval) } // Pressed ... func (pointer *Keyboard) Pressed(key Key) bool { keyToC := C.int32_t(key) - retval := C.WrapPressedKeyboard(pointer.h, keyToC) + retval := C.HarfangPressedKeyboard(pointer.h, keyToC) return bool(retval) } // Released ... func (pointer *Keyboard) Released(key Key) bool { keyToC := C.int32_t(key) - retval := C.WrapReleasedKeyboard(pointer.h, keyToC) + retval := C.HarfangReleasedKeyboard(pointer.h, keyToC) return bool(retval) } // Update ... func (pointer *Keyboard) Update() { - C.WrapUpdateKeyboard(pointer.h) + C.HarfangUpdateKeyboard(pointer.h) } // GetState ... func (pointer *Keyboard) GetState() *KeyboardState { - retval := C.WrapGetStateKeyboard(pointer.h) + retval := C.HarfangGetStateKeyboard(pointer.h) retvalGO := &KeyboardState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *KeyboardState) { - C.WrapKeyboardStateFree(cleanval.h) + C.HarfangKeyboardStateFree(cleanval.h) }) return retvalGO } // GetOldState ... func (pointer *Keyboard) GetOldState() *KeyboardState { - retval := C.WrapGetOldStateKeyboard(pointer.h) + retval := C.HarfangGetOldStateKeyboard(pointer.h) retvalGO := &KeyboardState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *KeyboardState) { - C.WrapKeyboardStateFree(cleanval.h) + C.HarfangKeyboardStateFree(cleanval.h) }) return retvalGO } // TextInputCallbackConnection ... type TextInputCallbackConnection struct { - h C.WrapTextInputCallbackConnection + h C.HarfangTextInputCallbackConnection +} + +// NewTextInputCallbackConnectionFromCPointer ... +func NewTextInputCallbackConnectionFromCPointer(p unsafe.Pointer) *TextInputCallbackConnection { + retvalGO := &TextInputCallbackConnection{h: (C.HarfangTextInputCallbackConnection)(p)} + return retvalGO } // Free ... func (pointer *TextInputCallbackConnection) Free() { - C.WrapTextInputCallbackConnectionFree(pointer.h) + C.HarfangTextInputCallbackConnectionFree(pointer.h) } // IsNil ... func (pointer *TextInputCallbackConnection) IsNil() bool { - return pointer.h == C.WrapTextInputCallbackConnection(nil) + return pointer.h == C.HarfangTextInputCallbackConnection(nil) } // SignalReturningVoidTakingConstCharPtr ... type SignalReturningVoidTakingConstCharPtr struct { - h C.WrapSignalReturningVoidTakingConstCharPtr + h C.HarfangSignalReturningVoidTakingConstCharPtr +} + +// NewSignalReturningVoidTakingConstCharPtrFromCPointer ... +func NewSignalReturningVoidTakingConstCharPtrFromCPointer(p unsafe.Pointer) *SignalReturningVoidTakingConstCharPtr { + retvalGO := &SignalReturningVoidTakingConstCharPtr{h: (C.HarfangSignalReturningVoidTakingConstCharPtr)(p)} + return retvalGO } // Free ... func (pointer *SignalReturningVoidTakingConstCharPtr) Free() { - C.WrapSignalReturningVoidTakingConstCharPtrFree(pointer.h) + C.HarfangSignalReturningVoidTakingConstCharPtrFree(pointer.h) } // IsNil ... func (pointer *SignalReturningVoidTakingConstCharPtr) IsNil() bool { - return pointer.h == C.WrapSignalReturningVoidTakingConstCharPtr(nil) + return pointer.h == C.HarfangSignalReturningVoidTakingConstCharPtr(nil) } // Connect ... func (pointer *SignalReturningVoidTakingConstCharPtr) Connect(listener unsafe.Pointer) *TextInputCallbackConnection { - listenerToC := (C.WrapFunctionReturningVoidTakingConstCharPtr)(listener) - retval := C.WrapConnectSignalReturningVoidTakingConstCharPtr(pointer.h, listenerToC) + listenerToC := (C.HarfangFunctionReturningVoidTakingConstCharPtr)(listener) + retval := C.HarfangConnectSignalReturningVoidTakingConstCharPtr(pointer.h, listenerToC) retvalGO := &TextInputCallbackConnection{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextInputCallbackConnection) { - C.WrapTextInputCallbackConnectionFree(cleanval.h) + C.HarfangTextInputCallbackConnectionFree(cleanval.h) }) return retvalGO } @@ -11202,73 +11966,85 @@ func (pointer *SignalReturningVoidTakingConstCharPtr) Connect(listener unsafe.Po // Disconnect ... func (pointer *SignalReturningVoidTakingConstCharPtr) Disconnect(connection *TextInputCallbackConnection) { connectionToC := connection.h - C.WrapDisconnectSignalReturningVoidTakingConstCharPtr(pointer.h, connectionToC) + C.HarfangDisconnectSignalReturningVoidTakingConstCharPtr(pointer.h, connectionToC) } // DisconnectAll ... func (pointer *SignalReturningVoidTakingConstCharPtr) DisconnectAll() { - C.WrapDisconnectAllSignalReturningVoidTakingConstCharPtr(pointer.h) + C.HarfangDisconnectAllSignalReturningVoidTakingConstCharPtr(pointer.h) } // Emit ... func (pointer *SignalReturningVoidTakingConstCharPtr) Emit(arg0 string) { arg0ToC, idFinarg0ToC := wrapString(arg0) defer idFinarg0ToC() - C.WrapEmitSignalReturningVoidTakingConstCharPtr(pointer.h, arg0ToC) + C.HarfangEmitSignalReturningVoidTakingConstCharPtr(pointer.h, arg0ToC) } // GetListenerCount ... func (pointer *SignalReturningVoidTakingConstCharPtr) GetListenerCount() int32 { - retval := C.WrapGetListenerCountSignalReturningVoidTakingConstCharPtr(pointer.h) + retval := C.HarfangGetListenerCountSignalReturningVoidTakingConstCharPtr(pointer.h) return int32(retval) } // GamepadState ... type GamepadState struct { - h C.WrapGamepadState + h C.HarfangGamepadState +} + +// NewGamepadStateFromCPointer ... +func NewGamepadStateFromCPointer(p unsafe.Pointer) *GamepadState { + retvalGO := &GamepadState{h: (C.HarfangGamepadState)(p)} + return retvalGO } // Free ... func (pointer *GamepadState) Free() { - C.WrapGamepadStateFree(pointer.h) + C.HarfangGamepadStateFree(pointer.h) } // IsNil ... func (pointer *GamepadState) IsNil() bool { - return pointer.h == C.WrapGamepadState(nil) + return pointer.h == C.HarfangGamepadState(nil) } // IsConnected ... func (pointer *GamepadState) IsConnected() bool { - retval := C.WrapIsConnectedGamepadState(pointer.h) + retval := C.HarfangIsConnectedGamepadState(pointer.h) return bool(retval) } // Axes ... func (pointer *GamepadState) Axes(idx GamepadAxes) float32 { idxToC := C.int32_t(idx) - retval := C.WrapAxesGamepadState(pointer.h, idxToC) + retval := C.HarfangAxesGamepadState(pointer.h, idxToC) return float32(retval) } // Button ... func (pointer *GamepadState) Button(btn GamepadButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapButtonGamepadState(pointer.h, btnToC) + retval := C.HarfangButtonGamepadState(pointer.h, btnToC) return bool(retval) } // Gamepad Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetGamepadNames] to query for available gamepad devices. type Gamepad struct { - h C.WrapGamepad + h C.HarfangGamepad +} + +// NewGamepadFromCPointer ... +func NewGamepadFromCPointer(p unsafe.Pointer) *Gamepad { + retvalGO := &Gamepad{h: (C.HarfangGamepad)(p)} + return retvalGO } // NewGamepad Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetGamepadNames] to query for available gamepad devices. func NewGamepad() *Gamepad { - retval := C.WrapConstructorGamepad() + retval := C.HarfangConstructorGamepad() retvalGO := &Gamepad{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Gamepad) { - C.WrapGamepadFree(cleanval.h) + C.HarfangGamepadFree(cleanval.h) }) return retvalGO } @@ -11277,128 +12053,140 @@ func NewGamepad() *Gamepad { func NewGamepadWithName(name string) *Gamepad { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorGamepadWithName(nameToC) + retval := C.HarfangConstructorGamepadWithName(nameToC) retvalGO := &Gamepad{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Gamepad) { - C.WrapGamepadFree(cleanval.h) + C.HarfangGamepadFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Gamepad) Free() { - C.WrapGamepadFree(pointer.h) + C.HarfangGamepadFree(pointer.h) } // IsNil ... func (pointer *Gamepad) IsNil() bool { - return pointer.h == C.WrapGamepad(nil) + return pointer.h == C.HarfangGamepad(nil) } // IsConnected Gamepad is currently connected. func (pointer *Gamepad) IsConnected() bool { - retval := C.WrapIsConnectedGamepad(pointer.h) + retval := C.HarfangIsConnectedGamepad(pointer.h) return bool(retval) } // Connected Gamepad was connected since the last update. func (pointer *Gamepad) Connected() bool { - retval := C.WrapConnectedGamepad(pointer.h) + retval := C.HarfangConnectedGamepad(pointer.h) return bool(retval) } // Disconnected Gamepad was disconnected since the last update. func (pointer *Gamepad) Disconnected() bool { - retval := C.WrapDisconnectedGamepad(pointer.h) + retval := C.HarfangDisconnectedGamepad(pointer.h) return bool(retval) } // Axes Return the value of a gamepad axis. func (pointer *Gamepad) Axes(axis GamepadAxes) float32 { axisToC := C.int32_t(axis) - retval := C.WrapAxesGamepad(pointer.h, axisToC) + retval := C.HarfangAxesGamepad(pointer.h, axisToC) return float32(retval) } // DtAxes ... func (pointer *Gamepad) DtAxes(axis GamepadAxes) float32 { axisToC := C.int32_t(axis) - retval := C.WrapDtAxesGamepad(pointer.h, axisToC) + retval := C.HarfangDtAxesGamepad(pointer.h, axisToC) return float32(retval) } // Down ... func (pointer *Gamepad) Down(btn GamepadButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapDownGamepad(pointer.h, btnToC) + retval := C.HarfangDownGamepad(pointer.h, btnToC) return bool(retval) } // Pressed ... func (pointer *Gamepad) Pressed(btn GamepadButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapPressedGamepad(pointer.h, btnToC) + retval := C.HarfangPressedGamepad(pointer.h, btnToC) return bool(retval) } // Released ... func (pointer *Gamepad) Released(btn GamepadButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapReleasedGamepad(pointer.h, btnToC) + retval := C.HarfangReleasedGamepad(pointer.h, btnToC) return bool(retval) } // Update ... func (pointer *Gamepad) Update() { - C.WrapUpdateGamepad(pointer.h) + C.HarfangUpdateGamepad(pointer.h) } // JoystickState ... type JoystickState struct { - h C.WrapJoystickState + h C.HarfangJoystickState +} + +// NewJoystickStateFromCPointer ... +func NewJoystickStateFromCPointer(p unsafe.Pointer) *JoystickState { + retvalGO := &JoystickState{h: (C.HarfangJoystickState)(p)} + return retvalGO } // Free ... func (pointer *JoystickState) Free() { - C.WrapJoystickStateFree(pointer.h) + C.HarfangJoystickStateFree(pointer.h) } // IsNil ... func (pointer *JoystickState) IsNil() bool { - return pointer.h == C.WrapJoystickState(nil) + return pointer.h == C.HarfangJoystickState(nil) } // IsConnected ... func (pointer *JoystickState) IsConnected() bool { - retval := C.WrapIsConnectedJoystickState(pointer.h) + retval := C.HarfangIsConnectedJoystickState(pointer.h) return bool(retval) } // Axes ... func (pointer *JoystickState) Axes(idx int32) float32 { idxToC := C.int32_t(idx) - retval := C.WrapAxesJoystickState(pointer.h, idxToC) + retval := C.HarfangAxesJoystickState(pointer.h, idxToC) return float32(retval) } // Button ... func (pointer *JoystickState) Button(btn int32) bool { btnToC := C.int32_t(btn) - retval := C.WrapButtonJoystickState(pointer.h, btnToC) + retval := C.HarfangButtonJoystickState(pointer.h, btnToC) return bool(retval) } // Joystick ... type Joystick struct { - h C.WrapJoystick + h C.HarfangJoystick +} + +// NewJoystickFromCPointer ... +func NewJoystickFromCPointer(p unsafe.Pointer) *Joystick { + retvalGO := &Joystick{h: (C.HarfangJoystick)(p)} + return retvalGO } // NewJoystick ... func NewJoystick() *Joystick { - retval := C.WrapConstructorJoystick() + retval := C.HarfangConstructorJoystick() retvalGO := &Joystick{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Joystick) { - C.WrapJoystickFree(cleanval.h) + C.HarfangJoystickFree(cleanval.h) }) return retvalGO } @@ -11407,127 +12195,133 @@ func NewJoystick() *Joystick { func NewJoystickWithName(name string) *Joystick { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorJoystickWithName(nameToC) + retval := C.HarfangConstructorJoystickWithName(nameToC) retvalGO := &Joystick{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Joystick) { - C.WrapJoystickFree(cleanval.h) + C.HarfangJoystickFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Joystick) Free() { - C.WrapJoystickFree(pointer.h) + C.HarfangJoystickFree(pointer.h) } // IsNil ... func (pointer *Joystick) IsNil() bool { - return pointer.h == C.WrapJoystick(nil) + return pointer.h == C.HarfangJoystick(nil) } // IsConnected ... func (pointer *Joystick) IsConnected() bool { - retval := C.WrapIsConnectedJoystick(pointer.h) + retval := C.HarfangIsConnectedJoystick(pointer.h) return bool(retval) } // Connected ... func (pointer *Joystick) Connected() bool { - retval := C.WrapConnectedJoystick(pointer.h) + retval := C.HarfangConnectedJoystick(pointer.h) return bool(retval) } // Disconnected ... func (pointer *Joystick) Disconnected() bool { - retval := C.WrapDisconnectedJoystick(pointer.h) + retval := C.HarfangDisconnectedJoystick(pointer.h) return bool(retval) } // AxesCount ... func (pointer *Joystick) AxesCount() int32 { - retval := C.WrapAxesCountJoystick(pointer.h) + retval := C.HarfangAxesCountJoystick(pointer.h) return int32(retval) } // Axes ... func (pointer *Joystick) Axes(axis int32) float32 { axisToC := C.int32_t(axis) - retval := C.WrapAxesJoystick(pointer.h, axisToC) + retval := C.HarfangAxesJoystick(pointer.h, axisToC) return float32(retval) } // DtAxes ... func (pointer *Joystick) DtAxes(axis int32) float32 { axisToC := C.int32_t(axis) - retval := C.WrapDtAxesJoystick(pointer.h, axisToC) + retval := C.HarfangDtAxesJoystick(pointer.h, axisToC) return float32(retval) } // ButtonsCount ... func (pointer *Joystick) ButtonsCount() int32 { - retval := C.WrapButtonsCountJoystick(pointer.h) + retval := C.HarfangButtonsCountJoystick(pointer.h) return int32(retval) } // Down ... func (pointer *Joystick) Down(btn int32) bool { btnToC := C.int32_t(btn) - retval := C.WrapDownJoystick(pointer.h, btnToC) + retval := C.HarfangDownJoystick(pointer.h, btnToC) return bool(retval) } // Pressed ... func (pointer *Joystick) Pressed(btn int32) bool { btnToC := C.int32_t(btn) - retval := C.WrapPressedJoystick(pointer.h, btnToC) + retval := C.HarfangPressedJoystick(pointer.h, btnToC) return bool(retval) } // Released ... func (pointer *Joystick) Released(btn int32) bool { btnToC := C.int32_t(btn) - retval := C.WrapReleasedJoystick(pointer.h, btnToC) + retval := C.HarfangReleasedJoystick(pointer.h, btnToC) return bool(retval) } // Update ... func (pointer *Joystick) Update() { - C.WrapUpdateJoystick(pointer.h) + C.HarfangUpdateJoystick(pointer.h) } // GetDeviceName ... func (pointer *Joystick) GetDeviceName() string { - retval := C.WrapGetDeviceNameJoystick(pointer.h) + retval := C.HarfangGetDeviceNameJoystick(pointer.h) return C.GoString(retval) } // VRControllerState ... type VRControllerState struct { - h C.WrapVRControllerState + h C.HarfangVRControllerState +} + +// NewVRControllerStateFromCPointer ... +func NewVRControllerStateFromCPointer(p unsafe.Pointer) *VRControllerState { + retvalGO := &VRControllerState{h: (C.HarfangVRControllerState)(p)} + return retvalGO } // Free ... func (pointer *VRControllerState) Free() { - C.WrapVRControllerStateFree(pointer.h) + C.HarfangVRControllerStateFree(pointer.h) } // IsNil ... func (pointer *VRControllerState) IsNil() bool { - return pointer.h == C.WrapVRControllerState(nil) + return pointer.h == C.HarfangVRControllerState(nil) } // IsConnected ... func (pointer *VRControllerState) IsConnected() bool { - retval := C.WrapIsConnectedVRControllerState(pointer.h) + retval := C.HarfangIsConnectedVRControllerState(pointer.h) return bool(retval) } // World ... func (pointer *VRControllerState) World() *Mat4 { - retval := C.WrapWorldVRControllerState(pointer.h) + retval := C.HarfangWorldVRControllerState(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -11535,39 +12329,45 @@ func (pointer *VRControllerState) World() *Mat4 { // Pressed ... func (pointer *VRControllerState) Pressed(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapPressedVRControllerState(pointer.h, btnToC) + retval := C.HarfangPressedVRControllerState(pointer.h, btnToC) return bool(retval) } // Touched ... func (pointer *VRControllerState) Touched(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapTouchedVRControllerState(pointer.h, btnToC) + retval := C.HarfangTouchedVRControllerState(pointer.h, btnToC) return bool(retval) } // Surface ... func (pointer *VRControllerState) Surface(idx int32) *Vec2 { idxToC := C.int32_t(idx) - retval := C.WrapSurfaceVRControllerState(pointer.h, idxToC) + retval := C.HarfangSurfaceVRControllerState(pointer.h, idxToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // VRController Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetVRControllerNames] to query for available VR controller devices. type VRController struct { - h C.WrapVRController + h C.HarfangVRController +} + +// NewVRControllerFromCPointer ... +func NewVRControllerFromCPointer(p unsafe.Pointer) *VRController { + retvalGO := &VRController{h: (C.HarfangVRController)(p)} + return retvalGO } // NewVRController Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetVRControllerNames] to query for available VR controller devices. func NewVRController() *VRController { - retval := C.WrapConstructorVRController() + retval := C.HarfangConstructorVRController() retvalGO := &VRController{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRController) { - C.WrapVRControllerFree(cleanval.h) + C.HarfangVRControllerFree(cleanval.h) }) return retvalGO } @@ -11576,48 +12376,48 @@ func NewVRController() *VRController { func NewVRControllerWithName(name string) *VRController { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorVRControllerWithName(nameToC) + retval := C.HarfangConstructorVRControllerWithName(nameToC) retvalGO := &VRController{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRController) { - C.WrapVRControllerFree(cleanval.h) + C.HarfangVRControllerFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *VRController) Free() { - C.WrapVRControllerFree(pointer.h) + C.HarfangVRControllerFree(pointer.h) } // IsNil ... func (pointer *VRController) IsNil() bool { - return pointer.h == C.WrapVRController(nil) + return pointer.h == C.HarfangVRController(nil) } // IsConnected Gamepad is currently connected. func (pointer *VRController) IsConnected() bool { - retval := C.WrapIsConnectedVRController(pointer.h) + retval := C.HarfangIsConnectedVRController(pointer.h) return bool(retval) } // Connected Gamepad was connected since the last update. func (pointer *VRController) Connected() bool { - retval := C.WrapConnectedVRController(pointer.h) + retval := C.HarfangConnectedVRController(pointer.h) return bool(retval) } // Disconnected Gamepad was disconnected since the last update. func (pointer *VRController) Disconnected() bool { - retval := C.WrapDisconnectedVRController(pointer.h) + retval := C.HarfangDisconnectedVRController(pointer.h) return bool(retval) } // World ... func (pointer *VRController) World() *Mat4 { - retval := C.WrapWorldVRController(pointer.h) + retval := C.HarfangWorldVRController(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -11625,52 +12425,52 @@ func (pointer *VRController) World() *Mat4 { // Down ... func (pointer *VRController) Down(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapDownVRController(pointer.h, btnToC) + retval := C.HarfangDownVRController(pointer.h, btnToC) return bool(retval) } // Pressed ... func (pointer *VRController) Pressed(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapPressedVRController(pointer.h, btnToC) + retval := C.HarfangPressedVRController(pointer.h, btnToC) return bool(retval) } // Released ... func (pointer *VRController) Released(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapReleasedVRController(pointer.h, btnToC) + retval := C.HarfangReleasedVRController(pointer.h, btnToC) return bool(retval) } // Touch ... func (pointer *VRController) Touch(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapTouchVRController(pointer.h, btnToC) + retval := C.HarfangTouchVRController(pointer.h, btnToC) return bool(retval) } // TouchStart ... func (pointer *VRController) TouchStart(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapTouchStartVRController(pointer.h, btnToC) + retval := C.HarfangTouchStartVRController(pointer.h, btnToC) return bool(retval) } // TouchEnd ... func (pointer *VRController) TouchEnd(btn VRControllerButton) bool { btnToC := C.int32_t(btn) - retval := C.WrapTouchEndVRController(pointer.h, btnToC) + retval := C.HarfangTouchEndVRController(pointer.h, btnToC) return bool(retval) } // Surface ... func (pointer *VRController) Surface(idx int32) *Vec2 { idxToC := C.int32_t(idx) - retval := C.WrapSurfaceVRController(pointer.h, idxToC) + retval := C.HarfangSurfaceVRController(pointer.h, idxToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -11678,10 +12478,10 @@ func (pointer *VRController) Surface(idx int32) *Vec2 { // DtSurface ... func (pointer *VRController) DtSurface(idx int32) *Vec2 { idxToC := C.int32_t(idx) - retval := C.WrapDtSurfaceVRController(pointer.h, idxToC) + retval := C.HarfangDtSurfaceVRController(pointer.h, idxToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -11689,56 +12489,68 @@ func (pointer *VRController) DtSurface(idx int32) *Vec2 { // SendHapticPulse ... func (pointer *VRController) SendHapticPulse(duration int64) { durationToC := C.int64_t(duration) - C.WrapSendHapticPulseVRController(pointer.h, durationToC) + C.HarfangSendHapticPulseVRController(pointer.h, durationToC) } // Update ... func (pointer *VRController) Update() { - C.WrapUpdateVRController(pointer.h) + C.HarfangUpdateVRController(pointer.h) } // VRGenericTrackerState ... type VRGenericTrackerState struct { - h C.WrapVRGenericTrackerState + h C.HarfangVRGenericTrackerState +} + +// NewVRGenericTrackerStateFromCPointer ... +func NewVRGenericTrackerStateFromCPointer(p unsafe.Pointer) *VRGenericTrackerState { + retvalGO := &VRGenericTrackerState{h: (C.HarfangVRGenericTrackerState)(p)} + return retvalGO } // Free ... func (pointer *VRGenericTrackerState) Free() { - C.WrapVRGenericTrackerStateFree(pointer.h) + C.HarfangVRGenericTrackerStateFree(pointer.h) } // IsNil ... func (pointer *VRGenericTrackerState) IsNil() bool { - return pointer.h == C.WrapVRGenericTrackerState(nil) + return pointer.h == C.HarfangVRGenericTrackerState(nil) } // IsConnected ... func (pointer *VRGenericTrackerState) IsConnected() bool { - retval := C.WrapIsConnectedVRGenericTrackerState(pointer.h) + retval := C.HarfangIsConnectedVRGenericTrackerState(pointer.h) return bool(retval) } // World ... func (pointer *VRGenericTrackerState) World() *Mat4 { - retval := C.WrapWorldVRGenericTrackerState(pointer.h) + retval := C.HarfangWorldVRGenericTrackerState(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } // VRGenericTracker Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetVRGenericTrackerNames] to query for available VR generic tracker devices. type VRGenericTracker struct { - h C.WrapVRGenericTracker + h C.HarfangVRGenericTracker +} + +// NewVRGenericTrackerFromCPointer ... +func NewVRGenericTrackerFromCPointer(p unsafe.Pointer) *VRGenericTracker { + retvalGO := &VRGenericTracker{h: (C.HarfangVRGenericTracker)(p)} + return retvalGO } // NewVRGenericTracker Helper class holding the current and previous device state to enable delta state queries. Use [harfang.GetVRGenericTrackerNames] to query for available VR generic tracker devices. func NewVRGenericTracker() *VRGenericTracker { - retval := C.WrapConstructorVRGenericTracker() + retval := C.HarfangConstructorVRGenericTracker() retvalGO := &VRGenericTracker{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRGenericTracker) { - C.WrapVRGenericTrackerFree(cleanval.h) + C.HarfangVRGenericTrackerFree(cleanval.h) }) return retvalGO } @@ -11747,95 +12559,113 @@ func NewVRGenericTracker() *VRGenericTracker { func NewVRGenericTrackerWithName(name string) *VRGenericTracker { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapConstructorVRGenericTrackerWithName(nameToC) + retval := C.HarfangConstructorVRGenericTrackerWithName(nameToC) retvalGO := &VRGenericTracker{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRGenericTracker) { - C.WrapVRGenericTrackerFree(cleanval.h) + C.HarfangVRGenericTrackerFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *VRGenericTracker) Free() { - C.WrapVRGenericTrackerFree(pointer.h) + C.HarfangVRGenericTrackerFree(pointer.h) } // IsNil ... func (pointer *VRGenericTracker) IsNil() bool { - return pointer.h == C.WrapVRGenericTracker(nil) + return pointer.h == C.HarfangVRGenericTracker(nil) } // IsConnected ... func (pointer *VRGenericTracker) IsConnected() bool { - retval := C.WrapIsConnectedVRGenericTracker(pointer.h) + retval := C.HarfangIsConnectedVRGenericTracker(pointer.h) return bool(retval) } // World ... func (pointer *VRGenericTracker) World() *Mat4 { - retval := C.WrapWorldVRGenericTracker(pointer.h) + retval := C.HarfangWorldVRGenericTracker(pointer.h) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } // Update ... func (pointer *VRGenericTracker) Update() { - C.WrapUpdateVRGenericTracker(pointer.h) + C.HarfangUpdateVRGenericTracker(pointer.h) } // DearImguiContext Context to render immediate GUI. type DearImguiContext struct { - h C.WrapDearImguiContext + h C.HarfangDearImguiContext +} + +// NewDearImguiContextFromCPointer ... +func NewDearImguiContextFromCPointer(p unsafe.Pointer) *DearImguiContext { + retvalGO := &DearImguiContext{h: (C.HarfangDearImguiContext)(p)} + return retvalGO } // Free ... func (pointer *DearImguiContext) Free() { - C.WrapDearImguiContextFree(pointer.h) + C.HarfangDearImguiContextFree(pointer.h) } // IsNil ... func (pointer *DearImguiContext) IsNil() bool { - return pointer.h == C.WrapDearImguiContext(nil) + return pointer.h == C.HarfangDearImguiContext(nil) } // ImFont Immediate GUI font. type ImFont struct { - h C.WrapImFont + h C.HarfangImFont +} + +// NewImFontFromCPointer ... +func NewImFontFromCPointer(p unsafe.Pointer) *ImFont { + retvalGO := &ImFont{h: (C.HarfangImFont)(p)} + return retvalGO } // Free ... func (pointer *ImFont) Free() { - C.WrapImFontFree(pointer.h) + C.HarfangImFontFree(pointer.h) } // IsNil ... func (pointer *ImFont) IsNil() bool { - return pointer.h == C.WrapImFont(nil) + return pointer.h == C.HarfangImFont(nil) } // ImDrawList Immediate GUI drawing list. This object can be used to perform custom drawing operations on top of an imgui window. type ImDrawList struct { - h C.WrapImDrawList + h C.HarfangImDrawList +} + +// NewImDrawListFromCPointer ... +func NewImDrawListFromCPointer(p unsafe.Pointer) *ImDrawList { + retvalGO := &ImDrawList{h: (C.HarfangImDrawList)(p)} + return retvalGO } // Free ... func (pointer *ImDrawList) Free() { - C.WrapImDrawListFree(pointer.h) + C.HarfangImDrawListFree(pointer.h) } // IsNil ... func (pointer *ImDrawList) IsNil() bool { - return pointer.h == C.WrapImDrawList(nil) + return pointer.h == C.HarfangImDrawList(nil) } // PushClipRect ... func (pointer *ImDrawList) PushClipRect(cliprectmin *Vec2, cliprectmax *Vec2) { cliprectminToC := cliprectmin.h cliprectmaxToC := cliprectmax.h - C.WrapPushClipRectImDrawList(pointer.h, cliprectminToC, cliprectmaxToC) + C.HarfangPushClipRectImDrawList(pointer.h, cliprectminToC, cliprectmaxToC) } // PushClipRectWithIntersectWithCurentClipRect ... @@ -11843,46 +12673,46 @@ func (pointer *ImDrawList) PushClipRectWithIntersectWithCurentClipRect(cliprectm cliprectminToC := cliprectmin.h cliprectmaxToC := cliprectmax.h intersectwithcurentcliprectToC := C.bool(intersectwithcurentcliprect) - C.WrapPushClipRectImDrawListWithIntersectWithCurentClipRect(pointer.h, cliprectminToC, cliprectmaxToC, intersectwithcurentcliprectToC) + C.HarfangPushClipRectImDrawListWithIntersectWithCurentClipRect(pointer.h, cliprectminToC, cliprectmaxToC, intersectwithcurentcliprectToC) } // PushClipRectFullScreen ... func (pointer *ImDrawList) PushClipRectFullScreen() { - C.WrapPushClipRectFullScreenImDrawList(pointer.h) + C.HarfangPushClipRectFullScreenImDrawList(pointer.h) } // PopClipRect ... func (pointer *ImDrawList) PopClipRect() { - C.WrapPopClipRectImDrawList(pointer.h) + C.HarfangPopClipRectImDrawList(pointer.h) } // PushTextureID ... func (pointer *ImDrawList) PushTextureID(tex *Texture) { texToC := tex.h - C.WrapPushTextureIDImDrawList(pointer.h, texToC) + C.HarfangPushTextureIDImDrawList(pointer.h, texToC) } // PopTextureID ... func (pointer *ImDrawList) PopTextureID() { - C.WrapPopTextureIDImDrawList(pointer.h) + C.HarfangPopTextureIDImDrawList(pointer.h) } // GetClipRectMin ... func (pointer *ImDrawList) GetClipRectMin() *Vec2 { - retval := C.WrapGetClipRectMinImDrawList(pointer.h) + retval := C.HarfangGetClipRectMinImDrawList(pointer.h) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // GetClipRectMax ... func (pointer *ImDrawList) GetClipRectMax() *Vec2 { - retval := C.WrapGetClipRectMaxImDrawList(pointer.h) + retval := C.HarfangGetClipRectMaxImDrawList(pointer.h) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -11892,7 +12722,7 @@ func (pointer *ImDrawList) AddLine(a *Vec2, b *Vec2, col uint32) { aToC := a.h bToC := b.h colToC := C.uint32_t(col) - C.WrapAddLineImDrawList(pointer.h, aToC, bToC, colToC) + C.HarfangAddLineImDrawList(pointer.h, aToC, bToC, colToC) } // AddLineWithThickness ... @@ -11901,7 +12731,7 @@ func (pointer *ImDrawList) AddLineWithThickness(a *Vec2, b *Vec2, col uint32, th bToC := b.h colToC := C.uint32_t(col) thicknessToC := C.float(thickness) - C.WrapAddLineImDrawListWithThickness(pointer.h, aToC, bToC, colToC, thicknessToC) + C.HarfangAddLineImDrawListWithThickness(pointer.h, aToC, bToC, colToC, thicknessToC) } // AddRect ... @@ -11909,7 +12739,7 @@ func (pointer *ImDrawList) AddRect(a *Vec2, b *Vec2, col uint32) { aToC := a.h bToC := b.h colToC := C.uint32_t(col) - C.WrapAddRectImDrawList(pointer.h, aToC, bToC, colToC) + C.HarfangAddRectImDrawList(pointer.h, aToC, bToC, colToC) } // AddRectWithRounding ... @@ -11918,7 +12748,7 @@ func (pointer *ImDrawList) AddRectWithRounding(a *Vec2, b *Vec2, col uint32, rou bToC := b.h colToC := C.uint32_t(col) roundingToC := C.float(rounding) - C.WrapAddRectImDrawListWithRounding(pointer.h, aToC, bToC, colToC, roundingToC) + C.HarfangAddRectImDrawListWithRounding(pointer.h, aToC, bToC, colToC, roundingToC) } // AddRectWithRoundingRoundingCornerFlags ... @@ -11928,7 +12758,7 @@ func (pointer *ImDrawList) AddRectWithRoundingRoundingCornerFlags(a *Vec2, b *Ve colToC := C.uint32_t(col) roundingToC := C.float(rounding) roundingcornerflagsToC := C.int32_t(roundingcornerflags) - C.WrapAddRectImDrawListWithRoundingRoundingCornerFlags(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC) + C.HarfangAddRectImDrawListWithRoundingRoundingCornerFlags(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC) } // AddRectWithRoundingRoundingCornerFlagsThickness ... @@ -11939,7 +12769,7 @@ func (pointer *ImDrawList) AddRectWithRoundingRoundingCornerFlagsThickness(a *Ve roundingToC := C.float(rounding) roundingcornerflagsToC := C.int32_t(roundingcornerflags) thicknessToC := C.float(thickness) - C.WrapAddRectImDrawListWithRoundingRoundingCornerFlagsThickness(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC, thicknessToC) + C.HarfangAddRectImDrawListWithRoundingRoundingCornerFlagsThickness(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC, thicknessToC) } // AddRectFilled ... @@ -11947,7 +12777,7 @@ func (pointer *ImDrawList) AddRectFilled(a *Vec2, b *Vec2, col uint32) { aToC := a.h bToC := b.h colToC := C.uint32_t(col) - C.WrapAddRectFilledImDrawList(pointer.h, aToC, bToC, colToC) + C.HarfangAddRectFilledImDrawList(pointer.h, aToC, bToC, colToC) } // AddRectFilledWithRounding ... @@ -11956,7 +12786,7 @@ func (pointer *ImDrawList) AddRectFilledWithRounding(a *Vec2, b *Vec2, col uint3 bToC := b.h colToC := C.uint32_t(col) roundingToC := C.float(rounding) - C.WrapAddRectFilledImDrawListWithRounding(pointer.h, aToC, bToC, colToC, roundingToC) + C.HarfangAddRectFilledImDrawListWithRounding(pointer.h, aToC, bToC, colToC, roundingToC) } // AddRectFilledWithRoundingRoundingCornerFlags ... @@ -11966,7 +12796,7 @@ func (pointer *ImDrawList) AddRectFilledWithRoundingRoundingCornerFlags(a *Vec2, colToC := C.uint32_t(col) roundingToC := C.float(rounding) roundingcornerflagsToC := C.int32_t(roundingcornerflags) - C.WrapAddRectFilledImDrawListWithRoundingRoundingCornerFlags(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC) + C.HarfangAddRectFilledImDrawListWithRoundingRoundingCornerFlags(pointer.h, aToC, bToC, colToC, roundingToC, roundingcornerflagsToC) } // AddRectFilledMultiColor ... @@ -11977,7 +12807,7 @@ func (pointer *ImDrawList) AddRectFilledMultiColor(a *Vec2, b *Vec2, coluprleft coluprrightToC := C.uint32_t(coluprright) colbotrightToC := C.uint32_t(colbotright) colbotleftToC := C.uint32_t(colbotleft) - C.WrapAddRectFilledMultiColorImDrawList(pointer.h, aToC, bToC, coluprleftToC, coluprrightToC, colbotrightToC, colbotleftToC) + C.HarfangAddRectFilledMultiColorImDrawList(pointer.h, aToC, bToC, coluprleftToC, coluprrightToC, colbotrightToC, colbotleftToC) } // AddQuad ... @@ -11987,7 +12817,7 @@ func (pointer *ImDrawList) AddQuad(a *Vec2, b *Vec2, c *Vec2, d *Vec2, col uint3 cToC := c.h dToC := d.h colToC := C.uint32_t(col) - C.WrapAddQuadImDrawList(pointer.h, aToC, bToC, cToC, dToC, colToC) + C.HarfangAddQuadImDrawList(pointer.h, aToC, bToC, cToC, dToC, colToC) } // AddQuadWithThickness ... @@ -11998,7 +12828,7 @@ func (pointer *ImDrawList) AddQuadWithThickness(a *Vec2, b *Vec2, c *Vec2, d *Ve dToC := d.h colToC := C.uint32_t(col) thicknessToC := C.float(thickness) - C.WrapAddQuadImDrawListWithThickness(pointer.h, aToC, bToC, cToC, dToC, colToC, thicknessToC) + C.HarfangAddQuadImDrawListWithThickness(pointer.h, aToC, bToC, cToC, dToC, colToC, thicknessToC) } // AddQuadFilled ... @@ -12008,7 +12838,7 @@ func (pointer *ImDrawList) AddQuadFilled(a *Vec2, b *Vec2, c *Vec2, d *Vec2, col cToC := c.h dToC := d.h colToC := C.uint32_t(col) - C.WrapAddQuadFilledImDrawList(pointer.h, aToC, bToC, cToC, dToC, colToC) + C.HarfangAddQuadFilledImDrawList(pointer.h, aToC, bToC, cToC, dToC, colToC) } // AddTriangle ... @@ -12017,7 +12847,7 @@ func (pointer *ImDrawList) AddTriangle(a *Vec2, b *Vec2, c *Vec2, col uint32) { bToC := b.h cToC := c.h colToC := C.uint32_t(col) - C.WrapAddTriangleImDrawList(pointer.h, aToC, bToC, cToC, colToC) + C.HarfangAddTriangleImDrawList(pointer.h, aToC, bToC, cToC, colToC) } // AddTriangleWithThickness ... @@ -12027,7 +12857,7 @@ func (pointer *ImDrawList) AddTriangleWithThickness(a *Vec2, b *Vec2, c *Vec2, c cToC := c.h colToC := C.uint32_t(col) thicknessToC := C.float(thickness) - C.WrapAddTriangleImDrawListWithThickness(pointer.h, aToC, bToC, cToC, colToC, thicknessToC) + C.HarfangAddTriangleImDrawListWithThickness(pointer.h, aToC, bToC, cToC, colToC, thicknessToC) } // AddTriangleFilled ... @@ -12036,7 +12866,7 @@ func (pointer *ImDrawList) AddTriangleFilled(a *Vec2, b *Vec2, c *Vec2, col uint bToC := b.h cToC := c.h colToC := C.uint32_t(col) - C.WrapAddTriangleFilledImDrawList(pointer.h, aToC, bToC, cToC, colToC) + C.HarfangAddTriangleFilledImDrawList(pointer.h, aToC, bToC, cToC, colToC) } // AddCircle ... @@ -12044,7 +12874,7 @@ func (pointer *ImDrawList) AddCircle(centre *Vec2, radius float32, col uint32) { centreToC := centre.h radiusToC := C.float(radius) colToC := C.uint32_t(col) - C.WrapAddCircleImDrawList(pointer.h, centreToC, radiusToC, colToC) + C.HarfangAddCircleImDrawList(pointer.h, centreToC, radiusToC, colToC) } // AddCircleWithNumSegments ... @@ -12053,7 +12883,7 @@ func (pointer *ImDrawList) AddCircleWithNumSegments(centre *Vec2, radius float32 radiusToC := C.float(radius) colToC := C.uint32_t(col) numsegmentsToC := C.int32_t(numsegments) - C.WrapAddCircleImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC) + C.HarfangAddCircleImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC) } // AddCircleWithNumSegmentsThickness ... @@ -12063,7 +12893,7 @@ func (pointer *ImDrawList) AddCircleWithNumSegmentsThickness(centre *Vec2, radiu colToC := C.uint32_t(col) numsegmentsToC := C.int32_t(numsegments) thicknessToC := C.float(thickness) - C.WrapAddCircleImDrawListWithNumSegmentsThickness(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC, thicknessToC) + C.HarfangAddCircleImDrawListWithNumSegmentsThickness(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC, thicknessToC) } // AddCircleFilled ... @@ -12071,7 +12901,7 @@ func (pointer *ImDrawList) AddCircleFilled(centre *Vec2, radius float32, col uin centreToC := centre.h radiusToC := C.float(radius) colToC := C.uint32_t(col) - C.WrapAddCircleFilledImDrawList(pointer.h, centreToC, radiusToC, colToC) + C.HarfangAddCircleFilledImDrawList(pointer.h, centreToC, radiusToC, colToC) } // AddCircleFilledWithNumSegments ... @@ -12080,7 +12910,7 @@ func (pointer *ImDrawList) AddCircleFilledWithNumSegments(centre *Vec2, radius f radiusToC := C.float(radius) colToC := C.uint32_t(col) numsegmentsToC := C.int32_t(numsegments) - C.WrapAddCircleFilledImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC) + C.HarfangAddCircleFilledImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, colToC, numsegmentsToC) } // AddText ... @@ -12089,7 +12919,7 @@ func (pointer *ImDrawList) AddText(pos *Vec2, col uint32, text string) { colToC := C.uint32_t(col) textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapAddTextImDrawList(pointer.h, posToC, colToC, textToC) + C.HarfangAddTextImDrawList(pointer.h, posToC, colToC, textToC) } // AddTextWithFontFontSizePosColText ... @@ -12100,7 +12930,7 @@ func (pointer *ImDrawList) AddTextWithFontFontSizePosColText(font *ImFont, fonts colToC := C.uint32_t(col) textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapAddTextImDrawListWithFontFontSizePosColText(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC) + C.HarfangAddTextImDrawListWithFontFontSizePosColText(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC) } // AddTextWithFontFontSizePosColTextWrapWidth ... @@ -12112,7 +12942,7 @@ func (pointer *ImDrawList) AddTextWithFontFontSizePosColTextWrapWidth(font *ImFo textToC, idFintextToC := wrapString(text) defer idFintextToC() wrapwidthToC := C.float(wrapwidth) - C.WrapAddTextImDrawListWithFontFontSizePosColTextWrapWidth(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC, wrapwidthToC) + C.HarfangAddTextImDrawListWithFontFontSizePosColTextWrapWidth(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC, wrapwidthToC) } // AddTextWithFontFontSizePosColTextWrapWidthCpuFineClipRect ... @@ -12125,7 +12955,7 @@ func (pointer *ImDrawList) AddTextWithFontFontSizePosColTextWrapWidthCpuFineClip defer idFintextToC() wrapwidthToC := C.float(wrapwidth) cpufinecliprectToC := cpufinecliprect.h - C.WrapAddTextImDrawListWithFontFontSizePosColTextWrapWidthCpuFineClipRect(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC, wrapwidthToC, cpufinecliprectToC) + C.HarfangAddTextImDrawListWithFontFontSizePosColTextWrapWidthCpuFineClipRect(pointer.h, fontToC, fontsizeToC, posToC, colToC, textToC, wrapwidthToC, cpufinecliprectToC) } // AddImage ... @@ -12133,7 +12963,7 @@ func (pointer *ImDrawList) AddImage(tex *Texture, a *Vec2, b *Vec2) { texToC := tex.h aToC := a.h bToC := b.h - C.WrapAddImageImDrawList(pointer.h, texToC, aToC, bToC) + C.HarfangAddImageImDrawList(pointer.h, texToC, aToC, bToC) } // AddImageWithUvAUvB ... @@ -12143,7 +12973,7 @@ func (pointer *ImDrawList) AddImageWithUvAUvB(tex *Texture, a *Vec2, b *Vec2, uv bToC := b.h uvaToC := uva.h uvbToC := uvb.h - C.WrapAddImageImDrawListWithUvAUvB(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC) + C.HarfangAddImageImDrawListWithUvAUvB(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC) } // AddImageWithUvAUvBCol ... @@ -12154,7 +12984,7 @@ func (pointer *ImDrawList) AddImageWithUvAUvBCol(tex *Texture, a *Vec2, b *Vec2, uvaToC := uva.h uvbToC := uvb.h colToC := C.uint32_t(col) - C.WrapAddImageImDrawListWithUvAUvBCol(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC) + C.HarfangAddImageImDrawListWithUvAUvBCol(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC) } // AddImageQuad ... @@ -12164,7 +12994,7 @@ func (pointer *ImDrawList) AddImageQuad(tex *Texture, a *Vec2, b *Vec2, c *Vec2, bToC := b.h cToC := c.h dToC := d.h - C.WrapAddImageQuadImDrawList(pointer.h, texToC, aToC, bToC, cToC, dToC) + C.HarfangAddImageQuadImDrawList(pointer.h, texToC, aToC, bToC, cToC, dToC) } // AddImageQuadWithUvAUvBUvCUvD ... @@ -12178,7 +13008,7 @@ func (pointer *ImDrawList) AddImageQuadWithUvAUvBUvCUvD(tex *Texture, a *Vec2, b uvbToC := uvb.h uvcToC := uvc.h uvdToC := uvd.h - C.WrapAddImageQuadImDrawListWithUvAUvBUvCUvD(pointer.h, texToC, aToC, bToC, cToC, dToC, uvaToC, uvbToC, uvcToC, uvdToC) + C.HarfangAddImageQuadImDrawListWithUvAUvBUvCUvD(pointer.h, texToC, aToC, bToC, cToC, dToC, uvaToC, uvbToC, uvcToC, uvdToC) } // AddImageQuadWithUvAUvBUvCUvDCol ... @@ -12193,7 +13023,7 @@ func (pointer *ImDrawList) AddImageQuadWithUvAUvBUvCUvDCol(tex *Texture, a *Vec2 uvcToC := uvc.h uvdToC := uvd.h colToC := C.uint32_t(col) - C.WrapAddImageQuadImDrawListWithUvAUvBUvCUvDCol(pointer.h, texToC, aToC, bToC, cToC, dToC, uvaToC, uvbToC, uvcToC, uvdToC, colToC) + C.HarfangAddImageQuadImDrawListWithUvAUvBUvCUvDCol(pointer.h, texToC, aToC, bToC, cToC, dToC, uvaToC, uvbToC, uvcToC, uvdToC, colToC) } // AddImageRounded ... @@ -12205,7 +13035,7 @@ func (pointer *ImDrawList) AddImageRounded(tex *Texture, a *Vec2, b *Vec2, uva * uvbToC := uvb.h colToC := C.uint32_t(col) roundingToC := C.float(rounding) - C.WrapAddImageRoundedImDrawList(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC, roundingToC) + C.HarfangAddImageRoundedImDrawList(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC, roundingToC) } // AddImageRoundedWithFlags ... @@ -12218,7 +13048,7 @@ func (pointer *ImDrawList) AddImageRoundedWithFlags(tex *Texture, a *Vec2, b *Ve colToC := C.uint32_t(col) roundingToC := C.float(rounding) flagsToC := C.int32_t(flags) - C.WrapAddImageRoundedImDrawListWithFlags(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC, roundingToC, flagsToC) + C.HarfangAddImageRoundedImDrawListWithFlags(pointer.h, texToC, aToC, bToC, uvaToC, uvbToC, colToC, roundingToC, flagsToC) } // AddPolyline ... @@ -12227,14 +13057,14 @@ func (pointer *ImDrawList) AddPolyline(points *Vec2List, col uint32, closed bool colToC := C.uint32_t(col) closedToC := C.bool(closed) thicknessToC := C.float(thickness) - C.WrapAddPolylineImDrawList(pointer.h, pointsToC, colToC, closedToC, thicknessToC) + C.HarfangAddPolylineImDrawList(pointer.h, pointsToC, colToC, closedToC, thicknessToC) } // AddConvexPolyFilled ... func (pointer *ImDrawList) AddConvexPolyFilled(points *Vec2List, col uint32) { pointsToC := points.h colToC := C.uint32_t(col) - C.WrapAddConvexPolyFilledImDrawList(pointer.h, pointsToC, colToC) + C.HarfangAddConvexPolyFilledImDrawList(pointer.h, pointsToC, colToC) } // AddBezierCubic ... @@ -12245,7 +13075,7 @@ func (pointer *ImDrawList) AddBezierCubic(pos0 *Vec2, cp0 *Vec2, cp1 *Vec2, pos1 pos1ToC := pos1.h colToC := C.uint32_t(col) thicknessToC := C.float(thickness) - C.WrapAddBezierCubicImDrawList(pointer.h, pos0ToC, cp0ToC, cp1ToC, pos1ToC, colToC, thicknessToC) + C.HarfangAddBezierCubicImDrawList(pointer.h, pos0ToC, cp0ToC, cp1ToC, pos1ToC, colToC, thicknessToC) } // AddBezierCubicWithNumSegments ... @@ -12257,37 +13087,37 @@ func (pointer *ImDrawList) AddBezierCubicWithNumSegments(pos0 *Vec2, cp0 *Vec2, colToC := C.uint32_t(col) thicknessToC := C.float(thickness) numsegmentsToC := C.int32_t(numsegments) - C.WrapAddBezierCubicImDrawListWithNumSegments(pointer.h, pos0ToC, cp0ToC, cp1ToC, pos1ToC, colToC, thicknessToC, numsegmentsToC) + C.HarfangAddBezierCubicImDrawListWithNumSegments(pointer.h, pos0ToC, cp0ToC, cp1ToC, pos1ToC, colToC, thicknessToC, numsegmentsToC) } // PathClear ... func (pointer *ImDrawList) PathClear() { - C.WrapPathClearImDrawList(pointer.h) + C.HarfangPathClearImDrawList(pointer.h) } // PathLineTo ... func (pointer *ImDrawList) PathLineTo(pos *Vec2) { posToC := pos.h - C.WrapPathLineToImDrawList(pointer.h, posToC) + C.HarfangPathLineToImDrawList(pointer.h, posToC) } // PathLineToMergeDuplicate ... func (pointer *ImDrawList) PathLineToMergeDuplicate(pos *Vec2) { posToC := pos.h - C.WrapPathLineToMergeDuplicateImDrawList(pointer.h, posToC) + C.HarfangPathLineToMergeDuplicateImDrawList(pointer.h, posToC) } // PathFillConvex ... func (pointer *ImDrawList) PathFillConvex(col uint32) { colToC := C.uint32_t(col) - C.WrapPathFillConvexImDrawList(pointer.h, colToC) + C.HarfangPathFillConvexImDrawList(pointer.h, colToC) } // PathStroke ... func (pointer *ImDrawList) PathStroke(col uint32, closed bool) { colToC := C.uint32_t(col) closedToC := C.bool(closed) - C.WrapPathStrokeImDrawList(pointer.h, colToC, closedToC) + C.HarfangPathStrokeImDrawList(pointer.h, colToC, closedToC) } // PathStrokeWithThickness ... @@ -12295,7 +13125,7 @@ func (pointer *ImDrawList) PathStrokeWithThickness(col uint32, closed bool, thic colToC := C.uint32_t(col) closedToC := C.bool(closed) thicknessToC := C.float(thickness) - C.WrapPathStrokeImDrawListWithThickness(pointer.h, colToC, closedToC, thicknessToC) + C.HarfangPathStrokeImDrawListWithThickness(pointer.h, colToC, closedToC, thicknessToC) } // PathArcTo ... @@ -12304,7 +13134,7 @@ func (pointer *ImDrawList) PathArcTo(centre *Vec2, radius float32, amin float32, radiusToC := C.float(radius) aminToC := C.float(amin) amaxToC := C.float(amax) - C.WrapPathArcToImDrawList(pointer.h, centreToC, radiusToC, aminToC, amaxToC) + C.HarfangPathArcToImDrawList(pointer.h, centreToC, radiusToC, aminToC, amaxToC) } // PathArcToWithNumSegments ... @@ -12314,7 +13144,7 @@ func (pointer *ImDrawList) PathArcToWithNumSegments(centre *Vec2, radius float32 aminToC := C.float(amin) amaxToC := C.float(amax) numsegmentsToC := C.int32_t(numsegments) - C.WrapPathArcToImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, aminToC, amaxToC, numsegmentsToC) + C.HarfangPathArcToImDrawListWithNumSegments(pointer.h, centreToC, radiusToC, aminToC, amaxToC, numsegmentsToC) } // PathArcToFast ... @@ -12323,7 +13153,7 @@ func (pointer *ImDrawList) PathArcToFast(centre *Vec2, radius float32, aminof12 radiusToC := C.float(radius) aminof12ToC := C.int32_t(aminof12) amaxof12ToC := C.int32_t(amaxof12) - C.WrapPathArcToFastImDrawList(pointer.h, centreToC, radiusToC, aminof12ToC, amaxof12ToC) + C.HarfangPathArcToFastImDrawList(pointer.h, centreToC, radiusToC, aminof12ToC, amaxof12ToC) } // PathBezierCubicCurveTo ... @@ -12331,7 +13161,7 @@ func (pointer *ImDrawList) PathBezierCubicCurveTo(p1 *Vec2, p2 *Vec2, p3 *Vec2) p1ToC := p1.h p2ToC := p2.h p3ToC := p3.h - C.WrapPathBezierCubicCurveToImDrawList(pointer.h, p1ToC, p2ToC, p3ToC) + C.HarfangPathBezierCubicCurveToImDrawList(pointer.h, p1ToC, p2ToC, p3ToC) } // PathBezierCubicCurveToWithNumSegments ... @@ -12340,14 +13170,14 @@ func (pointer *ImDrawList) PathBezierCubicCurveToWithNumSegments(p1 *Vec2, p2 *V p2ToC := p2.h p3ToC := p3.h numsegmentsToC := C.int32_t(numsegments) - C.WrapPathBezierCubicCurveToImDrawListWithNumSegments(pointer.h, p1ToC, p2ToC, p3ToC, numsegmentsToC) + C.HarfangPathBezierCubicCurveToImDrawListWithNumSegments(pointer.h, p1ToC, p2ToC, p3ToC, numsegmentsToC) } // PathRect ... func (pointer *ImDrawList) PathRect(rectmin *Vec2, rectmax *Vec2) { rectminToC := rectmin.h rectmaxToC := rectmax.h - C.WrapPathRectImDrawList(pointer.h, rectminToC, rectmaxToC) + C.HarfangPathRectImDrawList(pointer.h, rectminToC, rectmaxToC) } // PathRectWithRounding ... @@ -12355,7 +13185,7 @@ func (pointer *ImDrawList) PathRectWithRounding(rectmin *Vec2, rectmax *Vec2, ro rectminToC := rectmin.h rectmaxToC := rectmax.h roundingToC := C.float(rounding) - C.WrapPathRectImDrawListWithRounding(pointer.h, rectminToC, rectmaxToC, roundingToC) + C.HarfangPathRectImDrawListWithRounding(pointer.h, rectminToC, rectmaxToC, roundingToC) } // PathRectWithRoundingFlags ... @@ -12364,34 +13194,40 @@ func (pointer *ImDrawList) PathRectWithRoundingFlags(rectmin *Vec2, rectmax *Vec rectmaxToC := rectmax.h roundingToC := C.float(rounding) flagsToC := C.int32_t(flags) - C.WrapPathRectImDrawListWithRoundingFlags(pointer.h, rectminToC, rectmaxToC, roundingToC, flagsToC) + C.HarfangPathRectImDrawListWithRoundingFlags(pointer.h, rectminToC, rectmaxToC, roundingToC, flagsToC) } // ChannelsSplit ... func (pointer *ImDrawList) ChannelsSplit(channelscount int32) { channelscountToC := C.int32_t(channelscount) - C.WrapChannelsSplitImDrawList(pointer.h, channelscountToC) + C.HarfangChannelsSplitImDrawList(pointer.h, channelscountToC) } // ChannelsMerge ... func (pointer *ImDrawList) ChannelsMerge() { - C.WrapChannelsMergeImDrawList(pointer.h) + C.HarfangChannelsMergeImDrawList(pointer.h) } // ChannelsSetCurrent ... func (pointer *ImDrawList) ChannelsSetCurrent(channelindex int32) { channelindexToC := C.int32_t(channelindex) - C.WrapChannelsSetCurrentImDrawList(pointer.h, channelindexToC) + C.HarfangChannelsSetCurrentImDrawList(pointer.h, channelindexToC) } // FileFilter ... type FileFilter struct { - h C.WrapFileFilter + h C.HarfangFileFilter +} + +// NewFileFilterFromCPointer ... +func NewFileFilterFromCPointer(p unsafe.Pointer) *FileFilter { + retvalGO := &FileFilter{h: (C.HarfangFileFilter)(p)} + return retvalGO } // GetName ... func (pointer *FileFilter) GetName() string { - v := C.WrapFileFilterGetName(pointer.h) + v := C.HarfangFileFilterGetName(pointer.h) return C.GoString(v) } @@ -12399,12 +13235,12 @@ func (pointer *FileFilter) GetName() string { func (pointer *FileFilter) SetName(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapFileFilterSetName(pointer.h, vToC) + C.HarfangFileFilterSetName(pointer.h, vToC) } // GetPattern ... func (pointer *FileFilter) GetPattern() string { - v := C.WrapFileFilterGetPattern(pointer.h) + v := C.HarfangFileFilterGetPattern(pointer.h) return C.GoString(v) } @@ -12412,27 +13248,27 @@ func (pointer *FileFilter) GetPattern() string { func (pointer *FileFilter) SetPattern(v string) { vToC, idFinvToC := wrapString(v) defer idFinvToC() - C.WrapFileFilterSetPattern(pointer.h, vToC) + C.HarfangFileFilterSetPattern(pointer.h, vToC) } // NewFileFilter ... func NewFileFilter() *FileFilter { - retval := C.WrapConstructorFileFilter() + retval := C.HarfangConstructorFileFilter() retvalGO := &FileFilter{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FileFilter) { - C.WrapFileFilterFree(cleanval.h) + C.HarfangFileFilterFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *FileFilter) Free() { - C.WrapFileFilterFree(pointer.h) + C.HarfangFileFilterFree(pointer.h) } // IsNil ... func (pointer *FileFilter) IsNil() bool { - return pointer.h == C.WrapFileFilter(nil) + return pointer.h == C.HarfangFileFilter(nil) } // GoSliceOfFileFilter ... @@ -12440,15 +13276,21 @@ type GoSliceOfFileFilter []*FileFilter // FileFilterList ... type FileFilterList struct { - h C.WrapFileFilterList + h C.HarfangFileFilterList +} + +// NewFileFilterListFromCPointer ... +func NewFileFilterListFromCPointer(p unsafe.Pointer) *FileFilterList { + retvalGO := &FileFilterList{h: (C.HarfangFileFilterList)(p)} + return retvalGO } // Get ... func (pointer *FileFilterList) Get(id int) *FileFilter { - v := C.WrapFileFilterListGetOperator(pointer.h, C.int(id)) + v := C.HarfangFileFilterListGetOperator(pointer.h, C.int(id)) vGO := &FileFilter{h: v} runtime.SetFinalizer(vGO, func(cleanval *FileFilter) { - C.WrapFileFilterFree(cleanval.h) + C.HarfangFileFilterFree(cleanval.h) }) return vGO } @@ -12456,132 +13298,138 @@ func (pointer *FileFilterList) Get(id int) *FileFilter { // Set ... func (pointer *FileFilterList) Set(id int, v *FileFilter) { vToC := v.h - C.WrapFileFilterListSetOperator(pointer.h, C.int(id), vToC) + C.HarfangFileFilterListSetOperator(pointer.h, C.int(id), vToC) } // Len ... func (pointer *FileFilterList) Len() int32 { - return int32(C.WrapFileFilterListLenOperator(pointer.h)) + return int32(C.HarfangFileFilterListLenOperator(pointer.h)) } // NewFileFilterList ... func NewFileFilterList() *FileFilterList { - retval := C.WrapConstructorFileFilterList() + retval := C.HarfangConstructorFileFilterList() retvalGO := &FileFilterList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FileFilterList) { - C.WrapFileFilterListFree(cleanval.h) + C.HarfangFileFilterListFree(cleanval.h) }) return retvalGO } // NewFileFilterListWithSequence ... func NewFileFilterListWithSequence(sequence GoSliceOfFileFilter) *FileFilterList { - var sequencePointer []C.WrapFileFilter + var sequencePointer []C.HarfangFileFilter for _, s := range sequence { sequencePointer = append(sequencePointer, s.h) } sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) sequencePointerToCSize := C.size_t(sequencePointerToC.Len) - sequencePointerToCBuf := (*C.WrapFileFilter)(unsafe.Pointer(sequencePointerToC.Data)) - retval := C.WrapConstructorFileFilterListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + sequencePointerToCBuf := (*C.HarfangFileFilter)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorFileFilterListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) retvalGO := &FileFilterList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FileFilterList) { - C.WrapFileFilterListFree(cleanval.h) + C.HarfangFileFilterListFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *FileFilterList) Free() { - C.WrapFileFilterListFree(pointer.h) + C.HarfangFileFilterListFree(pointer.h) } // IsNil ... func (pointer *FileFilterList) IsNil() bool { - return pointer.h == C.WrapFileFilterList(nil) + return pointer.h == C.HarfangFileFilterList(nil) } // Clear ... func (pointer *FileFilterList) Clear() { - C.WrapClearFileFilterList(pointer.h) + C.HarfangClearFileFilterList(pointer.h) } // Reserve ... func (pointer *FileFilterList) Reserve(size int32) { sizeToC := C.size_t(size) - C.WrapReserveFileFilterList(pointer.h, sizeToC) + C.HarfangReserveFileFilterList(pointer.h, sizeToC) } // PushBack ... func (pointer *FileFilterList) PushBack(v *FileFilter) { vToC := v.h - C.WrapPushBackFileFilterList(pointer.h, vToC) + C.HarfangPushBackFileFilterList(pointer.h, vToC) } // Size ... func (pointer *FileFilterList) Size() int32 { - retval := C.WrapSizeFileFilterList(pointer.h) + retval := C.HarfangSizeFileFilterList(pointer.h) return int32(retval) } // At ... func (pointer *FileFilterList) At(idx int32) *FileFilter { idxToC := C.size_t(idx) - retval := C.WrapAtFileFilterList(pointer.h, idxToC) + retval := C.HarfangAtFileFilterList(pointer.h, idxToC) retvalGO := &FileFilter{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FileFilter) { - C.WrapFileFilterFree(cleanval.h) + C.HarfangFileFilterFree(cleanval.h) }) return retvalGO } // StereoSourceState State for a stereo audio source, see [harfang.man.Audio]. type StereoSourceState struct { - h C.WrapStereoSourceState + h C.HarfangStereoSourceState +} + +// NewStereoSourceStateFromCPointer ... +func NewStereoSourceStateFromCPointer(p unsafe.Pointer) *StereoSourceState { + retvalGO := &StereoSourceState{h: (C.HarfangStereoSourceState)(p)} + return retvalGO } // GetVolume ... func (pointer *StereoSourceState) GetVolume() float32 { - v := C.WrapStereoSourceStateGetVolume(pointer.h) + v := C.HarfangStereoSourceStateGetVolume(pointer.h) return float32(v) } // SetVolume ... func (pointer *StereoSourceState) SetVolume(v float32) { vToC := C.float(v) - C.WrapStereoSourceStateSetVolume(pointer.h, vToC) + C.HarfangStereoSourceStateSetVolume(pointer.h, vToC) } // GetRepeat ... func (pointer *StereoSourceState) GetRepeat() SourceRepeat { - v := C.WrapStereoSourceStateGetRepeat(pointer.h) + v := C.HarfangStereoSourceStateGetRepeat(pointer.h) return SourceRepeat(v) } // SetRepeat ... func (pointer *StereoSourceState) SetRepeat(v SourceRepeat) { vToC := C.int32_t(v) - C.WrapStereoSourceStateSetRepeat(pointer.h, vToC) + C.HarfangStereoSourceStateSetRepeat(pointer.h, vToC) } // GetPanning ... func (pointer *StereoSourceState) GetPanning() float32 { - v := C.WrapStereoSourceStateGetPanning(pointer.h) + v := C.HarfangStereoSourceStateGetPanning(pointer.h) return float32(v) } // SetPanning ... func (pointer *StereoSourceState) SetPanning(v float32) { vToC := C.float(v) - C.WrapStereoSourceStateSetPanning(pointer.h, vToC) + C.HarfangStereoSourceStateSetPanning(pointer.h, vToC) } // NewStereoSourceState State for a stereo audio source, see [harfang.man.Audio]. func NewStereoSourceState() *StereoSourceState { - retval := C.WrapConstructorStereoSourceState() + retval := C.HarfangConstructorStereoSourceState() retvalGO := &StereoSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StereoSourceState) { - C.WrapStereoSourceStateFree(cleanval.h) + C.HarfangStereoSourceStateFree(cleanval.h) }) return retvalGO } @@ -12589,10 +13437,10 @@ func NewStereoSourceState() *StereoSourceState { // NewStereoSourceStateWithVolume State for a stereo audio source, see [harfang.man.Audio]. func NewStereoSourceStateWithVolume(volume float32) *StereoSourceState { volumeToC := C.float(volume) - retval := C.WrapConstructorStereoSourceStateWithVolume(volumeToC) + retval := C.HarfangConstructorStereoSourceStateWithVolume(volumeToC) retvalGO := &StereoSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StereoSourceState) { - C.WrapStereoSourceStateFree(cleanval.h) + C.HarfangStereoSourceStateFree(cleanval.h) }) return retvalGO } @@ -12601,10 +13449,10 @@ func NewStereoSourceStateWithVolume(volume float32) *StereoSourceState { func NewStereoSourceStateWithVolumeRepeat(volume float32, repeat SourceRepeat) *StereoSourceState { volumeToC := C.float(volume) repeatToC := C.int32_t(repeat) - retval := C.WrapConstructorStereoSourceStateWithVolumeRepeat(volumeToC, repeatToC) + retval := C.HarfangConstructorStereoSourceStateWithVolumeRepeat(volumeToC, repeatToC) retvalGO := &StereoSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StereoSourceState) { - C.WrapStereoSourceStateFree(cleanval.h) + C.HarfangStereoSourceStateFree(cleanval.h) }) return retvalGO } @@ -12614,32 +13462,38 @@ func NewStereoSourceStateWithVolumeRepeatPanning(volume float32, repeat SourceRe volumeToC := C.float(volume) repeatToC := C.int32_t(repeat) panningToC := C.float(panning) - retval := C.WrapConstructorStereoSourceStateWithVolumeRepeatPanning(volumeToC, repeatToC, panningToC) + retval := C.HarfangConstructorStereoSourceStateWithVolumeRepeatPanning(volumeToC, repeatToC, panningToC) retvalGO := &StereoSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StereoSourceState) { - C.WrapStereoSourceStateFree(cleanval.h) + C.HarfangStereoSourceStateFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *StereoSourceState) Free() { - C.WrapStereoSourceStateFree(pointer.h) + C.HarfangStereoSourceStateFree(pointer.h) } // IsNil ... func (pointer *StereoSourceState) IsNil() bool { - return pointer.h == C.WrapStereoSourceState(nil) + return pointer.h == C.HarfangStereoSourceState(nil) } // SpatializedSourceState State for a spatialized audio source, see [harfang.man.Audio]. type SpatializedSourceState struct { - h C.WrapSpatializedSourceState + h C.HarfangSpatializedSourceState +} + +// NewSpatializedSourceStateFromCPointer ... +func NewSpatializedSourceStateFromCPointer(p unsafe.Pointer) *SpatializedSourceState { + retvalGO := &SpatializedSourceState{h: (C.HarfangSpatializedSourceState)(p)} + return retvalGO } // GetMtx ... func (pointer *SpatializedSourceState) GetMtx() *Mat4 { - v := C.WrapSpatializedSourceStateGetMtx(pointer.h) + v := C.HarfangSpatializedSourceStateGetMtx(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -12647,36 +13501,36 @@ func (pointer *SpatializedSourceState) GetMtx() *Mat4 { // SetMtx ... func (pointer *SpatializedSourceState) SetMtx(v *Mat4) { vToC := v.h - C.WrapSpatializedSourceStateSetMtx(pointer.h, vToC) + C.HarfangSpatializedSourceStateSetMtx(pointer.h, vToC) } // GetVolume ... func (pointer *SpatializedSourceState) GetVolume() float32 { - v := C.WrapSpatializedSourceStateGetVolume(pointer.h) + v := C.HarfangSpatializedSourceStateGetVolume(pointer.h) return float32(v) } // SetVolume ... func (pointer *SpatializedSourceState) SetVolume(v float32) { vToC := C.float(v) - C.WrapSpatializedSourceStateSetVolume(pointer.h, vToC) + C.HarfangSpatializedSourceStateSetVolume(pointer.h, vToC) } // GetRepeat ... func (pointer *SpatializedSourceState) GetRepeat() SourceRepeat { - v := C.WrapSpatializedSourceStateGetRepeat(pointer.h) + v := C.HarfangSpatializedSourceStateGetRepeat(pointer.h) return SourceRepeat(v) } // SetRepeat ... func (pointer *SpatializedSourceState) SetRepeat(v SourceRepeat) { vToC := C.int32_t(v) - C.WrapSpatializedSourceStateSetRepeat(pointer.h, vToC) + C.HarfangSpatializedSourceStateSetRepeat(pointer.h, vToC) } // GetVel ... func (pointer *SpatializedSourceState) GetVel() *Vec3 { - v := C.WrapSpatializedSourceStateGetVel(pointer.h) + v := C.HarfangSpatializedSourceStateGetVel(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -12684,15 +13538,15 @@ func (pointer *SpatializedSourceState) GetVel() *Vec3 { // SetVel ... func (pointer *SpatializedSourceState) SetVel(v *Vec3) { vToC := v.h - C.WrapSpatializedSourceStateSetVel(pointer.h, vToC) + C.HarfangSpatializedSourceStateSetVel(pointer.h, vToC) } // NewSpatializedSourceState State for a spatialized audio source, see [harfang.man.Audio]. func NewSpatializedSourceState() *SpatializedSourceState { - retval := C.WrapConstructorSpatializedSourceState() + retval := C.HarfangConstructorSpatializedSourceState() retvalGO := &SpatializedSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SpatializedSourceState) { - C.WrapSpatializedSourceStateFree(cleanval.h) + C.HarfangSpatializedSourceStateFree(cleanval.h) }) return retvalGO } @@ -12700,10 +13554,10 @@ func NewSpatializedSourceState() *SpatializedSourceState { // NewSpatializedSourceStateWithMtx State for a spatialized audio source, see [harfang.man.Audio]. func NewSpatializedSourceStateWithMtx(mtx *Mat4) *SpatializedSourceState { mtxToC := mtx.h - retval := C.WrapConstructorSpatializedSourceStateWithMtx(mtxToC) + retval := C.HarfangConstructorSpatializedSourceStateWithMtx(mtxToC) retvalGO := &SpatializedSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SpatializedSourceState) { - C.WrapSpatializedSourceStateFree(cleanval.h) + C.HarfangSpatializedSourceStateFree(cleanval.h) }) return retvalGO } @@ -12712,10 +13566,10 @@ func NewSpatializedSourceStateWithMtx(mtx *Mat4) *SpatializedSourceState { func NewSpatializedSourceStateWithMtxVolume(mtx *Mat4, volume float32) *SpatializedSourceState { mtxToC := mtx.h volumeToC := C.float(volume) - retval := C.WrapConstructorSpatializedSourceStateWithMtxVolume(mtxToC, volumeToC) + retval := C.HarfangConstructorSpatializedSourceStateWithMtxVolume(mtxToC, volumeToC) retvalGO := &SpatializedSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SpatializedSourceState) { - C.WrapSpatializedSourceStateFree(cleanval.h) + C.HarfangSpatializedSourceStateFree(cleanval.h) }) return retvalGO } @@ -12725,10 +13579,10 @@ func NewSpatializedSourceStateWithMtxVolumeRepeat(mtx *Mat4, volume float32, rep mtxToC := mtx.h volumeToC := C.float(volume) repeatToC := C.int32_t(repeat) - retval := C.WrapConstructorSpatializedSourceStateWithMtxVolumeRepeat(mtxToC, volumeToC, repeatToC) + retval := C.HarfangConstructorSpatializedSourceStateWithMtxVolumeRepeat(mtxToC, volumeToC, repeatToC) retvalGO := &SpatializedSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SpatializedSourceState) { - C.WrapSpatializedSourceStateFree(cleanval.h) + C.HarfangSpatializedSourceStateFree(cleanval.h) }) return retvalGO } @@ -12739,32 +13593,38 @@ func NewSpatializedSourceStateWithMtxVolumeRepeatVel(mtx *Mat4, volume float32, volumeToC := C.float(volume) repeatToC := C.int32_t(repeat) velToC := vel.h - retval := C.WrapConstructorSpatializedSourceStateWithMtxVolumeRepeatVel(mtxToC, volumeToC, repeatToC, velToC) + retval := C.HarfangConstructorSpatializedSourceStateWithMtxVolumeRepeatVel(mtxToC, volumeToC, repeatToC, velToC) retvalGO := &SpatializedSourceState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SpatializedSourceState) { - C.WrapSpatializedSourceStateFree(cleanval.h) + C.HarfangSpatializedSourceStateFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *SpatializedSourceState) Free() { - C.WrapSpatializedSourceStateFree(pointer.h) + C.HarfangSpatializedSourceStateFree(pointer.h) } // IsNil ... func (pointer *SpatializedSourceState) IsNil() bool { - return pointer.h == C.WrapSpatializedSourceState(nil) + return pointer.h == C.HarfangSpatializedSourceState(nil) } // OpenVREye Matrices for a VR eye, see [harfang.OpenVRState]. type OpenVREye struct { - h C.WrapOpenVREye + h C.HarfangOpenVREye +} + +// NewOpenVREyeFromCPointer ... +func NewOpenVREyeFromCPointer(p unsafe.Pointer) *OpenVREye { + retvalGO := &OpenVREye{h: (C.HarfangOpenVREye)(p)} + return retvalGO } // GetOffset ... func (pointer *OpenVREye) GetOffset() *Mat4 { - v := C.WrapOpenVREyeGetOffset(pointer.h) + v := C.HarfangOpenVREyeGetOffset(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -12772,12 +13632,12 @@ func (pointer *OpenVREye) GetOffset() *Mat4 { // SetOffset ... func (pointer *OpenVREye) SetOffset(v *Mat4) { vToC := v.h - C.WrapOpenVREyeSetOffset(pointer.h, vToC) + C.HarfangOpenVREyeSetOffset(pointer.h, vToC) } // GetProjection ... func (pointer *OpenVREye) GetProjection() *Mat44 { - v := C.WrapOpenVREyeGetProjection(pointer.h) + v := C.HarfangOpenVREyeGetProjection(pointer.h) vGO := &Mat44{h: v} return vGO } @@ -12785,52 +13645,64 @@ func (pointer *OpenVREye) GetProjection() *Mat44 { // SetProjection ... func (pointer *OpenVREye) SetProjection(v *Mat44) { vToC := v.h - C.WrapOpenVREyeSetProjection(pointer.h, vToC) + C.HarfangOpenVREyeSetProjection(pointer.h, vToC) } // Free ... func (pointer *OpenVREye) Free() { - C.WrapOpenVREyeFree(pointer.h) + C.HarfangOpenVREyeFree(pointer.h) } // IsNil ... func (pointer *OpenVREye) IsNil() bool { - return pointer.h == C.WrapOpenVREye(nil) + return pointer.h == C.HarfangOpenVREye(nil) } // OpenVREyeFrameBuffer Framebuffer for a VR eye. Render to two such buffer, one for each eye, before submitting them using [harfang.OpenVRSubmitFrame]. type OpenVREyeFrameBuffer struct { - h C.WrapOpenVREyeFrameBuffer + h C.HarfangOpenVREyeFrameBuffer +} + +// NewOpenVREyeFrameBufferFromCPointer ... +func NewOpenVREyeFrameBufferFromCPointer(p unsafe.Pointer) *OpenVREyeFrameBuffer { + retvalGO := &OpenVREyeFrameBuffer{h: (C.HarfangOpenVREyeFrameBuffer)(p)} + return retvalGO } // Free ... func (pointer *OpenVREyeFrameBuffer) Free() { - C.WrapOpenVREyeFrameBufferFree(pointer.h) + C.HarfangOpenVREyeFrameBufferFree(pointer.h) } // IsNil ... func (pointer *OpenVREyeFrameBuffer) IsNil() bool { - return pointer.h == C.WrapOpenVREyeFrameBuffer(nil) + return pointer.h == C.HarfangOpenVREyeFrameBuffer(nil) } // GetHandle ... func (pointer *OpenVREyeFrameBuffer) GetHandle() *FrameBufferHandle { - retval := C.WrapGetHandleOpenVREyeFrameBuffer(pointer.h) + retval := C.HarfangGetHandleOpenVREyeFrameBuffer(pointer.h) retvalGO := &FrameBufferHandle{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FrameBufferHandle) { - C.WrapFrameBufferHandleFree(cleanval.h) + C.HarfangFrameBufferHandleFree(cleanval.h) }) return retvalGO } // OpenVRState OpenVR state including the body and head transformations, the left and right eye states and the render target dimensions expected by the backend. type OpenVRState struct { - h C.WrapOpenVRState + h C.HarfangOpenVRState +} + +// NewOpenVRStateFromCPointer ... +func NewOpenVRStateFromCPointer(p unsafe.Pointer) *OpenVRState { + retvalGO := &OpenVRState{h: (C.HarfangOpenVRState)(p)} + return retvalGO } // GetBody ... func (pointer *OpenVRState) GetBody() *Mat4 { - v := C.WrapOpenVRStateGetBody(pointer.h) + v := C.HarfangOpenVRStateGetBody(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -12838,12 +13710,12 @@ func (pointer *OpenVRState) GetBody() *Mat4 { // SetBody ... func (pointer *OpenVRState) SetBody(v *Mat4) { vToC := v.h - C.WrapOpenVRStateSetBody(pointer.h, vToC) + C.HarfangOpenVRStateSetBody(pointer.h, vToC) } // GetHead ... func (pointer *OpenVRState) GetHead() *Mat4 { - v := C.WrapOpenVRStateGetHead(pointer.h) + v := C.HarfangOpenVRStateGetHead(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -12851,12 +13723,12 @@ func (pointer *OpenVRState) GetHead() *Mat4 { // SetHead ... func (pointer *OpenVRState) SetHead(v *Mat4) { vToC := v.h - C.WrapOpenVRStateSetHead(pointer.h, vToC) + C.HarfangOpenVRStateSetHead(pointer.h, vToC) } // GetInvHead ... func (pointer *OpenVRState) GetInvHead() *Mat4 { - v := C.WrapOpenVRStateGetInvHead(pointer.h) + v := C.HarfangOpenVRStateGetInvHead(pointer.h) vGO := &Mat4{h: v} return vGO } @@ -12864,12 +13736,12 @@ func (pointer *OpenVRState) GetInvHead() *Mat4 { // SetInvHead ... func (pointer *OpenVRState) SetInvHead(v *Mat4) { vToC := v.h - C.WrapOpenVRStateSetInvHead(pointer.h, vToC) + C.HarfangOpenVRStateSetInvHead(pointer.h, vToC) } // GetLeft ... func (pointer *OpenVRState) GetLeft() *OpenVREye { - v := C.WrapOpenVRStateGetLeft(pointer.h) + v := C.HarfangOpenVRStateGetLeft(pointer.h) vGO := &OpenVREye{h: v} return vGO } @@ -12877,12 +13749,12 @@ func (pointer *OpenVRState) GetLeft() *OpenVREye { // SetLeft ... func (pointer *OpenVRState) SetLeft(v *OpenVREye) { vToC := v.h - C.WrapOpenVRStateSetLeft(pointer.h, vToC) + C.HarfangOpenVRStateSetLeft(pointer.h, vToC) } // GetRight ... func (pointer *OpenVRState) GetRight() *OpenVREye { - v := C.WrapOpenVRStateGetRight(pointer.h) + v := C.HarfangOpenVRStateGetRight(pointer.h) vGO := &OpenVREye{h: v} return vGO } @@ -12890,63 +13762,230 @@ func (pointer *OpenVRState) GetRight() *OpenVREye { // SetRight ... func (pointer *OpenVRState) SetRight(v *OpenVREye) { vToC := v.h - C.WrapOpenVRStateSetRight(pointer.h, vToC) + C.HarfangOpenVRStateSetRight(pointer.h, vToC) } // GetWidth ... func (pointer *OpenVRState) GetWidth() uint32 { - v := C.WrapOpenVRStateGetWidth(pointer.h) + v := C.HarfangOpenVRStateGetWidth(pointer.h) return uint32(v) } // SetWidth ... func (pointer *OpenVRState) SetWidth(v uint32) { vToC := C.uint32_t(v) - C.WrapOpenVRStateSetWidth(pointer.h, vToC) + C.HarfangOpenVRStateSetWidth(pointer.h, vToC) } // GetHeight ... func (pointer *OpenVRState) GetHeight() uint32 { - v := C.WrapOpenVRStateGetHeight(pointer.h) + v := C.HarfangOpenVRStateGetHeight(pointer.h) return uint32(v) } // SetHeight ... func (pointer *OpenVRState) SetHeight(v uint32) { vToC := C.uint32_t(v) - C.WrapOpenVRStateSetHeight(pointer.h, vToC) + C.HarfangOpenVRStateSetHeight(pointer.h, vToC) } // Free ... func (pointer *OpenVRState) Free() { - C.WrapOpenVRStateFree(pointer.h) + C.HarfangOpenVRStateFree(pointer.h) } // IsNil ... func (pointer *OpenVRState) IsNil() bool { - return pointer.h == C.WrapOpenVRState(nil) + return pointer.h == C.HarfangOpenVRState(nil) +} + +// OpenXREyeFrameBuffer ... +type OpenXREyeFrameBuffer struct { + h C.HarfangOpenXREyeFrameBuffer +} + +// NewOpenXREyeFrameBufferFromCPointer ... +func NewOpenXREyeFrameBufferFromCPointer(p unsafe.Pointer) *OpenXREyeFrameBuffer { + retvalGO := &OpenXREyeFrameBuffer{h: (C.HarfangOpenXREyeFrameBuffer)(p)} + return retvalGO +} + +// Free ... +func (pointer *OpenXREyeFrameBuffer) Free() { + C.HarfangOpenXREyeFrameBufferFree(pointer.h) +} + +// IsNil ... +func (pointer *OpenXREyeFrameBuffer) IsNil() bool { + return pointer.h == C.HarfangOpenXREyeFrameBuffer(nil) +} + +// GoSliceOfOpenXREyeFrameBuffer ... +type GoSliceOfOpenXREyeFrameBuffer []*OpenXREyeFrameBuffer + +// OpenXREyeFrameBufferList ... +type OpenXREyeFrameBufferList struct { + h C.HarfangOpenXREyeFrameBufferList +} + +// NewOpenXREyeFrameBufferListFromCPointer ... +func NewOpenXREyeFrameBufferListFromCPointer(p unsafe.Pointer) *OpenXREyeFrameBufferList { + retvalGO := &OpenXREyeFrameBufferList{h: (C.HarfangOpenXREyeFrameBufferList)(p)} + return retvalGO +} + +// Get ... +func (pointer *OpenXREyeFrameBufferList) Get(id int) *OpenXREyeFrameBuffer { + v := C.HarfangOpenXREyeFrameBufferListGetOperator(pointer.h, C.int(id)) + vGO := &OpenXREyeFrameBuffer{h: v} + runtime.SetFinalizer(vGO, func(cleanval *OpenXREyeFrameBuffer) { + C.HarfangOpenXREyeFrameBufferFree(cleanval.h) + }) + return vGO +} + +// Set ... +func (pointer *OpenXREyeFrameBufferList) Set(id int, v *OpenXREyeFrameBuffer) { + vToC := v.h + C.HarfangOpenXREyeFrameBufferListSetOperator(pointer.h, C.int(id), vToC) +} + +// Len ... +func (pointer *OpenXREyeFrameBufferList) Len() int32 { + return int32(C.HarfangOpenXREyeFrameBufferListLenOperator(pointer.h)) +} + +// NewOpenXREyeFrameBufferList ... +func NewOpenXREyeFrameBufferList() *OpenXREyeFrameBufferList { + retval := C.HarfangConstructorOpenXREyeFrameBufferList() + retvalGO := &OpenXREyeFrameBufferList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXREyeFrameBufferList) { + C.HarfangOpenXREyeFrameBufferListFree(cleanval.h) + }) + return retvalGO +} + +// NewOpenXREyeFrameBufferListWithSequence ... +func NewOpenXREyeFrameBufferListWithSequence(sequence GoSliceOfOpenXREyeFrameBuffer) *OpenXREyeFrameBufferList { + var sequencePointer []C.HarfangOpenXREyeFrameBuffer + for _, s := range sequence { + sequencePointer = append(sequencePointer, s.h) + } + sequencePointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&sequencePointer)) + sequencePointerToCSize := C.size_t(sequencePointerToC.Len) + sequencePointerToCBuf := (*C.HarfangOpenXREyeFrameBuffer)(unsafe.Pointer(sequencePointerToC.Data)) + retval := C.HarfangConstructorOpenXREyeFrameBufferListWithSequence(sequencePointerToCSize, sequencePointerToCBuf) + retvalGO := &OpenXREyeFrameBufferList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXREyeFrameBufferList) { + C.HarfangOpenXREyeFrameBufferListFree(cleanval.h) + }) + return retvalGO +} + +// Free ... +func (pointer *OpenXREyeFrameBufferList) Free() { + C.HarfangOpenXREyeFrameBufferListFree(pointer.h) +} + +// IsNil ... +func (pointer *OpenXREyeFrameBufferList) IsNil() bool { + return pointer.h == C.HarfangOpenXREyeFrameBufferList(nil) +} + +// Clear ... +func (pointer *OpenXREyeFrameBufferList) Clear() { + C.HarfangClearOpenXREyeFrameBufferList(pointer.h) +} + +// Reserve ... +func (pointer *OpenXREyeFrameBufferList) Reserve(size int32) { + sizeToC := C.size_t(size) + C.HarfangReserveOpenXREyeFrameBufferList(pointer.h, sizeToC) +} + +// PushBack ... +func (pointer *OpenXREyeFrameBufferList) PushBack(v *OpenXREyeFrameBuffer) { + vToC := v.h + C.HarfangPushBackOpenXREyeFrameBufferList(pointer.h, vToC) +} + +// Size ... +func (pointer *OpenXREyeFrameBufferList) Size() int32 { + retval := C.HarfangSizeOpenXREyeFrameBufferList(pointer.h) + return int32(retval) +} + +// At ... +func (pointer *OpenXREyeFrameBufferList) At(idx int32) *OpenXREyeFrameBuffer { + idxToC := C.size_t(idx) + retval := C.HarfangAtOpenXREyeFrameBufferList(pointer.h, idxToC) + retvalGO := &OpenXREyeFrameBuffer{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXREyeFrameBuffer) { + C.HarfangOpenXREyeFrameBufferFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRFrameInfo ... +type OpenXRFrameInfo struct { + h C.HarfangOpenXRFrameInfo +} + +// NewOpenXRFrameInfoFromCPointer ... +func NewOpenXRFrameInfoFromCPointer(p unsafe.Pointer) *OpenXRFrameInfo { + retvalGO := &OpenXRFrameInfo{h: (C.HarfangOpenXRFrameInfo)(p)} + return retvalGO +} + +// GetIdFbs ... +func (pointer *OpenXRFrameInfo) GetIdFbs() *IntList { + v := C.HarfangOpenXRFrameInfoGetIdFbs(pointer.h) + vGO := &IntList{h: v} + return vGO +} + +// SetIdFbs ... +func (pointer *OpenXRFrameInfo) SetIdFbs(v *IntList) { + vToC := v.h + C.HarfangOpenXRFrameInfoSetIdFbs(pointer.h, vToC) +} + +// Free ... +func (pointer *OpenXRFrameInfo) Free() { + C.HarfangOpenXRFrameInfoFree(pointer.h) +} + +// IsNil ... +func (pointer *OpenXRFrameInfo) IsNil() bool { + return pointer.h == C.HarfangOpenXRFrameInfo(nil) } // SRanipalEyeState ... type SRanipalEyeState struct { - h C.WrapSRanipalEyeState + h C.HarfangSRanipalEyeState +} + +// NewSRanipalEyeStateFromCPointer ... +func NewSRanipalEyeStateFromCPointer(p unsafe.Pointer) *SRanipalEyeState { + retvalGO := &SRanipalEyeState{h: (C.HarfangSRanipalEyeState)(p)} + return retvalGO } // GetPupilDiameterValid ... func (pointer *SRanipalEyeState) GetPupilDiameterValid() bool { - v := C.WrapSRanipalEyeStateGetPupilDiameterValid(pointer.h) + v := C.HarfangSRanipalEyeStateGetPupilDiameterValid(pointer.h) return bool(v) } // SetPupilDiameterValid ... func (pointer *SRanipalEyeState) SetPupilDiameterValid(v bool) { vToC := C.bool(v) - C.WrapSRanipalEyeStateSetPupilDiameterValid(pointer.h, vToC) + C.HarfangSRanipalEyeStateSetPupilDiameterValid(pointer.h, vToC) } // GetGazeOriginMm ... func (pointer *SRanipalEyeState) GetGazeOriginMm() *Vec3 { - v := C.WrapSRanipalEyeStateGetGazeOriginMm(pointer.h) + v := C.HarfangSRanipalEyeStateGetGazeOriginMm(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -12954,12 +13993,12 @@ func (pointer *SRanipalEyeState) GetGazeOriginMm() *Vec3 { // SetGazeOriginMm ... func (pointer *SRanipalEyeState) SetGazeOriginMm(v *Vec3) { vToC := v.h - C.WrapSRanipalEyeStateSetGazeOriginMm(pointer.h, vToC) + C.HarfangSRanipalEyeStateSetGazeOriginMm(pointer.h, vToC) } // GetGazeDirectionNormalized ... func (pointer *SRanipalEyeState) GetGazeDirectionNormalized() *Vec3 { - v := C.WrapSRanipalEyeStateGetGazeDirectionNormalized(pointer.h) + v := C.HarfangSRanipalEyeStateGetGazeDirectionNormalized(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -12967,51 +14006,57 @@ func (pointer *SRanipalEyeState) GetGazeDirectionNormalized() *Vec3 { // SetGazeDirectionNormalized ... func (pointer *SRanipalEyeState) SetGazeDirectionNormalized(v *Vec3) { vToC := v.h - C.WrapSRanipalEyeStateSetGazeDirectionNormalized(pointer.h, vToC) + C.HarfangSRanipalEyeStateSetGazeDirectionNormalized(pointer.h, vToC) } // GetPupilDiameterMm ... func (pointer *SRanipalEyeState) GetPupilDiameterMm() float32 { - v := C.WrapSRanipalEyeStateGetPupilDiameterMm(pointer.h) + v := C.HarfangSRanipalEyeStateGetPupilDiameterMm(pointer.h) return float32(v) } // SetPupilDiameterMm ... func (pointer *SRanipalEyeState) SetPupilDiameterMm(v float32) { vToC := C.float(v) - C.WrapSRanipalEyeStateSetPupilDiameterMm(pointer.h, vToC) + C.HarfangSRanipalEyeStateSetPupilDiameterMm(pointer.h, vToC) } // GetEyeOpenness ... func (pointer *SRanipalEyeState) GetEyeOpenness() float32 { - v := C.WrapSRanipalEyeStateGetEyeOpenness(pointer.h) + v := C.HarfangSRanipalEyeStateGetEyeOpenness(pointer.h) return float32(v) } // SetEyeOpenness ... func (pointer *SRanipalEyeState) SetEyeOpenness(v float32) { vToC := C.float(v) - C.WrapSRanipalEyeStateSetEyeOpenness(pointer.h, vToC) + C.HarfangSRanipalEyeStateSetEyeOpenness(pointer.h, vToC) } // Free ... func (pointer *SRanipalEyeState) Free() { - C.WrapSRanipalEyeStateFree(pointer.h) + C.HarfangSRanipalEyeStateFree(pointer.h) } // IsNil ... func (pointer *SRanipalEyeState) IsNil() bool { - return pointer.h == C.WrapSRanipalEyeState(nil) + return pointer.h == C.HarfangSRanipalEyeState(nil) } // SRanipalState ... type SRanipalState struct { - h C.WrapSRanipalState + h C.HarfangSRanipalState +} + +// NewSRanipalStateFromCPointer ... +func NewSRanipalStateFromCPointer(p unsafe.Pointer) *SRanipalState { + retvalGO := &SRanipalState{h: (C.HarfangSRanipalState)(p)} + return retvalGO } // GetRightEye ... func (pointer *SRanipalState) GetRightEye() *SRanipalEyeState { - v := C.WrapSRanipalStateGetRightEye(pointer.h) + v := C.HarfangSRanipalStateGetRightEye(pointer.h) vGO := &SRanipalEyeState{h: v} return vGO } @@ -13019,12 +14064,12 @@ func (pointer *SRanipalState) GetRightEye() *SRanipalEyeState { // SetRightEye ... func (pointer *SRanipalState) SetRightEye(v *SRanipalEyeState) { vToC := v.h - C.WrapSRanipalStateSetRightEye(pointer.h, vToC) + C.HarfangSRanipalStateSetRightEye(pointer.h, vToC) } // GetLeftEye ... func (pointer *SRanipalState) GetLeftEye() *SRanipalEyeState { - v := C.WrapSRanipalStateGetLeftEye(pointer.h) + v := C.HarfangSRanipalStateGetLeftEye(pointer.h) vGO := &SRanipalEyeState{h: v} return vGO } @@ -13032,27 +14077,33 @@ func (pointer *SRanipalState) GetLeftEye() *SRanipalEyeState { // SetLeftEye ... func (pointer *SRanipalState) SetLeftEye(v *SRanipalEyeState) { vToC := v.h - C.WrapSRanipalStateSetLeftEye(pointer.h, vToC) + C.HarfangSRanipalStateSetLeftEye(pointer.h, vToC) } // Free ... func (pointer *SRanipalState) Free() { - C.WrapSRanipalStateFree(pointer.h) + C.HarfangSRanipalStateFree(pointer.h) } // IsNil ... func (pointer *SRanipalState) IsNil() bool { - return pointer.h == C.WrapSRanipalState(nil) + return pointer.h == C.HarfangSRanipalState(nil) } // Vertex ... type Vertex struct { - h C.WrapVertex + h C.HarfangVertex +} + +// NewVertexFromCPointer ... +func NewVertexFromCPointer(p unsafe.Pointer) *Vertex { + retvalGO := &Vertex{h: (C.HarfangVertex)(p)} + return retvalGO } // GetPos ... func (pointer *Vertex) GetPos() *Vec3 { - v := C.WrapVertexGetPos(pointer.h) + v := C.HarfangVertexGetPos(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -13060,12 +14111,12 @@ func (pointer *Vertex) GetPos() *Vec3 { // SetPos ... func (pointer *Vertex) SetPos(v *Vec3) { vToC := v.h - C.WrapVertexSetPos(pointer.h, vToC) + C.HarfangVertexSetPos(pointer.h, vToC) } // GetNormal ... func (pointer *Vertex) GetNormal() *Vec3 { - v := C.WrapVertexGetNormal(pointer.h) + v := C.HarfangVertexGetNormal(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -13073,12 +14124,12 @@ func (pointer *Vertex) GetNormal() *Vec3 { // SetNormal ... func (pointer *Vertex) SetNormal(v *Vec3) { vToC := v.h - C.WrapVertexSetNormal(pointer.h, vToC) + C.HarfangVertexSetNormal(pointer.h, vToC) } // GetTangent ... func (pointer *Vertex) GetTangent() *Vec3 { - v := C.WrapVertexGetTangent(pointer.h) + v := C.HarfangVertexGetTangent(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -13086,12 +14137,12 @@ func (pointer *Vertex) GetTangent() *Vec3 { // SetTangent ... func (pointer *Vertex) SetTangent(v *Vec3) { vToC := v.h - C.WrapVertexSetTangent(pointer.h, vToC) + C.HarfangVertexSetTangent(pointer.h, vToC) } // GetBinormal ... func (pointer *Vertex) GetBinormal() *Vec3 { - v := C.WrapVertexGetBinormal(pointer.h) + v := C.HarfangVertexGetBinormal(pointer.h) vGO := &Vec3{h: v} return vGO } @@ -13099,12 +14150,12 @@ func (pointer *Vertex) GetBinormal() *Vec3 { // SetBinormal ... func (pointer *Vertex) SetBinormal(v *Vec3) { vToC := v.h - C.WrapVertexSetBinormal(pointer.h, vToC) + C.HarfangVertexSetBinormal(pointer.h, vToC) } // GetUv0 ... func (pointer *Vertex) GetUv0() *Vec2 { - v := C.WrapVertexGetUv0(pointer.h) + v := C.HarfangVertexGetUv0(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13112,12 +14163,12 @@ func (pointer *Vertex) GetUv0() *Vec2 { // SetUv0 ... func (pointer *Vertex) SetUv0(v *Vec2) { vToC := v.h - C.WrapVertexSetUv0(pointer.h, vToC) + C.HarfangVertexSetUv0(pointer.h, vToC) } // GetUv1 ... func (pointer *Vertex) GetUv1() *Vec2 { - v := C.WrapVertexGetUv1(pointer.h) + v := C.HarfangVertexGetUv1(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13125,12 +14176,12 @@ func (pointer *Vertex) GetUv1() *Vec2 { // SetUv1 ... func (pointer *Vertex) SetUv1(v *Vec2) { vToC := v.h - C.WrapVertexSetUv1(pointer.h, vToC) + C.HarfangVertexSetUv1(pointer.h, vToC) } // GetUv2 ... func (pointer *Vertex) GetUv2() *Vec2 { - v := C.WrapVertexGetUv2(pointer.h) + v := C.HarfangVertexGetUv2(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13138,12 +14189,12 @@ func (pointer *Vertex) GetUv2() *Vec2 { // SetUv2 ... func (pointer *Vertex) SetUv2(v *Vec2) { vToC := v.h - C.WrapVertexSetUv2(pointer.h, vToC) + C.HarfangVertexSetUv2(pointer.h, vToC) } // GetUv3 ... func (pointer *Vertex) GetUv3() *Vec2 { - v := C.WrapVertexGetUv3(pointer.h) + v := C.HarfangVertexGetUv3(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13151,12 +14202,12 @@ func (pointer *Vertex) GetUv3() *Vec2 { // SetUv3 ... func (pointer *Vertex) SetUv3(v *Vec2) { vToC := v.h - C.WrapVertexSetUv3(pointer.h, vToC) + C.HarfangVertexSetUv3(pointer.h, vToC) } // GetUv4 ... func (pointer *Vertex) GetUv4() *Vec2 { - v := C.WrapVertexGetUv4(pointer.h) + v := C.HarfangVertexGetUv4(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13164,12 +14215,12 @@ func (pointer *Vertex) GetUv4() *Vec2 { // SetUv4 ... func (pointer *Vertex) SetUv4(v *Vec2) { vToC := v.h - C.WrapVertexSetUv4(pointer.h, vToC) + C.HarfangVertexSetUv4(pointer.h, vToC) } // GetUv5 ... func (pointer *Vertex) GetUv5() *Vec2 { - v := C.WrapVertexGetUv5(pointer.h) + v := C.HarfangVertexGetUv5(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13177,12 +14228,12 @@ func (pointer *Vertex) GetUv5() *Vec2 { // SetUv5 ... func (pointer *Vertex) SetUv5(v *Vec2) { vToC := v.h - C.WrapVertexSetUv5(pointer.h, vToC) + C.HarfangVertexSetUv5(pointer.h, vToC) } // GetUv6 ... func (pointer *Vertex) GetUv6() *Vec2 { - v := C.WrapVertexGetUv6(pointer.h) + v := C.HarfangVertexGetUv6(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13190,12 +14241,12 @@ func (pointer *Vertex) GetUv6() *Vec2 { // SetUv6 ... func (pointer *Vertex) SetUv6(v *Vec2) { vToC := v.h - C.WrapVertexSetUv6(pointer.h, vToC) + C.HarfangVertexSetUv6(pointer.h, vToC) } // GetUv7 ... func (pointer *Vertex) GetUv7() *Vec2 { - v := C.WrapVertexGetUv7(pointer.h) + v := C.HarfangVertexGetUv7(pointer.h) vGO := &Vec2{h: v} return vGO } @@ -13203,12 +14254,12 @@ func (pointer *Vertex) GetUv7() *Vec2 { // SetUv7 ... func (pointer *Vertex) SetUv7(v *Vec2) { vToC := v.h - C.WrapVertexSetUv7(pointer.h, vToC) + C.HarfangVertexSetUv7(pointer.h, vToC) } // GetColor0 ... func (pointer *Vertex) GetColor0() *Color { - v := C.WrapVertexGetColor0(pointer.h) + v := C.HarfangVertexGetColor0(pointer.h) vGO := &Color{h: v} return vGO } @@ -13216,12 +14267,12 @@ func (pointer *Vertex) GetColor0() *Color { // SetColor0 ... func (pointer *Vertex) SetColor0(v *Color) { vToC := v.h - C.WrapVertexSetColor0(pointer.h, vToC) + C.HarfangVertexSetColor0(pointer.h, vToC) } // GetColor1 ... func (pointer *Vertex) GetColor1() *Color { - v := C.WrapVertexGetColor1(pointer.h) + v := C.HarfangVertexGetColor1(pointer.h) vGO := &Color{h: v} return vGO } @@ -13229,12 +14280,12 @@ func (pointer *Vertex) GetColor1() *Color { // SetColor1 ... func (pointer *Vertex) SetColor1(v *Color) { vToC := v.h - C.WrapVertexSetColor1(pointer.h, vToC) + C.HarfangVertexSetColor1(pointer.h, vToC) } // GetColor2 ... func (pointer *Vertex) GetColor2() *Color { - v := C.WrapVertexGetColor2(pointer.h) + v := C.HarfangVertexGetColor2(pointer.h) vGO := &Color{h: v} return vGO } @@ -13242,12 +14293,12 @@ func (pointer *Vertex) GetColor2() *Color { // SetColor2 ... func (pointer *Vertex) SetColor2(v *Color) { vToC := v.h - C.WrapVertexSetColor2(pointer.h, vToC) + C.HarfangVertexSetColor2(pointer.h, vToC) } // GetColor3 ... func (pointer *Vertex) GetColor3() *Color { - v := C.WrapVertexGetColor3(pointer.h) + v := C.HarfangVertexGetColor3(pointer.h) vGO := &Color{h: v} return vGO } @@ -13255,58 +14306,64 @@ func (pointer *Vertex) GetColor3() *Color { // SetColor3 ... func (pointer *Vertex) SetColor3(v *Color) { vToC := v.h - C.WrapVertexSetColor3(pointer.h, vToC) + C.HarfangVertexSetColor3(pointer.h, vToC) } // NewVertex ... func NewVertex() *Vertex { - retval := C.WrapConstructorVertex() + retval := C.HarfangConstructorVertex() retvalGO := &Vertex{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertex) { - C.WrapVertexFree(cleanval.h) + C.HarfangVertexFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *Vertex) Free() { - C.WrapVertexFree(pointer.h) + C.HarfangVertexFree(pointer.h) } // IsNil ... func (pointer *Vertex) IsNil() bool { - return pointer.h == C.WrapVertex(nil) + return pointer.h == C.HarfangVertex(nil) } // ModelBuilder Use the model builder to programmatically build models at runtime. The input data is optimized upon submission. type ModelBuilder struct { - h C.WrapModelBuilder + h C.HarfangModelBuilder +} + +// NewModelBuilderFromCPointer ... +func NewModelBuilderFromCPointer(p unsafe.Pointer) *ModelBuilder { + retvalGO := &ModelBuilder{h: (C.HarfangModelBuilder)(p)} + return retvalGO } // NewModelBuilder Use the model builder to programmatically build models at runtime. The input data is optimized upon submission. func NewModelBuilder() *ModelBuilder { - retval := C.WrapConstructorModelBuilder() + retval := C.HarfangConstructorModelBuilder() retvalGO := &ModelBuilder{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ModelBuilder) { - C.WrapModelBuilderFree(cleanval.h) + C.HarfangModelBuilderFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *ModelBuilder) Free() { - C.WrapModelBuilderFree(pointer.h) + C.HarfangModelBuilderFree(pointer.h) } // IsNil ... func (pointer *ModelBuilder) IsNil() bool { - return pointer.h == C.WrapModelBuilder(nil) + return pointer.h == C.HarfangModelBuilder(nil) } // AddVertex Add a vertex to the builder database. Use the returned optimized index to submit primitives using methods such as [harfang.ModelBuilder_AddTriangle]. func (pointer *ModelBuilder) AddVertex(vtx *Vertex) uint32 { vtxToC := vtx.h - retval := C.WrapAddVertexModelBuilder(pointer.h, vtxToC) + retval := C.HarfangAddVertexModelBuilder(pointer.h, vtxToC) return uint32(retval) } @@ -13315,7 +14372,7 @@ func (pointer *ModelBuilder) AddTriangle(a uint32, b uint32, c uint32) { aToC := C.uint32_t(a) bToC := C.uint32_t(b) cToC := C.uint32_t(c) - C.WrapAddTriangleModelBuilder(pointer.h, aToC, bToC, cToC) + C.HarfangAddTriangleModelBuilder(pointer.h, aToC, bToC, cToC) } // AddQuad ... @@ -13324,94 +14381,106 @@ func (pointer *ModelBuilder) AddQuad(a uint32, b uint32, c uint32, d uint32) { bToC := C.uint32_t(b) cToC := C.uint32_t(c) dToC := C.uint32_t(d) - C.WrapAddQuadModelBuilder(pointer.h, aToC, bToC, cToC, dToC) + C.HarfangAddQuadModelBuilder(pointer.h, aToC, bToC, cToC, dToC) } // AddPolygon ... func (pointer *ModelBuilder) AddPolygon(idxs *Uint32TList) { idxsToC := idxs.h - C.WrapAddPolygonModelBuilder(pointer.h, idxsToC) + C.HarfangAddPolygonModelBuilder(pointer.h, idxsToC) } // GetCurrentListIndexCount Return the number of indexes in the current list. See [harfang.ModelBuilder_EndList]. func (pointer *ModelBuilder) GetCurrentListIndexCount() int32 { - retval := C.WrapGetCurrentListIndexCountModelBuilder(pointer.h) + retval := C.HarfangGetCurrentListIndexCountModelBuilder(pointer.h) return int32(retval) } // EndList End the current primitive list and start a new one. func (pointer *ModelBuilder) EndList(material uint16) { materialToC := C.ushort(material) - C.WrapEndListModelBuilder(pointer.h, materialToC) + C.HarfangEndListModelBuilder(pointer.h, materialToC) } // Clear Clear all submitted data up to this point. func (pointer *ModelBuilder) Clear() { - C.WrapClearModelBuilder(pointer.h) + C.HarfangClearModelBuilder(pointer.h) } // MakeModel Create a model from all data submitted up to this point. func (pointer *ModelBuilder) MakeModel(decl *VertexLayout) *Model { declToC := decl.h - retval := C.WrapMakeModelModelBuilder(pointer.h, declToC) + retval := C.HarfangMakeModelModelBuilder(pointer.h, declToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } // Geometry Base geometry object. Before a geometry can be displayed, it must be converted to [harfang.Model] by the asset compiler (see [harfang.man.AssetCompiler]). To programmatically create a geometry use [harfang.GeometryBuilder]. type Geometry struct { - h C.WrapGeometry + h C.HarfangGeometry +} + +// NewGeometryFromCPointer ... +func NewGeometryFromCPointer(p unsafe.Pointer) *Geometry { + retvalGO := &Geometry{h: (C.HarfangGeometry)(p)} + return retvalGO } // Free ... func (pointer *Geometry) Free() { - C.WrapGeometryFree(pointer.h) + C.HarfangGeometryFree(pointer.h) } // IsNil ... func (pointer *Geometry) IsNil() bool { - return pointer.h == C.WrapGeometry(nil) + return pointer.h == C.HarfangGeometry(nil) } // GeometryBuilder Use the geometry builder to programmatically create geometries. No optimization are performed by the geometry builder on the input data. To programmatically build a geometry for immediate display see [harfang.ModelBuilder] to directly build models. type GeometryBuilder struct { - h C.WrapGeometryBuilder + h C.HarfangGeometryBuilder +} + +// NewGeometryBuilderFromCPointer ... +func NewGeometryBuilderFromCPointer(p unsafe.Pointer) *GeometryBuilder { + retvalGO := &GeometryBuilder{h: (C.HarfangGeometryBuilder)(p)} + return retvalGO } // NewGeometryBuilder Use the geometry builder to programmatically create geometries. No optimization are performed by the geometry builder on the input data. To programmatically build a geometry for immediate display see [harfang.ModelBuilder] to directly build models. func NewGeometryBuilder() *GeometryBuilder { - retval := C.WrapConstructorGeometryBuilder() + retval := C.HarfangConstructorGeometryBuilder() retvalGO := &GeometryBuilder{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *GeometryBuilder) { - C.WrapGeometryBuilderFree(cleanval.h) + C.HarfangGeometryBuilderFree(cleanval.h) }) return retvalGO } // Free ... func (pointer *GeometryBuilder) Free() { - C.WrapGeometryBuilderFree(pointer.h) + C.HarfangGeometryBuilderFree(pointer.h) } // IsNil ... func (pointer *GeometryBuilder) IsNil() bool { - return pointer.h == C.WrapGeometryBuilder(nil) + return pointer.h == C.HarfangGeometryBuilder(nil) } // AddVertex ... func (pointer *GeometryBuilder) AddVertex(vtx *Vertex) { vtxToC := vtx.h - C.WrapAddVertexGeometryBuilder(pointer.h, vtxToC) + C.HarfangAddVertexGeometryBuilder(pointer.h, vtxToC) } // AddPolygon ... func (pointer *GeometryBuilder) AddPolygon(idxs *Uint32TList, material uint16) { idxsToC := idxs.h materialToC := C.ushort(material) - C.WrapAddPolygonGeometryBuilder(pointer.h, idxsToC, materialToC) + C.HarfangAddPolygonGeometryBuilder(pointer.h, idxsToC, materialToC) } // AddPolygonWithSliceOfIdxs ... @@ -13420,7 +14489,7 @@ func (pointer *GeometryBuilder) AddPolygonWithSliceOfIdxs(SliceOfidxs GoSliceOfu SliceOfidxsToCSize := C.size_t(SliceOfidxsToC.Len) SliceOfidxsToCBuf := (*C.uint32_t)(unsafe.Pointer(SliceOfidxsToC.Data)) materialToC := C.ushort(material) - C.WrapAddPolygonGeometryBuilderWithSliceOfIdxs(pointer.h, SliceOfidxsToCSize, SliceOfidxsToCBuf, materialToC) + C.HarfangAddPolygonGeometryBuilderWithSliceOfIdxs(pointer.h, SliceOfidxsToCSize, SliceOfidxsToCBuf, materialToC) } // AddTriangle ... @@ -13429,7 +14498,7 @@ func (pointer *GeometryBuilder) AddTriangle(a uint32, b uint32, c uint32, materi bToC := C.uint32_t(b) cToC := C.uint32_t(c) materialToC := C.uint32_t(material) - C.WrapAddTriangleGeometryBuilder(pointer.h, aToC, bToC, cToC, materialToC) + C.HarfangAddTriangleGeometryBuilder(pointer.h, aToC, bToC, cToC, materialToC) } // AddQuad ... @@ -13439,136 +14508,166 @@ func (pointer *GeometryBuilder) AddQuad(a uint32, b uint32, c uint32, d uint32, cToC := C.uint32_t(c) dToC := C.uint32_t(d) materialToC := C.uint32_t(material) - C.WrapAddQuadGeometryBuilder(pointer.h, aToC, bToC, cToC, dToC, materialToC) + C.HarfangAddQuadGeometryBuilder(pointer.h, aToC, bToC, cToC, dToC, materialToC) } // Make ... func (pointer *GeometryBuilder) Make() *Geometry { - retval := C.WrapMakeGeometryBuilder(pointer.h) + retval := C.HarfangMakeGeometryBuilder(pointer.h) retvalGO := &Geometry{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Geometry) { - C.WrapGeometryFree(cleanval.h) + C.HarfangGeometryFree(cleanval.h) }) return retvalGO } // Clear ... func (pointer *GeometryBuilder) Clear() { - C.WrapClearGeometryBuilder(pointer.h) + C.HarfangClearGeometryBuilder(pointer.h) } // IsoSurface An iso-surface represents points of a constant value within a volume of space. This class holds a fixed-size 3-dimensional grid of values that can efficiently be converted to a [harfang.Model] at runtime. type IsoSurface struct { - h C.WrapIsoSurface + h C.HarfangIsoSurface +} + +// NewIsoSurfaceFromCPointer ... +func NewIsoSurfaceFromCPointer(p unsafe.Pointer) *IsoSurface { + retvalGO := &IsoSurface{h: (C.HarfangIsoSurface)(p)} + return retvalGO } // Free ... func (pointer *IsoSurface) Free() { - C.WrapIsoSurfaceFree(pointer.h) + C.HarfangIsoSurfaceFree(pointer.h) } // IsNil ... func (pointer *IsoSurface) IsNil() bool { - return pointer.h == C.WrapIsoSurface(nil) + return pointer.h == C.HarfangIsoSurface(nil) } // Bloom Bloom post-process object holding internal states and resources. Create with [harfang.CreateBloomFromAssets] or [harfang.CreateBloomFromFile], use with [harfang.ApplyBloom], finally call [harfang.DestroyBloom] to dispose of resources when done. type Bloom struct { - h C.WrapBloom + h C.HarfangBloom +} + +// NewBloomFromCPointer ... +func NewBloomFromCPointer(p unsafe.Pointer) *Bloom { + retvalGO := &Bloom{h: (C.HarfangBloom)(p)} + return retvalGO } // Free ... func (pointer *Bloom) Free() { - C.WrapBloomFree(pointer.h) + C.HarfangBloomFree(pointer.h) } // IsNil ... func (pointer *Bloom) IsNil() bool { - return pointer.h == C.WrapBloom(nil) + return pointer.h == C.HarfangBloom(nil) } // SAO Ambient occlusion post-process object holding internal states and resources. Create with [harfang.CreateSAOFromFile] or [harfang.CreateSAOFromAssets], use with [harfang.ComputeSAO], finally call [harfang.DestroySAO] to dispose of resources when done. type SAO struct { - h C.WrapSAO + h C.HarfangSAO +} + +// NewSAOFromCPointer ... +func NewSAOFromCPointer(p unsafe.Pointer) *SAO { + retvalGO := &SAO{h: (C.HarfangSAO)(p)} + return retvalGO } // Free ... func (pointer *SAO) Free() { - C.WrapSAOFree(pointer.h) + C.HarfangSAOFree(pointer.h) } // IsNil ... func (pointer *SAO) IsNil() bool { - return pointer.h == C.WrapSAO(nil) + return pointer.h == C.HarfangSAO(nil) } // ProfilerFrame ... type ProfilerFrame struct { - h C.WrapProfilerFrame + h C.HarfangProfilerFrame +} + +// NewProfilerFrameFromCPointer ... +func NewProfilerFrameFromCPointer(p unsafe.Pointer) *ProfilerFrame { + retvalGO := &ProfilerFrame{h: (C.HarfangProfilerFrame)(p)} + return retvalGO } // Free ... func (pointer *ProfilerFrame) Free() { - C.WrapProfilerFrameFree(pointer.h) + C.HarfangProfilerFrameFree(pointer.h) } // IsNil ... func (pointer *ProfilerFrame) IsNil() bool { - return pointer.h == C.WrapProfilerFrame(nil) + return pointer.h == C.HarfangProfilerFrame(nil) } // IVideoStreamer ... type IVideoStreamer struct { - h C.WrapIVideoStreamer + h C.HarfangIVideoStreamer +} + +// NewIVideoStreamerFromCPointer ... +func NewIVideoStreamerFromCPointer(p unsafe.Pointer) *IVideoStreamer { + retvalGO := &IVideoStreamer{h: (C.HarfangIVideoStreamer)(p)} + return retvalGO } // Free ... func (pointer *IVideoStreamer) Free() { - C.WrapIVideoStreamerFree(pointer.h) + C.HarfangIVideoStreamerFree(pointer.h) } // IsNil ... func (pointer *IVideoStreamer) IsNil() bool { - return pointer.h == C.WrapIVideoStreamer(nil) + return pointer.h == C.HarfangIVideoStreamer(nil) } // Startup ... func (pointer *IVideoStreamer) Startup() int32 { - retval := C.WrapStartupIVideoStreamer(pointer.h) + retval := C.HarfangStartupIVideoStreamer(pointer.h) return int32(retval) } // Shutdown ... func (pointer *IVideoStreamer) Shutdown() { - C.WrapShutdownIVideoStreamer(pointer.h) + C.HarfangShutdownIVideoStreamer(pointer.h) } // Open ... func (pointer *IVideoStreamer) Open(name string) uintptr { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapOpenIVideoStreamer(pointer.h, nameToC) + retval := C.HarfangOpenIVideoStreamer(pointer.h, nameToC) return uintptr(retval) } // Play ... func (pointer *IVideoStreamer) Play(h uintptr) int32 { hToC := C.intptr_t(h) - retval := C.WrapPlayIVideoStreamer(pointer.h, hToC) + retval := C.HarfangPlayIVideoStreamer(pointer.h, hToC) return int32(retval) } // Pause ... func (pointer *IVideoStreamer) Pause(h uintptr) int32 { hToC := C.intptr_t(h) - retval := C.WrapPauseIVideoStreamer(pointer.h, hToC) + retval := C.HarfangPauseIVideoStreamer(pointer.h, hToC) return int32(retval) } // Close ... func (pointer *IVideoStreamer) Close(h uintptr) int32 { hToC := C.intptr_t(h) - retval := C.WrapCloseIVideoStreamer(pointer.h, hToC) + retval := C.HarfangCloseIVideoStreamer(pointer.h, hToC) return int32(retval) } @@ -13576,28 +14675,28 @@ func (pointer *IVideoStreamer) Close(h uintptr) int32 { func (pointer *IVideoStreamer) Seek(h uintptr, t int64) int32 { hToC := C.intptr_t(h) tToC := C.int64_t(t) - retval := C.WrapSeekIVideoStreamer(pointer.h, hToC, tToC) + retval := C.HarfangSeekIVideoStreamer(pointer.h, hToC, tToC) return int32(retval) } // GetDuration ... func (pointer *IVideoStreamer) GetDuration(h uintptr) int64 { hToC := C.intptr_t(h) - retval := C.WrapGetDurationIVideoStreamer(pointer.h, hToC) + retval := C.HarfangGetDurationIVideoStreamer(pointer.h, hToC) return int64(retval) } // GetTimeStamp ... func (pointer *IVideoStreamer) GetTimeStamp(h uintptr) int64 { hToC := C.intptr_t(h) - retval := C.WrapGetTimeStampIVideoStreamer(pointer.h, hToC) + retval := C.HarfangGetTimeStampIVideoStreamer(pointer.h, hToC) return int64(retval) } // IsEnded ... func (pointer *IVideoStreamer) IsEnded(h uintptr) int32 { hToC := C.intptr_t(h) - retval := C.WrapIsEndedIVideoStreamer(pointer.h, hToC) + retval := C.HarfangIsEndedIVideoStreamer(pointer.h, hToC) return int32(retval) } @@ -13609,7 +14708,7 @@ func (pointer *IVideoStreamer) GetFrame(h uintptr, ptr *uintptr, width *int32, h heightToC := (*C.int32_t)(unsafe.Pointer(height)) pitchToC := (*C.int32_t)(unsafe.Pointer(pitch)) formatToC := (*C.int32_t)(unsafe.Pointer(format)) - retval := C.WrapGetFrameIVideoStreamer(pointer.h, hToC, ptrToC, widthToC, heightToC, pitchToC, formatToC) + retval := C.HarfangGetFrameIVideoStreamer(pointer.h, hToC, ptrToC, widthToC, heightToC, pitchToC, formatToC) return int32(retval) } @@ -13617,7 +14716,7 @@ func (pointer *IVideoStreamer) GetFrame(h uintptr, ptr *uintptr, width *int32, h func (pointer *IVideoStreamer) FreeFrame(h uintptr, frame int32) int32 { hToC := C.intptr_t(h) frameToC := C.int32_t(frame) - retval := C.WrapFreeFrameIVideoStreamer(pointer.h, hToC, frameToC) + retval := C.HarfangFreeFrameIVideoStreamer(pointer.h, hToC, frameToC) return int32(retval) } @@ -14113,8 +15212,10 @@ var ( BMScreen = BlendMode(C.GetBlendMode(6)) // BMLinearBurn ... BMLinearBurn = BlendMode(C.GetBlendMode(7)) + // BMAlphaRGBAddAlpha ... + BMAlphaRGBAddAlpha = BlendMode(C.GetBlendMode(8)) // BMUndefined ... - BMUndefined = BlendMode(C.GetBlendMode(8)) + BMUndefined = BlendMode(C.GetBlendMode(9)) ) // ForwardPipelineLightType ... @@ -15215,6 +16316,112 @@ var ( OVRAAMSAA16x = OpenVRAA(C.GetOpenVRAA(4)) ) +// OpenXRExtensions ... +type OpenXRExtensions int32 + +var ( + // OXRExtensionsNone ... + OXRExtensionsNone = OpenXRExtensions(C.GetOpenXRExtensions(0)) + // OXRExtensionsEyeGaze ... + OXRExtensionsEyeGaze = OpenXRExtensions(C.GetOpenXRExtensions(1)) + // OXRExtensionsTracker ... + OXRExtensionsTracker = OpenXRExtensions(C.GetOpenXRExtensions(2)) + // OXRExtensionsPassThrough ... + OXRExtensionsPassThrough = OpenXRExtensions(C.GetOpenXRExtensions(3)) + // OXRExtensionsHandTracking ... + OXRExtensionsHandTracking = OpenXRExtensions(C.GetOpenXRExtensions(4)) + // OXRExtensionsVARJOQUADVIEWS ... + OXRExtensionsVARJOQUADVIEWS = OpenXRExtensions(C.GetOpenXRExtensions(5)) + // OXRExtensionsCOMPOSITIONLAYERDEPTH ... + OXRExtensionsCOMPOSITIONLAYERDEPTH = OpenXRExtensions(C.GetOpenXRExtensions(6)) +) + +// OpenXRAA ... +type OpenXRAA int32 + +var ( + // OXRAANone ... + OXRAANone = OpenXRAA(C.GetOpenXRAA(0)) + // OXRAAMSAA2x ... + OXRAAMSAA2x = OpenXRAA(C.GetOpenXRAA(1)) + // OXRAAMSAA4x ... + OXRAAMSAA4x = OpenXRAA(C.GetOpenXRAA(2)) + // OXRAAMSAA8x ... + OXRAAMSAA8x = OpenXRAA(C.GetOpenXRAA(3)) + // OXRAAMSAA16x ... + OXRAAMSAA16x = OpenXRAA(C.GetOpenXRAA(4)) +) + +// HandsSide ... +type HandsSide int32 + +var ( + // LEFT ... + LEFT = HandsSide(C.GetHandsSide(0)) + // RIGHT ... + RIGHT = HandsSide(C.GetHandsSide(1)) + // COUNT ... + COUNT = HandsSide(C.GetHandsSide(2)) +) + +// XrHandJoint ... +type XrHandJoint int32 + +var ( + // XRHJHANDJOINTPALM ... + XRHJHANDJOINTPALM = XrHandJoint(C.GetXrHandJoint(0)) + // XRHJHANDJOINTWRIST ... + XRHJHANDJOINTWRIST = XrHandJoint(C.GetXrHandJoint(1)) + // XRHJHANDJOINTTHUMBMETACARPAL ... + XRHJHANDJOINTTHUMBMETACARPAL = XrHandJoint(C.GetXrHandJoint(2)) + // XRHJHANDJOINTTHUMBPROXIMAL ... + XRHJHANDJOINTTHUMBPROXIMAL = XrHandJoint(C.GetXrHandJoint(3)) + // XRHJHANDJOINTTHUMBDISTAL ... + XRHJHANDJOINTTHUMBDISTAL = XrHandJoint(C.GetXrHandJoint(4)) + // XRHJHANDJOINTTHUMBTIP ... + XRHJHANDJOINTTHUMBTIP = XrHandJoint(C.GetXrHandJoint(5)) + // XRHJHANDJOINTINDEXMETACARPAL ... + XRHJHANDJOINTINDEXMETACARPAL = XrHandJoint(C.GetXrHandJoint(6)) + // XRHJHANDJOINTINDEXPROXIMAL ... + XRHJHANDJOINTINDEXPROXIMAL = XrHandJoint(C.GetXrHandJoint(7)) + // XRHJHANDJOINTINDEXINTERMEDIATE ... + XRHJHANDJOINTINDEXINTERMEDIATE = XrHandJoint(C.GetXrHandJoint(8)) + // XRHJHANDJOINTINDEXDISTAL ... + XRHJHANDJOINTINDEXDISTAL = XrHandJoint(C.GetXrHandJoint(9)) + // XRHJHANDJOINTINDEXTIP ... + XRHJHANDJOINTINDEXTIP = XrHandJoint(C.GetXrHandJoint(10)) + // XRHJHANDJOINTMIDDLEMETACARPAL ... + XRHJHANDJOINTMIDDLEMETACARPAL = XrHandJoint(C.GetXrHandJoint(11)) + // XRHJHANDJOINTMIDDLEPROXIMAL ... + XRHJHANDJOINTMIDDLEPROXIMAL = XrHandJoint(C.GetXrHandJoint(12)) + // XRHJHANDJOINTMIDDLEINTERMEDIATE ... + XRHJHANDJOINTMIDDLEINTERMEDIATE = XrHandJoint(C.GetXrHandJoint(13)) + // XRHJHANDJOINTMIDDLEDISTAL ... + XRHJHANDJOINTMIDDLEDISTAL = XrHandJoint(C.GetXrHandJoint(14)) + // XRHJHANDJOINTMIDDLETIP ... + XRHJHANDJOINTMIDDLETIP = XrHandJoint(C.GetXrHandJoint(15)) + // XRHJHANDJOINTRINGMETACARPAL ... + XRHJHANDJOINTRINGMETACARPAL = XrHandJoint(C.GetXrHandJoint(16)) + // XRHJHANDJOINTRINGPROXIMAL ... + XRHJHANDJOINTRINGPROXIMAL = XrHandJoint(C.GetXrHandJoint(17)) + // XRHJHANDJOINTRINGINTERMEDIATE ... + XRHJHANDJOINTRINGINTERMEDIATE = XrHandJoint(C.GetXrHandJoint(18)) + // XRHJHANDJOINTRINGDISTAL ... + XRHJHANDJOINTRINGDISTAL = XrHandJoint(C.GetXrHandJoint(19)) + // XRHJHANDJOINTRINGTIP ... + XRHJHANDJOINTRINGTIP = XrHandJoint(C.GetXrHandJoint(20)) + // XRHJHANDJOINTLITTLEMETACARPAL ... + XRHJHANDJOINTLITTLEMETACARPAL = XrHandJoint(C.GetXrHandJoint(21)) + // XRHJHANDJOINTLITTLEPROXIMAL ... + XRHJHANDJOINTLITTLEPROXIMAL = XrHandJoint(C.GetXrHandJoint(22)) + // XRHJHANDJOINTLITTLEINTERMEDIATE ... + XRHJHANDJOINTLITTLEINTERMEDIATE = XrHandJoint(C.GetXrHandJoint(23)) + // XRHJHANDJOINTLITTLEDISTAL ... + XRHJHANDJOINTLITTLEDISTAL = XrHandJoint(C.GetXrHandJoint(24)) + // XRHJHANDJOINTLITTLETIP ... + XRHJHANDJOINTLITTLETIP = XrHandJoint(C.GetXrHandJoint(25)) +) + // VideoFrameFormat ... type VideoFrameFormat int32 @@ -15230,7 +16437,7 @@ var ( // IntToVoidPointer Cast an integer to a void pointer. This function is only used to provide access to low-level structures and should not be needed most of the time. func IntToVoidPointer(ptr uintptr) *VoidPointer { ptrToC := C.intptr_t(ptr) - retval := C.WrapIntToVoidPointer(ptrToC) + retval := C.HarfangIntToVoidPointer(ptrToC) var retvalGO *VoidPointer if retval != nil { retvalGO = &VoidPointer{h: retval} @@ -15241,20 +16448,20 @@ func IntToVoidPointer(ptr uintptr) *VoidPointer { // SetLogLevel Control which log levels should be displayed. See [harfang.Log], [harfang.Warn], [harfang.Error] and [harfang.Debug]. func SetLogLevel(loglevel LogLevel) { loglevelToC := C.int32_t(loglevel) - C.WrapSetLogLevel(loglevelToC) + C.HarfangSetLogLevel(loglevelToC) } // SetLogDetailed Display the `details` field of log outputs. func SetLogDetailed(isdetailed bool) { isdetailedToC := C.bool(isdetailed) - C.WrapSetLogDetailed(isdetailedToC) + C.HarfangSetLogDetailed(isdetailedToC) } // Log Output to the engine log. See [harfang.Log], [harfang.Error], [harfang.Debug] and [harfang.Warn]. func Log(msg string) { msgToC, idFinmsgToC := wrapString(msg) defer idFinmsgToC() - C.WrapLog(msgToC) + C.HarfangLog(msgToC) } // LogWithDetails Output to the engine log. See [harfang.Log], [harfang.Error], [harfang.Debug] and [harfang.Warn]. @@ -15263,14 +16470,14 @@ func LogWithDetails(msg string, details string) { defer idFinmsgToC() detailsToC, idFindetailsToC := wrapString(details) defer idFindetailsToC() - C.WrapLogWithDetails(msgToC, detailsToC) + C.HarfangLogWithDetails(msgToC, detailsToC) } // Warn Output to the engine warning log. See [harfang.Log], [harfang.Debug] and [harfang.Error]. func Warn(msg string) { msgToC, idFinmsgToC := wrapString(msg) defer idFinmsgToC() - C.WrapWarn(msgToC) + C.HarfangWarn(msgToC) } // WarnWithDetails Output to the engine warning log. See [harfang.Log], [harfang.Debug] and [harfang.Error]. @@ -15279,14 +16486,14 @@ func WarnWithDetails(msg string, details string) { defer idFinmsgToC() detailsToC, idFindetailsToC := wrapString(details) defer idFindetailsToC() - C.WrapWarnWithDetails(msgToC, detailsToC) + C.HarfangWarnWithDetails(msgToC, detailsToC) } // Error Output to the engine error log. See [harfang.Log], [harfang.Debug] and [harfang.Warn]. func Error(msg string) { msgToC, idFinmsgToC := wrapString(msg) defer idFinmsgToC() - C.WrapError(msgToC) + C.HarfangError(msgToC) } // ErrorWithDetails Output to the engine error log. See [harfang.Log], [harfang.Debug] and [harfang.Warn]. @@ -15295,14 +16502,14 @@ func ErrorWithDetails(msg string, details string) { defer idFinmsgToC() detailsToC, idFindetailsToC := wrapString(details) defer idFindetailsToC() - C.WrapErrorWithDetails(msgToC, detailsToC) + C.HarfangErrorWithDetails(msgToC, detailsToC) } // Debug Output to the engine debug log. See [harfang.Log], [harfang.Warn] and [harfang.Error]. func Debug(msg string) { msgToC, idFinmsgToC := wrapString(msg) defer idFinmsgToC() - C.WrapDebug(msgToC) + C.HarfangDebug(msgToC) } // DebugWithDetails Output to the engine debug log. See [harfang.Log], [harfang.Warn] and [harfang.Error]. @@ -15311,198 +16518,198 @@ func DebugWithDetails(msg string, details string) { defer idFinmsgToC() detailsToC, idFindetailsToC := wrapString(details) defer idFindetailsToC() - C.WrapDebugWithDetails(msgToC, detailsToC) + C.HarfangDebugWithDetails(msgToC, detailsToC) } // TimeToSecF Convert time to fractional seconds. func TimeToSecF(t int64) float32 { tToC := C.int64_t(t) - retval := C.WrapTimeToSecF(tToC) + retval := C.HarfangTimeToSecF(tToC) return float32(retval) } // TimeToMsF Convert time to miliseconds. func TimeToMsF(t int64) float32 { tToC := C.int64_t(t) - retval := C.WrapTimeToMsF(tToC) + retval := C.HarfangTimeToMsF(tToC) return float32(retval) } // TimeToUsF Convert time to fractional microseconds. func TimeToUsF(t int64) float32 { tToC := C.int64_t(t) - retval := C.WrapTimeToUsF(tToC) + retval := C.HarfangTimeToUsF(tToC) return float32(retval) } // TimeToDay Convert time to days. func TimeToDay(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToDay(tToC) + retval := C.HarfangTimeToDay(tToC) return int64(retval) } // TimeToHour Convert time to hours. func TimeToHour(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToHour(tToC) + retval := C.HarfangTimeToHour(tToC) return int64(retval) } // TimeToMin Convert time to minutes. func TimeToMin(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToMin(tToC) + retval := C.HarfangTimeToMin(tToC) return int64(retval) } // TimeToSec Convert time to seconds. func TimeToSec(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToSec(tToC) + retval := C.HarfangTimeToSec(tToC) return int64(retval) } // TimeToMs Convert time to milliseconds. func TimeToMs(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToMs(tToC) + retval := C.HarfangTimeToMs(tToC) return int64(retval) } // TimeToUs Convert time to microseconds. func TimeToUs(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToUs(tToC) + retval := C.HarfangTimeToUs(tToC) return int64(retval) } // TimeToNs Convert time to nanoseconds. func TimeToNs(t int64) int64 { tToC := C.int64_t(t) - retval := C.WrapTimeToNs(tToC) + retval := C.HarfangTimeToNs(tToC) return int64(retval) } // TimeFromSecF Convert fractional seconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromSecF(sec float32) int64 { secToC := C.float(sec) - retval := C.WrapTimeFromSecF(secToC) + retval := C.HarfangTimeFromSecF(secToC) return int64(retval) } // TimeFromMsF Convert milliseconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromMsF(ms float32) int64 { msToC := C.float(ms) - retval := C.WrapTimeFromMsF(msToC) + retval := C.HarfangTimeFromMsF(msToC) return int64(retval) } // TimeFromUsF Convert fractional microseconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromUsF(us float32) int64 { usToC := C.float(us) - retval := C.WrapTimeFromUsF(usToC) + retval := C.HarfangTimeFromUsF(usToC) return int64(retval) } // TimeFromDay Convert days to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromDay(day int64) int64 { dayToC := C.int64_t(day) - retval := C.WrapTimeFromDay(dayToC) + retval := C.HarfangTimeFromDay(dayToC) return int64(retval) } // TimeFromHour Convert hours to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromHour(hour int64) int64 { hourToC := C.int64_t(hour) - retval := C.WrapTimeFromHour(hourToC) + retval := C.HarfangTimeFromHour(hourToC) return int64(retval) } // TimeFromMin Convert minutes to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromMin(min int64) int64 { minToC := C.int64_t(min) - retval := C.WrapTimeFromMin(minToC) + retval := C.HarfangTimeFromMin(minToC) return int64(retval) } // TimeFromSec Convert seconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromSec(sec int64) int64 { secToC := C.int64_t(sec) - retval := C.WrapTimeFromSec(secToC) + retval := C.HarfangTimeFromSec(secToC) return int64(retval) } // TimeFromMs Convert milliseconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromMs(ms int64) int64 { msToC := C.int64_t(ms) - retval := C.WrapTimeFromMs(msToC) + retval := C.HarfangTimeFromMs(msToC) return int64(retval) } // TimeFromUs Convert microseconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromUs(us int64) int64 { usToC := C.int64_t(us) - retval := C.WrapTimeFromUs(usToC) + retval := C.HarfangTimeFromUs(usToC) return int64(retval) } // TimeFromNs Convert nanoseconds to time. See [harfang.man.CoordinateAndUnitSystem]. func TimeFromNs(ns int64) int64 { nsToC := C.int64_t(ns) - retval := C.WrapTimeFromNs(nsToC) + retval := C.HarfangTimeFromNs(nsToC) return int64(retval) } // TimeNow Return the current system time. func TimeNow() int64 { - retval := C.WrapTimeNow() + retval := C.HarfangTimeNow() return int64(retval) } // TimeToString Return time as a human-readable string. func TimeToString(t int64) string { tToC := C.int64_t(t) - retval := C.WrapTimeToString(tToC) + retval := C.HarfangTimeToString(tToC) return C.GoString(retval) } // ResetClock Reset the elapsed time counter. func ResetClock() { - C.WrapResetClock() + C.HarfangResetClock() } // TickClock Advance the engine clock and return the elapsed time since the last call to this function. See [harfang.GetClock] to retrieve the current clock. See [harfang.GetClockDt]. func TickClock() int64 { - retval := C.WrapTickClock() + retval := C.HarfangTickClock() return int64(retval) } // GetClock Return the current clock since the last call to [harfang.TickClock] or [harfang.ResetClock]. See [harfang.time_to_sec_f] to convert the returned time to second. func GetClock() int64 { - retval := C.WrapGetClock() + retval := C.HarfangGetClock() return int64(retval) } // GetClockDt Return the elapsed time recorded during the last call to [harfang.TickClock]. func GetClockDt() int64 { - retval := C.WrapGetClockDt() + retval := C.HarfangGetClockDt() return int64(retval) } // SkipClock Skip elapsed time since the last call to [harfang.TickClock]. func SkipClock() { - C.WrapSkipClock() + C.HarfangSkipClock() } // Open Open a file in binary mode. See [harfang.OpenText], [harfang.OpenWrite], [harfang.OpenWriteText] func Open(path string) *File { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapOpen(pathToC) + retval := C.HarfangOpen(pathToC) retvalGO := &File{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *File) { - C.WrapFileFree(cleanval.h) + C.HarfangFileFree(cleanval.h) }) return retvalGO } @@ -15511,10 +16718,10 @@ func Open(path string) *File { func OpenText(path string) *File { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapOpenText(pathToC) + retval := C.HarfangOpenText(pathToC) retvalGO := &File{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *File) { - C.WrapFileFree(cleanval.h) + C.HarfangFileFree(cleanval.h) }) return retvalGO } @@ -15523,10 +16730,10 @@ func OpenText(path string) *File { func OpenWrite(path string) *File { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapOpenWrite(pathToC) + retval := C.HarfangOpenWrite(pathToC) retvalGO := &File{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *File) { - C.WrapFileFree(cleanval.h) + C.HarfangFileFree(cleanval.h) }) return retvalGO } @@ -15535,10 +16742,10 @@ func OpenWrite(path string) *File { func OpenWriteText(path string) *File { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapOpenWriteText(pathToC) + retval := C.HarfangOpenWriteText(pathToC) retvalGO := &File{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *File) { - C.WrapFileFree(cleanval.h) + C.HarfangFileFree(cleanval.h) }) return retvalGO } @@ -15547,10 +16754,10 @@ func OpenWriteText(path string) *File { func OpenTemp(templatepath string) *File { templatepathToC, idFintemplatepathToC := wrapString(templatepath) defer idFintemplatepathToC() - retval := C.WrapOpenTemp(templatepathToC) + retval := C.HarfangOpenTemp(templatepathToC) retvalGO := &File{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *File) { - C.WrapFileFree(cleanval.h) + C.HarfangFileFree(cleanval.h) }) return retvalGO } @@ -15558,66 +16765,66 @@ func OpenTemp(templatepath string) *File { // Close Close a file handle. func Close(file *File) bool { fileToC := file.h - retval := C.WrapClose(fileToC) + retval := C.HarfangClose(fileToC) return bool(retval) } // IsValid Test if a resource if valid. func IsValid(file *File) bool { fileToC := file.h - retval := C.WrapIsValid(fileToC) + retval := C.HarfangIsValid(fileToC) return bool(retval) } // IsValidWithT Test if a resource if valid. func IsValidWithT(t *Texture) bool { tToC := t.h - retval := C.WrapIsValidWithT(tToC) + retval := C.HarfangIsValidWithT(tToC) return bool(retval) } // IsValidWithFb Test if a resource if valid. func IsValidWithFb(fb *FrameBuffer) bool { fbToC := fb.h - retval := C.WrapIsValidWithFb(fbToC) + retval := C.HarfangIsValidWithFb(fbToC) return bool(retval) } // IsValidWithPipeline Test if a resource if valid. func IsValidWithPipeline(pipeline *ForwardPipelineAAA) bool { pipelineToC := pipeline.h - retval := C.WrapIsValidWithPipeline(pipelineToC) + retval := C.HarfangIsValidWithPipeline(pipelineToC) return bool(retval) } // IsValidWithStreamer Test if a resource if valid. func IsValidWithStreamer(streamer *IVideoStreamer) bool { streamerToC := streamer.h - retval := C.WrapIsValidWithStreamer(streamerToC) + retval := C.HarfangIsValidWithStreamer(streamerToC) return bool(retval) } // IsEOF Returns `true` if the cursor is at the end of the file, `false` otherwise. func IsEOF(file *File) bool { fileToC := file.h - retval := C.WrapIsEOF(fileToC) + retval := C.HarfangIsEOF(fileToC) return bool(retval) } // GetSize Return the size in bytes of a local file. func GetSize(file *File) int32 { fileToC := file.h - retval := C.WrapGetSize(fileToC) + retval := C.HarfangGetSize(fileToC) return int32(retval) } // GetSizeWithRect Return the size in bytes of a local file. func GetSizeWithRect(rect *Rect) *Vec2 { rectToC := rect.h - retval := C.WrapGetSizeWithRect(rectToC) + retval := C.HarfangGetSizeWithRect(rectToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -15625,10 +16832,10 @@ func GetSizeWithRect(rect *Rect) *Vec2 { // GetSizeWithIntRectRect Return the size in bytes of a local file. func GetSizeWithIntRectRect(rect *IntRect) *IVec2 { rectToC := rect.h - retval := C.WrapGetSizeWithIntRectRect(rectToC) + retval := C.HarfangGetSizeWithIntRectRect(rectToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -15638,28 +16845,28 @@ func Seek(file *File, offset int64, mode SeekMode) bool { fileToC := file.h offsetToC := C.int64_t(offset) modeToC := C.int32_t(mode) - retval := C.WrapSeek(fileToC, offsetToC, modeToC) + retval := C.HarfangSeek(fileToC, offsetToC, modeToC) return bool(retval) } // Tell Return the current handle cursor position in bytes. func Tell(file *File) int32 { fileToC := file.h - retval := C.WrapTell(fileToC) + retval := C.HarfangTell(fileToC) return int32(retval) } // Rewind Rewind the read/write cursor of an open file. func Rewind(file *File) { fileToC := file.h - C.WrapRewind(fileToC) + C.HarfangRewind(fileToC) } // IsFile Test if a file exists on the local filesystem. func IsFile(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapIsFile(pathToC) + retval := C.HarfangIsFile(pathToC) return bool(retval) } @@ -15667,35 +16874,35 @@ func IsFile(path string) bool { func Unlink(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapUnlink(pathToC) + retval := C.HarfangUnlink(pathToC) return bool(retval) } // ReadUInt8 Read a binary 8 bit unsigned integer value from a local file. func ReadUInt8(file *File) uint8 { fileToC := file.h - retval := C.WrapReadUInt8(fileToC) + retval := C.HarfangReadUInt8(fileToC) return uint8(retval) } // ReadUInt16 Read a binary 16 bit unsigned integer value from a local file. func ReadUInt16(file *File) uint16 { fileToC := file.h - retval := C.WrapReadUInt16(fileToC) + retval := C.HarfangReadUInt16(fileToC) return uint16(retval) } // ReadUInt32 Read a binary 32 bit unsigned integer value from a local file. func ReadUInt32(file *File) uint32 { fileToC := file.h - retval := C.WrapReadUInt32(fileToC) + retval := C.HarfangReadUInt32(fileToC) return uint32(retval) } // ReadFloat Read a binary 32 bit floating point value from a local file. func ReadFloat(file *File) float32 { fileToC := file.h - retval := C.WrapReadFloat(fileToC) + retval := C.HarfangReadFloat(fileToC) return float32(retval) } @@ -15703,7 +16910,7 @@ func ReadFloat(file *File) float32 { func WriteUInt8(file *File, value uint8) bool { fileToC := file.h valueToC := C.uchar(value) - retval := C.WrapWriteUInt8(fileToC, valueToC) + retval := C.HarfangWriteUInt8(fileToC, valueToC) return bool(retval) } @@ -15711,7 +16918,7 @@ func WriteUInt8(file *File, value uint8) bool { func WriteUInt16(file *File, value uint16) bool { fileToC := file.h valueToC := C.ushort(value) - retval := C.WrapWriteUInt16(fileToC, valueToC) + retval := C.HarfangWriteUInt16(fileToC, valueToC) return bool(retval) } @@ -15719,7 +16926,7 @@ func WriteUInt16(file *File, value uint16) bool { func WriteUInt32(file *File, value uint32) bool { fileToC := file.h valueToC := C.uint32_t(value) - retval := C.WrapWriteUInt32(fileToC, valueToC) + retval := C.HarfangWriteUInt32(fileToC, valueToC) return bool(retval) } @@ -15727,14 +16934,14 @@ func WriteUInt32(file *File, value uint32) bool { func WriteFloat(file *File, value float32) bool { fileToC := file.h valueToC := C.float(value) - retval := C.WrapWriteFloat(fileToC, valueToC) + retval := C.HarfangWriteFloat(fileToC, valueToC) return bool(retval) } // ReadString Read a binary string from a local file. Strings are stored as a `uint32_t length` field followed by the string content in UTF-8. func ReadString(file *File) string { fileToC := file.h - retval := C.WrapReadString(fileToC) + retval := C.HarfangReadString(fileToC) return C.GoString(retval) } @@ -15743,7 +16950,7 @@ func WriteString(file *File, value string) bool { fileToC := file.h valueToC, idFinvalueToC := wrapString(value) defer idFinvalueToC() - retval := C.WrapWriteString(fileToC, valueToC) + retval := C.HarfangWriteString(fileToC, valueToC) return bool(retval) } @@ -15753,7 +16960,7 @@ func CopyFile(src string, dst string) bool { defer idFinsrcToC() dstToC, idFindstToC := wrapString(dst) defer idFindstToC() - retval := C.WrapCopyFile(srcToC, dstToC) + retval := C.HarfangCopyFile(srcToC, dstToC) return bool(retval) } @@ -15761,7 +16968,7 @@ func CopyFile(src string, dst string) bool { func FileToString(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapFileToString(pathToC) + retval := C.HarfangFileToString(pathToC) return C.GoString(retval) } @@ -15771,7 +16978,7 @@ func StringToFile(path string, value string) bool { defer idFinpathToC() valueToC, idFinvalueToC := wrapString(value) defer idFinvalueToC() - retval := C.WrapStringToFile(pathToC, valueToC) + retval := C.HarfangStringToFile(pathToC, valueToC) return bool(retval) } @@ -15780,7 +16987,7 @@ func LoadDataFromFile(path string, data *Data) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() dataToC := data.h - retval := C.WrapLoadDataFromFile(pathToC, dataToC) + retval := C.HarfangLoadDataFromFile(pathToC, dataToC) return bool(retval) } @@ -15789,7 +16996,7 @@ func SaveDataToFile(path string, data *Data) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() dataToC := data.h - retval := C.WrapSaveDataToFile(pathToC, dataToC) + retval := C.HarfangSaveDataToFile(pathToC, dataToC) return bool(retval) } @@ -15798,10 +17005,10 @@ func ListDir(path string, typeGo DirEntryType) *DirEntryList { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() typeGoToC := C.int32_t(typeGo) - retval := C.WrapListDir(pathToC, typeGoToC) + retval := C.HarfangListDir(pathToC, typeGoToC) retvalGO := &DirEntryList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DirEntryList) { - C.WrapDirEntryListFree(cleanval.h) + C.HarfangDirEntryListFree(cleanval.h) }) return retvalGO } @@ -15811,10 +17018,10 @@ func ListDirRecursive(path string, typeGo DirEntryType) *DirEntryList { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() typeGoToC := C.int32_t(typeGo) - retval := C.WrapListDirRecursive(pathToC, typeGoToC) + retval := C.HarfangListDirRecursive(pathToC, typeGoToC) retvalGO := &DirEntryList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DirEntryList) { - C.WrapDirEntryListFree(cleanval.h) + C.HarfangDirEntryListFree(cleanval.h) }) return retvalGO } @@ -15823,7 +17030,7 @@ func ListDirRecursive(path string, typeGo DirEntryType) *DirEntryList { func MkDir(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapMkDir(pathToC) + retval := C.HarfangMkDir(pathToC) return bool(retval) } @@ -15832,7 +17039,7 @@ func MkDirWithPermissions(path string, permissions int32) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() permissionsToC := C.int32_t(permissions) - retval := C.WrapMkDirWithPermissions(pathToC, permissionsToC) + retval := C.HarfangMkDirWithPermissions(pathToC, permissionsToC) return bool(retval) } @@ -15840,7 +17047,7 @@ func MkDirWithPermissions(path string, permissions int32) bool { func RmDir(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapRmDir(pathToC) + retval := C.HarfangRmDir(pathToC) return bool(retval) } @@ -15848,7 +17055,7 @@ func RmDir(path string) bool { func MkTree(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapMkTree(pathToC) + retval := C.HarfangMkTree(pathToC) return bool(retval) } @@ -15857,7 +17064,7 @@ func MkTreeWithPermissions(path string, permissions int32) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() permissionsToC := C.int32_t(permissions) - retval := C.WrapMkTreeWithPermissions(pathToC, permissionsToC) + retval := C.HarfangMkTreeWithPermissions(pathToC, permissionsToC) return bool(retval) } @@ -15865,7 +17072,7 @@ func MkTreeWithPermissions(path string, permissions int32) bool { func RmTree(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapRmTree(pathToC) + retval := C.HarfangRmTree(pathToC) return bool(retval) } @@ -15873,7 +17080,7 @@ func RmTree(path string) bool { func Exists(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapExists(pathToC) + retval := C.HarfangExists(pathToC) return bool(retval) } @@ -15881,7 +17088,7 @@ func Exists(path string) bool { func IsDir(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapIsDir(pathToC) + retval := C.HarfangIsDir(pathToC) return bool(retval) } @@ -15891,7 +17098,7 @@ func CopyDir(src string, dst string) bool { defer idFinsrcToC() dstToC, idFindstToC := wrapString(dst) defer idFindstToC() - retval := C.WrapCopyDir(srcToC, dstToC) + retval := C.HarfangCopyDir(srcToC, dstToC) return bool(retval) } @@ -15901,7 +17108,7 @@ func CopyDirRecursive(src string, dst string) bool { defer idFinsrcToC() dstToC, idFindstToC := wrapString(dst) defer idFindstToC() - retval := C.WrapCopyDirRecursive(srcToC, dstToC) + retval := C.HarfangCopyDirRecursive(srcToC, dstToC) return bool(retval) } @@ -15909,7 +17116,7 @@ func CopyDirRecursive(src string, dst string) bool { func IsPathAbsolute(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapIsPathAbsolute(pathToC) + retval := C.HarfangIsPathAbsolute(pathToC) return bool(retval) } @@ -15917,7 +17124,7 @@ func IsPathAbsolute(path string) bool { func PathToDisplay(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapPathToDisplay(pathToC) + retval := C.HarfangPathToDisplay(pathToC) return C.GoString(retval) } @@ -15925,7 +17132,7 @@ func PathToDisplay(path string) string { func NormalizePath(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapNormalizePath(pathToC) + retval := C.HarfangNormalizePath(pathToC) return C.GoString(retval) } @@ -15933,7 +17140,7 @@ func NormalizePath(path string) string { func FactorizePath(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapFactorizePath(pathToC) + retval := C.HarfangFactorizePath(pathToC) return C.GoString(retval) } @@ -15941,7 +17148,7 @@ func FactorizePath(path string) string { func CleanPath(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCleanPath(pathToC) + retval := C.HarfangCleanPath(pathToC) return C.GoString(retval) } @@ -15949,7 +17156,7 @@ func CleanPath(path string) string { func CutFilePath(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCutFilePath(pathToC) + retval := C.HarfangCutFilePath(pathToC) return C.GoString(retval) } @@ -15957,7 +17164,7 @@ func CutFilePath(path string) string { func CutFileName(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCutFileName(pathToC) + retval := C.HarfangCutFileName(pathToC) return C.GoString(retval) } @@ -15965,7 +17172,7 @@ func CutFileName(path string) string { func CutFileExtension(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCutFileExtension(pathToC) + retval := C.HarfangCutFileExtension(pathToC) return C.GoString(retval) } @@ -15973,7 +17180,7 @@ func CutFileExtension(path string) string { func GetFilePath(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapGetFilePath(pathToC) + retval := C.HarfangGetFilePath(pathToC) return C.GoString(retval) } @@ -15981,7 +17188,7 @@ func GetFilePath(path string) string { func GetFileName(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapGetFileName(pathToC) + retval := C.HarfangGetFileName(pathToC) return C.GoString(retval) } @@ -15989,7 +17196,7 @@ func GetFileName(path string) string { func GetFileExtension(path string) string { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapGetFileExtension(pathToC) + retval := C.HarfangGetFileExtension(pathToC) return C.GoString(retval) } @@ -15997,7 +17204,7 @@ func GetFileExtension(path string) string { func HasFileExtension(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapHasFileExtension(pathToC) + retval := C.HarfangHasFileExtension(pathToC) return bool(retval) } @@ -16007,7 +17214,7 @@ func PathStartsWith(path string, with string) bool { defer idFinpathToC() withToC, idFinwithToC := wrapString(with) defer idFinwithToC() - retval := C.WrapPathStartsWith(pathToC, withToC) + retval := C.HarfangPathStartsWith(pathToC, withToC) return bool(retval) } @@ -16017,7 +17224,7 @@ func PathStripPrefix(path string, prefix string) string { defer idFinpathToC() prefixToC, idFinprefixToC := wrapString(prefix) defer idFinprefixToC() - retval := C.WrapPathStripPrefix(pathToC, prefixToC) + retval := C.HarfangPathStripPrefix(pathToC, prefixToC) return C.GoString(retval) } @@ -16027,14 +17234,14 @@ func PathStripSuffix(path string, suffix string) string { defer idFinpathToC() suffixToC, idFinsuffixToC := wrapString(suffix) defer idFinsuffixToC() - retval := C.WrapPathStripSuffix(pathToC, suffixToC) + retval := C.HarfangPathStripSuffix(pathToC, suffixToC) return C.GoString(retval) } // PathJoin Return a file path from a set of string elements. func PathJoin(elements *StringList) string { elementsToC := elements.h - retval := C.WrapPathJoin(elementsToC) + retval := C.HarfangPathJoin(elementsToC) return C.GoString(retval) } @@ -16044,19 +17251,19 @@ func SwapFileExtension(path string, ext string) string { defer idFinpathToC() extToC, idFinextToC := wrapString(ext) defer idFinextToC() - retval := C.WrapSwapFileExtension(pathToC, extToC) + retval := C.HarfangSwapFileExtension(pathToC, extToC) return C.GoString(retval) } // GetCurrentWorkingDirectory Return the system current working directory. func GetCurrentWorkingDirectory() string { - retval := C.WrapGetCurrentWorkingDirectory() + retval := C.HarfangGetCurrentWorkingDirectory() return C.GoString(retval) } // GetUserFolder Return the system user folder for the current user. func GetUserFolder() string { - retval := C.WrapGetUserFolder() + retval := C.HarfangGetUserFolder() return C.GoString(retval) } @@ -16064,7 +17271,7 @@ func GetUserFolder() string { func AddAssetsFolder(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapAddAssetsFolder(pathToC) + retval := C.HarfangAddAssetsFolder(pathToC) return bool(retval) } @@ -16072,14 +17279,14 @@ func AddAssetsFolder(path string) bool { func RemoveAssetsFolder(path string) { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - C.WrapRemoveAssetsFolder(pathToC) + C.HarfangRemoveAssetsFolder(pathToC) } // AddAssetsPackage Mount an archive stored on the local filesystem as an assets source. See [harfang.man.Assets]. func AddAssetsPackage(path string) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapAddAssetsPackage(pathToC) + retval := C.HarfangAddAssetsPackage(pathToC) return bool(retval) } @@ -16087,14 +17294,14 @@ func AddAssetsPackage(path string) bool { func RemoveAssetsPackage(path string) { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - C.WrapRemoveAssetsPackage(pathToC) + C.HarfangRemoveAssetsPackage(pathToC) } // IsAssetFile Test if an asset file exists in the assets system. See [harfang.man.Assets]. func IsAssetFile(name string) bool { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapIsAssetFile(nameToC) + retval := C.HarfangIsAssetFile(nameToC) return bool(retval) } @@ -16103,7 +17310,7 @@ func LinearInterpolate(y0 float32, y1 float32, t float32) float32 { y0ToC := C.float(y0) y1ToC := C.float(y1) tToC := C.float(t) - retval := C.WrapLinearInterpolate(y0ToC, y1ToC, tToC) + retval := C.HarfangLinearInterpolate(y0ToC, y1ToC, tToC) return float32(retval) } @@ -16112,7 +17319,7 @@ func CosineInterpolate(y0 float32, y1 float32, t float32) float32 { y0ToC := C.float(y0) y1ToC := C.float(y1) tToC := C.float(t) - retval := C.WrapCosineInterpolate(y0ToC, y1ToC, tToC) + retval := C.HarfangCosineInterpolate(y0ToC, y1ToC, tToC) return float32(retval) } @@ -16123,7 +17330,7 @@ func CubicInterpolate(y0 float32, y1 float32, y2 float32, y3 float32, t float32) y2ToC := C.float(y2) y3ToC := C.float(y3) tToC := C.float(t) - retval := C.WrapCubicInterpolate(y0ToC, y1ToC, y2ToC, y3ToC, tToC) + retval := C.HarfangCubicInterpolate(y0ToC, y1ToC, y2ToC, y3ToC, tToC) return float32(retval) } @@ -16134,10 +17341,10 @@ func CubicInterpolateWithV0V1V2V3(v0 *Vec3, v1 *Vec3, v2 *Vec3, v3 *Vec3, t floa v2ToC := v2.h v3ToC := v3.h tToC := C.float(t) - retval := C.WrapCubicInterpolateWithV0V1V2V3(v0ToC, v1ToC, v2ToC, v3ToC, tToC) + retval := C.HarfangCubicInterpolateWithV0V1V2V3(v0ToC, v1ToC, v2ToC, v3ToC, tToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16151,31 +17358,31 @@ func HermiteInterpolate(y0 float32, y1 float32, y2 float32, y3 float32, t float3 tToC := C.float(t) tensionToC := C.float(tension) biasToC := C.float(bias) - retval := C.WrapHermiteInterpolate(y0ToC, y1ToC, y2ToC, y3ToC, tToC, tensionToC, biasToC) + retval := C.HarfangHermiteInterpolate(y0ToC, y1ToC, y2ToC, y3ToC, tToC, tensionToC, biasToC) return float32(retval) } // ReverseRotationOrder Return the rotation order processing each axis in the reverse order of the input rotation order. func ReverseRotationOrder(rotationorder RotationOrder) RotationOrder { rotationorderToC := C.uchar(rotationorder) - retval := C.WrapReverseRotationOrder(rotationorderToC) + retval := C.HarfangReverseRotationOrder(rotationorderToC) return RotationOrder(retval) } // GetArea Return the area of the volume. func GetArea(minmax *MinMax) float32 { minmaxToC := minmax.h - retval := C.WrapGetArea(minmaxToC) + retval := C.HarfangGetArea(minmaxToC) return float32(retval) } // GetCenter Return the center position of the volume. func GetCenter(minmax *MinMax) *Vec3 { minmaxToC := minmax.h - retval := C.WrapGetCenter(minmaxToC) + retval := C.HarfangGetCenter(minmaxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16187,7 +17394,7 @@ func ComputeMinMaxBoundingSphere(minmax *MinMax) (*Vec3, *float32) { originToC := origin.h radius := new(float32) radiusToC := (*C.float)(unsafe.Pointer(radius)) - C.WrapComputeMinMaxBoundingSphere(minmaxToC, originToC, radiusToC) + C.HarfangComputeMinMaxBoundingSphere(minmaxToC, originToC, radiusToC) return origin, (*float32)(unsafe.Pointer(radiusToC)) } @@ -16195,7 +17402,7 @@ func ComputeMinMaxBoundingSphere(minmax *MinMax) (*Vec3, *float32) { func Overlap(minmaxa *MinMax, minmaxb *MinMax) bool { minmaxaToC := minmaxa.h minmaxbToC := minmaxb.h - retval := C.WrapOverlap(minmaxaToC, minmaxbToC) + retval := C.HarfangOverlap(minmaxaToC, minmaxbToC) return bool(retval) } @@ -16204,7 +17411,7 @@ func OverlapWithAxis(minmaxa *MinMax, minmaxb *MinMax, axis Axis) bool { minmaxaToC := minmaxa.h minmaxbToC := minmaxb.h axisToC := C.uchar(axis) - retval := C.WrapOverlapWithAxis(minmaxaToC, minmaxbToC, axisToC) + retval := C.HarfangOverlapWithAxis(minmaxaToC, minmaxbToC, axisToC) return bool(retval) } @@ -16212,7 +17419,7 @@ func OverlapWithAxis(minmaxa *MinMax, minmaxb *MinMax, axis Axis) bool { func Contains(minmax *MinMax, position *Vec3) bool { minmaxToC := minmax.h positionToC := position.h - retval := C.WrapContains(minmaxToC, positionToC) + retval := C.HarfangContains(minmaxToC, positionToC) return bool(retval) } @@ -16220,10 +17427,10 @@ func Contains(minmax *MinMax, position *Vec3) bool { func Union(minmaxa *MinMax, minmaxb *MinMax) *MinMax { minmaxaToC := minmaxa.h minmaxbToC := minmaxb.h - retval := C.WrapUnion(minmaxaToC, minmaxbToC) + retval := C.HarfangUnion(minmaxaToC, minmaxbToC) retvalGO := &MinMax{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } @@ -16232,10 +17439,10 @@ func Union(minmaxa *MinMax, minmaxb *MinMax) *MinMax { func UnionWithMinmaxPosition(minmax *MinMax, position *Vec3) *MinMax { minmaxToC := minmax.h positionToC := position.h - retval := C.WrapUnionWithMinmaxPosition(minmaxToC, positionToC) + retval := C.HarfangUnionWithMinmaxPosition(minmaxToC, positionToC) retvalGO := &MinMax{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } @@ -16249,7 +17456,7 @@ func IntersectRay(minmax *MinMax, origin *Vec3, direction *Vec3) (bool, *float32 tminToC := (*C.float)(unsafe.Pointer(tmin)) tmax := new(float32) tmaxToC := (*C.float)(unsafe.Pointer(tmax)) - retval := C.WrapIntersectRay(minmaxToC, originToC, directionToC, tminToC, tmaxToC) + retval := C.HarfangIntersectRay(minmaxToC, originToC, directionToC, tminToC, tmaxToC) return bool(retval), (*float32)(unsafe.Pointer(tminToC)), (*float32)(unsafe.Pointer(tmaxToC)) } @@ -16262,7 +17469,7 @@ func ClassifyLine(minmax *MinMax, position *Vec3, direction *Vec3) (bool, *Vec3, intersectionToC := intersection.h normal := NewVec3() normalToC := normal.h - retval := C.WrapClassifyLine(minmaxToC, positionToC, directionToC, intersectionToC, normalToC) + retval := C.HarfangClassifyLine(minmaxToC, positionToC, directionToC, intersectionToC, normalToC) return bool(retval), intersection, normal } @@ -16275,7 +17482,7 @@ func ClassifySegment(minmax *MinMax, p0 *Vec3, p1 *Vec3) (bool, *Vec3, *Vec3) { intersectionToC := intersection.h normal := NewVec3() normalToC := normal.h - retval := C.WrapClassifySegment(minmaxToC, p0ToC, p1ToC, intersectionToC, normalToC) + retval := C.HarfangClassifySegment(minmaxToC, p0ToC, p1ToC, intersectionToC, normalToC) return bool(retval), intersection, normal } @@ -16283,10 +17490,10 @@ func ClassifySegment(minmax *MinMax, p0 *Vec3, p1 *Vec3) (bool, *Vec3, *Vec3) { func MinMaxFromPositionSize(position *Vec3, size *Vec3) *MinMax { positionToC := position.h sizeToC := size.h - retval := C.WrapMinMaxFromPositionSize(positionToC, sizeToC) + retval := C.HarfangMinMaxFromPositionSize(positionToC, sizeToC) retvalGO := &MinMax{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MinMax) { - C.WrapMinMaxFree(cleanval.h) + C.HarfangMinMaxFree(cleanval.h) }) return retvalGO } @@ -16295,10 +17502,10 @@ func MinMaxFromPositionSize(position *Vec3, size *Vec3) *MinMax { func Min(a *Vec2, b *Vec2) *Vec2 { aToC := a.h bToC := b.h - retval := C.WrapMin(aToC, bToC) + retval := C.HarfangMin(aToC, bToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -16307,10 +17514,10 @@ func Min(a *Vec2, b *Vec2) *Vec2 { func MinWithAB(a *IVec2, b *IVec2) *IVec2 { aToC := a.h bToC := b.h - retval := C.WrapMinWithAB(aToC, bToC) + retval := C.HarfangMinWithAB(aToC, bToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -16319,10 +17526,10 @@ func MinWithAB(a *IVec2, b *IVec2) *IVec2 { func MinWithVec3AVec3B(a *Vec3, b *Vec3) *Vec3 { aToC := a.h bToC := b.h - retval := C.WrapMinWithVec3AVec3B(aToC, bToC) + retval := C.HarfangMinWithVec3AVec3B(aToC, bToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16331,7 +17538,7 @@ func MinWithVec3AVec3B(a *Vec3, b *Vec3) *Vec3 { func MinWithFloatAFloatB(a float32, b float32) float32 { aToC := C.float(a) bToC := C.float(b) - retval := C.WrapMinWithFloatAFloatB(aToC, bToC) + retval := C.HarfangMinWithFloatAFloatB(aToC, bToC) return float32(retval) } @@ -16339,7 +17546,7 @@ func MinWithFloatAFloatB(a float32, b float32) float32 { func MinWithIntAIntB(a int32, b int32) int32 { aToC := C.int32_t(a) bToC := C.int32_t(b) - retval := C.WrapMinWithIntAIntB(aToC, bToC) + retval := C.HarfangMinWithIntAIntB(aToC, bToC) return int32(retval) } @@ -16347,10 +17554,10 @@ func MinWithIntAIntB(a int32, b int32) int32 { func Max(a *Vec2, b *Vec2) *Vec2 { aToC := a.h bToC := b.h - retval := C.WrapMax(aToC, bToC) + retval := C.HarfangMax(aToC, bToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -16359,10 +17566,10 @@ func Max(a *Vec2, b *Vec2) *Vec2 { func MaxWithAB(a *IVec2, b *IVec2) *IVec2 { aToC := a.h bToC := b.h - retval := C.WrapMaxWithAB(aToC, bToC) + retval := C.HarfangMaxWithAB(aToC, bToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -16371,10 +17578,10 @@ func MaxWithAB(a *IVec2, b *IVec2) *IVec2 { func MaxWithVec3AVec3B(a *Vec3, b *Vec3) *Vec3 { aToC := a.h bToC := b.h - retval := C.WrapMaxWithVec3AVec3B(aToC, bToC) + retval := C.HarfangMaxWithVec3AVec3B(aToC, bToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16383,7 +17590,7 @@ func MaxWithVec3AVec3B(a *Vec3, b *Vec3) *Vec3 { func MaxWithFloatAFloatB(a float32, b float32) float32 { aToC := C.float(a) bToC := C.float(b) - retval := C.WrapMaxWithFloatAFloatB(aToC, bToC) + retval := C.HarfangMaxWithFloatAFloatB(aToC, bToC) return float32(retval) } @@ -16391,63 +17598,63 @@ func MaxWithFloatAFloatB(a float32, b float32) float32 { func MaxWithIntAIntB(a int32, b int32) int32 { aToC := C.int32_t(a) bToC := C.int32_t(b) - retval := C.WrapMaxWithIntAIntB(aToC, bToC) + retval := C.HarfangMaxWithIntAIntB(aToC, bToC) return int32(retval) } // Len2 Return the length of the vector squared. func Len2(v *Vec2) float32 { vToC := v.h - retval := C.WrapLen2(vToC) + retval := C.HarfangLen2(vToC) return float32(retval) } // Len2WithV Return the length of the vector squared. func Len2WithV(v *IVec2) int32 { vToC := v.h - retval := C.WrapLen2WithV(vToC) + retval := C.HarfangLen2WithV(vToC) return int32(retval) } // Len2WithQ Return the length of the vector squared. func Len2WithQ(q *Quaternion) float32 { qToC := q.h - retval := C.WrapLen2WithQ(qToC) + retval := C.HarfangLen2WithQ(qToC) return float32(retval) } // Len2WithVec3V Return the length of the vector squared. func Len2WithVec3V(v *Vec3) float32 { vToC := v.h - retval := C.WrapLen2WithVec3V(vToC) + retval := C.HarfangLen2WithVec3V(vToC) return float32(retval) } // Len Return the length of the vector. func Len(v *Vec2) float32 { vToC := v.h - retval := C.WrapLen(vToC) + retval := C.HarfangLen(vToC) return float32(retval) } // LenWithV Return the length of the vector. func LenWithV(v *IVec2) int32 { vToC := v.h - retval := C.WrapLenWithV(vToC) + retval := C.HarfangLenWithV(vToC) return int32(retval) } // LenWithQ Return the length of the vector. func LenWithQ(q *Quaternion) float32 { qToC := q.h - retval := C.WrapLenWithQ(qToC) + retval := C.HarfangLenWithQ(qToC) return float32(retval) } // LenWithVec3V Return the length of the vector. func LenWithVec3V(v *Vec3) float32 { vToC := v.h - retval := C.WrapLenWithVec3V(vToC) + retval := C.HarfangLenWithVec3V(vToC) return float32(retval) } @@ -16455,7 +17662,7 @@ func LenWithVec3V(v *Vec3) float32 { func Dot(a *Vec2, b *Vec2) float32 { aToC := a.h bToC := b.h - retval := C.WrapDot(aToC, bToC) + retval := C.HarfangDot(aToC, bToC) return float32(retval) } @@ -16463,7 +17670,7 @@ func Dot(a *Vec2, b *Vec2) float32 { func DotWithAB(a *IVec2, b *IVec2) int32 { aToC := a.h bToC := b.h - retval := C.WrapDotWithAB(aToC, bToC) + retval := C.HarfangDotWithAB(aToC, bToC) return int32(retval) } @@ -16471,17 +17678,17 @@ func DotWithAB(a *IVec2, b *IVec2) int32 { func DotWithVec3AVec3B(a *Vec3, b *Vec3) float32 { aToC := a.h bToC := b.h - retval := C.WrapDotWithVec3AVec3B(aToC, bToC) + retval := C.HarfangDotWithVec3AVec3B(aToC, bToC) return float32(retval) } // Normalize Return the input vector scaled so that its length is one. func Normalize(v *Vec2) *Vec2 { vToC := v.h - retval := C.WrapNormalize(vToC) + retval := C.HarfangNormalize(vToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -16489,10 +17696,10 @@ func Normalize(v *Vec2) *Vec2 { // NormalizeWithV Return the input vector scaled so that its length is one. func NormalizeWithV(v *IVec2) *IVec2 { vToC := v.h - retval := C.WrapNormalizeWithV(vToC) + retval := C.HarfangNormalizeWithV(vToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -16500,10 +17707,10 @@ func NormalizeWithV(v *IVec2) *IVec2 { // NormalizeWithVec4V Return the input vector scaled so that its length is one. func NormalizeWithVec4V(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapNormalizeWithVec4V(vToC) + retval := C.HarfangNormalizeWithVec4V(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16511,10 +17718,10 @@ func NormalizeWithVec4V(v *Vec4) *Vec4 { // NormalizeWithQ Return the input vector scaled so that its length is one. func NormalizeWithQ(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapNormalizeWithQ(qToC) + retval := C.HarfangNormalizeWithQ(qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16522,10 +17729,10 @@ func NormalizeWithQ(q *Quaternion) *Quaternion { // NormalizeWithM Return the input vector scaled so that its length is one. func NormalizeWithM(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapNormalizeWithM(mToC) + retval := C.HarfangNormalizeWithM(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -16533,10 +17740,10 @@ func NormalizeWithM(m *Mat3) *Mat3 { // NormalizeWithVec3V Return the input vector scaled so that its length is one. func NormalizeWithVec3V(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapNormalizeWithVec3V(vToC) + retval := C.HarfangNormalizeWithVec3V(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16544,10 +17751,10 @@ func NormalizeWithVec3V(v *Vec3) *Vec3 { // Reverse Return the provided vector pointing in the opposite direction. func Reverse(a *Vec2) *Vec2 { aToC := a.h - retval := C.WrapReverse(aToC) + retval := C.HarfangReverse(aToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -16555,10 +17762,10 @@ func Reverse(a *Vec2) *Vec2 { // ReverseWithA Return the provided vector pointing in the opposite direction. func ReverseWithA(a *IVec2) *IVec2 { aToC := a.h - retval := C.WrapReverseWithA(aToC) + retval := C.HarfangReverseWithA(aToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -16566,10 +17773,10 @@ func ReverseWithA(a *IVec2) *IVec2 { // ReverseWithV Return the provided vector pointing in the opposite direction. func ReverseWithV(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapReverseWithV(vToC) + retval := C.HarfangReverseWithV(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16578,7 +17785,7 @@ func ReverseWithV(v *Vec3) *Vec3 { func Dist2(a *Vec2, b *Vec2) float32 { aToC := a.h bToC := b.h - retval := C.WrapDist2(aToC, bToC) + retval := C.HarfangDist2(aToC, bToC) return float32(retval) } @@ -16586,7 +17793,7 @@ func Dist2(a *Vec2, b *Vec2) float32 { func Dist2WithAB(a *IVec2, b *IVec2) int32 { aToC := a.h bToC := b.h - retval := C.WrapDist2WithAB(aToC, bToC) + retval := C.HarfangDist2WithAB(aToC, bToC) return int32(retval) } @@ -16594,7 +17801,7 @@ func Dist2WithAB(a *IVec2, b *IVec2) int32 { func Dist2WithVec3AVec3B(a *Vec3, b *Vec3) float32 { aToC := a.h bToC := b.h - retval := C.WrapDist2WithVec3AVec3B(aToC, bToC) + retval := C.HarfangDist2WithVec3AVec3B(aToC, bToC) return float32(retval) } @@ -16602,7 +17809,7 @@ func Dist2WithVec3AVec3B(a *Vec3, b *Vec3) float32 { func Dist(a *Vec2, b *Vec2) float32 { aToC := a.h bToC := b.h - retval := C.WrapDist(aToC, bToC) + retval := C.HarfangDist(aToC, bToC) return float32(retval) } @@ -16610,7 +17817,7 @@ func Dist(a *Vec2, b *Vec2) float32 { func DistWithAB(a *IVec2, b *IVec2) int32 { aToC := a.h bToC := b.h - retval := C.WrapDistWithAB(aToC, bToC) + retval := C.HarfangDistWithAB(aToC, bToC) return int32(retval) } @@ -16618,7 +17825,7 @@ func DistWithAB(a *IVec2, b *IVec2) int32 { func DistWithQuaternionAQuaternionB(a *Quaternion, b *Quaternion) float32 { aToC := a.h bToC := b.h - retval := C.WrapDistWithQuaternionAQuaternionB(aToC, bToC) + retval := C.HarfangDistWithQuaternionAQuaternionB(aToC, bToC) return float32(retval) } @@ -16626,17 +17833,17 @@ func DistWithQuaternionAQuaternionB(a *Quaternion, b *Quaternion) float32 { func DistWithVec3AVec3B(a *Vec3, b *Vec3) float32 { aToC := a.h bToC := b.h - retval := C.WrapDistWithVec3AVec3B(aToC, bToC) + retval := C.HarfangDistWithVec3AVec3B(aToC, bToC) return float32(retval) } // Abs Return the absolute value of the function input. For vectors, the absolute value is applied to each component individually and the resulting vector is returned. func Abs(v *Vec4) *Vec4 { vToC := v.h - retval := C.WrapAbs(vToC) + retval := C.HarfangAbs(vToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16644,10 +17851,10 @@ func Abs(v *Vec4) *Vec4 { // AbsWithV Return the absolute value of the function input. For vectors, the absolute value is applied to each component individually and the resulting vector is returned. func AbsWithV(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapAbsWithV(vToC) + retval := C.HarfangAbsWithV(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16655,14 +17862,14 @@ func AbsWithV(v *Vec3) *Vec3 { // AbsWithFloatV Return the absolute value of the function input. For vectors, the absolute value is applied to each component individually and the resulting vector is returned. func AbsWithFloatV(v float32) float32 { vToC := C.float(v) - retval := C.WrapAbsWithFloatV(vToC) + retval := C.HarfangAbsWithFloatV(vToC) return float32(retval) } // AbsWithIntV Return the absolute value of the function input. For vectors, the absolute value is applied to each component individually and the resulting vector is returned. func AbsWithIntV(v int32) int32 { vToC := C.int32_t(v) - retval := C.WrapAbsWithIntV(vToC) + retval := C.HarfangAbsWithIntV(vToC) return int32(retval) } @@ -16670,10 +17877,10 @@ func AbsWithIntV(v int32) int32 { func RandomVec4(min float32, max float32) *Vec4 { minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapRandomVec4(minToC, maxToC) + retval := C.HarfangRandomVec4(minToC, maxToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16682,10 +17889,10 @@ func RandomVec4(min float32, max float32) *Vec4 { func RandomVec4WithMinMax(min *Vec4, max *Vec4) *Vec4 { minToC := min.h maxToC := max.h - retval := C.WrapRandomVec4WithMinMax(minToC, maxToC) + retval := C.HarfangRandomVec4WithMinMax(minToC, maxToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16693,10 +17900,10 @@ func RandomVec4WithMinMax(min *Vec4, max *Vec4) *Vec4 { // Inverse Return the inverse of a matrix, vector or quaternion. func Inverse(q *Quaternion) *Quaternion { qToC := q.h - retval := C.WrapInverse(qToC) + retval := C.HarfangInverse(qToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16706,7 +17913,7 @@ func InverseWithMI(m *Mat3) (bool, *Mat3) { mToC := m.h I := NewMat3() IToC := I.h - retval := C.WrapInverseWithMI(mToC, IToC) + retval := C.HarfangInverseWithMI(mToC, IToC) return bool(retval), I } @@ -16715,7 +17922,7 @@ func InverseWithMat4MMat4I(m *Mat4) (bool, *Mat4) { mToC := m.h I := NewMat4() IToC := I.h - retval := C.WrapInverseWithMat4MMat4I(mToC, IToC) + retval := C.HarfangInverseWithMat4MMat4I(mToC, IToC) return bool(retval), I } @@ -16724,10 +17931,10 @@ func InverseWithMResult(m *Mat44) (*Mat44, *bool) { mToC := m.h result := new(bool) resultToC := (*C.bool)(unsafe.Pointer(result)) - retval := C.WrapInverseWithMResult(mToC, resultToC) + retval := C.HarfangInverseWithMResult(mToC, resultToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO, (*bool)(unsafe.Pointer(resultToC)) } @@ -16735,10 +17942,10 @@ func InverseWithMResult(m *Mat44) (*Mat44, *bool) { // InverseWithV Return the inverse of a matrix, vector or quaternion. func InverseWithV(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapInverseWithV(vToC) + retval := C.HarfangInverseWithV(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16748,10 +17955,10 @@ func Slerp(a *Quaternion, b *Quaternion, t float32) *Quaternion { aToC := a.h bToC := b.h tToC := C.float(t) - retval := C.WrapSlerp(aToC, bToC, tToC) + retval := C.HarfangSlerp(aToC, bToC, tToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16761,10 +17968,10 @@ func QuaternionFromEulerWithXYZ(x float32, y float32, z float32) *Quaternion { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapQuaternionFromEulerWithXYZ(xToC, yToC, zToC) + retval := C.HarfangQuaternionFromEulerWithXYZ(xToC, yToC, zToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16775,10 +17982,10 @@ func QuaternionFromEulerWithXYZRotationOrder(x float32, y float32, z float32, ro yToC := C.float(y) zToC := C.float(z) rotationorderToC := C.uchar(rotationorder) - retval := C.WrapQuaternionFromEulerWithXYZRotationOrder(xToC, yToC, zToC, rotationorderToC) + retval := C.HarfangQuaternionFromEulerWithXYZRotationOrder(xToC, yToC, zToC, rotationorderToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16786,10 +17993,10 @@ func QuaternionFromEulerWithXYZRotationOrder(x float32, y float32, z float32, ro // QuaternionFromEuler Return a quaternion 3d rotation from its _Euler_ vector representation. func QuaternionFromEuler(euler *Vec3) *Quaternion { eulerToC := euler.h - retval := C.WrapQuaternionFromEuler(eulerToC) + retval := C.HarfangQuaternionFromEuler(eulerToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16798,10 +18005,10 @@ func QuaternionFromEuler(euler *Vec3) *Quaternion { func QuaternionFromEulerWithRotationOrder(euler *Vec3, rotationorder RotationOrder) *Quaternion { eulerToC := euler.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapQuaternionFromEulerWithRotationOrder(eulerToC, rotationorderToC) + retval := C.HarfangQuaternionFromEulerWithRotationOrder(eulerToC, rotationorderToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16809,10 +18016,10 @@ func QuaternionFromEulerWithRotationOrder(euler *Vec3, rotationorder RotationOrd // QuaternionLookAt Return a quaternion 3d rotation oriented toward the specified position when sitting on the world's origin _{0, 0, 0}_. func QuaternionLookAt(at *Vec3) *Quaternion { atToC := at.h - retval := C.WrapQuaternionLookAt(atToC) + retval := C.HarfangQuaternionLookAt(atToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16820,10 +18027,10 @@ func QuaternionLookAt(at *Vec3) *Quaternion { // QuaternionFromMatrix3 Return a quaternion rotation from its [harfang.Mat3] representation. func QuaternionFromMatrix3(m *Mat3) *Quaternion { mToC := m.h - retval := C.WrapQuaternionFromMatrix3(mToC) + retval := C.HarfangQuaternionFromMatrix3(mToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16832,10 +18039,10 @@ func QuaternionFromMatrix3(m *Mat3) *Quaternion { func QuaternionFromAxisAngle(angle float32, axis *Vec3) *Quaternion { angleToC := C.float(angle) axisToC := axis.h - retval := C.WrapQuaternionFromAxisAngle(angleToC, axisToC) + retval := C.HarfangQuaternionFromAxisAngle(angleToC, axisToC) retvalGO := &Quaternion{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Quaternion) { - C.WrapQuaternionFree(cleanval.h) + C.HarfangQuaternionFree(cleanval.h) }) return retvalGO } @@ -16843,10 +18050,10 @@ func QuaternionFromAxisAngle(angle float32, axis *Vec3) *Quaternion { // ToMatrix3 Convert a quaternion rotation to its [harfang.Mat3] representation. func ToMatrix3(q *Quaternion) *Mat3 { qToC := q.h - retval := C.WrapToMatrix3(qToC) + retval := C.HarfangToMatrix3(qToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -16854,10 +18061,10 @@ func ToMatrix3(q *Quaternion) *Mat3 { // ToEuler Convert a quaternion rotation to its _Euler_ vector representation. func ToEuler(q *Quaternion) *Vec3 { qToC := q.h - retval := C.WrapToEuler(qToC) + retval := C.HarfangToEuler(qToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16866,10 +18073,10 @@ func ToEuler(q *Quaternion) *Vec3 { func ToEulerWithRotationOrder(q *Quaternion, rotationorder RotationOrder) *Vec3 { qToC := q.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapToEulerWithRotationOrder(qToC, rotationorderToC) + retval := C.HarfangToEulerWithRotationOrder(qToC, rotationorderToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16877,10 +18084,10 @@ func ToEulerWithRotationOrder(q *Quaternion, rotationorder RotationOrder) *Vec3 // ToEulerWithM Convert a quaternion rotation to its _Euler_ vector representation. func ToEulerWithM(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapToEulerWithM(mToC) + retval := C.HarfangToEulerWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16889,10 +18096,10 @@ func ToEulerWithM(m *Mat3) *Vec3 { func ToEulerWithMRotationOrder(m *Mat3, rotationorder RotationOrder) *Vec3 { mToC := m.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapToEulerWithMRotationOrder(mToC, rotationorderToC) + retval := C.HarfangToEulerWithMRotationOrder(mToC, rotationorderToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16900,17 +18107,17 @@ func ToEulerWithMRotationOrder(m *Mat3, rotationorder RotationOrder) *Vec3 { // Det Return the determinant of a matrix. func Det(m *Mat3) float32 { mToC := m.h - retval := C.WrapDet(mToC) + retval := C.HarfangDet(mToC) return float32(retval) } // Transpose Return the transpose of the input matrix. For a pure rotation matrix this returns the opposite transformation so that M*MT=I. func Transpose(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapTranspose(mToC) + retval := C.HarfangTranspose(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -16919,10 +18126,10 @@ func Transpose(m *Mat3) *Mat3 { func GetRow(m *Mat3, n uint32) *Vec3 { mToC := m.h nToC := C.uint32_t(n) - retval := C.WrapGetRow(mToC, nToC) + retval := C.HarfangGetRow(mToC, nToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16931,10 +18138,10 @@ func GetRow(m *Mat3, n uint32) *Vec3 { func GetRowWithMN(m *Mat4, n uint32) *Vec4 { mToC := m.h nToC := C.uint32_t(n) - retval := C.WrapGetRowWithMN(mToC, nToC) + retval := C.HarfangGetRowWithMN(mToC, nToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16943,10 +18150,10 @@ func GetRowWithMN(m *Mat4, n uint32) *Vec4 { func GetRowWithMIdx(m *Mat44, idx uint32) *Vec4 { mToC := m.h idxToC := C.uint32_t(idx) - retval := C.WrapGetRowWithMIdx(mToC, idxToC) + retval := C.HarfangGetRowWithMIdx(mToC, idxToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16955,10 +18162,10 @@ func GetRowWithMIdx(m *Mat44, idx uint32) *Vec4 { func GetColumn(m *Mat3, n uint32) *Vec3 { mToC := m.h nToC := C.uint32_t(n) - retval := C.WrapGetColumn(mToC, nToC) + retval := C.HarfangGetColumn(mToC, nToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16967,10 +18174,10 @@ func GetColumn(m *Mat3, n uint32) *Vec3 { func GetColumnWithMN(m *Mat4, n uint32) *Vec3 { mToC := m.h nToC := C.uint32_t(n) - retval := C.WrapGetColumnWithMN(mToC, nToC) + retval := C.HarfangGetColumnWithMN(mToC, nToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -16979,10 +18186,10 @@ func GetColumnWithMN(m *Mat4, n uint32) *Vec3 { func GetColumnWithMIdx(m *Mat44, idx uint32) *Vec4 { mToC := m.h idxToC := C.uint32_t(idx) - retval := C.WrapGetColumnWithMIdx(mToC, idxToC) + retval := C.HarfangGetColumnWithMIdx(mToC, idxToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -16992,7 +18199,7 @@ func SetRow(m *Mat3, n uint32, row *Vec3) { mToC := m.h nToC := C.uint32_t(n) rowToC := row.h - C.WrapSetRow(mToC, nToC, rowToC) + C.HarfangSetRow(mToC, nToC, rowToC) } // SetRowWithMNV Sets the nth row of a matrix. @@ -17000,7 +18207,7 @@ func SetRowWithMNV(m *Mat4, n uint32, v *Vec4) { mToC := m.h nToC := C.uint32_t(n) vToC := v.h - C.WrapSetRowWithMNV(mToC, nToC, vToC) + C.HarfangSetRowWithMNV(mToC, nToC, vToC) } // SetRowWithMIdxV Sets the nth row of a matrix. @@ -17008,7 +18215,7 @@ func SetRowWithMIdxV(m *Mat44, idx uint32, v *Vec4) { mToC := m.h idxToC := C.uint32_t(idx) vToC := v.h - C.WrapSetRowWithMIdxV(mToC, idxToC, vToC) + C.HarfangSetRowWithMIdxV(mToC, idxToC, vToC) } // SetColumn Returns the nth column. @@ -17016,7 +18223,7 @@ func SetColumn(m *Mat3, n uint32, column *Vec3) { mToC := m.h nToC := C.uint32_t(n) columnToC := column.h - C.WrapSetColumn(mToC, nToC, columnToC) + C.HarfangSetColumn(mToC, nToC, columnToC) } // SetColumnWithMNV Returns the nth column. @@ -17024,7 +18231,7 @@ func SetColumnWithMNV(m *Mat4, n uint32, v *Vec3) { mToC := m.h nToC := C.uint32_t(n) vToC := v.h - C.WrapSetColumnWithMNV(mToC, nToC, vToC) + C.HarfangSetColumnWithMNV(mToC, nToC, vToC) } // SetColumnWithMIdxV Returns the nth column. @@ -17032,16 +18239,16 @@ func SetColumnWithMIdxV(m *Mat44, idx uint32, v *Vec4) { mToC := m.h idxToC := C.uint32_t(idx) vToC := v.h - C.WrapSetColumnWithMIdxV(mToC, idxToC, vToC) + C.HarfangSetColumnWithMIdxV(mToC, idxToC, vToC) } // GetX Return the scaled X axis of a transformation matrix. func GetX(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapGetX(mToC) + retval := C.HarfangGetX(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17049,10 +18256,10 @@ func GetX(m *Mat3) *Vec3 { // GetXWithM Return the scaled X axis of a transformation matrix. func GetXWithM(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetXWithM(mToC) + retval := C.HarfangGetXWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17060,24 +18267,24 @@ func GetXWithM(m *Mat4) *Vec3 { // GetXWithRect Return the scaled X axis of a transformation matrix. func GetXWithRect(rect *Rect) float32 { rectToC := rect.h - retval := C.WrapGetXWithRect(rectToC) + retval := C.HarfangGetXWithRect(rectToC) return float32(retval) } // GetXWithIntRectRect Return the scaled X axis of a transformation matrix. func GetXWithIntRectRect(rect *IntRect) int32 { rectToC := rect.h - retval := C.WrapGetXWithIntRectRect(rectToC) + retval := C.HarfangGetXWithIntRectRect(rectToC) return int32(retval) } // GetY Return the scaled Y axis of a transformation matrix. func GetY(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapGetY(mToC) + retval := C.HarfangGetY(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17085,10 +18292,10 @@ func GetY(m *Mat3) *Vec3 { // GetYWithM Return the scaled Y axis of a transformation matrix. func GetYWithM(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetYWithM(mToC) + retval := C.HarfangGetYWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17096,24 +18303,24 @@ func GetYWithM(m *Mat4) *Vec3 { // GetYWithRect Return the scaled Y axis of a transformation matrix. func GetYWithRect(rect *Rect) float32 { rectToC := rect.h - retval := C.WrapGetYWithRect(rectToC) + retval := C.HarfangGetYWithRect(rectToC) return float32(retval) } // GetYWithIntRectRect Return the scaled Y axis of a transformation matrix. func GetYWithIntRectRect(rect *IntRect) int32 { rectToC := rect.h - retval := C.WrapGetYWithIntRectRect(rectToC) + retval := C.HarfangGetYWithIntRectRect(rectToC) return int32(retval) } // GetZ Return the scaled Z axis of a transformation matrix. func GetZ(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapGetZ(mToC) + retval := C.HarfangGetZ(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17121,10 +18328,10 @@ func GetZ(m *Mat3) *Vec3 { // GetZWithM Return the scaled Z axis of a transformation matrix. func GetZWithM(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetZWithM(mToC) + retval := C.HarfangGetZWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17132,10 +18339,10 @@ func GetZWithM(m *Mat4) *Vec3 { // GetTranslation Return the translation part of a tranformation matrix as a translation vector. func GetTranslation(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapGetTranslation(mToC) + retval := C.HarfangGetTranslation(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17143,10 +18350,10 @@ func GetTranslation(m *Mat3) *Vec3 { // GetTranslationWithM Return the translation part of a tranformation matrix as a translation vector. func GetTranslationWithM(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetTranslationWithM(mToC) + retval := C.HarfangGetTranslationWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17154,10 +18361,10 @@ func GetTranslationWithM(m *Mat4) *Vec3 { // GetScale Return the scale component of a matrix a scale vector. func GetScale(m *Mat3) *Vec3 { mToC := m.h - retval := C.WrapGetScale(mToC) + retval := C.HarfangGetScale(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17165,10 +18372,10 @@ func GetScale(m *Mat3) *Vec3 { // GetScaleWithM Return the scale component of a matrix a scale vector. func GetScaleWithM(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetScaleWithM(mToC) + retval := C.HarfangGetScaleWithM(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17177,105 +18384,105 @@ func GetScaleWithM(m *Mat4) *Vec3 { func SetX(m *Mat3, X *Vec3) { mToC := m.h XToC := X.h - C.WrapSetX(mToC, XToC) + C.HarfangSetX(mToC, XToC) } // SetXWithM Sets the first row. func SetXWithM(m *Mat4, X *Vec3) { mToC := m.h XToC := X.h - C.WrapSetXWithM(mToC, XToC) + C.HarfangSetXWithM(mToC, XToC) } // SetXWithRectX Sets the first row. func SetXWithRectX(rect *Rect, x float32) { rectToC := rect.h xToC := C.float(x) - C.WrapSetXWithRectX(rectToC, xToC) + C.HarfangSetXWithRectX(rectToC, xToC) } // SetXWithIntRectRectIntX Sets the first row. func SetXWithIntRectRectIntX(rect *IntRect, x int32) { rectToC := rect.h xToC := C.int32_t(x) - C.WrapSetXWithIntRectRectIntX(rectToC, xToC) + C.HarfangSetXWithIntRectRectIntX(rectToC, xToC) } // SetY Sets the second row. func SetY(m *Mat3, Y *Vec3) { mToC := m.h YToC := Y.h - C.WrapSetY(mToC, YToC) + C.HarfangSetY(mToC, YToC) } // SetYWithM Sets the second row. func SetYWithM(m *Mat4, Y *Vec3) { mToC := m.h YToC := Y.h - C.WrapSetYWithM(mToC, YToC) + C.HarfangSetYWithM(mToC, YToC) } // SetYWithRectY Sets the second row. func SetYWithRectY(rect *Rect, y float32) { rectToC := rect.h yToC := C.float(y) - C.WrapSetYWithRectY(rectToC, yToC) + C.HarfangSetYWithRectY(rectToC, yToC) } // SetYWithIntRectRectIntY Sets the second row. func SetYWithIntRectRectIntY(rect *IntRect, y int32) { rectToC := rect.h yToC := C.int32_t(y) - C.WrapSetYWithIntRectRectIntY(rectToC, yToC) + C.HarfangSetYWithIntRectRectIntY(rectToC, yToC) } // SetZ Sets the third row. func SetZ(m *Mat3, Z *Vec3) { mToC := m.h ZToC := Z.h - C.WrapSetZ(mToC, ZToC) + C.HarfangSetZ(mToC, ZToC) } // SetZWithM Sets the third row. func SetZWithM(m *Mat4, Z *Vec3) { mToC := m.h ZToC := Z.h - C.WrapSetZWithM(mToC, ZToC) + C.HarfangSetZWithM(mToC, ZToC) } // SetTranslation Sets the 2D translation part, i.e. the first 2 elements of the last matrix row. func SetTranslation(m *Mat3, T *Vec3) { mToC := m.h TToC := T.h - C.WrapSetTranslation(mToC, TToC) + C.HarfangSetTranslation(mToC, TToC) } // SetTranslationWithT Sets the 2D translation part, i.e. the first 2 elements of the last matrix row. func SetTranslationWithT(m *Mat3, T *Vec2) { mToC := m.h TToC := T.h - C.WrapSetTranslationWithT(mToC, TToC) + C.HarfangSetTranslationWithT(mToC, TToC) } // SetTranslationWithM Sets the 2D translation part, i.e. the first 2 elements of the last matrix row. func SetTranslationWithM(m *Mat4, T *Vec3) { mToC := m.h TToC := T.h - C.WrapSetTranslationWithM(mToC, TToC) + C.HarfangSetTranslationWithM(mToC, TToC) } // SetScale Set the scaling part of the transformation matrix. func SetScale(m *Mat3, S *Vec3) { mToC := m.h SToC := S.h - C.WrapSetScale(mToC, SToC) + C.HarfangSetScale(mToC, SToC) } // SetScaleWithMScale Set the scaling part of the transformation matrix. func SetScaleWithMScale(m *Mat4, scale *Vec3) { mToC := m.h scaleToC := scale.h - C.WrapSetScaleWithMScale(mToC, scaleToC) + C.HarfangSetScaleWithMScale(mToC, scaleToC) } // SetAxises Inject X, Y and Z axises into a 3x3 matrix. @@ -17284,16 +18491,16 @@ func SetAxises(m *Mat3, X *Vec3, Y *Vec3, Z *Vec3) { XToC := X.h YToC := Y.h ZToC := Z.h - C.WrapSetAxises(mToC, XToC, YToC, ZToC) + C.HarfangSetAxises(mToC, XToC, YToC, ZToC) } // Orthonormalize Return a matrix where the row vectors form an orthonormal basis. All vectors are normalized and perpendicular to each other. func Orthonormalize(m *Mat3) *Mat3 { mToC := m.h - retval := C.WrapOrthonormalize(mToC) + retval := C.HarfangOrthonormalize(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17301,10 +18508,10 @@ func Orthonormalize(m *Mat3) *Mat3 { // OrthonormalizeWithM Return a matrix where the row vectors form an orthonormal basis. All vectors are normalized and perpendicular to each other. func OrthonormalizeWithM(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapOrthonormalizeWithM(mToC) + retval := C.HarfangOrthonormalizeWithM(mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17312,10 +18519,10 @@ func OrthonormalizeWithM(m *Mat4) *Mat4 { // VectorMat3 Return a vector as a matrix. func VectorMat3(V *Vec3) *Mat3 { VToC := V.h - retval := C.WrapVectorMat3(VToC) + retval := C.HarfangVectorMat3(VToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17323,10 +18530,10 @@ func VectorMat3(V *Vec3) *Mat3 { // TranslationMat3 Return a 2D translation 3x3 matrix from the first 2 components (__x__,__y__) of the parameter vector. func TranslationMat3(T *Vec2) *Mat3 { TToC := T.h - retval := C.WrapTranslationMat3(TToC) + retval := C.HarfangTranslationMat3(TToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17334,10 +18541,10 @@ func TranslationMat3(T *Vec2) *Mat3 { // TranslationMat3WithT Return a 2D translation 3x3 matrix from the first 2 components (__x__,__y__) of the parameter vector. func TranslationMat3WithT(T *Vec3) *Mat3 { TToC := T.h - retval := C.WrapTranslationMat3WithT(TToC) + retval := C.HarfangTranslationMat3WithT(TToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17345,10 +18552,10 @@ func TranslationMat3WithT(T *Vec3) *Mat3 { // ScaleMat3 Return a 3x3 scale matrix from a 2D vector. func ScaleMat3(S *Vec2) *Mat3 { SToC := S.h - retval := C.WrapScaleMat3(SToC) + retval := C.HarfangScaleMat3(SToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17356,10 +18563,10 @@ func ScaleMat3(S *Vec2) *Mat3 { // ScaleMat3WithS Return a 3x3 scale matrix from a 2D vector. func ScaleMat3WithS(S *Vec3) *Mat3 { SToC := S.h - retval := C.WrapScaleMat3WithS(SToC) + retval := C.HarfangScaleMat3WithS(SToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17367,10 +18574,10 @@ func ScaleMat3WithS(S *Vec3) *Mat3 { // CrossProductMat3 Creates a matrix __M__ so that __Mv = p⨯v__. Simply put, multiplying this matrix to any vector __v__ is equivalent to compute the cross product between __p__ and __v__. func CrossProductMat3(V *Vec3) *Mat3 { VToC := V.h - retval := C.WrapCrossProductMat3(VToC) + retval := C.HarfangCrossProductMat3(VToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17378,10 +18585,10 @@ func CrossProductMat3(V *Vec3) *Mat3 { // RotationMatX Return a 3x3 rotation matrix around the world X axis {1, 0, 0}. func RotationMatX(angle float32) *Mat3 { angleToC := C.float(angle) - retval := C.WrapRotationMatX(angleToC) + retval := C.HarfangRotationMatX(angleToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17389,10 +18596,10 @@ func RotationMatX(angle float32) *Mat3 { // RotationMatY Return a 3x3 rotation matrix around the world Y axis {0, 1, 0}. func RotationMatY(angle float32) *Mat3 { angleToC := C.float(angle) - retval := C.WrapRotationMatY(angleToC) + retval := C.HarfangRotationMatY(angleToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17400,10 +18607,10 @@ func RotationMatY(angle float32) *Mat3 { // RotationMatZ Return a 3x3 rotation matrix around the world Z axis {0, 0, 1}. func RotationMatZ(angle float32) *Mat3 { angleToC := C.float(angle) - retval := C.WrapRotationMatZ(angleToC) + retval := C.HarfangRotationMatZ(angleToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17412,10 +18619,10 @@ func RotationMatZ(angle float32) *Mat3 { func RotationMat2D(angle float32, pivot *Vec2) *Mat3 { angleToC := C.float(angle) pivotToC := pivot.h - retval := C.WrapRotationMat2D(angleToC, pivotToC) + retval := C.HarfangRotationMat2D(angleToC, pivotToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17425,10 +18632,10 @@ func RotationMat3WithXYZ(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMat3WithXYZ(xToC, yToC, zToC) + retval := C.HarfangRotationMat3WithXYZ(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17439,10 +18646,10 @@ func RotationMat3WithXYZRotationOrder(x float32, y float32, z float32, rotationo yToC := C.float(y) zToC := C.float(z) rotationorderToC := C.uchar(rotationorder) - retval := C.WrapRotationMat3WithXYZRotationOrder(xToC, yToC, zToC, rotationorderToC) + retval := C.HarfangRotationMat3WithXYZRotationOrder(xToC, yToC, zToC, rotationorderToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17450,10 +18657,10 @@ func RotationMat3WithXYZRotationOrder(x float32, y float32, z float32, rotationo // RotationMat3 Return a 3x3 rotation matrix. func RotationMat3(euler *Vec3) *Mat3 { eulerToC := euler.h - retval := C.WrapRotationMat3(eulerToC) + retval := C.HarfangRotationMat3(eulerToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17462,10 +18669,10 @@ func RotationMat3(euler *Vec3) *Mat3 { func RotationMat3WithRotationOrder(euler *Vec3, rotationorder RotationOrder) *Mat3 { eulerToC := euler.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapRotationMat3WithRotationOrder(eulerToC, rotationorderToC) + retval := C.HarfangRotationMat3WithRotationOrder(eulerToC, rotationorderToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17473,10 +18680,10 @@ func RotationMat3WithRotationOrder(euler *Vec3, rotationorder RotationOrder) *Ma // Mat3LookAt Return a rotation matrix looking down the provided vector. The input vector does not need to be normalized. func Mat3LookAt(front *Vec3) *Mat3 { frontToC := front.h - retval := C.WrapMat3LookAt(frontToC) + retval := C.HarfangMat3LookAt(frontToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17485,10 +18692,10 @@ func Mat3LookAt(front *Vec3) *Mat3 { func Mat3LookAtWithUp(front *Vec3, up *Vec3) *Mat3 { frontToC := front.h upToC := up.h - retval := C.WrapMat3LookAtWithUp(frontToC, upToC) + retval := C.HarfangMat3LookAtWithUp(frontToC, upToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17498,10 +18705,10 @@ func RotationMatXZY(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatXZY(xToC, yToC, zToC) + retval := C.HarfangRotationMatXZY(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17511,10 +18718,10 @@ func RotationMatZYX(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatZYX(xToC, yToC, zToC) + retval := C.HarfangRotationMatZYX(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17524,10 +18731,10 @@ func RotationMatXYZ(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatXYZ(xToC, yToC, zToC) + retval := C.HarfangRotationMatXYZ(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17537,10 +18744,10 @@ func RotationMatZXY(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatZXY(xToC, yToC, zToC) + retval := C.HarfangRotationMatZXY(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17550,10 +18757,10 @@ func RotationMatYZX(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatYZX(xToC, yToC, zToC) + retval := C.HarfangRotationMatYZX(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17563,10 +18770,10 @@ func RotationMatYXZ(x float32, y float32, z float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRotationMatYXZ(xToC, yToC, zToC) + retval := C.HarfangRotationMatYXZ(xToC, yToC, zToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17575,10 +18782,10 @@ func RotationMatYXZ(x float32, y float32, z float32) *Mat3 { func RotationMatXY(x float32, y float32) *Mat3 { xToC := C.float(x) yToC := C.float(y) - retval := C.WrapRotationMatXY(xToC, yToC) + retval := C.HarfangRotationMatXY(xToC, yToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17586,10 +18793,10 @@ func RotationMatXY(x float32, y float32) *Mat3 { // GetT See [harfang.GetTranslation]. func GetT(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetT(mToC) + retval := C.HarfangGetT(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17597,10 +18804,10 @@ func GetT(m *Mat4) *Vec3 { // GetR See [harfang.GetRotation]. func GetR(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetR(mToC) + retval := C.HarfangGetR(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17609,10 +18816,10 @@ func GetR(m *Mat4) *Vec3 { func GetRWithRotationOrder(m *Mat4, rotationorder RotationOrder) *Vec3 { mToC := m.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapGetRWithRotationOrder(mToC, rotationorderToC) + retval := C.HarfangGetRWithRotationOrder(mToC, rotationorderToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17620,10 +18827,10 @@ func GetRWithRotationOrder(m *Mat4, rotationorder RotationOrder) *Vec3 { // GetRotation Return the rotation component of a transformation matrix as a Euler triplet. func GetRotation(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetRotation(mToC) + retval := C.HarfangGetRotation(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17632,10 +18839,10 @@ func GetRotation(m *Mat4) *Vec3 { func GetRotationWithRotationOrder(m *Mat4, rotationorder RotationOrder) *Vec3 { mToC := m.h rotationorderToC := C.uchar(rotationorder) - retval := C.WrapGetRotationWithRotationOrder(mToC, rotationorderToC) + retval := C.HarfangGetRotationWithRotationOrder(mToC, rotationorderToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17643,10 +18850,10 @@ func GetRotationWithRotationOrder(m *Mat4, rotationorder RotationOrder) *Vec3 { // GetRMatrix See [harfang.GetRotationMatrix]. func GetRMatrix(m *Mat4) *Mat3 { mToC := m.h - retval := C.WrapGetRMatrix(mToC) + retval := C.HarfangGetRMatrix(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17654,10 +18861,10 @@ func GetRMatrix(m *Mat4) *Mat3 { // GetRotationMatrix Return the rotation component of a transformation matrix as a [harfang.Mat3] rotation matrix. func GetRotationMatrix(m *Mat4) *Mat3 { mToC := m.h - retval := C.WrapGetRotationMatrix(mToC) + retval := C.HarfangGetRotationMatrix(mToC) retvalGO := &Mat3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat3) { - C.WrapMat3Free(cleanval.h) + C.HarfangMat3Free(cleanval.h) }) return retvalGO } @@ -17665,10 +18872,10 @@ func GetRotationMatrix(m *Mat4) *Mat3 { // GetS See [harfang.GetScale]. func GetS(m *Mat4) *Vec3 { mToC := m.h - retval := C.WrapGetS(mToC) + retval := C.HarfangGetS(mToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17677,23 +18884,23 @@ func GetS(m *Mat4) *Vec3 { func SetT(m *Mat4, T *Vec3) { mToC := m.h TToC := T.h - C.WrapSetT(mToC, TToC) + C.HarfangSetT(mToC, TToC) } // SetS Shortcut for [harfang.SetScale]. func SetS(m *Mat4, scale *Vec3) { mToC := m.h scaleToC := scale.h - C.WrapSetS(mToC, scaleToC) + C.HarfangSetS(mToC, scaleToC) } // InverseFast Compute the inverse of an orthonormal transformation matrix. This function is faster than the generic [harfang.Inverse] function but can only deal with a specific set of matrices. See [harfang.Inverse]. func InverseFast(m *Mat4) *Mat4 { mToC := m.h - retval := C.WrapInverseFast(mToC) + retval := C.HarfangInverseFast(mToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17703,10 +18910,10 @@ func LerpAsOrthonormalBase(from *Mat4, to *Mat4, k float32) *Mat4 { fromToC := from.h toToC := to.h kToC := C.float(k) - retval := C.WrapLerpAsOrthonormalBase(fromToC, toToC, kToC) + retval := C.HarfangLerpAsOrthonormalBase(fromToC, toToC, kToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17717,10 +18924,10 @@ func LerpAsOrthonormalBaseWithFast(from *Mat4, to *Mat4, k float32, fast bool) * toToC := to.h kToC := C.float(k) fastToC := C.bool(fast) - retval := C.WrapLerpAsOrthonormalBaseWithFast(fromToC, toToC, kToC, fastToC) + retval := C.HarfangLerpAsOrthonormalBaseWithFast(fromToC, toToC, kToC, fastToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17734,7 +18941,7 @@ func Decompose(m *Mat4) (*Vec3, *Vec3, *Vec3) { rotationToC := rotation.h scale := NewVec3() scaleToC := scale.h - C.WrapDecompose(mToC, positionToC, rotationToC, scaleToC) + C.HarfangDecompose(mToC, positionToC, rotationToC, scaleToC) return position, rotation, scale } @@ -17748,7 +18955,7 @@ func DecomposeWithRotationOrder(m *Mat4, rotationorder RotationOrder) (*Vec3, *V scale := NewVec3() scaleToC := scale.h rotationorderToC := C.uchar(rotationorder) - C.WrapDecomposeWithRotationOrder(mToC, positionToC, rotationToC, scaleToC, rotationorderToC) + C.HarfangDecomposeWithRotationOrder(mToC, positionToC, rotationToC, scaleToC, rotationorderToC) return position, rotation, scale } @@ -17756,10 +18963,10 @@ func DecomposeWithRotationOrder(m *Mat4, rotationorder RotationOrder) (*Vec3, *V func Mat4LookAt(position *Vec3, at *Vec3) *Mat4 { positionToC := position.h atToC := at.h - retval := C.WrapMat4LookAt(positionToC, atToC) + retval := C.HarfangMat4LookAt(positionToC, atToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17769,10 +18976,10 @@ func Mat4LookAtWithScale(position *Vec3, at *Vec3, scale *Vec3) *Mat4 { positionToC := position.h atToC := at.h scaleToC := scale.h - retval := C.WrapMat4LookAtWithScale(positionToC, atToC, scaleToC) + retval := C.HarfangMat4LookAtWithScale(positionToC, atToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17782,10 +18989,10 @@ func Mat4LookAtUp(position *Vec3, at *Vec3, up *Vec3) *Mat4 { positionToC := position.h atToC := at.h upToC := up.h - retval := C.WrapMat4LookAtUp(positionToC, atToC, upToC) + retval := C.HarfangMat4LookAtUp(positionToC, atToC, upToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17796,10 +19003,10 @@ func Mat4LookAtUpWithScale(position *Vec3, at *Vec3, up *Vec3, scale *Vec3) *Mat atToC := at.h upToC := up.h scaleToC := scale.h - retval := C.WrapMat4LookAtUpWithScale(positionToC, atToC, upToC, scaleToC) + retval := C.HarfangMat4LookAtUpWithScale(positionToC, atToC, upToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17808,10 +19015,10 @@ func Mat4LookAtUpWithScale(position *Vec3, at *Vec3, up *Vec3, scale *Vec3) *Mat func Mat4LookToward(position *Vec3, direction *Vec3) *Mat4 { positionToC := position.h directionToC := direction.h - retval := C.WrapMat4LookToward(positionToC, directionToC) + retval := C.HarfangMat4LookToward(positionToC, directionToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17821,10 +19028,10 @@ func Mat4LookTowardWithScale(position *Vec3, direction *Vec3, scale *Vec3) *Mat4 positionToC := position.h directionToC := direction.h scaleToC := scale.h - retval := C.WrapMat4LookTowardWithScale(positionToC, directionToC, scaleToC) + retval := C.HarfangMat4LookTowardWithScale(positionToC, directionToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17834,10 +19041,10 @@ func Mat4LookTowardUp(position *Vec3, direction *Vec3, up *Vec3) *Mat4 { positionToC := position.h directionToC := direction.h upToC := up.h - retval := C.WrapMat4LookTowardUp(positionToC, directionToC, upToC) + retval := C.HarfangMat4LookTowardUp(positionToC, directionToC, upToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17848,10 +19055,10 @@ func Mat4LookTowardUpWithScale(position *Vec3, direction *Vec3, up *Vec3, scale directionToC := direction.h upToC := up.h scaleToC := scale.h - retval := C.WrapMat4LookTowardUpWithScale(positionToC, directionToC, upToC, scaleToC) + retval := C.HarfangMat4LookTowardUpWithScale(positionToC, directionToC, upToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17859,10 +19066,10 @@ func Mat4LookTowardUpWithScale(position *Vec3, direction *Vec3, up *Vec3, scale // TranslationMat4 Return a 4x3 translation matrix from the parameter displacement vector. func TranslationMat4(t *Vec3) *Mat4 { tToC := t.h - retval := C.WrapTranslationMat4(tToC) + retval := C.HarfangTranslationMat4(tToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17870,10 +19077,10 @@ func TranslationMat4(t *Vec3) *Mat4 { // RotationMat4 Return a 4x3 rotation matrix from euler angles. The default rotation order is YXZ. func RotationMat4(euler *Vec3) *Mat4 { eulerToC := euler.h - retval := C.WrapRotationMat4(eulerToC) + retval := C.HarfangRotationMat4(eulerToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17882,10 +19089,10 @@ func RotationMat4(euler *Vec3) *Mat4 { func RotationMat4WithOrder(euler *Vec3, order RotationOrder) *Mat4 { eulerToC := euler.h orderToC := C.uchar(order) - retval := C.WrapRotationMat4WithOrder(eulerToC, orderToC) + retval := C.HarfangRotationMat4WithOrder(eulerToC, orderToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17893,10 +19100,10 @@ func RotationMat4WithOrder(euler *Vec3, order RotationOrder) *Mat4 { // ScaleMat4 Return a 4x3 scale matrix from the parameter scaling vector. func ScaleMat4(scale *Vec3) *Mat4 { scaleToC := scale.h - retval := C.WrapScaleMat4(scaleToC) + retval := C.HarfangScaleMat4(scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17904,10 +19111,10 @@ func ScaleMat4(scale *Vec3) *Mat4 { // ScaleMat4WithScale Return a 4x3 scale matrix from the parameter scaling vector. func ScaleMat4WithScale(scale float32) *Mat4 { scaleToC := C.float(scale) - retval := C.WrapScaleMat4WithScale(scaleToC) + retval := C.HarfangScaleMat4WithScale(scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17916,10 +19123,10 @@ func ScaleMat4WithScale(scale float32) *Mat4 { func TransformationMat4(pos *Vec3, rot *Vec3) *Mat4 { posToC := pos.h rotToC := rot.h - retval := C.WrapTransformationMat4(posToC, rotToC) + retval := C.HarfangTransformationMat4(posToC, rotToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17929,10 +19136,10 @@ func TransformationMat4WithScale(pos *Vec3, rot *Vec3, scale *Vec3) *Mat4 { posToC := pos.h rotToC := rot.h scaleToC := scale.h - retval := C.WrapTransformationMat4WithScale(posToC, rotToC, scaleToC) + retval := C.HarfangTransformationMat4WithScale(posToC, rotToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17941,10 +19148,10 @@ func TransformationMat4WithScale(pos *Vec3, rot *Vec3, scale *Vec3) *Mat4 { func TransformationMat4WithRot(pos *Vec3, rot *Mat3) *Mat4 { posToC := pos.h rotToC := rot.h - retval := C.WrapTransformationMat4WithRot(posToC, rotToC) + retval := C.HarfangTransformationMat4WithRot(posToC, rotToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17954,10 +19161,10 @@ func TransformationMat4WithRotScale(pos *Vec3, rot *Mat3, scale *Vec3) *Mat4 { posToC := pos.h rotToC := rot.h scaleToC := scale.h - retval := C.WrapTransformationMat4WithRotScale(posToC, rotToC, scaleToC) + retval := C.HarfangTransformationMat4WithRotScale(posToC, rotToC, scaleToC) retvalGO := &Mat4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { - C.WrapMat4Free(cleanval.h) + C.HarfangMat4Free(cleanval.h) }) return retvalGO } @@ -17965,10 +19172,10 @@ func TransformationMat4WithRotScale(pos *Vec3, rot *Mat3, scale *Vec3) *Mat4 { // MakeVec3 Make a [harfang.Vec3] from a [harfang.Vec4]. The input vector `w` component is discarded. func MakeVec3(v *Vec4) *Vec3 { vToC := v.h - retval := C.WrapMakeVec3(vToC) + retval := C.HarfangMakeVec3(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17977,10 +19184,10 @@ func MakeVec3(v *Vec4) *Vec3 { func RandomVec3(min float32, max float32) *Vec3 { minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapRandomVec3(minToC, maxToC) + retval := C.HarfangRandomVec3(minToC, maxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -17989,10 +19196,10 @@ func RandomVec3(min float32, max float32) *Vec3 { func RandomVec3WithMinMax(min *Vec3, max *Vec3) *Vec3 { minToC := min.h maxToC := max.h - retval := C.WrapRandomVec3WithMinMax(minToC, maxToC) + retval := C.HarfangRandomVec3WithMinMax(minToC, maxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18000,10 +19207,10 @@ func RandomVec3WithMinMax(min *Vec3, max *Vec3) *Vec3 { // BaseToEuler Compute the Euler angles triplet for the provided `z` direction. The up-vector `y` can be provided to improve coherency of the returned values over time. func BaseToEuler(z *Vec3) *Vec3 { zToC := z.h - retval := C.WrapBaseToEuler(zToC) + retval := C.HarfangBaseToEuler(zToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18012,10 +19219,10 @@ func BaseToEuler(z *Vec3) *Vec3 { func BaseToEulerWithY(z *Vec3, y *Vec3) *Vec3 { zToC := z.h yToC := y.h - retval := C.WrapBaseToEulerWithY(zToC, yToC) + retval := C.HarfangBaseToEulerWithY(zToC, yToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18024,10 +19231,10 @@ func BaseToEulerWithY(z *Vec3, y *Vec3) *Vec3 { func Cross(a *Vec3, b *Vec3) *Vec3 { aToC := a.h bToC := b.h - retval := C.WrapCross(aToC, bToC) + retval := C.HarfangCross(aToC, bToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18037,10 +19244,10 @@ func Clamp(v *Vec3, min float32, max float32) *Vec3 { vToC := v.h minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapClamp(vToC, minToC, maxToC) + retval := C.HarfangClamp(vToC, minToC, maxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18050,10 +19257,10 @@ func ClampWithMinMax(v *Vec3, min *Vec3, max *Vec3) *Vec3 { vToC := v.h minToC := min.h maxToC := max.h - retval := C.WrapClampWithMinMax(vToC, minToC, maxToC) + retval := C.HarfangClampWithMinMax(vToC, minToC, maxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18063,7 +19270,7 @@ func ClampWithV(v float32, min float32, max float32) float32 { vToC := C.float(v) minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapClampWithV(vToC, minToC, maxToC) + retval := C.HarfangClampWithV(vToC, minToC, maxToC) return float32(retval) } @@ -18072,7 +19279,7 @@ func ClampWithVMinMax(v int32, min int32, max int32) int32 { vToC := C.int32_t(v) minToC := C.int32_t(min) maxToC := C.int32_t(max) - retval := C.WrapClampWithVMinMax(vToC, minToC, maxToC) + retval := C.HarfangClampWithVMinMax(vToC, minToC, maxToC) return int32(retval) } @@ -18081,10 +19288,10 @@ func ClampWithColor(color *Color, min float32, max float32) *Color { colorToC := color.h minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapClampWithColor(colorToC, minToC, maxToC) + retval := C.HarfangClampWithColor(colorToC, minToC, maxToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -18094,10 +19301,10 @@ func ClampWithColorMinMax(color *Color, min *Color, max *Color) *Color { colorToC := color.h minToC := min.h maxToC := max.h - retval := C.WrapClampWithColorMinMax(colorToC, minToC, maxToC) + retval := C.HarfangClampWithColorMinMax(colorToC, minToC, maxToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -18107,10 +19314,10 @@ func ClampLen(v *Vec3, min float32, max float32) *Vec3 { vToC := v.h minToC := C.float(min) maxToC := C.float(max) - retval := C.WrapClampLen(vToC, minToC, maxToC) + retval := C.HarfangClampLen(vToC, minToC, maxToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18118,10 +19325,10 @@ func ClampLen(v *Vec3, min float32, max float32) *Vec3 { // Sign Returns a vector whose elements are -1 if the corresponding vector element is < 0 and 1 if it's >= 0. func Sign(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapSign(vToC) + retval := C.HarfangSign(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18130,10 +19337,10 @@ func Sign(v *Vec3) *Vec3 { func Reflect(v *Vec3, n *Vec3) *Vec3 { vToC := v.h nToC := n.h - retval := C.WrapReflect(vToC, nToC) + retval := C.HarfangReflect(vToC, nToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18142,10 +19349,10 @@ func Reflect(v *Vec3, n *Vec3) *Vec3 { func Refract(v *Vec3, n *Vec3) *Vec3 { vToC := v.h nToC := n.h - retval := C.WrapRefract(vToC, nToC) + retval := C.HarfangRefract(vToC, nToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18155,10 +19362,10 @@ func RefractWithKIn(v *Vec3, n *Vec3, kin float32) *Vec3 { vToC := v.h nToC := n.h kinToC := C.float(kin) - retval := C.WrapRefractWithKIn(vToC, nToC, kinToC) + retval := C.HarfangRefractWithKIn(vToC, nToC, kinToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18169,10 +19376,10 @@ func RefractWithKInKOut(v *Vec3, n *Vec3, kin float32, kout float32) *Vec3 { nToC := n.h kinToC := C.float(kin) koutToC := C.float(kout) - retval := C.WrapRefractWithKInKOut(vToC, nToC, kinToC, koutToC) + retval := C.HarfangRefractWithKInKOut(vToC, nToC, kinToC, koutToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18180,10 +19387,10 @@ func RefractWithKInKOut(v *Vec3, n *Vec3, kin float32, kout float32) *Vec3 { // Floor Returns a vector whose elements are equal to the nearest integer less than or equal to the vector elements. func Floor(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapFloor(vToC) + retval := C.HarfangFloor(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18191,10 +19398,10 @@ func Floor(v *Vec3) *Vec3 { // Ceil Returns a vector whose elements are equal to the nearest integer greater than or equal to the vector elements. func Ceil(v *Vec3) *Vec3 { vToC := v.h - retval := C.WrapCeil(vToC) + retval := C.HarfangCeil(vToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18203,10 +19410,10 @@ func Ceil(v *Vec3) *Vec3 { func FaceForward(v *Vec3, d *Vec3) *Vec3 { vToC := v.h dToC := d.h - retval := C.WrapFaceForward(vToC, dToC) + retval := C.HarfangFaceForward(vToC, dToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18216,10 +19423,10 @@ func Deg3(x float32, y float32, z float32) *Vec3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapDeg3(xToC, yToC, zToC) + retval := C.HarfangDeg3(xToC, yToC, zToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18229,10 +19436,10 @@ func Rad3(x float32, y float32, z float32) *Vec3 { xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapRad3(xToC, yToC, zToC) + retval := C.HarfangRad3(xToC, yToC, zToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18242,10 +19449,10 @@ func Vec3I(x int32, y int32, z int32) *Vec3 { xToC := C.int32_t(x) yToC := C.int32_t(y) zToC := C.int32_t(z) - retval := C.WrapVec3I(xToC, yToC, zToC) + retval := C.HarfangVec3I(xToC, yToC, zToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18255,10 +19462,10 @@ func Vec4I(x int32, y int32, z int32) *Vec4 { xToC := C.int32_t(x) yToC := C.int32_t(y) zToC := C.int32_t(z) - retval := C.WrapVec4I(xToC, yToC, zToC) + retval := C.HarfangVec4I(xToC, yToC, zToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -18269,10 +19476,10 @@ func Vec4IWithW(x int32, y int32, z int32, w int32) *Vec4 { yToC := C.int32_t(y) zToC := C.int32_t(z) wToC := C.int32_t(w) - retval := C.WrapVec4IWithW(xToC, yToC, zToC, wToC) + retval := C.HarfangVec4IWithW(xToC, yToC, zToC, wToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -18280,28 +19487,28 @@ func Vec4IWithW(x int32, y int32, z int32, w int32) *Vec4 { // GetWidth Return the width of a rectangle. func GetWidth(rect *Rect) float32 { rectToC := rect.h - retval := C.WrapGetWidth(rectToC) + retval := C.HarfangGetWidth(rectToC) return float32(retval) } // GetWidthWithRect Return the width of a rectangle. func GetWidthWithRect(rect *IntRect) int32 { rectToC := rect.h - retval := C.WrapGetWidthWithRect(rectToC) + retval := C.HarfangGetWidthWithRect(rectToC) return int32(retval) } // GetHeight Return the height of a rectangle. func GetHeight(rect *Rect) float32 { rectToC := rect.h - retval := C.WrapGetHeight(rectToC) + retval := C.HarfangGetHeight(rectToC) return float32(retval) } // GetHeightWithRect Return the height of a rectangle. func GetHeightWithRect(rect *IntRect) int32 { rectToC := rect.h - retval := C.WrapGetHeightWithRect(rectToC) + retval := C.HarfangGetHeightWithRect(rectToC) return int32(retval) } @@ -18309,35 +19516,35 @@ func GetHeightWithRect(rect *IntRect) int32 { func SetWidth(rect *Rect, width float32) { rectToC := rect.h widthToC := C.float(width) - C.WrapSetWidth(rectToC, widthToC) + C.HarfangSetWidth(rectToC, widthToC) } // SetWidthWithRectWidth Set a rectangle width. func SetWidthWithRectWidth(rect *IntRect, width int32) { rectToC := rect.h widthToC := C.int32_t(width) - C.WrapSetWidthWithRectWidth(rectToC, widthToC) + C.HarfangSetWidthWithRectWidth(rectToC, widthToC) } // SetHeight Set a rectangle height. func SetHeight(rect *Rect, height float32) { rectToC := rect.h heightToC := C.float(height) - C.WrapSetHeight(rectToC, heightToC) + C.HarfangSetHeight(rectToC, heightToC) } // SetHeightWithRectHeight Set a rectangle height. func SetHeightWithRectHeight(rect *IntRect, height int32) { rectToC := rect.h heightToC := C.int32_t(height) - C.WrapSetHeightWithRectHeight(rectToC, heightToC) + C.HarfangSetHeightWithRectHeight(rectToC, heightToC) } // Inside Test if a value is inside a containing volume. func Inside(rect *Rect, v *IVec2) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInside(rectToC, vToC) + retval := C.HarfangInside(rectToC, vToC) return bool(retval) } @@ -18345,7 +19552,7 @@ func Inside(rect *Rect, v *IVec2) bool { func InsideWithV(rect *Rect, v *Vec2) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithV(rectToC, vToC) + retval := C.HarfangInsideWithV(rectToC, vToC) return bool(retval) } @@ -18353,7 +19560,7 @@ func InsideWithV(rect *Rect, v *Vec2) bool { func InsideWithVec3V(rect *Rect, v *Vec3) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithVec3V(rectToC, vToC) + retval := C.HarfangInsideWithVec3V(rectToC, vToC) return bool(retval) } @@ -18361,7 +19568,7 @@ func InsideWithVec3V(rect *Rect, v *Vec3) bool { func InsideWithVec4V(rect *Rect, v *Vec4) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithVec4V(rectToC, vToC) + retval := C.HarfangInsideWithVec4V(rectToC, vToC) return bool(retval) } @@ -18369,7 +19576,7 @@ func InsideWithVec4V(rect *Rect, v *Vec4) bool { func InsideWithRect(rect *IntRect, v *IVec2) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithRect(rectToC, vToC) + retval := C.HarfangInsideWithRect(rectToC, vToC) return bool(retval) } @@ -18377,7 +19584,7 @@ func InsideWithRect(rect *IntRect, v *IVec2) bool { func InsideWithRectV(rect *IntRect, v *Vec2) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithRectV(rectToC, vToC) + retval := C.HarfangInsideWithRectV(rectToC, vToC) return bool(retval) } @@ -18385,7 +19592,7 @@ func InsideWithRectV(rect *IntRect, v *Vec2) bool { func InsideWithIntRectRectVec3V(rect *IntRect, v *Vec3) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithIntRectRectVec3V(rectToC, vToC) + retval := C.HarfangInsideWithIntRectRectVec3V(rectToC, vToC) return bool(retval) } @@ -18393,7 +19600,7 @@ func InsideWithIntRectRectVec3V(rect *IntRect, v *Vec3) bool { func InsideWithIntRectRectVec4V(rect *IntRect, v *Vec4) bool { rectToC := rect.h vToC := v.h - retval := C.WrapInsideWithIntRectRectVec4V(rectToC, vToC) + retval := C.HarfangInsideWithIntRectRectVec4V(rectToC, vToC) return bool(retval) } @@ -18401,7 +19608,7 @@ func InsideWithIntRectRectVec4V(rect *IntRect, v *Vec4) bool { func FitsInside(a *Rect, b *Rect) bool { aToC := a.h bToC := b.h - retval := C.WrapFitsInside(aToC, bToC) + retval := C.HarfangFitsInside(aToC, bToC) return bool(retval) } @@ -18409,7 +19616,7 @@ func FitsInside(a *Rect, b *Rect) bool { func FitsInsideWithAB(a *IntRect, b *IntRect) bool { aToC := a.h bToC := b.h - retval := C.WrapFitsInsideWithAB(aToC, bToC) + retval := C.HarfangFitsInsideWithAB(aToC, bToC) return bool(retval) } @@ -18417,7 +19624,7 @@ func FitsInsideWithAB(a *IntRect, b *IntRect) bool { func Intersects(a *Rect, b *Rect) bool { aToC := a.h bToC := b.h - retval := C.WrapIntersects(aToC, bToC) + retval := C.HarfangIntersects(aToC, bToC) return bool(retval) } @@ -18425,7 +19632,7 @@ func Intersects(a *Rect, b *Rect) bool { func IntersectsWithAB(a *IntRect, b *IntRect) bool { aToC := a.h bToC := b.h - retval := C.WrapIntersectsWithAB(aToC, bToC) + retval := C.HarfangIntersectsWithAB(aToC, bToC) return bool(retval) } @@ -18433,10 +19640,10 @@ func IntersectsWithAB(a *IntRect, b *IntRect) bool { func Intersection(a *Rect, b *Rect) *Rect { aToC := a.h bToC := b.h - retval := C.WrapIntersection(aToC, bToC) + retval := C.HarfangIntersection(aToC, bToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18445,10 +19652,10 @@ func Intersection(a *Rect, b *Rect) *Rect { func IntersectionWithAB(a *IntRect, b *IntRect) *IntRect { aToC := a.h bToC := b.h - retval := C.WrapIntersectionWithAB(aToC, bToC) + retval := C.HarfangIntersectionWithAB(aToC, bToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18457,10 +19664,10 @@ func IntersectionWithAB(a *IntRect, b *IntRect) *IntRect { func Grow(rect *Rect, border float32) *Rect { rectToC := rect.h borderToC := C.float(border) - retval := C.WrapGrow(rectToC, borderToC) + retval := C.HarfangGrow(rectToC, borderToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18469,10 +19676,10 @@ func Grow(rect *Rect, border float32) *Rect { func GrowWithRectBorder(rect *IntRect, border int32) *IntRect { rectToC := rect.h borderToC := C.int32_t(border) - retval := C.WrapGrowWithRectBorder(rectToC, borderToC) + retval := C.HarfangGrowWithRectBorder(rectToC, borderToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18482,10 +19689,10 @@ func Offset(rect *Rect, x float32, y float32) *Rect { rectToC := rect.h xToC := C.float(x) yToC := C.float(y) - retval := C.WrapOffset(rectToC, xToC, yToC) + retval := C.HarfangOffset(rectToC, xToC, yToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18495,10 +19702,10 @@ func OffsetWithRectXY(rect *IntRect, x int32, y int32) *IntRect { rectToC := rect.h xToC := C.int32_t(x) yToC := C.int32_t(y) - retval := C.WrapOffsetWithRectXY(rectToC, xToC, yToC) + retval := C.HarfangOffsetWithRectXY(rectToC, xToC, yToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18510,10 +19717,10 @@ func Crop(rect *Rect, left float32, top float32, right float32, bottom float32) topToC := C.float(top) rightToC := C.float(right) bottomToC := C.float(bottom) - retval := C.WrapCrop(rectToC, leftToC, topToC, rightToC, bottomToC) + retval := C.HarfangCrop(rectToC, leftToC, topToC, rightToC, bottomToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18525,10 +19732,10 @@ func CropWithRectLeftTopRightBottom(rect *IntRect, left int32, top int32, right topToC := C.int32_t(top) rightToC := C.int32_t(right) bottomToC := C.int32_t(bottom) - retval := C.WrapCropWithRectLeftTopRightBottom(rectToC, leftToC, topToC, rightToC, bottomToC) + retval := C.HarfangCropWithRectLeftTopRightBottom(rectToC, leftToC, topToC, rightToC, bottomToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18539,10 +19746,10 @@ func MakeRectFromWidthHeight(x float32, y float32, w float32, h float32) *Rect { yToC := C.float(y) wToC := C.float(w) hToC := C.float(h) - retval := C.WrapMakeRectFromWidthHeight(xToC, yToC, wToC, hToC) + retval := C.HarfangMakeRectFromWidthHeight(xToC, yToC, wToC, hToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18553,10 +19760,10 @@ func MakeRectFromWidthHeightWithXYWH(x int32, y int32, w int32, h int32) *IntRec yToC := C.int32_t(y) wToC := C.int32_t(w) hToC := C.int32_t(h) - retval := C.WrapMakeRectFromWidthHeightWithXYWH(xToC, yToC, wToC, hToC) + retval := C.HarfangMakeRectFromWidthHeightWithXYWH(xToC, yToC, wToC, hToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18564,10 +19771,10 @@ func MakeRectFromWidthHeightWithXYWH(x int32, y int32, w int32, h int32) *IntRec // ToFloatRect Return an integer rectangle as a floating point rectangle. func ToFloatRect(rect *IntRect) *Rect { rectToC := rect.h - retval := C.WrapToFloatRect(rectToC) + retval := C.HarfangToFloatRect(rectToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -18575,10 +19782,10 @@ func ToFloatRect(rect *IntRect) *Rect { // ToIntRect Return a floating point rectangle as an integer rectangle. func ToIntRect(rect *Rect) *IntRect { rectToC := rect.h - retval := C.WrapToIntRect(rectToC) + retval := C.HarfangToIntRect(rectToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -18587,10 +19794,10 @@ func ToIntRect(rect *Rect) *IntRect { func MakePlane(p *Vec3, n *Vec3) *Vec4 { pToC := p.h nToC := n.h - retval := C.WrapMakePlane(pToC, nToC) + retval := C.HarfangMakePlane(pToC, nToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -18600,10 +19807,10 @@ func MakePlaneWithM(p *Vec3, n *Vec3, m *Mat4) *Vec4 { pToC := p.h nToC := n.h mToC := m.h - retval := C.WrapMakePlaneWithM(pToC, nToC, mToC) + retval := C.HarfangMakePlaneWithM(pToC, nToC, mToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -18612,7 +19819,7 @@ func MakePlaneWithM(p *Vec3, n *Vec3, m *Mat4) *Vec4 { func DistanceToPlane(plane *Vec4, p *Vec3) float32 { planeToC := plane.h pToC := p.h - retval := C.WrapDistanceToPlane(planeToC, pToC) + retval := C.HarfangDistanceToPlane(planeToC, pToC) return float32(retval) } @@ -18621,7 +19828,7 @@ func Wrap(v float32, start float32, end float32) float32 { vToC := C.float(v) startToC := C.float(start) endToC := C.float(end) - retval := C.WrapWrap(vToC, startToC, endToC) + retval := C.HarfangWrap(vToC, startToC, endToC) return float32(retval) } @@ -18630,7 +19837,7 @@ func WrapWithVStartEnd(v int32, start int32, end int32) int32 { vToC := C.int32_t(v) startToC := C.int32_t(start) endToC := C.int32_t(end) - retval := C.WrapWrapWithVStartEnd(vToC, startToC, endToC) + retval := C.HarfangWrapWithVStartEnd(vToC, startToC, endToC) return int32(retval) } @@ -18639,7 +19846,7 @@ func Lerp(a int32, b int32, t float32) int32 { aToC := C.int32_t(a) bToC := C.int32_t(b) tToC := C.float(t) - retval := C.WrapLerp(aToC, bToC, tToC) + retval := C.HarfangLerp(aToC, bToC, tToC) return int32(retval) } @@ -18648,7 +19855,7 @@ func LerpWithAB(a float32, b float32, t float32) float32 { aToC := C.float(a) bToC := C.float(b) tToC := C.float(t) - retval := C.WrapLerpWithAB(aToC, bToC, tToC) + retval := C.HarfangLerpWithAB(aToC, bToC, tToC) return float32(retval) } @@ -18657,10 +19864,10 @@ func LerpWithVec3AVec3B(a *Vec3, b *Vec3, t float32) *Vec3 { aToC := a.h bToC := b.h tToC := C.float(t) - retval := C.WrapLerpWithVec3AVec3B(aToC, bToC, tToC) + retval := C.HarfangLerpWithVec3AVec3B(aToC, bToC, tToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -18670,10 +19877,10 @@ func LerpWithVec4AVec4B(a *Vec4, b *Vec4, t float32) *Vec4 { aToC := a.h bToC := b.h tToC := C.float(t) - retval := C.WrapLerpWithVec4AVec4B(aToC, bToC, tToC) + retval := C.HarfangLerpWithVec4AVec4B(aToC, bToC, tToC) retvalGO := &Vec4{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec4) { - C.WrapVec4Free(cleanval.h) + C.HarfangVec4Free(cleanval.h) }) return retvalGO } @@ -18682,136 +19889,136 @@ func LerpWithVec4AVec4B(a *Vec4, b *Vec4, t float32) *Vec4 { func Quantize(v float32, q float32) float32 { vToC := C.float(v) qToC := C.float(q) - retval := C.WrapQuantize(vToC, qToC) + retval := C.HarfangQuantize(vToC, qToC) return float32(retval) } // IsFinite Test if a floating point value is finite. func IsFinite(v float32) bool { vToC := C.float(v) - retval := C.WrapIsFinite(vToC) + retval := C.HarfangIsFinite(vToC) return bool(retval) } // Deg Convert an angle in degrees to the engine unit system. See [harfang.man.CoordinateAndUnitSystem]. func Deg(degrees float32) float32 { degreesToC := C.float(degrees) - retval := C.WrapDeg(degreesToC) + retval := C.HarfangDeg(degreesToC) return float32(retval) } // Rad Convert an angle in radians to the engine unit system. See [harfang.man.CoordinateAndUnitSystem]. func Rad(radians float32) float32 { radiansToC := C.float(radians) - retval := C.WrapRad(radiansToC) + retval := C.HarfangRad(radiansToC) return float32(retval) } // DegreeToRadian Convert an angle in degrees to radians. func DegreeToRadian(degrees float32) float32 { degreesToC := C.float(degrees) - retval := C.WrapDegreeToRadian(degreesToC) + retval := C.HarfangDegreeToRadian(degreesToC) return float32(retval) } // RadianToDegree Convert an angle in radians to degrees. func RadianToDegree(radians float32) float32 { radiansToC := C.float(radians) - retval := C.WrapRadianToDegree(radiansToC) + retval := C.HarfangRadianToDegree(radiansToC) return float32(retval) } // Sec Convert a value in seconds to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Sec(seconds float32) float32 { secondsToC := C.float(seconds) - retval := C.WrapSec(secondsToC) + retval := C.HarfangSec(secondsToC) return float32(retval) } // Ms Convert a value in milliseconds to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Ms(milliseconds float32) float32 { millisecondsToC := C.float(milliseconds) - retval := C.WrapMs(millisecondsToC) + retval := C.HarfangMs(millisecondsToC) return float32(retval) } // Km Convert a value in kilometers to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Km(km float32) float32 { kmToC := C.float(km) - retval := C.WrapKm(kmToC) + retval := C.HarfangKm(kmToC) return float32(retval) } // Mtr Convert a value in meters to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Mtr(m float32) float32 { mToC := C.float(m) - retval := C.WrapMtr(mToC) + retval := C.HarfangMtr(mToC) return float32(retval) } // Cm Convert a value in centimeters to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Cm(cm float32) float32 { cmToC := C.float(cm) - retval := C.WrapCm(cmToC) + retval := C.HarfangCm(cmToC) return float32(retval) } // Mm Convert a value in millimeters to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Mm(mm float32) float32 { mmToC := C.float(mm) - retval := C.WrapMm(mmToC) + retval := C.HarfangMm(mmToC) return float32(retval) } // Inch Convert a value in inches to the Harfang internal unit system. See [harfang.man.CoordinateAndUnitSystem]. func Inch(inch float32) float32 { inchToC := C.float(inch) - retval := C.WrapInch(inchToC) + retval := C.HarfangInch(inchToC) return float32(retval) } // Seed Set the starting seed of the pseudo-random number generator. func Seed(seed uint32) { seedToC := C.uint32_t(seed) - C.WrapSeed(seedToC) + C.HarfangSeed(seedToC) } // Rand Return a random integer value in the provided range, default range is [harfang.0;65535]. See [harfang.FRand] to generate a random floating point value. func Rand() uint32 { - retval := C.WrapRand() + retval := C.HarfangRand() return uint32(retval) } // RandWithRange Return a random integer value in the provided range, default range is [harfang.0;65535]. See [harfang.FRand] to generate a random floating point value. func RandWithRange(rangeGo uint32) uint32 { rangeGoToC := C.uint32_t(rangeGo) - retval := C.WrapRandWithRange(rangeGoToC) + retval := C.HarfangRandWithRange(rangeGoToC) return uint32(retval) } // FRand Return a random floating point value in the provided range, default range is [harfang.0;1]. See [harfang.Rand] to generate a random integer value. func FRand() float32 { - retval := C.WrapFRand() + retval := C.HarfangFRand() return float32(retval) } // FRandWithRange Return a random floating point value in the provided range, default range is [harfang.0;1]. See [harfang.Rand] to generate a random integer value. func FRandWithRange(rangeGo float32) float32 { rangeGoToC := C.float(rangeGo) - retval := C.WrapFRandWithRange(rangeGoToC) + retval := C.HarfangFRandWithRange(rangeGoToC) return float32(retval) } // FRRand Return a random floating point value in the provided range, default range is [harfang.-1;1]. func FRRand() float32 { - retval := C.WrapFRRand() + retval := C.HarfangFRRand() return float32(retval) } // FRRandWithRangeStart Return a random floating point value in the provided range, default range is [harfang.-1;1]. func FRRandWithRangeStart(rangestart float32) float32 { rangestartToC := C.float(rangestart) - retval := C.WrapFRRandWithRangeStart(rangestartToC) + retval := C.HarfangFRRandWithRangeStart(rangestartToC) return float32(retval) } @@ -18819,21 +20026,21 @@ func FRRandWithRangeStart(rangestart float32) float32 { func FRRandWithRangeStartRangeEnd(rangestart float32, rangeend float32) float32 { rangestartToC := C.float(rangestart) rangeendToC := C.float(rangeend) - retval := C.WrapFRRandWithRangeStartRangeEnd(rangestartToC, rangeendToC) + retval := C.HarfangFRRandWithRangeStartRangeEnd(rangestartToC, rangeendToC) return float32(retval) } // ZoomFactorToFov Convert from a zoom factor value in meters to a fov value in radian. func ZoomFactorToFov(zoomfactor float32) float32 { zoomfactorToC := C.float(zoomfactor) - retval := C.WrapZoomFactorToFov(zoomfactorToC) + retval := C.HarfangZoomFactorToFov(zoomfactorToC) return float32(retval) } // FovToZoomFactor Convert from a fov value in radian to a zoom factor value in meters. func FovToZoomFactor(fov float32) float32 { fovToC := C.float(fov) - retval := C.WrapFovToZoomFactor(fovToC) + retval := C.HarfangFovToZoomFactor(fovToC) return float32(retval) } @@ -18843,10 +20050,10 @@ func ComputeOrthographicProjectionMatrix(znear float32, zfar float32, size float zfarToC := C.float(zfar) sizeToC := C.float(size) aspectratioToC := aspectratio.h - retval := C.WrapComputeOrthographicProjectionMatrix(znearToC, zfarToC, sizeToC, aspectratioToC) + retval := C.HarfangComputeOrthographicProjectionMatrix(znearToC, zfarToC, sizeToC, aspectratioToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -18858,10 +20065,10 @@ func ComputeOrthographicProjectionMatrixWithOffset(znear float32, zfar float32, sizeToC := C.float(size) aspectratioToC := aspectratio.h offsetToC := offset.h - retval := C.WrapComputeOrthographicProjectionMatrixWithOffset(znearToC, zfarToC, sizeToC, aspectratioToC, offsetToC) + retval := C.HarfangComputeOrthographicProjectionMatrixWithOffset(znearToC, zfarToC, sizeToC, aspectratioToC, offsetToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -18872,10 +20079,10 @@ func ComputePerspectiveProjectionMatrix(znear float32, zfar float32, zoomfactor zfarToC := C.float(zfar) zoomfactorToC := C.float(zoomfactor) aspectratioToC := aspectratio.h - retval := C.WrapComputePerspectiveProjectionMatrix(znearToC, zfarToC, zoomfactorToC, aspectratioToC) + retval := C.HarfangComputePerspectiveProjectionMatrix(znearToC, zfarToC, zoomfactorToC, aspectratioToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -18887,10 +20094,10 @@ func ComputePerspectiveProjectionMatrixWithOffset(znear float32, zfar float32, z zoomfactorToC := C.float(zoomfactor) aspectratioToC := aspectratio.h offsetToC := offset.h - retval := C.WrapComputePerspectiveProjectionMatrixWithOffset(znearToC, zfarToC, zoomfactorToC, aspectratioToC, offsetToC) + retval := C.HarfangComputePerspectiveProjectionMatrixWithOffset(znearToC, zfarToC, zoomfactorToC, aspectratioToC, offsetToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } @@ -18899,10 +20106,10 @@ func ComputePerspectiveProjectionMatrixWithOffset(znear float32, zfar float32, z func ComputeAspectRatioX(width float32, height float32) *Vec2 { widthToC := C.float(width) heightToC := C.float(height) - retval := C.WrapComputeAspectRatioX(widthToC, heightToC) + retval := C.HarfangComputeAspectRatioX(widthToC, heightToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -18911,10 +20118,10 @@ func ComputeAspectRatioX(width float32, height float32) *Vec2 { func ComputeAspectRatioY(width float32, height float32) *Vec2 { widthToC := C.float(width) heightToC := C.float(height) - retval := C.WrapComputeAspectRatioY(widthToC, heightToC) + retval := C.HarfangComputeAspectRatioY(widthToC, heightToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -18926,18 +20133,19 @@ func Compute2DProjectionMatrix(znear float32, zfar float32, resx float32, resy f resxToC := C.float(resx) resyToC := C.float(resy) yupToC := C.bool(yup) - retval := C.WrapCompute2DProjectionMatrix(znearToC, zfarToC, resxToC, resyToC, yupToC) + retval := C.HarfangCompute2DProjectionMatrix(znearToC, zfarToC, resxToC, resyToC, yupToC) retvalGO := &Mat44{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Mat44) { - C.WrapMat44Free(cleanval.h) + C.HarfangMat44Free(cleanval.h) }) return retvalGO } // ExtractZoomFactorFromProjectionMatrix Extract zoom factor from a projection matrix. See [harfang.ZoomFactorToFov]. -func ExtractZoomFactorFromProjectionMatrix(m *Mat44) float32 { +func ExtractZoomFactorFromProjectionMatrix(m *Mat44, aspectratio *Vec2) float32 { mToC := m.h - retval := C.WrapExtractZoomFactorFromProjectionMatrix(mToC) + aspectratioToC := aspectratio.h + retval := C.HarfangExtractZoomFactorFromProjectionMatrix(mToC, aspectratioToC) return float32(retval) } @@ -18948,7 +20156,7 @@ func ExtractZRangeFromPerspectiveProjectionMatrix(m *Mat44) (*float32, *float32) znearToC := (*C.float)(unsafe.Pointer(znear)) zfar := new(float32) zfarToC := (*C.float)(unsafe.Pointer(zfar)) - C.WrapExtractZRangeFromPerspectiveProjectionMatrix(mToC, znearToC, zfarToC) + C.HarfangExtractZRangeFromPerspectiveProjectionMatrix(mToC, znearToC, zfarToC) return (*float32)(unsafe.Pointer(znearToC)), (*float32)(unsafe.Pointer(zfarToC)) } @@ -18959,7 +20167,7 @@ func ExtractZRangeFromOrthographicProjectionMatrix(m *Mat44) (*float32, *float32 znearToC := (*C.float)(unsafe.Pointer(znear)) zfar := new(float32) zfarToC := (*C.float)(unsafe.Pointer(zfar)) - C.WrapExtractZRangeFromOrthographicProjectionMatrix(mToC, znearToC, zfarToC) + C.HarfangExtractZRangeFromOrthographicProjectionMatrix(mToC, znearToC, zfarToC) return (*float32)(unsafe.Pointer(znearToC)), (*float32)(unsafe.Pointer(zfarToC)) } @@ -18970,7 +20178,7 @@ func ExtractZRangeFromProjectionMatrix(m *Mat44) (*float32, *float32) { znearToC := (*C.float)(unsafe.Pointer(znear)) zfar := new(float32) zfarToC := (*C.float)(unsafe.Pointer(zfar)) - C.WrapExtractZRangeFromProjectionMatrix(mToC, znearToC, zfarToC) + C.HarfangExtractZRangeFromProjectionMatrix(mToC, znearToC, zfarToC) return (*float32)(unsafe.Pointer(znearToC)), (*float32)(unsafe.Pointer(zfarToC)) } @@ -18980,7 +20188,7 @@ func ProjectToClipSpace(proj *Mat44, view *Vec3) (bool, *Vec3) { viewToC := view.h clip := NewVec3() clipToC := clip.h - retval := C.WrapProjectToClipSpace(projToC, viewToC, clipToC) + retval := C.HarfangProjectToClipSpace(projToC, viewToC, clipToC) return bool(retval), clip } @@ -18990,7 +20198,7 @@ func ProjectOrthoToClipSpace(proj *Mat44, view *Vec3) (bool, *Vec3) { viewToC := view.h clip := NewVec3() clipToC := clip.h - retval := C.WrapProjectOrthoToClipSpace(projToC, viewToC, clipToC) + retval := C.HarfangProjectOrthoToClipSpace(projToC, viewToC, clipToC) return bool(retval), clip } @@ -19000,7 +20208,7 @@ func UnprojectFromClipSpace(invproj *Mat44, clip *Vec3) (bool, *Vec3) { clipToC := clip.h view := NewVec3() viewToC := view.h - retval := C.WrapUnprojectFromClipSpace(invprojToC, clipToC, viewToC) + retval := C.HarfangUnprojectFromClipSpace(invprojToC, clipToC, viewToC) return bool(retval), view } @@ -19010,7 +20218,7 @@ func UnprojectOrthoFromClipSpace(invproj *Mat44, clip *Vec3) (bool, *Vec3) { clipToC := clip.h view := NewVec3() viewToC := view.h - retval := C.WrapUnprojectOrthoFromClipSpace(invprojToC, clipToC, viewToC) + retval := C.HarfangUnprojectOrthoFromClipSpace(invprojToC, clipToC, viewToC) return bool(retval), view } @@ -19018,10 +20226,10 @@ func UnprojectOrthoFromClipSpace(invproj *Mat44, clip *Vec3) (bool, *Vec3) { func ClipSpaceToScreenSpace(clip *Vec3, resolution *Vec2) *Vec3 { clipToC := clip.h resolutionToC := resolution.h - retval := C.WrapClipSpaceToScreenSpace(clipToC, resolutionToC) + retval := C.HarfangClipSpaceToScreenSpace(clipToC, resolutionToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -19030,10 +20238,10 @@ func ClipSpaceToScreenSpace(clip *Vec3, resolution *Vec2) *Vec3 { func ScreenSpaceToClipSpace(screen *Vec3, resolution *Vec2) *Vec3 { screenToC := screen.h resolutionToC := resolution.h - retval := C.WrapScreenSpaceToClipSpace(screenToC, resolutionToC) + retval := C.HarfangScreenSpaceToClipSpace(screenToC, resolutionToC) retvalGO := &Vec3{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { - C.WrapVec3Free(cleanval.h) + C.HarfangVec3Free(cleanval.h) }) return retvalGO } @@ -19045,7 +20253,7 @@ func ProjectToScreenSpace(proj *Mat44, view *Vec3, resolution *Vec2) (bool, *Vec resolutionToC := resolution.h screen := NewVec3() screenToC := screen.h - retval := C.WrapProjectToScreenSpace(projToC, viewToC, resolutionToC, screenToC) + retval := C.HarfangProjectToScreenSpace(projToC, viewToC, resolutionToC, screenToC) return bool(retval), screen } @@ -19056,7 +20264,7 @@ func ProjectOrthoToScreenSpace(proj *Mat44, view *Vec3, resolution *Vec2) (bool, resolutionToC := resolution.h screen := NewVec3() screenToC := screen.h - retval := C.WrapProjectOrthoToScreenSpace(projToC, viewToC, resolutionToC, screenToC) + retval := C.HarfangProjectOrthoToScreenSpace(projToC, viewToC, resolutionToC, screenToC) return bool(retval), screen } @@ -19067,7 +20275,7 @@ func UnprojectFromScreenSpace(invproj *Mat44, screen *Vec3, resolution *Vec2) (b resolutionToC := resolution.h view := NewVec3() viewToC := view.h - retval := C.WrapUnprojectFromScreenSpace(invprojToC, screenToC, resolutionToC, viewToC) + retval := C.HarfangUnprojectFromScreenSpace(invprojToC, screenToC, resolutionToC, viewToC) return bool(retval), view } @@ -19078,7 +20286,7 @@ func UnprojectOrthoFromScreenSpace(invproj *Mat44, screen *Vec3, resolution *Vec resolutionToC := resolution.h view := NewVec3() viewToC := view.h - retval := C.WrapUnprojectOrthoFromScreenSpace(invprojToC, screenToC, resolutionToC, viewToC) + retval := C.HarfangUnprojectOrthoFromScreenSpace(invprojToC, screenToC, resolutionToC, viewToC) return bool(retval), view } @@ -19086,17 +20294,17 @@ func UnprojectOrthoFromScreenSpace(invproj *Mat44, screen *Vec3, resolution *Vec func ProjectZToClipSpace(z float32, proj *Mat44) float32 { zToC := C.float(z) projToC := proj.h - retval := C.WrapProjectZToClipSpace(zToC, projToC) + retval := C.HarfangProjectZToClipSpace(zToC, projToC) return float32(retval) } // MakeFrustum Create a projection frustum. This object can then be used to perform culling using [harfang.TestVisibility]. ```python # Compute a perspective matrix proj = hg.ComputePerspectiveProjectionMatrix(0.1, 1000, hg.FovToZoomFactor(math.pi/4), 1280/720) # Make a frustum from this projection matrix frustum = hg.MakeFrustum(proj) ``` func MakeFrustum(projection *Mat44) *Frustum { projectionToC := projection.h - retval := C.WrapMakeFrustum(projectionToC) + retval := C.HarfangMakeFrustum(projectionToC) retvalGO := &Frustum{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Frustum) { - C.WrapFrustumFree(cleanval.h) + C.HarfangFrustumFree(cleanval.h) }) return retvalGO } @@ -19105,10 +20313,10 @@ func MakeFrustum(projection *Mat44) *Frustum { func MakeFrustumWithMtx(projection *Mat44, mtx *Mat4) *Frustum { projectionToC := projection.h mtxToC := mtx.h - retval := C.WrapMakeFrustumWithMtx(projectionToC, mtxToC) + retval := C.HarfangMakeFrustumWithMtx(projectionToC, mtxToC) retvalGO := &Frustum{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Frustum) { - C.WrapFrustumFree(cleanval.h) + C.HarfangFrustumFree(cleanval.h) }) return retvalGO } @@ -19117,10 +20325,10 @@ func MakeFrustumWithMtx(projection *Mat44, mtx *Mat4) *Frustum { func TransformFrustum(frustum *Frustum, mtx *Mat4) *Frustum { frustumToC := frustum.h mtxToC := mtx.h - retval := C.WrapTransformFrustum(frustumToC, mtxToC) + retval := C.HarfangTransformFrustum(frustumToC, mtxToC) retvalGO := &Frustum{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Frustum) { - C.WrapFrustumFree(cleanval.h) + C.HarfangFrustumFree(cleanval.h) }) return retvalGO } @@ -19130,7 +20338,7 @@ func TestVisibilityWithCountPoints(frustum *Frustum, count uint32, points *Vec3) frustumToC := frustum.h countToC := C.uint32_t(count) pointsToC := points.h - retval := C.WrapTestVisibilityWithCountPoints(frustumToC, countToC, pointsToC) + retval := C.HarfangTestVisibilityWithCountPoints(frustumToC, countToC, pointsToC) return Visibility(retval) } @@ -19140,7 +20348,7 @@ func TestVisibilityWithCountPointsDistance(frustum *Frustum, count uint32, point countToC := C.uint32_t(count) pointsToC := points.h distanceToC := C.float(distance) - retval := C.WrapTestVisibilityWithCountPointsDistance(frustumToC, countToC, pointsToC, distanceToC) + retval := C.HarfangTestVisibilityWithCountPointsDistance(frustumToC, countToC, pointsToC, distanceToC) return Visibility(retval) } @@ -19149,7 +20357,7 @@ func TestVisibilityWithOriginRadius(frustum *Frustum, origin *Vec3, radius float frustumToC := frustum.h originToC := origin.h radiusToC := C.float(radius) - retval := C.WrapTestVisibilityWithOriginRadius(frustumToC, originToC, radiusToC) + retval := C.HarfangTestVisibilityWithOriginRadius(frustumToC, originToC, radiusToC) return Visibility(retval) } @@ -19157,26 +20365,26 @@ func TestVisibilityWithOriginRadius(frustum *Frustum, origin *Vec3, radius float func TestVisibility(frustum *Frustum, minmax *MinMax) Visibility { frustumToC := frustum.h minmaxToC := minmax.h - retval := C.WrapTestVisibility(frustumToC, minmaxToC) + retval := C.HarfangTestVisibility(frustumToC, minmaxToC) return Visibility(retval) } // WindowSystemInit Initialize the Window system. func WindowSystemInit() { - C.WrapWindowSystemInit() + C.HarfangWindowSystemInit() } // WindowSystemShutdown Shutdown the window system. See [harfang.WindowSystemInit]. func WindowSystemShutdown() { - C.WrapWindowSystemShutdown() + C.HarfangWindowSystemShutdown() } // GetMonitors Return a list of monitors connected to the system. func GetMonitors() *MonitorList { - retval := C.WrapGetMonitors() + retval := C.HarfangGetMonitors() retvalGO := &MonitorList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MonitorList) { - C.WrapMonitorListFree(cleanval.h) + C.HarfangMonitorListFree(cleanval.h) }) return retvalGO } @@ -19184,10 +20392,10 @@ func GetMonitors() *MonitorList { // GetMonitorRect Returns a rectangle going from the position, in screen coordinates, of the upper-left corner of the specified monitor to the position of the lower-right corner. func GetMonitorRect(monitor *Monitor) *IntRect { monitorToC := monitor.h - retval := C.WrapGetMonitorRect(monitorToC) + retval := C.HarfangGetMonitorRect(monitorToC) retvalGO := &IntRect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IntRect) { - C.WrapIntRectFree(cleanval.h) + C.HarfangIntRectFree(cleanval.h) }) return retvalGO } @@ -19195,31 +20403,31 @@ func GetMonitorRect(monitor *Monitor) *IntRect { // IsPrimaryMonitor Return `true` if the monitor is the primary host device monitor, `false` otherwise. func IsPrimaryMonitor(monitor *Monitor) bool { monitorToC := monitor.h - retval := C.WrapIsPrimaryMonitor(monitorToC) + retval := C.HarfangIsPrimaryMonitor(monitorToC) return bool(retval) } // IsMonitorConnected Test if the specified monitor is connected to the host device. func IsMonitorConnected(monitor *Monitor) bool { monitorToC := monitor.h - retval := C.WrapIsMonitorConnected(monitorToC) + retval := C.HarfangIsMonitorConnected(monitorToC) return bool(retval) } // GetMonitorName Return the monitor name. func GetMonitorName(monitor *Monitor) string { monitorToC := monitor.h - retval := C.WrapGetMonitorName(monitorToC) + retval := C.HarfangGetMonitorName(monitorToC) return C.GoString(retval) } // GetMonitorSizeMM Returns the size, in millimetres, of the display area of the specified monitor. func GetMonitorSizeMM(monitor *Monitor) *IVec2 { monitorToC := monitor.h - retval := C.WrapGetMonitorSizeMM(monitorToC) + retval := C.HarfangGetMonitorSizeMM(monitorToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -19229,7 +20437,7 @@ func GetMonitorModes(monitor *Monitor) (bool, *MonitorModeList) { monitorToC := monitor.h modes := NewMonitorModeList() modesToC := modes.h - retval := C.WrapGetMonitorModes(monitorToC, modesToC) + retval := C.HarfangGetMonitorModes(monitorToC, modesToC) return bool(retval), modes } @@ -19237,7 +20445,7 @@ func GetMonitorModes(monitor *Monitor) (bool, *MonitorModeList) { func NewWindow(width int32, height int32) *Window { widthToC := C.int32_t(width) heightToC := C.int32_t(height) - retval := C.WrapNewWindow(widthToC, heightToC) + retval := C.HarfangNewWindow(widthToC, heightToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19250,7 +20458,7 @@ func NewWindowWithBpp(width int32, height int32, bpp int32) *Window { widthToC := C.int32_t(width) heightToC := C.int32_t(height) bppToC := C.int32_t(bpp) - retval := C.WrapNewWindowWithBpp(widthToC, heightToC, bppToC) + retval := C.HarfangNewWindowWithBpp(widthToC, heightToC, bppToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19264,7 +20472,7 @@ func NewWindowWithBppVisibility(width int32, height int32, bpp int32, visibility heightToC := C.int32_t(height) bppToC := C.int32_t(bpp) visibilityToC := C.int32_t(visibility) - retval := C.WrapNewWindowWithBppVisibility(widthToC, heightToC, bppToC, visibilityToC) + retval := C.HarfangNewWindowWithBppVisibility(widthToC, heightToC, bppToC, visibilityToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19278,7 +20486,7 @@ func NewWindowWithTitleWidthHeight(title string, width int32, height int32) *Win defer idFintitleToC() widthToC := C.int32_t(width) heightToC := C.int32_t(height) - retval := C.WrapNewWindowWithTitleWidthHeight(titleToC, widthToC, heightToC) + retval := C.HarfangNewWindowWithTitleWidthHeight(titleToC, widthToC, heightToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19293,7 +20501,7 @@ func NewWindowWithTitleWidthHeightBpp(title string, width int32, height int32, b widthToC := C.int32_t(width) heightToC := C.int32_t(height) bppToC := C.int32_t(bpp) - retval := C.WrapNewWindowWithTitleWidthHeightBpp(titleToC, widthToC, heightToC, bppToC) + retval := C.HarfangNewWindowWithTitleWidthHeightBpp(titleToC, widthToC, heightToC, bppToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19309,7 +20517,7 @@ func NewWindowWithTitleWidthHeightBppVisibility(title string, width int32, heigh heightToC := C.int32_t(height) bppToC := C.int32_t(bpp) visibilityToC := C.int32_t(visibility) - retval := C.WrapNewWindowWithTitleWidthHeightBppVisibility(titleToC, widthToC, heightToC, bppToC, visibilityToC) + retval := C.HarfangNewWindowWithTitleWidthHeightBppVisibility(titleToC, widthToC, heightToC, bppToC, visibilityToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19321,7 +20529,7 @@ func NewWindowWithTitleWidthHeightBppVisibility(title string, width int32, heigh func NewFullscreenWindow(monitor *Monitor, modeindex int32) *Window { monitorToC := monitor.h modeindexToC := C.int32_t(modeindex) - retval := C.WrapNewFullscreenWindow(monitorToC, modeindexToC) + retval := C.HarfangNewFullscreenWindow(monitorToC, modeindexToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19334,7 +20542,7 @@ func NewFullscreenWindowWithRotation(monitor *Monitor, modeindex int32, rotation monitorToC := monitor.h modeindexToC := C.int32_t(modeindex) rotationToC := C.uchar(rotation) - retval := C.WrapNewFullscreenWindowWithRotation(monitorToC, modeindexToC, rotationToC) + retval := C.HarfangNewFullscreenWindowWithRotation(monitorToC, modeindexToC, rotationToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19348,7 +20556,7 @@ func NewFullscreenWindowWithTitleMonitorModeIndex(title string, monitor *Monitor defer idFintitleToC() monitorToC := monitor.h modeindexToC := C.int32_t(modeindex) - retval := C.WrapNewFullscreenWindowWithTitleMonitorModeIndex(titleToC, monitorToC, modeindexToC) + retval := C.HarfangNewFullscreenWindowWithTitleMonitorModeIndex(titleToC, monitorToC, modeindexToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19363,7 +20571,7 @@ func NewFullscreenWindowWithTitleMonitorModeIndexRotation(title string, monitor monitorToC := monitor.h modeindexToC := C.int32_t(modeindex) rotationToC := C.uchar(rotation) - retval := C.WrapNewFullscreenWindowWithTitleMonitorModeIndexRotation(titleToC, monitorToC, modeindexToC, rotationToC) + retval := C.HarfangNewFullscreenWindowWithTitleMonitorModeIndexRotation(titleToC, monitorToC, modeindexToC, rotationToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19374,7 +20582,7 @@ func NewFullscreenWindowWithTitleMonitorModeIndexRotation(title string, monitor // NewWindowFrom Wrap a native window handle in a [harfang.Window] object. func NewWindowFrom(handle *VoidPointer) *Window { handleToC := handle.h - retval := C.WrapNewWindowFrom(handleToC) + retval := C.HarfangNewWindowFrom(handleToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19385,7 +20593,7 @@ func NewWindowFrom(handle *VoidPointer) *Window { // GetWindowHandle Return the system native window handle. func GetWindowHandle(window *Window) *VoidPointer { windowToC := window.h - retval := C.WrapGetWindowHandle(windowToC) + retval := C.HarfangGetWindowHandle(windowToC) var retvalGO *VoidPointer if retval != nil { retvalGO = &VoidPointer{h: retval} @@ -19396,14 +20604,14 @@ func GetWindowHandle(window *Window) *VoidPointer { // UpdateWindow Update a window on the host system. func UpdateWindow(window *Window) bool { windowToC := window.h - retval := C.WrapUpdateWindow(windowToC) + retval := C.HarfangUpdateWindow(windowToC) return bool(retval) } // DestroyWindow Destroy a window object. func DestroyWindow(window *Window) bool { windowToC := window.h - retval := C.WrapDestroyWindow(windowToC) + retval := C.HarfangDestroyWindow(windowToC) return bool(retval) } @@ -19414,7 +20622,7 @@ func GetWindowClientSize(window *Window) (bool, *int32, *int32) { widthToC := (*C.int32_t)(unsafe.Pointer(width)) height := new(int32) heightToC := (*C.int32_t)(unsafe.Pointer(height)) - retval := C.WrapGetWindowClientSize(windowToC, widthToC, heightToC) + retval := C.HarfangGetWindowClientSize(windowToC, widthToC, heightToC) return bool(retval), (*int32)(unsafe.Pointer(widthToC)), (*int32)(unsafe.Pointer(heightToC)) } @@ -19423,17 +20631,17 @@ func SetWindowClientSize(window *Window, width int32, height int32) bool { windowToC := window.h widthToC := C.int32_t(width) heightToC := C.int32_t(height) - retval := C.WrapSetWindowClientSize(windowToC, widthToC, heightToC) + retval := C.HarfangSetWindowClientSize(windowToC, widthToC, heightToC) return bool(retval) } // GetWindowContentScale ... func GetWindowContentScale(window *Window) *Vec2 { windowToC := window.h - retval := C.WrapGetWindowContentScale(windowToC) + retval := C.HarfangGetWindowContentScale(windowToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -19444,7 +20652,7 @@ func GetWindowTitle(window *Window) (bool, *string) { title := new(string) titleToC1 := C.CString(*title) titleToC := &titleToC1 - retval := C.WrapGetWindowTitle(windowToC, titleToC) + retval := C.HarfangGetWindowTitle(windowToC, titleToC) titleToCGO := string(C.GoString(*titleToC)) return bool(retval), &titleToCGO } @@ -19454,20 +20662,20 @@ func SetWindowTitle(window *Window, title string) bool { windowToC := window.h titleToC, idFintitleToC := wrapString(title) defer idFintitleToC() - retval := C.WrapSetWindowTitle(windowToC, titleToC) + retval := C.HarfangSetWindowTitle(windowToC, titleToC) return bool(retval) } // WindowHasFocus Return `true` if the provided window has focus, `false` otherwise. func WindowHasFocus(window *Window) bool { windowToC := window.h - retval := C.WrapWindowHasFocus(windowToC) + retval := C.HarfangWindowHasFocus(windowToC) return bool(retval) } // GetWindowInFocus Return the system window with input focus. func GetWindowInFocus() *Window { - retval := C.WrapGetWindowInFocus() + retval := C.HarfangGetWindowInFocus() var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19478,10 +20686,10 @@ func GetWindowInFocus() *Window { // GetWindowPos Return a window position on screen. func GetWindowPos(window *Window) *IVec2 { windowToC := window.h - retval := C.WrapGetWindowPos(windowToC) + retval := C.HarfangGetWindowPos(windowToC) retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) }) return retvalGO } @@ -19490,48 +20698,53 @@ func GetWindowPos(window *Window) *IVec2 { func SetWindowPos(window *Window, position *IVec2) bool { windowToC := window.h positionToC := position.h - retval := C.WrapSetWindowPos(windowToC, positionToC) + retval := C.HarfangSetWindowPos(windowToC, positionToC) return bool(retval) } // IsWindowOpen Return `true` if the window is open, `false` otherwise. func IsWindowOpen(window *Window) bool { windowToC := window.h - retval := C.WrapIsWindowOpen(windowToC) + retval := C.HarfangIsWindowOpen(windowToC) return bool(retval) } // ShowCursor Show the system mouse cursor. See [harfang.HideCursor]. func ShowCursor() { - C.WrapShowCursor() + C.HarfangShowCursor() } // HideCursor Hide the system mouse cursor. See [harfang.ShowCursor]. func HideCursor() { - C.WrapHideCursor() + C.HarfangHideCursor() +} + +// DisableCursor ... +func DisableCursor() { + C.HarfangDisableCursor() } // ColorToGrayscale Return the grayscale representation of a color. A weighted average is used to account for human perception of colors. func ColorToGrayscale(color *Color) float32 { colorToC := color.h - retval := C.WrapColorToGrayscale(colorToC) + retval := C.HarfangColorToGrayscale(colorToC) return float32(retval) } // ColorToRGBA32 Return a 32 bit RGBA integer from a color. func ColorToRGBA32(color *Color) uint32 { colorToC := color.h - retval := C.WrapColorToRGBA32(colorToC) + retval := C.HarfangColorToRGBA32(colorToC) return uint32(retval) } // ColorFromRGBA32 Create a color from a 32 bit RGBA integer. func ColorFromRGBA32(rgba32 uint32) *Color { rgba32ToC := C.uint32_t(rgba32) - retval := C.WrapColorFromRGBA32(rgba32ToC) + retval := C.HarfangColorFromRGBA32(rgba32ToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19539,17 +20752,17 @@ func ColorFromRGBA32(rgba32 uint32) *Color { // ColorToABGR32 Return a 32 bit ABGR integer from a color. func ColorToABGR32(color *Color) uint32 { colorToC := color.h - retval := C.WrapColorToABGR32(colorToC) + retval := C.HarfangColorToABGR32(colorToC) return uint32(retval) } // ColorFromABGR32 Create a color from a 32 bit ABGR integer. func ColorFromABGR32(rgba32 uint32) *Color { rgba32ToC := C.uint32_t(rgba32) - retval := C.WrapColorFromABGR32(rgba32ToC) + retval := C.HarfangColorFromABGR32(rgba32ToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19557,7 +20770,7 @@ func ColorFromABGR32(rgba32 uint32) *Color { // ARGB32ToRGBA32 Convert a 32 bit integer ARGB color to RGBA. func ARGB32ToRGBA32(argb uint32) uint32 { argbToC := C.uint32_t(argb) - retval := C.WrapARGB32ToRGBA32(argbToC) + retval := C.HarfangARGB32ToRGBA32(argbToC) return uint32(retval) } @@ -19566,7 +20779,7 @@ func RGBA32(r uint8, g uint8, b uint8) uint32 { rToC := C.uchar(r) gToC := C.uchar(g) bToC := C.uchar(b) - retval := C.WrapRGBA32(rToC, gToC, bToC) + retval := C.HarfangRGBA32(rToC, gToC, bToC) return uint32(retval) } @@ -19576,7 +20789,7 @@ func RGBA32WithA(r uint8, g uint8, b uint8, a uint8) uint32 { gToC := C.uchar(g) bToC := C.uchar(b) aToC := C.uchar(a) - retval := C.WrapRGBA32WithA(rToC, gToC, bToC, aToC) + retval := C.HarfangRGBA32WithA(rToC, gToC, bToC, aToC) return uint32(retval) } @@ -19585,7 +20798,7 @@ func ARGB32(r uint8, g uint8, b uint8) uint32 { rToC := C.uchar(r) gToC := C.uchar(g) bToC := C.uchar(b) - retval := C.WrapARGB32(rToC, gToC, bToC) + retval := C.HarfangARGB32(rToC, gToC, bToC) return uint32(retval) } @@ -19595,7 +20808,7 @@ func ARGB32WithA(r uint8, g uint8, b uint8, a uint8) uint32 { gToC := C.uchar(g) bToC := C.uchar(b) aToC := C.uchar(a) - retval := C.WrapARGB32WithA(rToC, gToC, bToC, aToC) + retval := C.HarfangARGB32WithA(rToC, gToC, bToC, aToC) return uint32(retval) } @@ -19603,10 +20816,10 @@ func ARGB32WithA(r uint8, g uint8, b uint8, a uint8) uint32 { func ChromaScale(color *Color, k float32) *Color { colorToC := color.h kToC := C.float(k) - retval := C.WrapChromaScale(colorToC, kToC) + retval := C.HarfangChromaScale(colorToC, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19615,10 +20828,10 @@ func ChromaScale(color *Color, k float32) *Color { func AlphaScale(color *Color, k float32) *Color { colorToC := color.h kToC := C.float(k) - retval := C.WrapAlphaScale(colorToC, kToC) + retval := C.HarfangAlphaScale(colorToC, kToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19626,10 +20839,10 @@ func AlphaScale(color *Color, k float32) *Color { // ColorFromVector3 Create a color from a 3d vector, alpha defaults to 1. func ColorFromVector3(v *Vec3) *Color { vToC := v.h - retval := C.WrapColorFromVector3(vToC) + retval := C.HarfangColorFromVector3(vToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19637,10 +20850,10 @@ func ColorFromVector3(v *Vec3) *Color { // ColorFromVector4 Return a 4-dimensional vector as a color. func ColorFromVector4(v *Vec4) *Color { vToC := v.h - retval := C.WrapColorFromVector4(vToC) + retval := C.HarfangColorFromVector4(vToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19650,10 +20863,10 @@ func ColorI(r int32, g int32, b int32) *Color { rToC := C.int32_t(r) gToC := C.int32_t(g) bToC := C.int32_t(b) - retval := C.WrapColorI(rToC, gToC, bToC) + retval := C.HarfangColorI(rToC, gToC, bToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19664,10 +20877,10 @@ func ColorIWithA(r int32, g int32, b int32, a int32) *Color { gToC := C.int32_t(g) bToC := C.int32_t(b) aToC := C.int32_t(a) - retval := C.WrapColorIWithA(rToC, gToC, bToC, aToC) + retval := C.HarfangColorIWithA(rToC, gToC, bToC, aToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19675,10 +20888,10 @@ func ColorIWithA(r int32, g int32, b int32, a int32) *Color { // ToHLS Convert input RGBA color to hue/luminance/saturation, alpha channel is left unmodified. func ToHLS(color *Color) *Color { colorToC := color.h - retval := C.WrapToHLS(colorToC) + retval := C.HarfangToHLS(colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19686,10 +20899,10 @@ func ToHLS(color *Color) *Color { // FromHLS Convert input hue/luminance/saturation color to RGBA, alpha channel is left unmodified. func FromHLS(color *Color) *Color { colorToC := color.h - retval := C.WrapFromHLS(colorToC) + retval := C.HarfangFromHLS(colorToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19698,10 +20911,10 @@ func FromHLS(color *Color) *Color { func SetSaturation(color *Color, saturation float32) *Color { colorToC := color.h saturationToC := C.float(saturation) - retval := C.WrapSetSaturation(colorToC, saturationToC) + retval := C.HarfangSetSaturation(colorToC, saturationToC) retvalGO := &Color{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Color) { - C.WrapColorFree(cleanval.h) + C.HarfangColorFree(cleanval.h) }) return retvalGO } @@ -19711,7 +20924,7 @@ func LoadJPG(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadJPG(pictToC, pathToC) + retval := C.HarfangLoadJPG(pictToC, pathToC) return bool(retval) } @@ -19720,7 +20933,7 @@ func LoadPNG(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadPNG(pictToC, pathToC) + retval := C.HarfangLoadPNG(pictToC, pathToC) return bool(retval) } @@ -19729,7 +20942,7 @@ func LoadGIF(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadGIF(pictToC, pathToC) + retval := C.HarfangLoadGIF(pictToC, pathToC) return bool(retval) } @@ -19738,7 +20951,7 @@ func LoadPSD(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadPSD(pictToC, pathToC) + retval := C.HarfangLoadPSD(pictToC, pathToC) return bool(retval) } @@ -19747,7 +20960,7 @@ func LoadTGA(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadTGA(pictToC, pathToC) + retval := C.HarfangLoadTGA(pictToC, pathToC) return bool(retval) } @@ -19756,7 +20969,7 @@ func LoadBMP(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadBMP(pictToC, pathToC) + retval := C.HarfangLoadBMP(pictToC, pathToC) return bool(retval) } @@ -19765,7 +20978,7 @@ func LoadPicture(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadPicture(pictToC, pathToC) + retval := C.HarfangLoadPicture(pictToC, pathToC) return bool(retval) } @@ -19774,7 +20987,7 @@ func SavePNG(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapSavePNG(pictToC, pathToC) + retval := C.HarfangSavePNG(pictToC, pathToC) return bool(retval) } @@ -19783,7 +20996,7 @@ func SaveTGA(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapSaveTGA(pictToC, pathToC) + retval := C.HarfangSaveTGA(pictToC, pathToC) return bool(retval) } @@ -19792,14 +21005,14 @@ func SaveBMP(pict *Picture, path string) bool { pictToC := pict.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapSaveBMP(pictToC, pathToC) + retval := C.HarfangSaveBMP(pictToC, pathToC) return bool(retval) } // RenderInit Initialize the render system. To change the states of the render system afterward use [harfang.RenderReset]. func RenderInit(window *Window) bool { windowToC := window.h - retval := C.WrapRenderInit(windowToC) + retval := C.HarfangRenderInit(windowToC) return bool(retval) } @@ -19807,7 +21020,7 @@ func RenderInit(window *Window) bool { func RenderInitWithType(window *Window, typeGo RendererType) bool { windowToC := window.h typeGoToC := C.int32_t(typeGo) - retval := C.WrapRenderInitWithType(windowToC, typeGoToC) + retval := C.HarfangRenderInitWithType(windowToC, typeGoToC) return bool(retval) } @@ -19816,7 +21029,7 @@ func RenderInitWithWidthHeightResetFlags(width int32, height int32, resetflags R widthToC := C.int32_t(width) heightToC := C.int32_t(height) resetflagsToC := C.uint32_t(resetflags) - retval := C.WrapRenderInitWithWidthHeightResetFlags(widthToC, heightToC, resetflagsToC) + retval := C.HarfangRenderInitWithWidthHeightResetFlags(widthToC, heightToC, resetflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19830,7 +21043,7 @@ func RenderInitWithWidthHeightResetFlagsFormat(width int32, height int32, resetf heightToC := C.int32_t(height) resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) - retval := C.WrapRenderInitWithWidthHeightResetFlagsFormat(widthToC, heightToC, resetflagsToC, formatToC) + retval := C.HarfangRenderInitWithWidthHeightResetFlagsFormat(widthToC, heightToC, resetflagsToC, formatToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19845,7 +21058,7 @@ func RenderInitWithWidthHeightResetFlagsFormatDebugFlags(width int32, height int resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) debugflagsToC := C.uint32_t(debugflags) - retval := C.WrapRenderInitWithWidthHeightResetFlagsFormatDebugFlags(widthToC, heightToC, resetflagsToC, formatToC, debugflagsToC) + retval := C.HarfangRenderInitWithWidthHeightResetFlagsFormatDebugFlags(widthToC, heightToC, resetflagsToC, formatToC, debugflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19858,7 +21071,7 @@ func RenderInitWithWidthHeightType(width int32, height int32, typeGo RendererTyp widthToC := C.int32_t(width) heightToC := C.int32_t(height) typeGoToC := C.int32_t(typeGo) - retval := C.WrapRenderInitWithWidthHeightType(widthToC, heightToC, typeGoToC) + retval := C.HarfangRenderInitWithWidthHeightType(widthToC, heightToC, typeGoToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19872,7 +21085,7 @@ func RenderInitWithWidthHeightTypeResetFlags(width int32, height int32, typeGo R heightToC := C.int32_t(height) typeGoToC := C.int32_t(typeGo) resetflagsToC := C.uint32_t(resetflags) - retval := C.WrapRenderInitWithWidthHeightTypeResetFlags(widthToC, heightToC, typeGoToC, resetflagsToC) + retval := C.HarfangRenderInitWithWidthHeightTypeResetFlags(widthToC, heightToC, typeGoToC, resetflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19887,7 +21100,7 @@ func RenderInitWithWidthHeightTypeResetFlagsFormat(width int32, height int32, ty typeGoToC := C.int32_t(typeGo) resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) - retval := C.WrapRenderInitWithWidthHeightTypeResetFlagsFormat(widthToC, heightToC, typeGoToC, resetflagsToC, formatToC) + retval := C.HarfangRenderInitWithWidthHeightTypeResetFlagsFormat(widthToC, heightToC, typeGoToC, resetflagsToC, formatToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19903,7 +21116,7 @@ func RenderInitWithWidthHeightTypeResetFlagsFormatDebugFlags(width int32, height resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) debugflagsToC := C.uint32_t(debugflags) - retval := C.WrapRenderInitWithWidthHeightTypeResetFlagsFormatDebugFlags(widthToC, heightToC, typeGoToC, resetflagsToC, formatToC, debugflagsToC) + retval := C.HarfangRenderInitWithWidthHeightTypeResetFlagsFormatDebugFlags(widthToC, heightToC, typeGoToC, resetflagsToC, formatToC, debugflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19918,7 +21131,7 @@ func RenderInitWithWindowTitleWidthHeightResetFlags(windowtitle string, width in widthToC := C.int32_t(width) heightToC := C.int32_t(height) resetflagsToC := C.uint32_t(resetflags) - retval := C.WrapRenderInitWithWindowTitleWidthHeightResetFlags(windowtitleToC, widthToC, heightToC, resetflagsToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightResetFlags(windowtitleToC, widthToC, heightToC, resetflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19934,7 +21147,7 @@ func RenderInitWithWindowTitleWidthHeightResetFlagsFormat(windowtitle string, wi heightToC := C.int32_t(height) resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) - retval := C.WrapRenderInitWithWindowTitleWidthHeightResetFlagsFormat(windowtitleToC, widthToC, heightToC, resetflagsToC, formatToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightResetFlagsFormat(windowtitleToC, widthToC, heightToC, resetflagsToC, formatToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19951,7 +21164,7 @@ func RenderInitWithWindowTitleWidthHeightResetFlagsFormatDebugFlags(windowtitle resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) debugflagsToC := C.uint32_t(debugflags) - retval := C.WrapRenderInitWithWindowTitleWidthHeightResetFlagsFormatDebugFlags(windowtitleToC, widthToC, heightToC, resetflagsToC, formatToC, debugflagsToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightResetFlagsFormatDebugFlags(windowtitleToC, widthToC, heightToC, resetflagsToC, formatToC, debugflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19966,7 +21179,7 @@ func RenderInitWithWindowTitleWidthHeightType(windowtitle string, width int32, h widthToC := C.int32_t(width) heightToC := C.int32_t(height) typeGoToC := C.int32_t(typeGo) - retval := C.WrapRenderInitWithWindowTitleWidthHeightType(windowtitleToC, widthToC, heightToC, typeGoToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightType(windowtitleToC, widthToC, heightToC, typeGoToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19982,7 +21195,7 @@ func RenderInitWithWindowTitleWidthHeightTypeResetFlags(windowtitle string, widt heightToC := C.int32_t(height) typeGoToC := C.int32_t(typeGo) resetflagsToC := C.uint32_t(resetflags) - retval := C.WrapRenderInitWithWindowTitleWidthHeightTypeResetFlags(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlags(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -19999,7 +21212,7 @@ func RenderInitWithWindowTitleWidthHeightTypeResetFlagsFormat(windowtitle string typeGoToC := C.int32_t(typeGo) resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) - retval := C.WrapRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormat(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC, formatToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormat(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC, formatToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -20017,7 +21230,7 @@ func RenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags(windowti resetflagsToC := C.uint32_t(resetflags) formatToC := C.int32_t(format) debugflagsToC := C.uint32_t(debugflags) - retval := C.WrapRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC, formatToC, debugflagsToC) + retval := C.HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags(windowtitleToC, widthToC, heightToC, typeGoToC, resetflagsToC, formatToC, debugflagsToC) var retvalGO *Window if retval != nil { retvalGO = &Window{h: retval} @@ -20027,7 +21240,7 @@ func RenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags(windowti // RenderShutdown Shutdown the render system. func RenderShutdown() { - C.WrapRenderShutdown() + C.HarfangRenderShutdown() } // RenderResetToWindow Resize the renderer backbuffer to the provided window client area dimensions. Return true if a reset was needed and carried out. @@ -20035,7 +21248,7 @@ func RenderResetToWindow(win *Window, width *int32, height *int32) bool { winToC := win.h widthToC := (*C.int32_t)(unsafe.Pointer(width)) heightToC := (*C.int32_t)(unsafe.Pointer(height)) - retval := C.WrapRenderResetToWindow(winToC, widthToC, heightToC) + retval := C.HarfangRenderResetToWindow(winToC, widthToC, heightToC) return bool(retval) } @@ -20045,7 +21258,7 @@ func RenderResetToWindowWithResetFlags(win *Window, width *int32, height *int32, widthToC := (*C.int32_t)(unsafe.Pointer(width)) heightToC := (*C.int32_t)(unsafe.Pointer(height)) resetflagsToC := C.uint32_t(resetflags) - retval := C.WrapRenderResetToWindowWithResetFlags(winToC, widthToC, heightToC, resetflagsToC) + retval := C.HarfangRenderResetToWindowWithResetFlags(winToC, widthToC, heightToC, resetflagsToC) return bool(retval) } @@ -20053,7 +21266,7 @@ func RenderResetToWindowWithResetFlags(win *Window, width *int32, height *int32, func RenderReset(width uint32, height uint32) { widthToC := C.uint32_t(width) heightToC := C.uint32_t(height) - C.WrapRenderReset(widthToC, heightToC) + C.HarfangRenderReset(widthToC, heightToC) } // RenderResetWithFlags Change the states of the render system at runtime. @@ -20061,7 +21274,7 @@ func RenderResetWithFlags(width uint32, height uint32, flags ResetFlags) { widthToC := C.uint32_t(width) heightToC := C.uint32_t(height) flagsToC := C.uint32_t(flags) - C.WrapRenderResetWithFlags(widthToC, heightToC, flagsToC) + C.HarfangRenderResetWithFlags(widthToC, heightToC, flagsToC) } // RenderResetWithFlagsFormat Change the states of the render system at runtime. @@ -20070,20 +21283,20 @@ func RenderResetWithFlagsFormat(width uint32, height uint32, flags ResetFlags, f heightToC := C.uint32_t(height) flagsToC := C.uint32_t(flags) formatToC := C.int32_t(format) - C.WrapRenderResetWithFlagsFormat(widthToC, heightToC, flagsToC, formatToC) + C.HarfangRenderResetWithFlagsFormat(widthToC, heightToC, flagsToC, formatToC) } // SetRenderDebug Set render system debug flags. func SetRenderDebug(flags DebugFlags) { flagsToC := C.uint32_t(flags) - C.WrapSetRenderDebug(flagsToC) + C.HarfangSetRenderDebug(flagsToC) } // SetViewClear Set a view clear parameters. See [harfang.man.Views]. func SetViewClear(viewid uint16, flags ClearFlags) { viewidToC := C.ushort(viewid) flagsToC := C.ushort(flags) - C.WrapSetViewClear(viewidToC, flagsToC) + C.HarfangSetViewClear(viewidToC, flagsToC) } // SetViewClearWithRgba Set a view clear parameters. See [harfang.man.Views]. @@ -20091,7 +21304,7 @@ func SetViewClearWithRgba(viewid uint16, flags ClearFlags, rgba uint32) { viewidToC := C.ushort(viewid) flagsToC := C.ushort(flags) rgbaToC := C.uint32_t(rgba) - C.WrapSetViewClearWithRgba(viewidToC, flagsToC, rgbaToC) + C.HarfangSetViewClearWithRgba(viewidToC, flagsToC, rgbaToC) } // SetViewClearWithRgbaDepth Set a view clear parameters. See [harfang.man.Views]. @@ -20100,7 +21313,7 @@ func SetViewClearWithRgbaDepth(viewid uint16, flags ClearFlags, rgba uint32, dep flagsToC := C.ushort(flags) rgbaToC := C.uint32_t(rgba) depthToC := C.float(depth) - C.WrapSetViewClearWithRgbaDepth(viewidToC, flagsToC, rgbaToC, depthToC) + C.HarfangSetViewClearWithRgbaDepth(viewidToC, flagsToC, rgbaToC, depthToC) } // SetViewClearWithRgbaDepthStencil Set a view clear parameters. See [harfang.man.Views]. @@ -20110,7 +21323,7 @@ func SetViewClearWithRgbaDepthStencil(viewid uint16, flags ClearFlags, rgba uint rgbaToC := C.uint32_t(rgba) depthToC := C.float(depth) stencilToC := C.uchar(stencil) - C.WrapSetViewClearWithRgbaDepthStencil(viewidToC, flagsToC, rgbaToC, depthToC, stencilToC) + C.HarfangSetViewClearWithRgbaDepthStencil(viewidToC, flagsToC, rgbaToC, depthToC, stencilToC) } // SetViewClearWithCol Set a view clear parameters. See [harfang.man.Views]. @@ -20118,7 +21331,7 @@ func SetViewClearWithCol(viewid uint16, flags ClearFlags, col *Color) { viewidToC := C.ushort(viewid) flagsToC := C.ushort(flags) colToC := col.h - C.WrapSetViewClearWithCol(viewidToC, flagsToC, colToC) + C.HarfangSetViewClearWithCol(viewidToC, flagsToC, colToC) } // SetViewClearWithColDepth Set a view clear parameters. See [harfang.man.Views]. @@ -20127,7 +21340,7 @@ func SetViewClearWithColDepth(viewid uint16, flags ClearFlags, col *Color, depth flagsToC := C.ushort(flags) colToC := col.h depthToC := C.float(depth) - C.WrapSetViewClearWithColDepth(viewidToC, flagsToC, colToC, depthToC) + C.HarfangSetViewClearWithColDepth(viewidToC, flagsToC, colToC, depthToC) } // SetViewClearWithColDepthStencil Set a view clear parameters. See [harfang.man.Views]. @@ -20137,7 +21350,7 @@ func SetViewClearWithColDepthStencil(viewid uint16, flags ClearFlags, col *Color colToC := col.h depthToC := C.float(depth) stencilToC := C.uchar(stencil) - C.WrapSetViewClearWithColDepthStencil(viewidToC, flagsToC, colToC, depthToC, stencilToC) + C.HarfangSetViewClearWithColDepthStencil(viewidToC, flagsToC, colToC, depthToC, stencilToC) } // SetViewRect ... @@ -20147,32 +21360,32 @@ func SetViewRect(viewid uint16, x uint16, y uint16, w uint16, h uint16) { yToC := C.ushort(y) wToC := C.ushort(w) hToC := C.ushort(h) - C.WrapSetViewRect(viewidToC, xToC, yToC, wToC, hToC) + C.HarfangSetViewRect(viewidToC, xToC, yToC, wToC, hToC) } // SetViewFrameBuffer Set view output framebuffer. See [harfang.man.Views]. func SetViewFrameBuffer(viewid uint16, handle *FrameBufferHandle) { viewidToC := C.ushort(viewid) handleToC := handle.h - C.WrapSetViewFrameBuffer(viewidToC, handleToC) + C.HarfangSetViewFrameBuffer(viewidToC, handleToC) } // SetViewMode Set view draw ordering mode. func SetViewMode(viewid uint16, mode ViewMode) { viewidToC := C.ushort(viewid) modeToC := C.int32_t(mode) - C.WrapSetViewMode(viewidToC, modeToC) + C.HarfangSetViewMode(viewidToC, modeToC) } // Touch Submit an empty primitive to the view. See [harfang.Frame]. func Touch(viewid uint16) { viewidToC := C.ushort(viewid) - C.WrapTouch(viewidToC) + C.HarfangTouch(viewidToC) } // Frame Advance the rendering backend to the next frame, execute all queued rendering commands. This function returns the backend current frame. The frame counter is used by asynchronous functions such as [harfang.CaptureTexture]. You must wait for the frame counter to reach or exceed the value returned by an asynchronous function before accessing its result. func Frame() uint32 { - retval := C.WrapFrame() + retval := C.HarfangFrame() return uint32(retval) } @@ -20181,7 +21394,7 @@ func SetViewTransform(viewid uint16, view *Mat4, proj *Mat44) { viewidToC := C.ushort(viewid) viewToC := view.h projToC := proj.h - C.WrapSetViewTransform(viewidToC, viewToC, projToC) + C.HarfangSetViewTransform(viewidToC, viewToC, projToC) } // SetView2D High-level wrapper function to setup a view for 2D rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20191,7 +21404,7 @@ func SetView2D(id uint16, x int32, y int32, resx int32, resy int32) { yToC := C.int32_t(y) resxToC := C.int32_t(resx) resyToC := C.int32_t(resy) - C.WrapSetView2D(idToC, xToC, yToC, resxToC, resyToC) + C.HarfangSetView2D(idToC, xToC, yToC, resxToC, resyToC) } // SetView2DWithZnearZfar High-level wrapper function to setup a view for 2D rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20203,7 +21416,7 @@ func SetView2DWithZnearZfar(id uint16, x int32, y int32, resx int32, resy int32, resyToC := C.int32_t(resy) znearToC := C.float(znear) zfarToC := C.float(zfar) - C.WrapSetView2DWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC) + C.HarfangSetView2DWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC) } // SetView2DWithZnearZfarFlagsColorDepthStencil High-level wrapper function to setup a view for 2D rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20219,7 +21432,7 @@ func SetView2DWithZnearZfarFlagsColorDepthStencil(id uint16, x int32, y int32, r colorToC := color.h depthToC := C.float(depth) stencilToC := C.uchar(stencil) - C.WrapSetView2DWithZnearZfarFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC, flagsToC, colorToC, depthToC, stencilToC) + C.HarfangSetView2DWithZnearZfarFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC, flagsToC, colorToC, depthToC, stencilToC) } // SetView2DWithZnearZfarFlagsColorDepthStencilYUp High-level wrapper function to setup a view for 2D rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20236,7 +21449,7 @@ func SetView2DWithZnearZfarFlagsColorDepthStencilYUp(id uint16, x int32, y int32 depthToC := C.float(depth) stencilToC := C.uchar(stencil) yupToC := C.bool(yup) - C.WrapSetView2DWithZnearZfarFlagsColorDepthStencilYUp(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC, flagsToC, colorToC, depthToC, stencilToC, yupToC) + C.HarfangSetView2DWithZnearZfarFlagsColorDepthStencilYUp(idToC, xToC, yToC, resxToC, resyToC, znearToC, zfarToC, flagsToC, colorToC, depthToC, stencilToC, yupToC) } // SetViewPerspective High-level wrapper function to setup a view for 3D perspective rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20247,7 +21460,7 @@ func SetViewPerspective(id uint16, x int32, y int32, resx int32, resy int32, wor resxToC := C.int32_t(resx) resyToC := C.int32_t(resy) worldToC := world.h - C.WrapSetViewPerspective(idToC, xToC, yToC, resxToC, resyToC, worldToC) + C.HarfangSetViewPerspective(idToC, xToC, yToC, resxToC, resyToC, worldToC) } // SetViewPerspectiveWithZnearZfar High-level wrapper function to setup a view for 3D perspective rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20260,7 +21473,7 @@ func SetViewPerspectiveWithZnearZfar(id uint16, x int32, y int32, resx int32, re worldToC := world.h znearToC := C.float(znear) zfarToC := C.float(zfar) - C.WrapSetViewPerspectiveWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC) + C.HarfangSetViewPerspectiveWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC) } // SetViewPerspectiveWithZnearZfarZoomFactor High-level wrapper function to setup a view for 3D perspective rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20274,7 +21487,7 @@ func SetViewPerspectiveWithZnearZfarZoomFactor(id uint16, x int32, y int32, resx znearToC := C.float(znear) zfarToC := C.float(zfar) zoomfactorToC := C.float(zoomfactor) - C.WrapSetViewPerspectiveWithZnearZfarZoomFactor(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, zoomfactorToC) + C.HarfangSetViewPerspectiveWithZnearZfarZoomFactor(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, zoomfactorToC) } // SetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil High-level wrapper function to setup a view for 3D perspective rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20292,7 +21505,7 @@ func SetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil(id uint16, colorToC := color.h depthToC := C.float(depth) stencilToC := C.uchar(stencil) - C.WrapSetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, zoomfactorToC, flagsToC, colorToC, depthToC, stencilToC) + C.HarfangSetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, zoomfactorToC, flagsToC, colorToC, depthToC, stencilToC) } // SetViewOrthographic High-level wrapper function to setup a view for 3D orthographic rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20303,7 +21516,7 @@ func SetViewOrthographic(id uint16, x int32, y int32, resx int32, resy int32, wo resxToC := C.int32_t(resx) resyToC := C.int32_t(resy) worldToC := world.h - C.WrapSetViewOrthographic(idToC, xToC, yToC, resxToC, resyToC, worldToC) + C.HarfangSetViewOrthographic(idToC, xToC, yToC, resxToC, resyToC, worldToC) } // SetViewOrthographicWithZnearZfar High-level wrapper function to setup a view for 3D orthographic rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20316,7 +21529,7 @@ func SetViewOrthographicWithZnearZfar(id uint16, x int32, y int32, resx int32, r worldToC := world.h znearToC := C.float(znear) zfarToC := C.float(zfar) - C.WrapSetViewOrthographicWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC) + C.HarfangSetViewOrthographicWithZnearZfar(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC) } // SetViewOrthographicWithZnearZfarSize High-level wrapper function to setup a view for 3D orthographic rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20330,7 +21543,7 @@ func SetViewOrthographicWithZnearZfarSize(id uint16, x int32, y int32, resx int3 znearToC := C.float(znear) zfarToC := C.float(zfar) sizeToC := C.float(size) - C.WrapSetViewOrthographicWithZnearZfarSize(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, sizeToC) + C.HarfangSetViewOrthographicWithZnearZfarSize(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, sizeToC) } // SetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil High-level wrapper function to setup a view for 3D orthographic rendering. This function calls [harfang.SetViewClear], [harfang.SetViewRect] then [harfang.SetViewTransform]. @@ -20348,65 +21561,65 @@ func SetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil(id uint16, x int colorToC := color.h depthToC := C.float(depth) stencilToC := C.uchar(stencil) - C.WrapSetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, sizeToC, flagsToC, colorToC, depthToC, stencilToC) + C.HarfangSetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil(idToC, xToC, yToC, resxToC, resyToC, worldToC, znearToC, zfarToC, sizeToC, flagsToC, colorToC, depthToC, stencilToC) } // VertexLayoutPosFloatNormFloat Simple vertex layout with float position and normal. ```python vtx_layout = VertexLayout() vtx_layout.Begin() vtx_layout.Add(hg.A_Position, 3, hg.AT_Float) vtx_layout.Add(hg.A_Normal, 3, hg.AT_Float) vtx_layout.End() ``` func VertexLayoutPosFloatNormFloat() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatNormFloat() + retval := C.HarfangVertexLayoutPosFloatNormFloat() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // VertexLayoutPosFloatNormUInt8 Simple vertex layout with float position and 8-bit unsigned integer normal. ```python vtx_layout = VertexLayout() vtx_layout.Begin() vtx_layout.Add(hg.A_Position, 3, hg.AT_Float) vtx_layout.Add(hg.A_Normal, 3, hg.AT_Uint8, True, True) vtx_layout.End() ``` func VertexLayoutPosFloatNormUInt8() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatNormUInt8() + retval := C.HarfangVertexLayoutPosFloatNormUInt8() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // VertexLayoutPosFloatColorFloat ... func VertexLayoutPosFloatColorFloat() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatColorFloat() + retval := C.HarfangVertexLayoutPosFloatColorFloat() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // VertexLayoutPosFloatColorUInt8 ... func VertexLayoutPosFloatColorUInt8() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatColorUInt8() + retval := C.HarfangVertexLayoutPosFloatColorUInt8() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // VertexLayoutPosFloatTexCoord0UInt8 ... func VertexLayoutPosFloatTexCoord0UInt8() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatTexCoord0UInt8() + retval := C.HarfangVertexLayoutPosFloatTexCoord0UInt8() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } // VertexLayoutPosFloatNormUInt8TexCoord0UInt8 ... func VertexLayoutPosFloatNormUInt8TexCoord0UInt8() *VertexLayout { - retval := C.WrapVertexLayoutPosFloatNormUInt8TexCoord0UInt8() + retval := C.HarfangVertexLayoutPosFloatNormUInt8TexCoord0UInt8() retvalGO := &VertexLayout{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VertexLayout) { - C.WrapVertexLayoutFree(cleanval.h) + C.HarfangVertexLayoutFree(cleanval.h) }) return retvalGO } @@ -20415,10 +21628,10 @@ func VertexLayoutPosFloatNormUInt8TexCoord0UInt8() *VertexLayout { func LoadProgramFromFile(path string) *ProgramHandle { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadProgramFromFile(pathToC) + retval := C.HarfangLoadProgramFromFile(pathToC) retvalGO := &ProgramHandle{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProgramHandle) { - C.WrapProgramHandleFree(cleanval.h) + C.HarfangProgramHandleFree(cleanval.h) }) return retvalGO } @@ -20429,10 +21642,10 @@ func LoadProgramFromFileWithVertexShaderPathFragmentShaderPath(vertexshaderpath defer idFinvertexshaderpathToC() fragmentshaderpathToC, idFinfragmentshaderpathToC := wrapString(fragmentshaderpath) defer idFinfragmentshaderpathToC() - retval := C.WrapLoadProgramFromFileWithVertexShaderPathFragmentShaderPath(vertexshaderpathToC, fragmentshaderpathToC) + retval := C.HarfangLoadProgramFromFileWithVertexShaderPathFragmentShaderPath(vertexshaderpathToC, fragmentshaderpathToC) retvalGO := &ProgramHandle{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProgramHandle) { - C.WrapProgramHandleFree(cleanval.h) + C.HarfangProgramHandleFree(cleanval.h) }) return retvalGO } @@ -20441,10 +21654,10 @@ func LoadProgramFromFileWithVertexShaderPathFragmentShaderPath(vertexshaderpath func LoadProgramFromAssets(name string) *ProgramHandle { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadProgramFromAssets(nameToC) + retval := C.HarfangLoadProgramFromAssets(nameToC) retvalGO := &ProgramHandle{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProgramHandle) { - C.WrapProgramHandleFree(cleanval.h) + C.HarfangProgramHandleFree(cleanval.h) }) return retvalGO } @@ -20455,10 +21668,10 @@ func LoadProgramFromAssetsWithVertexShaderNameFragmentShaderName(vertexshadernam defer idFinvertexshadernameToC() fragmentshadernameToC, idFinfragmentshadernameToC := wrapString(fragmentshadername) defer idFinfragmentshadernameToC() - retval := C.WrapLoadProgramFromAssetsWithVertexShaderNameFragmentShaderName(vertexshadernameToC, fragmentshadernameToC) + retval := C.HarfangLoadProgramFromAssetsWithVertexShaderNameFragmentShaderName(vertexshadernameToC, fragmentshadernameToC) retvalGO := &ProgramHandle{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProgramHandle) { - C.WrapProgramHandleFree(cleanval.h) + C.HarfangProgramHandleFree(cleanval.h) }) return retvalGO } @@ -20466,14 +21679,14 @@ func LoadProgramFromAssetsWithVertexShaderNameFragmentShaderName(vertexshadernam // DestroyProgram Destroy a shader program. func DestroyProgram(h *ProgramHandle) { hToC := h.h - C.WrapDestroyProgram(hToC) + C.HarfangDestroyProgram(hToC) } // LoadTextureFlagsFromFile Load texture flags in the texture metafile from the local filesystem. func LoadTextureFlagsFromFile(path string) uint64 { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadTextureFlagsFromFile(pathToC) + retval := C.HarfangLoadTextureFlagsFromFile(pathToC) return uint64(retval) } @@ -20481,7 +21694,7 @@ func LoadTextureFlagsFromFile(path string) uint64 { func LoadTextureFlagsFromAssets(name string) uint64 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadTextureFlagsFromAssets(nameToC) + retval := C.HarfangLoadTextureFlagsFromAssets(nameToC) return uint64(retval) } @@ -20492,10 +21705,10 @@ func CreateTexture(width int32, height int32, name string, flags TextureFlags) * nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() flagsToC := C.uint64_t(flags) - retval := C.WrapCreateTexture(widthToC, heightToC, nameToC, flagsToC) + retval := C.HarfangCreateTexture(widthToC, heightToC, nameToC, flagsToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -20508,10 +21721,10 @@ func CreateTextureWithFormat(width int32, height int32, name string, flags Textu defer idFinnameToC() flagsToC := C.uint64_t(flags) formatToC := C.int32_t(format) - retval := C.WrapCreateTextureWithFormat(widthToC, heightToC, nameToC, flagsToC, formatToC) + retval := C.HarfangCreateTextureWithFormat(widthToC, heightToC, nameToC, flagsToC, formatToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -20522,10 +21735,10 @@ func CreateTextureFromPicture(pic *Picture, name string, flags TextureFlags) *Te nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() flagsToC := C.uint64_t(flags) - retval := C.WrapCreateTextureFromPicture(picToC, nameToC, flagsToC) + retval := C.HarfangCreateTextureFromPicture(picToC, nameToC, flagsToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -20537,10 +21750,10 @@ func CreateTextureFromPictureWithFormat(pic *Picture, name string, flags Texture defer idFinnameToC() flagsToC := C.uint64_t(flags) formatToC := C.int32_t(format) - retval := C.WrapCreateTextureFromPictureWithFormat(picToC, nameToC, flagsToC, formatToC) + retval := C.HarfangCreateTextureFromPictureWithFormat(picToC, nameToC, flagsToC, formatToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -20549,7 +21762,7 @@ func CreateTextureFromPictureWithFormat(pic *Picture, name string, flags Texture func UpdateTextureFromPicture(tex *Texture, pic *Picture) { texToC := tex.h picToC := pic.h - C.WrapUpdateTextureFromPicture(texToC, picToC) + C.HarfangUpdateTextureFromPicture(texToC, picToC) } // LoadTextureFromFile Load a texture from the local filesystem. - When not using pipeline resources the texture informations are returned directly. - When using pipeline resources the texture informations can be retrieved from the [harfang.PipelineResources] object. @@ -20559,10 +21772,10 @@ func LoadTextureFromFile(path string, flags TextureFlags) (*Texture, *TextureInf flagsToC := C.uint64_t(flags) info := NewTextureInfo() infoToC := info.h - retval := C.WrapLoadTextureFromFile(pathToC, flagsToC, infoToC) + retval := C.HarfangLoadTextureFromFile(pathToC, flagsToC, infoToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO, info } @@ -20573,10 +21786,10 @@ func LoadTextureFromFileWithFlagsResources(path string, flags uint32, resources defer idFinpathToC() flagsToC := C.uint32_t(flags) resourcesToC := resources.h - retval := C.WrapLoadTextureFromFileWithFlagsResources(pathToC, flagsToC, resourcesToC) + retval := C.HarfangLoadTextureFromFileWithFlagsResources(pathToC, flagsToC, resourcesToC) retvalGO := &TextureRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureRef) { - C.WrapTextureRefFree(cleanval.h) + C.HarfangTextureRefFree(cleanval.h) }) return retvalGO } @@ -20588,10 +21801,10 @@ func LoadTextureFromAssets(path string, flags TextureFlags) (*Texture, *TextureI flagsToC := C.uint64_t(flags) info := NewTextureInfo() infoToC := info.h - retval := C.WrapLoadTextureFromAssets(pathToC, flagsToC, infoToC) + retval := C.HarfangLoadTextureFromAssets(pathToC, flagsToC, infoToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO, info } @@ -20602,10 +21815,10 @@ func LoadTextureFromAssetsWithFlagsResources(path string, flags uint32, resource defer idFinpathToC() flagsToC := C.uint32_t(flags) resourcesToC := resources.h - retval := C.WrapLoadTextureFromAssetsWithFlagsResources(pathToC, flagsToC, resourcesToC) + retval := C.HarfangLoadTextureFromAssetsWithFlagsResources(pathToC, flagsToC, resourcesToC) retvalGO := &TextureRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureRef) { - C.WrapTextureRefFree(cleanval.h) + C.HarfangTextureRefFree(cleanval.h) }) return retvalGO } @@ -20613,13 +21826,13 @@ func LoadTextureFromAssetsWithFlagsResources(path string, flags uint32, resource // DestroyTexture Destroy a texture object. func DestroyTexture(tex *Texture) { texToC := tex.h - C.WrapDestroyTexture(texToC) + C.HarfangDestroyTexture(texToC) } // ProcessTextureLoadQueue Process the texture load queue. This function must be called to load textures queued while loading a scene or model with the LSSF_QueueTextureLoads flag. See [harfang.LoadSaveSceneFlags]. func ProcessTextureLoadQueue(res *PipelineResources) int32 { resToC := res.h - retval := C.WrapProcessTextureLoadQueue(resToC) + retval := C.HarfangProcessTextureLoadQueue(resToC) return int32(retval) } @@ -20627,14 +21840,14 @@ func ProcessTextureLoadQueue(res *PipelineResources) int32 { func ProcessTextureLoadQueueWithTBudget(res *PipelineResources, tbudget int64) int32 { resToC := res.h tbudgetToC := C.int64_t(tbudget) - retval := C.WrapProcessTextureLoadQueueWithTBudget(resToC, tbudgetToC) + retval := C.HarfangProcessTextureLoadQueueWithTBudget(resToC, tbudgetToC) return int32(retval) } // ProcessModelLoadQueue ... func ProcessModelLoadQueue(res *PipelineResources) int32 { resToC := res.h - retval := C.WrapProcessModelLoadQueue(resToC) + retval := C.HarfangProcessModelLoadQueue(resToC) return int32(retval) } @@ -20642,14 +21855,14 @@ func ProcessModelLoadQueue(res *PipelineResources) int32 { func ProcessModelLoadQueueWithTBudget(res *PipelineResources, tbudget int64) int32 { resToC := res.h tbudgetToC := C.int64_t(tbudget) - retval := C.WrapProcessModelLoadQueueWithTBudget(resToC, tbudgetToC) + retval := C.HarfangProcessModelLoadQueueWithTBudget(resToC, tbudgetToC) return int32(retval) } // ProcessLoadQueues ... func ProcessLoadQueues(res *PipelineResources) int32 { resToC := res.h - retval := C.WrapProcessLoadQueues(resToC) + retval := C.HarfangProcessLoadQueues(resToC) return int32(retval) } @@ -20657,7 +21870,7 @@ func ProcessLoadQueues(res *PipelineResources) int32 { func ProcessLoadQueuesWithTBudget(res *PipelineResources, tbudget int64) int32 { resToC := res.h tbudgetToC := C.int64_t(tbudget) - retval := C.WrapProcessLoadQueuesWithTBudget(resToC, tbudgetToC) + retval := C.HarfangProcessLoadQueuesWithTBudget(resToC, tbudgetToC) return int32(retval) } @@ -20666,7 +21879,7 @@ func CaptureTexture(resources *PipelineResources, tex *TextureRef, pic *Picture) resourcesToC := resources.h texToC := tex.h picToC := pic.h - retval := C.WrapCaptureTexture(resourcesToC, texToC, picToC) + retval := C.HarfangCaptureTexture(resourcesToC, texToC, picToC) return uint32(retval) } @@ -20675,10 +21888,10 @@ func MakeUniformSetValue(name string, v float32) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := C.float(v) - retval := C.WrapMakeUniformSetValue(nameToC, vToC) + retval := C.HarfangMakeUniformSetValue(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20688,10 +21901,10 @@ func MakeUniformSetValueWithV(name string, v *Vec2) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithV(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithV(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20701,10 +21914,10 @@ func MakeUniformSetValueWithVec3V(name string, v *Vec3) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithVec3V(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithVec3V(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20714,10 +21927,10 @@ func MakeUniformSetValueWithVec4V(name string, v *Vec4) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithVec4V(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithVec4V(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20727,10 +21940,10 @@ func MakeUniformSetValueWithMat3V(name string, v *Mat3) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithMat3V(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithMat3V(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20740,10 +21953,10 @@ func MakeUniformSetValueWithMat4V(name string, v *Mat4) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithMat4V(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithMat4V(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20753,10 +21966,10 @@ func MakeUniformSetValueWithMat44V(name string, v *Mat44) *UniformSetValue { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - retval := C.WrapMakeUniformSetValueWithMat44V(nameToC, vToC) + retval := C.HarfangMakeUniformSetValueWithMat44V(nameToC, vToC) retvalGO := &UniformSetValue{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetValue) { - C.WrapUniformSetValueFree(cleanval.h) + C.HarfangUniformSetValueFree(cleanval.h) }) return retvalGO } @@ -20767,10 +21980,10 @@ func MakeUniformSetTexture(name string, texture *Texture, stage uint8) *UniformS defer idFinnameToC() textureToC := texture.h stageToC := C.uchar(stage) - retval := C.WrapMakeUniformSetTexture(nameToC, textureToC, stageToC) + retval := C.HarfangMakeUniformSetTexture(nameToC, textureToC, stageToC) retvalGO := &UniformSetTexture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *UniformSetTexture) { - C.WrapUniformSetTextureFree(cleanval.h) + C.HarfangUniformSetTextureFree(cleanval.h) }) return retvalGO } @@ -20781,10 +21994,10 @@ func LoadPipelineProgramFromFile(path string, resources *PipelineResources, pipe defer idFinpathToC() resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadPipelineProgramFromFile(pathToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadPipelineProgramFromFile(pathToC, resourcesToC, pipelineToC) retvalGO := &PipelineProgram{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgram) { - C.WrapPipelineProgramFree(cleanval.h) + C.HarfangPipelineProgramFree(cleanval.h) }) return retvalGO } @@ -20795,10 +22008,10 @@ func LoadPipelineProgramFromAssets(name string, resources *PipelineResources, pi defer idFinnameToC() resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadPipelineProgramFromAssets(nameToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadPipelineProgramFromAssets(nameToC, resourcesToC, pipelineToC) retvalGO := &PipelineProgram{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgram) { - C.WrapPipelineProgramFree(cleanval.h) + C.HarfangPipelineProgramFree(cleanval.h) }) return retvalGO } @@ -20809,10 +22022,10 @@ func LoadPipelineProgramRefFromFile(path string, resources *PipelineResources, p defer idFinpathToC() resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadPipelineProgramRefFromFile(pathToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadPipelineProgramRefFromFile(pathToC, resourcesToC, pipelineToC) retvalGO := &PipelineProgramRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgramRef) { - C.WrapPipelineProgramRefFree(cleanval.h) + C.HarfangPipelineProgramRefFree(cleanval.h) }) return retvalGO } @@ -20823,10 +22036,10 @@ func LoadPipelineProgramRefFromAssets(name string, resources *PipelineResources, defer idFinnameToC() resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadPipelineProgramRefFromAssets(nameToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadPipelineProgramRefFromAssets(nameToC, resourcesToC, pipelineToC) retvalGO := &PipelineProgramRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *PipelineProgramRef) { - C.WrapPipelineProgramRefFree(cleanval.h) + C.HarfangPipelineProgramRefFree(cleanval.h) }) return retvalGO } @@ -20838,10 +22051,10 @@ func ComputeOrthographicViewState(world *Mat4, size float32, znear float32, zfar znearToC := C.float(znear) zfarToC := C.float(zfar) aspectratioToC := aspectratio.h - retval := C.WrapComputeOrthographicViewState(worldToC, sizeToC, znearToC, zfarToC, aspectratioToC) + retval := C.HarfangComputeOrthographicViewState(worldToC, sizeToC, znearToC, zfarToC, aspectratioToC) retvalGO := &ViewState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ViewState) { - C.WrapViewStateFree(cleanval.h) + C.HarfangViewStateFree(cleanval.h) }) return retvalGO } @@ -20853,10 +22066,10 @@ func ComputePerspectiveViewState(world *Mat4, fov float32, znear float32, zfar f znearToC := C.float(znear) zfarToC := C.float(zfar) aspectratioToC := aspectratio.h - retval := C.WrapComputePerspectiveViewState(worldToC, fovToC, znearToC, zfarToC, aspectratioToC) + retval := C.HarfangComputePerspectiveViewState(worldToC, fovToC, znearToC, zfarToC, aspectratioToC) retvalGO := &ViewState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ViewState) { - C.WrapViewStateFree(cleanval.h) + C.HarfangViewStateFree(cleanval.h) }) return retvalGO } @@ -20865,7 +22078,7 @@ func ComputePerspectiveViewState(world *Mat4, fov float32, znear float32, zfar f func SetMaterialProgram(mat *Material, program *PipelineProgramRef) { matToC := mat.h programToC := program.h - C.WrapSetMaterialProgram(matToC, programToC) + C.HarfangSetMaterialProgram(matToC, programToC) } // SetMaterialValue Set a material uniform value. @@ -20874,7 +22087,7 @@ func SetMaterialValue(mat *Material, name string, v float32) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := C.float(v) - C.WrapSetMaterialValue(matToC, nameToC, vToC) + C.HarfangSetMaterialValue(matToC, nameToC, vToC) } // SetMaterialValueWithV Set a material uniform value. @@ -20883,7 +22096,7 @@ func SetMaterialValueWithV(mat *Material, name string, v *Vec2) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - C.WrapSetMaterialValueWithV(matToC, nameToC, vToC) + C.HarfangSetMaterialValueWithV(matToC, nameToC, vToC) } // SetMaterialValueWithVec3V Set a material uniform value. @@ -20892,7 +22105,7 @@ func SetMaterialValueWithVec3V(mat *Material, name string, v *Vec3) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - C.WrapSetMaterialValueWithVec3V(matToC, nameToC, vToC) + C.HarfangSetMaterialValueWithVec3V(matToC, nameToC, vToC) } // SetMaterialValueWithVec4V Set a material uniform value. @@ -20901,7 +22114,7 @@ func SetMaterialValueWithVec4V(mat *Material, name string, v *Vec4) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() vToC := v.h - C.WrapSetMaterialValueWithVec4V(matToC, nameToC, vToC) + C.HarfangSetMaterialValueWithVec4V(matToC, nameToC, vToC) } // SetMaterialValueWithM Set a material uniform value. @@ -20910,7 +22123,7 @@ func SetMaterialValueWithM(mat *Material, name string, m *Mat3) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() mToC := m.h - C.WrapSetMaterialValueWithM(matToC, nameToC, mToC) + C.HarfangSetMaterialValueWithM(matToC, nameToC, mToC) } // SetMaterialValueWithMat4M Set a material uniform value. @@ -20919,7 +22132,7 @@ func SetMaterialValueWithMat4M(mat *Material, name string, m *Mat4) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() mToC := m.h - C.WrapSetMaterialValueWithMat4M(matToC, nameToC, mToC) + C.HarfangSetMaterialValueWithMat4M(matToC, nameToC, mToC) } // SetMaterialValueWithMat44M Set a material uniform value. @@ -20928,7 +22141,7 @@ func SetMaterialValueWithMat44M(mat *Material, name string, m *Mat44) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() mToC := m.h - C.WrapSetMaterialValueWithMat44M(matToC, nameToC, mToC) + C.HarfangSetMaterialValueWithMat44M(matToC, nameToC, mToC) } // SetMaterialTexture Set a material uniform texture and texture stage. Note: The texture stage specified should match the uniform declaration in the shader program. @@ -20938,7 +22151,7 @@ func SetMaterialTexture(mat *Material, name string, texture *TextureRef, stage u defer idFinnameToC() textureToC := texture.h stageToC := C.uchar(stage) - C.WrapSetMaterialTexture(matToC, nameToC, textureToC, stageToC) + C.HarfangSetMaterialTexture(matToC, nameToC, textureToC, stageToC) } // SetMaterialTextureRef Set a material uniform texture reference. See [harfang.PipelineResources]. @@ -20947,7 +22160,7 @@ func SetMaterialTextureRef(mat *Material, name string, texture *TextureRef) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() textureToC := texture.h - C.WrapSetMaterialTextureRef(matToC, nameToC, textureToC) + C.HarfangSetMaterialTextureRef(matToC, nameToC, textureToC) } // GetMaterialTexture Return the texture reference assigned to a material named uniform. @@ -20955,10 +22168,10 @@ func GetMaterialTexture(mat *Material, name string) *TextureRef { matToC := mat.h nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetMaterialTexture(matToC, nameToC) + retval := C.HarfangGetMaterialTexture(matToC, nameToC) retvalGO := &TextureRef{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *TextureRef) { - C.WrapTextureRefFree(cleanval.h) + C.HarfangTextureRefFree(cleanval.h) }) return retvalGO } @@ -20966,10 +22179,10 @@ func GetMaterialTexture(mat *Material, name string) *TextureRef { // GetMaterialTextures Return the list of names of a material texture uniforms. func GetMaterialTextures(mat *Material) *StringList { matToC := mat.h - retval := C.WrapGetMaterialTextures(matToC) + retval := C.HarfangGetMaterialTextures(matToC) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } @@ -20977,10 +22190,10 @@ func GetMaterialTextures(mat *Material) *StringList { // GetMaterialValues Return the list of names of a material value uniforms. func GetMaterialValues(mat *Material) *StringList { matToC := mat.h - retval := C.WrapGetMaterialValues(matToC) + retval := C.HarfangGetMaterialValues(matToC) retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } @@ -20988,7 +22201,7 @@ func GetMaterialValues(mat *Material) *StringList { // GetMaterialFaceCulling Return a material culling mode. func GetMaterialFaceCulling(mat *Material) FaceCulling { matToC := mat.h - retval := C.WrapGetMaterialFaceCulling(matToC) + retval := C.HarfangGetMaterialFaceCulling(matToC) return FaceCulling(retval) } @@ -20996,13 +22209,13 @@ func GetMaterialFaceCulling(mat *Material) FaceCulling { func SetMaterialFaceCulling(mat *Material, culling FaceCulling) { matToC := mat.h cullingToC := C.int32_t(culling) - C.WrapSetMaterialFaceCulling(matToC, cullingToC) + C.HarfangSetMaterialFaceCulling(matToC, cullingToC) } // GetMaterialDepthTest Return a material depth test function. func GetMaterialDepthTest(mat *Material) DepthTest { matToC := mat.h - retval := C.WrapGetMaterialDepthTest(matToC) + retval := C.HarfangGetMaterialDepthTest(matToC) return DepthTest(retval) } @@ -21010,13 +22223,13 @@ func GetMaterialDepthTest(mat *Material) DepthTest { func SetMaterialDepthTest(mat *Material, test DepthTest) { matToC := mat.h testToC := C.int32_t(test) - C.WrapSetMaterialDepthTest(matToC, testToC) + C.HarfangSetMaterialDepthTest(matToC, testToC) } // GetMaterialBlendMode Return a material blending mode. func GetMaterialBlendMode(mat *Material) BlendMode { matToC := mat.h - retval := C.WrapGetMaterialBlendMode(matToC) + retval := C.HarfangGetMaterialBlendMode(matToC) return BlendMode(retval) } @@ -21024,7 +22237,7 @@ func GetMaterialBlendMode(mat *Material) BlendMode { func SetMaterialBlendMode(mat *Material, mode BlendMode) { matToC := mat.h modeToC := C.int32_t(mode) - C.WrapSetMaterialBlendMode(matToC, modeToC) + C.HarfangSetMaterialBlendMode(matToC, modeToC) } // GetMaterialWriteRGBA Return the material color mask. @@ -21038,7 +22251,7 @@ func GetMaterialWriteRGBA(mat *Material) (*bool, *bool, *bool, *bool) { writebToC := (*C.bool)(unsafe.Pointer(writeb)) writea := new(bool) writeaToC := (*C.bool)(unsafe.Pointer(writea)) - C.WrapGetMaterialWriteRGBA(matToC, writerToC, writegToC, writebToC, writeaToC) + C.HarfangGetMaterialWriteRGBA(matToC, writerToC, writegToC, writebToC, writeaToC) return (*bool)(unsafe.Pointer(writerToC)), (*bool)(unsafe.Pointer(writegToC)), (*bool)(unsafe.Pointer(writebToC)), (*bool)(unsafe.Pointer(writeaToC)) } @@ -21049,13 +22262,13 @@ func SetMaterialWriteRGBA(mat *Material, writer bool, writeg bool, writeb bool, writegToC := C.bool(writeg) writebToC := C.bool(writeb) writeaToC := C.bool(writea) - C.WrapSetMaterialWriteRGBA(matToC, writerToC, writegToC, writebToC, writeaToC) + C.HarfangSetMaterialWriteRGBA(matToC, writerToC, writegToC, writebToC, writeaToC) } // GetMaterialNormalMapInWorldSpace ... func GetMaterialNormalMapInWorldSpace(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialNormalMapInWorldSpace(matToC) + retval := C.HarfangGetMaterialNormalMapInWorldSpace(matToC) return bool(retval) } @@ -21063,13 +22276,13 @@ func GetMaterialNormalMapInWorldSpace(mat *Material) bool { func SetMaterialNormalMapInWorldSpace(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialNormalMapInWorldSpace(matToC, enableToC) + C.HarfangSetMaterialNormalMapInWorldSpace(matToC, enableToC) } // GetMaterialWriteZ Return the material depth write mask. func GetMaterialWriteZ(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialWriteZ(matToC) + retval := C.HarfangGetMaterialWriteZ(matToC) return bool(retval) } @@ -21077,13 +22290,13 @@ func GetMaterialWriteZ(mat *Material) bool { func SetMaterialWriteZ(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialWriteZ(matToC, enableToC) + C.HarfangSetMaterialWriteZ(matToC, enableToC) } // GetMaterialDiffuseUsesUV1 ... func GetMaterialDiffuseUsesUV1(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialDiffuseUsesUV1(matToC) + retval := C.HarfangGetMaterialDiffuseUsesUV1(matToC) return bool(retval) } @@ -21091,13 +22304,13 @@ func GetMaterialDiffuseUsesUV1(mat *Material) bool { func SetMaterialDiffuseUsesUV1(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialDiffuseUsesUV1(matToC, enableToC) + C.HarfangSetMaterialDiffuseUsesUV1(matToC, enableToC) } // GetMaterialSpecularUsesUV1 ... func GetMaterialSpecularUsesUV1(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialSpecularUsesUV1(matToC) + retval := C.HarfangGetMaterialSpecularUsesUV1(matToC) return bool(retval) } @@ -21105,13 +22318,13 @@ func GetMaterialSpecularUsesUV1(mat *Material) bool { func SetMaterialSpecularUsesUV1(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialSpecularUsesUV1(matToC, enableToC) + C.HarfangSetMaterialSpecularUsesUV1(matToC, enableToC) } // GetMaterialAmbientUsesUV1 ... func GetMaterialAmbientUsesUV1(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialAmbientUsesUV1(matToC) + retval := C.HarfangGetMaterialAmbientUsesUV1(matToC) return bool(retval) } @@ -21119,13 +22332,13 @@ func GetMaterialAmbientUsesUV1(mat *Material) bool { func SetMaterialAmbientUsesUV1(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialAmbientUsesUV1(matToC, enableToC) + C.HarfangSetMaterialAmbientUsesUV1(matToC, enableToC) } // GetMaterialSkinning ... func GetMaterialSkinning(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialSkinning(matToC) + retval := C.HarfangGetMaterialSkinning(matToC) return bool(retval) } @@ -21133,13 +22346,13 @@ func GetMaterialSkinning(mat *Material) bool { func SetMaterialSkinning(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialSkinning(matToC, enableToC) + C.HarfangSetMaterialSkinning(matToC, enableToC) } // GetMaterialAlphaCut ... func GetMaterialAlphaCut(mat *Material) bool { matToC := mat.h - retval := C.WrapGetMaterialAlphaCut(matToC) + retval := C.HarfangGetMaterialAlphaCut(matToC) return bool(retval) } @@ -21147,16 +22360,16 @@ func GetMaterialAlphaCut(mat *Material) bool { func SetMaterialAlphaCut(mat *Material, enable bool) { matToC := mat.h enableToC := C.bool(enable) - C.WrapSetMaterialAlphaCut(matToC, enableToC) + C.HarfangSetMaterialAlphaCut(matToC, enableToC) } // CreateMaterial Helper function to create a material. See [harfang.SetMaterialProgram], [harfang.SetMaterialValue] and [harfang.SetMaterialTexture]. func CreateMaterial(prg *PipelineProgramRef) *Material { prgToC := prg.h - retval := C.WrapCreateMaterial(prgToC) + retval := C.HarfangCreateMaterial(prgToC) retvalGO := &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return retvalGO } @@ -21167,10 +22380,10 @@ func CreateMaterialWithValueNameValue(prg *PipelineProgramRef, valuename string, valuenameToC, idFinvaluenameToC := wrapString(valuename) defer idFinvaluenameToC() valueToC := value.h - retval := C.WrapCreateMaterialWithValueNameValue(prgToC, valuenameToC, valueToC) + retval := C.HarfangCreateMaterialWithValueNameValue(prgToC, valuenameToC, valueToC) retvalGO := &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return retvalGO } @@ -21184,10 +22397,10 @@ func CreateMaterialWithValueName0Value0ValueName1Value1(prg *PipelineProgramRef, valuename1ToC, idFinvaluename1ToC := wrapString(valuename1) defer idFinvaluename1ToC() value1ToC := value1.h - retval := C.WrapCreateMaterialWithValueName0Value0ValueName1Value1(prgToC, valuename0ToC, value0ToC, valuename1ToC, value1ToC) + retval := C.HarfangCreateMaterialWithValueName0Value0ValueName1Value1(prgToC, valuename0ToC, value0ToC, valuename1ToC, value1ToC) retvalGO := &Material{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Material) { - C.WrapMaterialFree(cleanval.h) + C.HarfangMaterialFree(cleanval.h) }) return retvalGO } @@ -21195,10 +22408,10 @@ func CreateMaterialWithValueName0Value0ValueName1Value1(prg *PipelineProgramRef, // ComputeRenderState Compute a render state to control subsequent render calls culling mode, blending mode, Z mask, etc... The same render state can be used by different render calls. See [harfang.DrawLines], [harfang.DrawTriangles] and [harfang.DrawModel]. func ComputeRenderState(blend BlendMode) *RenderState { blendToC := C.int32_t(blend) - retval := C.WrapComputeRenderState(blendToC) + retval := C.HarfangComputeRenderState(blendToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21207,10 +22420,10 @@ func ComputeRenderState(blend BlendMode) *RenderState { func ComputeRenderStateWithDepthTest(blend BlendMode, depthtest DepthTest) *RenderState { blendToC := C.int32_t(blend) depthtestToC := C.int32_t(depthtest) - retval := C.WrapComputeRenderStateWithDepthTest(blendToC, depthtestToC) + retval := C.HarfangComputeRenderStateWithDepthTest(blendToC, depthtestToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21220,10 +22433,10 @@ func ComputeRenderStateWithDepthTestCulling(blend BlendMode, depthtest DepthTest blendToC := C.int32_t(blend) depthtestToC := C.int32_t(depthtest) cullingToC := C.int32_t(culling) - retval := C.WrapComputeRenderStateWithDepthTestCulling(blendToC, depthtestToC, cullingToC) + retval := C.HarfangComputeRenderStateWithDepthTestCulling(blendToC, depthtestToC, cullingToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21234,10 +22447,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZ(blend BlendMode, depthtest Dep depthtestToC := C.int32_t(depthtest) cullingToC := C.int32_t(culling) writezToC := C.bool(writez) - retval := C.WrapComputeRenderStateWithDepthTestCullingWriteZ(blendToC, depthtestToC, cullingToC, writezToC) + retval := C.HarfangComputeRenderStateWithDepthTestCullingWriteZ(blendToC, depthtestToC, cullingToC, writezToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21249,10 +22462,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZWriteR(blend BlendMode, depthte cullingToC := C.int32_t(culling) writezToC := C.bool(writez) writerToC := C.bool(writer) - retval := C.WrapComputeRenderStateWithDepthTestCullingWriteZWriteR(blendToC, depthtestToC, cullingToC, writezToC, writerToC) + retval := C.HarfangComputeRenderStateWithDepthTestCullingWriteZWriteR(blendToC, depthtestToC, cullingToC, writezToC, writerToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21265,10 +22478,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZWriteRWriteG(blend BlendMode, d writezToC := C.bool(writez) writerToC := C.bool(writer) writegToC := C.bool(writeg) - retval := C.WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteG(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC) + retval := C.HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteG(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21282,10 +22495,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteB(blend BlendM writerToC := C.bool(writer) writegToC := C.bool(writeg) writebToC := C.bool(writeb) - retval := C.WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteB(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC, writebToC) + retval := C.HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteB(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC, writebToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21300,10 +22513,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA(blend writegToC := C.bool(writeg) writebToC := C.bool(writeb) writeaToC := C.bool(writea) - retval := C.WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC, writebToC, writeaToC) + retval := C.HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA(blendToC, depthtestToC, cullingToC, writezToC, writerToC, writegToC, writebToC, writeaToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21312,10 +22525,10 @@ func ComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA(blend func ComputeRenderStateWithWriteZ(blend BlendMode, writez bool) *RenderState { blendToC := C.int32_t(blend) writezToC := C.bool(writez) - retval := C.WrapComputeRenderStateWithWriteZ(blendToC, writezToC) + retval := C.HarfangComputeRenderStateWithWriteZ(blendToC, writezToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21325,10 +22538,10 @@ func ComputeRenderStateWithWriteZWriteR(blend BlendMode, writez bool, writer boo blendToC := C.int32_t(blend) writezToC := C.bool(writez) writerToC := C.bool(writer) - retval := C.WrapComputeRenderStateWithWriteZWriteR(blendToC, writezToC, writerToC) + retval := C.HarfangComputeRenderStateWithWriteZWriteR(blendToC, writezToC, writerToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21339,10 +22552,10 @@ func ComputeRenderStateWithWriteZWriteRWriteG(blend BlendMode, writez bool, writ writezToC := C.bool(writez) writerToC := C.bool(writer) writegToC := C.bool(writeg) - retval := C.WrapComputeRenderStateWithWriteZWriteRWriteG(blendToC, writezToC, writerToC, writegToC) + retval := C.HarfangComputeRenderStateWithWriteZWriteRWriteG(blendToC, writezToC, writerToC, writegToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21354,10 +22567,10 @@ func ComputeRenderStateWithWriteZWriteRWriteGWriteB(blend BlendMode, writez bool writerToC := C.bool(writer) writegToC := C.bool(writeg) writebToC := C.bool(writeb) - retval := C.WrapComputeRenderStateWithWriteZWriteRWriteGWriteB(blendToC, writezToC, writerToC, writegToC, writebToC) + retval := C.HarfangComputeRenderStateWithWriteZWriteRWriteGWriteB(blendToC, writezToC, writerToC, writegToC, writebToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21370,10 +22583,10 @@ func ComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA(blend BlendMode, write writegToC := C.bool(writeg) writebToC := C.bool(writeb) writeaToC := C.bool(writea) - retval := C.WrapComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA(blendToC, writezToC, writerToC, writegToC, writebToC, writeaToC) + retval := C.HarfangComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA(blendToC, writezToC, writerToC, writegToC, writebToC, writeaToC) retvalGO := &RenderState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *RenderState) { - C.WrapRenderStateFree(cleanval.h) + C.HarfangRenderStateFree(cleanval.h) }) return retvalGO } @@ -21381,7 +22594,7 @@ func ComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA(blend BlendMode, write // ComputeSortKey Compute a sorting key to control the rendering order of a display list, `view_depth` is expected in view space. func ComputeSortKey(viewdepth float32) uint32 { viewdepthToC := C.float(viewdepth) - retval := C.WrapComputeSortKey(viewdepthToC) + retval := C.HarfangComputeSortKey(viewdepthToC) return uint32(retval) } @@ -21389,7 +22602,7 @@ func ComputeSortKey(viewdepth float32) uint32 { func ComputeSortKeyFromWorld(T *Vec3, view *Mat4) uint32 { TToC := T.h viewToC := view.h - retval := C.WrapComputeSortKeyFromWorld(TToC, viewToC) + retval := C.HarfangComputeSortKeyFromWorld(TToC, viewToC) return uint32(retval) } @@ -21398,7 +22611,7 @@ func ComputeSortKeyFromWorldWithModel(T *Vec3, view *Mat4, model *Mat4) uint32 { TToC := T.h viewToC := view.h modelToC := model.h - retval := C.WrapComputeSortKeyFromWorldWithModel(TToC, viewToC, modelToC) + retval := C.HarfangComputeSortKeyFromWorldWithModel(TToC, viewToC, modelToC) return uint32(retval) } @@ -21406,10 +22619,10 @@ func ComputeSortKeyFromWorldWithModel(T *Vec3, view *Mat4, model *Mat4) uint32 { func LoadModelFromFile(path string) *Model { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadModelFromFile(pathToC) + retval := C.HarfangLoadModelFromFile(pathToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21418,10 +22631,10 @@ func LoadModelFromFile(path string) *Model { func LoadModelFromAssets(name string) *Model { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadModelFromAssets(nameToC) + retval := C.HarfangLoadModelFromAssets(nameToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21432,10 +22645,10 @@ func CreateCubeModel(decl *VertexLayout, x float32, y float32, z float32) *Model xToC := C.float(x) yToC := C.float(y) zToC := C.float(z) - retval := C.WrapCreateCubeModel(declToC, xToC, yToC, zToC) + retval := C.HarfangCreateCubeModel(declToC, xToC, yToC, zToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21446,10 +22659,10 @@ func CreateSphereModel(decl *VertexLayout, radius float32, subdivx int32, subdiv radiusToC := C.float(radius) subdivxToC := C.int32_t(subdivx) subdivyToC := C.int32_t(subdivy) - retval := C.WrapCreateSphereModel(declToC, radiusToC, subdivxToC, subdivyToC) + retval := C.HarfangCreateSphereModel(declToC, radiusToC, subdivxToC, subdivyToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21461,10 +22674,10 @@ func CreatePlaneModel(decl *VertexLayout, width float32, length float32, subdivx lengthToC := C.float(length) subdivxToC := C.int32_t(subdivx) subdivzToC := C.int32_t(subdivz) - retval := C.WrapCreatePlaneModel(declToC, widthToC, lengthToC, subdivxToC, subdivzToC) + retval := C.HarfangCreatePlaneModel(declToC, widthToC, lengthToC, subdivxToC, subdivzToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21475,10 +22688,10 @@ func CreateCylinderModel(decl *VertexLayout, radius float32, height float32, sub radiusToC := C.float(radius) heightToC := C.float(height) subdivxToC := C.int32_t(subdivx) - retval := C.WrapCreateCylinderModel(declToC, radiusToC, heightToC, subdivxToC) + retval := C.HarfangCreateCylinderModel(declToC, radiusToC, heightToC, subdivxToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21489,10 +22702,10 @@ func CreateConeModel(decl *VertexLayout, radius float32, height float32, subdivx radiusToC := C.float(radius) heightToC := C.float(height) subdivxToC := C.int32_t(subdivx) - retval := C.WrapCreateConeModel(declToC, radiusToC, heightToC, subdivxToC) + retval := C.HarfangCreateConeModel(declToC, radiusToC, heightToC, subdivxToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21504,10 +22717,10 @@ func CreateCapsuleModel(decl *VertexLayout, radius float32, height float32, subd heightToC := C.float(height) subdivxToC := C.int32_t(subdivx) subdivyToC := C.int32_t(subdivy) - retval := C.WrapCreateCapsuleModel(declToC, radiusToC, heightToC, subdivxToC, subdivyToC) + retval := C.HarfangCreateCapsuleModel(declToC, radiusToC, heightToC, subdivxToC, subdivyToC) retvalGO := &Model{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Model) { - C.WrapModelFree(cleanval.h) + C.HarfangModelFree(cleanval.h) }) return retvalGO } @@ -21520,7 +22733,7 @@ func DrawModel(viewid uint16, mdl *Model, prg *ProgramHandle, values *UniformSet valuesToC := values.h texturesToC := textures.h matrixToC := matrix.h - C.WrapDrawModel(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC) + C.HarfangDrawModel(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC) } // DrawModelWithRenderState Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21532,7 +22745,7 @@ func DrawModelWithRenderState(viewid uint16, mdl *Model, prg *ProgramHandle, val texturesToC := textures.h matrixToC := matrix.h renderstateToC := renderstate.h - C.WrapDrawModelWithRenderState(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC, renderstateToC) + C.HarfangDrawModelWithRenderState(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC, renderstateToC) } // DrawModelWithRenderStateDepth Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21545,7 +22758,7 @@ func DrawModelWithRenderStateDepth(viewid uint16, mdl *Model, prg *ProgramHandle matrixToC := matrix.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawModelWithRenderStateDepth(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC, renderstateToC, depthToC) + C.HarfangDrawModelWithRenderStateDepth(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matrixToC, renderstateToC, depthToC) } // DrawModelWithMatrices Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21556,7 +22769,7 @@ func DrawModelWithMatrices(viewid uint16, mdl *Model, prg *ProgramHandle, values valuesToC := values.h texturesToC := textures.h matricesToC := matrices.h - C.WrapDrawModelWithMatrices(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC) + C.HarfangDrawModelWithMatrices(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC) } // DrawModelWithMatricesRenderState Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21568,7 +22781,7 @@ func DrawModelWithMatricesRenderState(viewid uint16, mdl *Model, prg *ProgramHan texturesToC := textures.h matricesToC := matrices.h renderstateToC := renderstate.h - C.WrapDrawModelWithMatricesRenderState(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC, renderstateToC) + C.HarfangDrawModelWithMatricesRenderState(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC, renderstateToC) } // DrawModelWithMatricesRenderStateDepth Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21581,7 +22794,7 @@ func DrawModelWithMatricesRenderStateDepth(viewid uint16, mdl *Model, prg *Progr matricesToC := matrices.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawModelWithMatricesRenderStateDepth(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC, renderstateToC, depthToC) + C.HarfangDrawModelWithMatricesRenderStateDepth(viewidToC, mdlToC, prgToC, valuesToC, texturesToC, matricesToC, renderstateToC, depthToC) } // DrawModelWithSliceOfValuesSliceOfTextures Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21589,22 +22802,22 @@ func DrawModelWithSliceOfValuesSliceOfTextures(viewid uint16, mdl *Model, prg *P viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) matrixToC := matrix.h - C.WrapDrawModelWithSliceOfValuesSliceOfTextures(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC) + C.HarfangDrawModelWithSliceOfValuesSliceOfTextures(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC) } // DrawModelWithSliceOfValuesSliceOfTexturesRenderState Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21612,23 +22825,23 @@ func DrawModelWithSliceOfValuesSliceOfTexturesRenderState(viewid uint16, mdl *Mo viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) matrixToC := matrix.h renderstateToC := renderstate.h - C.WrapDrawModelWithSliceOfValuesSliceOfTexturesRenderState(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC, renderstateToC) + C.HarfangDrawModelWithSliceOfValuesSliceOfTexturesRenderState(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC, renderstateToC) } // DrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21636,24 +22849,24 @@ func DrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewid uint16, md viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) matrixToC := matrix.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC, renderstateToC, depthToC) + C.HarfangDrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, matrixToC, renderstateToC, depthToC) } // DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21661,28 +22874,28 @@ func DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices(viewid uint16, mdl viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - var SliceOfmatricesPointer []C.WrapMat4 + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + var SliceOfmatricesPointer []C.HarfangMat4 for _, s := range SliceOfmatrices { SliceOfmatricesPointer = append(SliceOfmatricesPointer, s.h) } SliceOfmatricesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmatricesPointer)) SliceOfmatricesPointerToCSize := C.size_t(SliceOfmatricesPointerToC.Len) - SliceOfmatricesPointerToCBuf := (*C.WrapMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) - C.WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf) + SliceOfmatricesPointerToCBuf := (*C.HarfangMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) + C.HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf) } // DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21690,29 +22903,29 @@ func DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState(viewid viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - var SliceOfmatricesPointer []C.WrapMat4 + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + var SliceOfmatricesPointer []C.HarfangMat4 for _, s := range SliceOfmatrices { SliceOfmatricesPointer = append(SliceOfmatricesPointer, s.h) } SliceOfmatricesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmatricesPointer)) SliceOfmatricesPointerToCSize := C.size_t(SliceOfmatricesPointerToC.Len) - SliceOfmatricesPointerToCBuf := (*C.WrapMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) + SliceOfmatricesPointerToCBuf := (*C.HarfangMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) renderstateToC := renderstate.h - C.WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf, renderstateToC) + C.HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf, renderstateToC) } // DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth Draw a model to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21720,51 +22933,51 @@ func DrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth(vi viewidToC := C.ushort(viewid) mdlToC := mdl.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - var SliceOfmatricesPointer []C.WrapMat4 + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + var SliceOfmatricesPointer []C.HarfangMat4 for _, s := range SliceOfmatrices { SliceOfmatricesPointer = append(SliceOfmatricesPointer, s.h) } SliceOfmatricesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmatricesPointer)) SliceOfmatricesPointerToCSize := C.size_t(SliceOfmatricesPointerToC.Len) - SliceOfmatricesPointerToCBuf := (*C.WrapMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) + SliceOfmatricesPointerToCBuf := (*C.HarfangMat4)(unsafe.Pointer(SliceOfmatricesPointerToC.Data)) renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf, renderstateToC, depthToC) + C.HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth(viewidToC, mdlToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, SliceOfmatricesPointerToCSize, SliceOfmatricesPointerToCBuf, renderstateToC, depthToC) } // UpdateMaterialPipelineProgramVariant Select the proper pipeline program variant for the current material state. func UpdateMaterialPipelineProgramVariant(mat *Material, resources *PipelineResources) { matToC := mat.h resourcesToC := resources.h - C.WrapUpdateMaterialPipelineProgramVariant(matToC, resourcesToC) + C.HarfangUpdateMaterialPipelineProgramVariant(matToC, resourcesToC) } // CreateMissingMaterialProgramValuesFromFile This function scans the material program uniforms and creates a corresponding entry in the material if missing. Resources are loaded from the local filesystem if a default uniform value requires it. func CreateMissingMaterialProgramValuesFromFile(mat *Material, resources *PipelineResources) { matToC := mat.h resourcesToC := resources.h - C.WrapCreateMissingMaterialProgramValuesFromFile(matToC, resourcesToC) + C.HarfangCreateMissingMaterialProgramValuesFromFile(matToC, resourcesToC) } // CreateMissingMaterialProgramValuesFromAssets This function scans the material program uniforms and creates a corresponding entry in the material if missing. Resources are loaded from the asset system if a default uniform value requires it. See [harfang.man.Assets]. func CreateMissingMaterialProgramValuesFromAssets(mat *Material, resources *PipelineResources) { matToC := mat.h resourcesToC := resources.h - C.WrapCreateMissingMaterialProgramValuesFromAssets(matToC, resourcesToC) + C.HarfangCreateMissingMaterialProgramValuesFromAssets(matToC, resourcesToC) } // CreateFrameBuffer Create a framebuffer and its texture attachments. See [harfang.DestroyFrameBuffer]. @@ -21773,10 +22986,10 @@ func CreateFrameBuffer(color *Texture, depth *Texture, name string) *FrameBuffer depthToC := depth.h nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapCreateFrameBuffer(colorToC, depthToC, nameToC) + retval := C.HarfangCreateFrameBuffer(colorToC, depthToC, nameToC) retvalGO := &FrameBuffer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FrameBuffer) { - C.WrapFrameBufferFree(cleanval.h) + C.HarfangFrameBufferFree(cleanval.h) }) return retvalGO } @@ -21788,10 +23001,10 @@ func CreateFrameBufferWithColorFormatDepthFormatAaName(colorformat TextureFormat aaToC := C.int32_t(aa) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapCreateFrameBufferWithColorFormatDepthFormatAaName(colorformatToC, depthformatToC, aaToC, nameToC) + retval := C.HarfangCreateFrameBufferWithColorFormatDepthFormatAaName(colorformatToC, depthformatToC, aaToC, nameToC) retvalGO := &FrameBuffer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FrameBuffer) { - C.WrapFrameBufferFree(cleanval.h) + C.HarfangFrameBufferFree(cleanval.h) }) return retvalGO } @@ -21805,10 +23018,10 @@ func CreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName(width int32, h aaToC := C.int32_t(aa) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapCreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName(widthToC, heightToC, colorformatToC, depthformatToC, aaToC, nameToC) + retval := C.HarfangCreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName(widthToC, heightToC, colorformatToC, depthformatToC, aaToC, nameToC) retvalGO := &FrameBuffer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *FrameBuffer) { - C.WrapFrameBufferFree(cleanval.h) + C.HarfangFrameBufferFree(cleanval.h) }) return retvalGO } @@ -21816,10 +23029,10 @@ func CreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName(width int32, h // GetColorTexture Retrieves color texture attachment. func GetColorTexture(frameBuffer *FrameBuffer) *Texture { frameBufferToC := frameBuffer.h - retval := C.WrapGetColorTexture(frameBufferToC) + retval := C.HarfangGetColorTexture(frameBufferToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -21827,10 +23040,10 @@ func GetColorTexture(frameBuffer *FrameBuffer) *Texture { // GetDepthTexture Retrieves depth texture attachment. func GetDepthTexture(frameBuffer *FrameBuffer) *Texture { frameBufferToC := frameBuffer.h - retval := C.WrapGetDepthTexture(frameBufferToC) + retval := C.HarfangGetDepthTexture(frameBufferToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -21842,20 +23055,20 @@ func GetTextures(framebuffer *FrameBuffer) (*Texture, *Texture) { colorToC := color.h depth := NewTexture() depthToC := depth.h - C.WrapGetTextures(framebufferToC, colorToC, depthToC) + C.HarfangGetTextures(framebufferToC, colorToC, depthToC) return color, depth } // DestroyFrameBuffer Destroy a frame buffer and its resources. func DestroyFrameBuffer(frameBuffer *FrameBuffer) { frameBufferToC := frameBuffer.h - C.WrapDestroyFrameBuffer(frameBufferToC) + C.HarfangDestroyFrameBuffer(frameBufferToC) } // SetTransform Set the model matrix for the next drawn primitive. If not called, model will be rendered with the identity model matrix. func SetTransform(mtx *Mat4) { mtxToC := mtx.h - C.WrapSetTransform(mtxToC) + C.HarfangSetTransform(mtxToC) } // DrawLines Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21863,7 +23076,7 @@ func DrawLines(viewid uint16, vtx *Vertices, prg *ProgramHandle) { viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - C.WrapDrawLines(viewidToC, vtxToC, prgToC) + C.HarfangDrawLines(viewidToC, vtxToC, prgToC) } // DrawLinesWithRenderState Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21872,7 +23085,7 @@ func DrawLinesWithRenderState(viewid uint16, vtx *Vertices, prg *ProgramHandle, vtxToC := vtx.h prgToC := prg.h renderstateToC := renderstate.h - C.WrapDrawLinesWithRenderState(viewidToC, vtxToC, prgToC, renderstateToC) + C.HarfangDrawLinesWithRenderState(viewidToC, vtxToC, prgToC, renderstateToC) } // DrawLinesWithRenderStateDepth Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21882,7 +23095,7 @@ func DrawLinesWithRenderStateDepth(viewid uint16, vtx *Vertices, prg *ProgramHan prgToC := prg.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawLinesWithRenderStateDepth(viewidToC, vtxToC, prgToC, renderstateToC, depthToC) + C.HarfangDrawLinesWithRenderStateDepth(viewidToC, vtxToC, prgToC, renderstateToC, depthToC) } // DrawLinesWithValuesTextures Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21892,7 +23105,7 @@ func DrawLinesWithValuesTextures(viewid uint16, vtx *Vertices, prg *ProgramHandl prgToC := prg.h valuesToC := values.h texturesToC := textures.h - C.WrapDrawLinesWithValuesTextures(viewidToC, vtxToC, prgToC, valuesToC, texturesToC) + C.HarfangDrawLinesWithValuesTextures(viewidToC, vtxToC, prgToC, valuesToC, texturesToC) } // DrawLinesWithValuesTexturesRenderState Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21903,7 +23116,7 @@ func DrawLinesWithValuesTexturesRenderState(viewid uint16, vtx *Vertices, prg *P valuesToC := values.h texturesToC := textures.h renderstateToC := renderstate.h - C.WrapDrawLinesWithValuesTexturesRenderState(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC) + C.HarfangDrawLinesWithValuesTexturesRenderState(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC) } // DrawLinesWithValuesTexturesRenderStateDepth Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21915,7 +23128,7 @@ func DrawLinesWithValuesTexturesRenderStateDepth(viewid uint16, vtx *Vertices, p texturesToC := textures.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawLinesWithValuesTexturesRenderStateDepth(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC, depthToC) + C.HarfangDrawLinesWithValuesTexturesRenderStateDepth(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC, depthToC) } // DrawLinesWithIdxVtxPrgValuesTextures Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21926,7 +23139,7 @@ func DrawLinesWithIdxVtxPrgValuesTextures(viewid uint16, idx *Uint16TList, vtx * prgToC := prg.h valuesToC := values.h texturesToC := textures.h - C.WrapDrawLinesWithIdxVtxPrgValuesTextures(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC) + C.HarfangDrawLinesWithIdxVtxPrgValuesTextures(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC) } // DrawLinesWithIdxVtxPrgValuesTexturesRenderState Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21938,7 +23151,7 @@ func DrawLinesWithIdxVtxPrgValuesTexturesRenderState(viewid uint16, idx *Uint16T valuesToC := values.h texturesToC := textures.h renderstateToC := renderstate.h - C.WrapDrawLinesWithIdxVtxPrgValuesTexturesRenderState(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC) + C.HarfangDrawLinesWithIdxVtxPrgValuesTexturesRenderState(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC) } // DrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21951,7 +23164,7 @@ func DrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth(viewid uint16, idx *Ui texturesToC := textures.h renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC, depthToC) + C.HarfangDrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, renderstateToC, depthToC) } // DrawLinesWithSliceOfValuesSliceOfTextures Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21959,21 +23172,21 @@ func DrawLinesWithSliceOfValuesSliceOfTextures(viewid uint16, vtx *Vertices, prg viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawLinesWithSliceOfValuesSliceOfTextures(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawLinesWithSliceOfValuesSliceOfTextures(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawLinesWithSliceOfValuesSliceOfTexturesRenderState Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -21981,22 +23194,22 @@ func DrawLinesWithSliceOfValuesSliceOfTexturesRenderState(viewid uint16, vtx *Ve viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) renderstateToC := renderstate.h - C.WrapDrawLinesWithSliceOfValuesSliceOfTexturesRenderState(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC) + C.HarfangDrawLinesWithSliceOfValuesSliceOfTexturesRenderState(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC) } // DrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22004,23 +23217,23 @@ func DrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewid uint16, vt viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC, depthToC) + C.HarfangDrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC, depthToC) } // DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22031,21 +23244,21 @@ func DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewid uint16, Sl SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22056,22 +23269,22 @@ func DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState(viewid SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) renderstateToC := renderstate.h - C.WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC) + C.HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC) } // DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth Draw a list of lines to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22082,23 +23295,23 @@ func DrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth(v SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) renderstateToC := renderstate.h depthToC := C.uint32_t(depth) - C.WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC, depthToC) + C.HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, renderstateToC, depthToC) } // DrawTriangles Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22106,7 +23319,7 @@ func DrawTriangles(viewid uint16, vtx *Vertices, prg *ProgramHandle) { viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - C.WrapDrawTriangles(viewidToC, vtxToC, prgToC) + C.HarfangDrawTriangles(viewidToC, vtxToC, prgToC) } // DrawTrianglesWithState Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22115,7 +23328,7 @@ func DrawTrianglesWithState(viewid uint16, vtx *Vertices, prg *ProgramHandle, st vtxToC := vtx.h prgToC := prg.h stateToC := state.h - C.WrapDrawTrianglesWithState(viewidToC, vtxToC, prgToC, stateToC) + C.HarfangDrawTrianglesWithState(viewidToC, vtxToC, prgToC, stateToC) } // DrawTrianglesWithStateDepth Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22125,7 +23338,7 @@ func DrawTrianglesWithStateDepth(viewid uint16, vtx *Vertices, prg *ProgramHandl prgToC := prg.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTrianglesWithStateDepth(viewidToC, vtxToC, prgToC, stateToC, depthToC) + C.HarfangDrawTrianglesWithStateDepth(viewidToC, vtxToC, prgToC, stateToC, depthToC) } // DrawTrianglesWithValuesTextures Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22135,7 +23348,7 @@ func DrawTrianglesWithValuesTextures(viewid uint16, vtx *Vertices, prg *ProgramH prgToC := prg.h valuesToC := values.h texturesToC := textures.h - C.WrapDrawTrianglesWithValuesTextures(viewidToC, vtxToC, prgToC, valuesToC, texturesToC) + C.HarfangDrawTrianglesWithValuesTextures(viewidToC, vtxToC, prgToC, valuesToC, texturesToC) } // DrawTrianglesWithValuesTexturesState Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22146,7 +23359,7 @@ func DrawTrianglesWithValuesTexturesState(viewid uint16, vtx *Vertices, prg *Pro valuesToC := values.h texturesToC := textures.h stateToC := state.h - C.WrapDrawTrianglesWithValuesTexturesState(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC) + C.HarfangDrawTrianglesWithValuesTexturesState(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC) } // DrawTrianglesWithValuesTexturesStateDepth Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22158,7 +23371,7 @@ func DrawTrianglesWithValuesTexturesStateDepth(viewid uint16, vtx *Vertices, prg texturesToC := textures.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTrianglesWithValuesTexturesStateDepth(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) + C.HarfangDrawTrianglesWithValuesTexturesStateDepth(viewidToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) } // DrawTrianglesWithIdxVtxPrgValuesTextures Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22169,7 +23382,7 @@ func DrawTrianglesWithIdxVtxPrgValuesTextures(viewid uint16, idx *Uint16TList, v prgToC := prg.h valuesToC := values.h texturesToC := textures.h - C.WrapDrawTrianglesWithIdxVtxPrgValuesTextures(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC) + C.HarfangDrawTrianglesWithIdxVtxPrgValuesTextures(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC) } // DrawTrianglesWithIdxVtxPrgValuesTexturesState Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22181,7 +23394,7 @@ func DrawTrianglesWithIdxVtxPrgValuesTexturesState(viewid uint16, idx *Uint16TLi valuesToC := values.h texturesToC := textures.h stateToC := state.h - C.WrapDrawTrianglesWithIdxVtxPrgValuesTexturesState(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC) + C.HarfangDrawTrianglesWithIdxVtxPrgValuesTexturesState(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC) } // DrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22194,7 +23407,7 @@ func DrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth(viewid uint16, idx *Uint texturesToC := textures.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) + C.HarfangDrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth(viewidToC, idxToC, vtxToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) } // DrawTrianglesWithSliceOfValuesSliceOfTextures Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22202,21 +23415,21 @@ func DrawTrianglesWithSliceOfValuesSliceOfTextures(viewid uint16, vtx *Vertices, viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawTrianglesWithSliceOfValuesSliceOfTextures(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawTrianglesWithSliceOfValuesSliceOfTextures(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawTrianglesWithSliceOfValuesSliceOfTexturesState Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22224,22 +23437,22 @@ func DrawTrianglesWithSliceOfValuesSliceOfTexturesState(viewid uint16, vtx *Vert viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h - C.WrapDrawTrianglesWithSliceOfValuesSliceOfTexturesState(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) + C.HarfangDrawTrianglesWithSliceOfValuesSliceOfTexturesState(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) } // DrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22247,23 +23460,23 @@ func DrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth(viewid uint16, vtx viewidToC := C.ushort(viewid) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) + C.HarfangDrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth(viewidToC, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) } // DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22274,21 +23487,21 @@ func DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewid uint16 SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22299,22 +23512,22 @@ func DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState(viewid u SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h - C.WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) + C.HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) } // DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth Draw a list of triangles to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. @@ -22325,23 +23538,23 @@ func DrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth(vie SliceOfidxToCBuf := (*C.ushort)(unsafe.Pointer(SliceOfidxToC.Data)) vtxToC := vtx.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) + C.HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth(viewidToC, SliceOfidxToCSize, SliceOfidxToCBuf, vtxToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) } // DrawSprites Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22352,7 +23565,7 @@ func DrawSprites(viewid uint16, invviewR *Mat3, vtxlayout *VertexLayout, pos *Ve posToC := pos.h sizeToC := size.h prgToC := prg.h - C.WrapDrawSprites(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC) + C.HarfangDrawSprites(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC) } // DrawSpritesWithState Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22364,7 +23577,7 @@ func DrawSpritesWithState(viewid uint16, invviewR *Mat3, vtxlayout *VertexLayout sizeToC := size.h prgToC := prg.h stateToC := state.h - C.WrapDrawSpritesWithState(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, stateToC) + C.HarfangDrawSpritesWithState(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, stateToC) } // DrawSpritesWithStateDepth Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22377,7 +23590,7 @@ func DrawSpritesWithStateDepth(viewid uint16, invviewR *Mat3, vtxlayout *VertexL prgToC := prg.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawSpritesWithStateDepth(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, stateToC, depthToC) + C.HarfangDrawSpritesWithStateDepth(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, stateToC, depthToC) } // DrawSpritesWithValuesTextures Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22390,7 +23603,7 @@ func DrawSpritesWithValuesTextures(viewid uint16, invviewR *Mat3, vtxlayout *Ver prgToC := prg.h valuesToC := values.h texturesToC := textures.h - C.WrapDrawSpritesWithValuesTextures(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC) + C.HarfangDrawSpritesWithValuesTextures(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC) } // DrawSpritesWithValuesTexturesState Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22404,7 +23617,7 @@ func DrawSpritesWithValuesTexturesState(viewid uint16, invviewR *Mat3, vtxlayout valuesToC := values.h texturesToC := textures.h stateToC := state.h - C.WrapDrawSpritesWithValuesTexturesState(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC, stateToC) + C.HarfangDrawSpritesWithValuesTexturesState(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC, stateToC) } // DrawSpritesWithValuesTexturesStateDepth Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22419,7 +23632,7 @@ func DrawSpritesWithValuesTexturesStateDepth(viewid uint16, invviewR *Mat3, vtxl texturesToC := textures.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawSpritesWithValuesTexturesStateDepth(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) + C.HarfangDrawSpritesWithValuesTexturesStateDepth(viewidToC, invviewRToC, vtxlayoutToC, posToC, sizeToC, prgToC, valuesToC, texturesToC, stateToC, depthToC) } // DrawSpritesWithSliceOfPos Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22427,16 +23640,16 @@ func DrawSpritesWithSliceOfPos(viewid uint16, invviewR *Mat3, vtxlayout *VertexL viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h - C.WrapDrawSpritesWithSliceOfPos(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC) + C.HarfangDrawSpritesWithSliceOfPos(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC) } // DrawSpritesWithSliceOfPosState Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22444,17 +23657,17 @@ func DrawSpritesWithSliceOfPosState(viewid uint16, invviewR *Mat3, vtxlayout *Ve viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h stateToC := state.h - C.WrapDrawSpritesWithSliceOfPosState(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, stateToC) + C.HarfangDrawSpritesWithSliceOfPosState(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, stateToC) } // DrawSpritesWithSliceOfPosStateDepth Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22462,18 +23675,18 @@ func DrawSpritesWithSliceOfPosStateDepth(viewid uint16, invviewR *Mat3, vtxlayou viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawSpritesWithSliceOfPosStateDepth(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, stateToC, depthToC) + C.HarfangDrawSpritesWithSliceOfPosStateDepth(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, stateToC, depthToC) } // DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22481,30 +23694,30 @@ func DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures(viewid uint16, invvie viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22512,31 +23725,31 @@ func DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState(viewid uint16, i viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h - C.WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) + C.HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) } // DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth Draw a list of sprites to the specified view. Use [harfang.UniformSetValueList] and [harfang.UniformSetTextureList] to pass uniform values to the shader program. *Note:* This function prepares the sprite on the CPU before submitting them all to the GPU as a single draw call. @@ -22544,37 +23757,37 @@ func DrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth(viewid uint viewidToC := C.ushort(viewid) invviewRToC := invviewR.h vtxlayoutToC := vtxlayout.h - var SliceOfposPointer []C.WrapVec3 + var SliceOfposPointer []C.HarfangVec3 for _, s := range SliceOfpos { SliceOfposPointer = append(SliceOfposPointer, s.h) } SliceOfposPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfposPointer)) SliceOfposPointerToCSize := C.size_t(SliceOfposPointerToC.Len) - SliceOfposPointerToCBuf := (*C.WrapVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) + SliceOfposPointerToCBuf := (*C.HarfangVec3)(unsafe.Pointer(SliceOfposPointerToC.Data)) sizeToC := size.h prgToC := prg.h - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) + C.HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth(viewidToC, invviewRToC, vtxlayoutToC, SliceOfposPointerToCSize, SliceOfposPointerToCBuf, sizeToC, prgToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) } // GetForwardPipelineInfo Return the pipeline info object for the forward pipeline. func GetForwardPipelineInfo() *PipelineInfo { - retval := C.WrapGetForwardPipelineInfo() + retval := C.HarfangGetForwardPipelineInfo() var retvalGO *PipelineInfo if retval != nil { retvalGO = &PipelineInfo{h: retval} @@ -22584,10 +23797,10 @@ func GetForwardPipelineInfo() *PipelineInfo { // CreateForwardPipeline Create a forward pipeline and its resources. See [harfang.DestroyForwardPipeline]. func CreateForwardPipeline() *ForwardPipeline { - retval := C.WrapCreateForwardPipeline() + retval := C.HarfangCreateForwardPipeline() retvalGO := &ForwardPipeline{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipeline) { - C.WrapForwardPipelineFree(cleanval.h) + C.HarfangForwardPipelineFree(cleanval.h) }) return retvalGO } @@ -22595,10 +23808,10 @@ func CreateForwardPipeline() *ForwardPipeline { // CreateForwardPipelineWithShadowMapResolution Create a forward pipeline and its resources. See [harfang.DestroyForwardPipeline]. func CreateForwardPipelineWithShadowMapResolution(shadowmapresolution int32) *ForwardPipeline { shadowmapresolutionToC := C.int32_t(shadowmapresolution) - retval := C.WrapCreateForwardPipelineWithShadowMapResolution(shadowmapresolutionToC) + retval := C.HarfangCreateForwardPipelineWithShadowMapResolution(shadowmapresolutionToC) retvalGO := &ForwardPipeline{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipeline) { - C.WrapForwardPipelineFree(cleanval.h) + C.HarfangForwardPipelineFree(cleanval.h) }) return retvalGO } @@ -22607,10 +23820,10 @@ func CreateForwardPipelineWithShadowMapResolution(shadowmapresolution int32) *Fo func CreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(shadowmapresolution int32, spot16bitshadowmap bool) *ForwardPipeline { shadowmapresolutionToC := C.int32_t(shadowmapresolution) spot16bitshadowmapToC := C.bool(spot16bitshadowmap) - retval := C.WrapCreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(shadowmapresolutionToC, spot16bitshadowmapToC) + retval := C.HarfangCreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(shadowmapresolutionToC, spot16bitshadowmapToC) retvalGO := &ForwardPipeline{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipeline) { - C.WrapForwardPipelineFree(cleanval.h) + C.HarfangForwardPipelineFree(cleanval.h) }) return retvalGO } @@ -22618,7 +23831,7 @@ func CreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(shadowmapres // DestroyForwardPipeline Destroy a forward pipeline object. func DestroyForwardPipeline(pipeline *ForwardPipeline) { pipelineToC := pipeline.h - C.WrapDestroyForwardPipeline(pipelineToC) + C.HarfangDestroyForwardPipeline(pipelineToC) } // MakeForwardPipelinePointLight Create a forward pipeline point light. See [harfang.ForwardPipelineLights], [harfang.PrepareForwardPipelineLights] and [harfang.SubmitModelToForwardPipeline]. @@ -22626,10 +23839,10 @@ func MakeForwardPipelinePointLight(world *Mat4, diffuse *Color, specular *Color) worldToC := world.h diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapMakeForwardPipelinePointLight(worldToC, diffuseToC, specularToC) + retval := C.HarfangMakeForwardPipelinePointLight(worldToC, diffuseToC, specularToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22640,10 +23853,10 @@ func MakeForwardPipelinePointLightWithRadius(world *Mat4, diffuse *Color, specul diffuseToC := diffuse.h specularToC := specular.h radiusToC := C.float(radius) - retval := C.WrapMakeForwardPipelinePointLightWithRadius(worldToC, diffuseToC, specularToC, radiusToC) + retval := C.HarfangMakeForwardPipelinePointLightWithRadius(worldToC, diffuseToC, specularToC, radiusToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22655,10 +23868,10 @@ func MakeForwardPipelinePointLightWithRadiusPriority(world *Mat4, diffuse *Color specularToC := specular.h radiusToC := C.float(radius) priorityToC := C.float(priority) - retval := C.WrapMakeForwardPipelinePointLightWithRadiusPriority(worldToC, diffuseToC, specularToC, radiusToC, priorityToC) + retval := C.HarfangMakeForwardPipelinePointLightWithRadiusPriority(worldToC, diffuseToC, specularToC, radiusToC, priorityToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22671,10 +23884,10 @@ func MakeForwardPipelinePointLightWithRadiusPriorityShadowType(world *Mat4, diff radiusToC := C.float(radius) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapMakeForwardPipelinePointLightWithRadiusPriorityShadowType(worldToC, diffuseToC, specularToC, radiusToC, priorityToC, shadowtypeToC) + retval := C.HarfangMakeForwardPipelinePointLightWithRadiusPriorityShadowType(worldToC, diffuseToC, specularToC, radiusToC, priorityToC, shadowtypeToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22688,10 +23901,10 @@ func MakeForwardPipelinePointLightWithRadiusPriorityShadowTypeShadowBias(world * priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapMakeForwardPipelinePointLightWithRadiusPriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, radiusToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangMakeForwardPipelinePointLightWithRadiusPriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, radiusToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22701,10 +23914,10 @@ func MakeForwardPipelineSpotLight(world *Mat4, diffuse *Color, specular *Color) worldToC := world.h diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapMakeForwardPipelineSpotLight(worldToC, diffuseToC, specularToC) + retval := C.HarfangMakeForwardPipelineSpotLight(worldToC, diffuseToC, specularToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22715,10 +23928,10 @@ func MakeForwardPipelineSpotLightWithRadius(world *Mat4, diffuse *Color, specula diffuseToC := diffuse.h specularToC := specular.h radiusToC := C.float(radius) - retval := C.WrapMakeForwardPipelineSpotLightWithRadius(worldToC, diffuseToC, specularToC, radiusToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadius(worldToC, diffuseToC, specularToC, radiusToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22730,10 +23943,10 @@ func MakeForwardPipelineSpotLightWithRadiusInnerAngle(world *Mat4, diffuse *Colo specularToC := specular.h radiusToC := C.float(radius) innerangleToC := C.float(innerangle) - retval := C.WrapMakeForwardPipelineSpotLightWithRadiusInnerAngle(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngle(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22746,10 +23959,10 @@ func MakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAngle(world *Mat4, dif radiusToC := C.float(radius) innerangleToC := C.float(innerangle) outerangleToC := C.float(outerangle) - retval := C.WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAngle(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAngle(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22763,10 +23976,10 @@ func MakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriority(world *M innerangleToC := C.float(innerangle) outerangleToC := C.float(outerangle) priorityToC := C.float(priority) - retval := C.WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriority(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriority(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22781,10 +23994,10 @@ func MakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTyp outerangleToC := C.float(outerangle) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowType(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC, shadowtypeToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowType(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC, shadowtypeToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22800,10 +24013,10 @@ func MakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTyp priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, radiusToC, innerangleToC, outerangleToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22813,10 +24026,10 @@ func MakeForwardPipelineLinearLight(world *Mat4, diffuse *Color, specular *Color worldToC := world.h diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapMakeForwardPipelineLinearLight(worldToC, diffuseToC, specularToC) + retval := C.HarfangMakeForwardPipelineLinearLight(worldToC, diffuseToC, specularToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22827,10 +24040,10 @@ func MakeForwardPipelineLinearLightWithPssmSplit(world *Mat4, diffuse *Color, sp diffuseToC := diffuse.h specularToC := specular.h pssmsplitToC := pssmsplit.h - retval := C.WrapMakeForwardPipelineLinearLightWithPssmSplit(worldToC, diffuseToC, specularToC, pssmsplitToC) + retval := C.HarfangMakeForwardPipelineLinearLightWithPssmSplit(worldToC, diffuseToC, specularToC, pssmsplitToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22842,10 +24055,10 @@ func MakeForwardPipelineLinearLightWithPssmSplitPriority(world *Mat4, diffuse *C specularToC := specular.h pssmsplitToC := pssmsplit.h priorityToC := C.float(priority) - retval := C.WrapMakeForwardPipelineLinearLightWithPssmSplitPriority(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC) + retval := C.HarfangMakeForwardPipelineLinearLightWithPssmSplitPriority(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22858,10 +24071,10 @@ func MakeForwardPipelineLinearLightWithPssmSplitPriorityShadowType(world *Mat4, pssmsplitToC := pssmsplit.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowType(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC, shadowtypeToC) + retval := C.HarfangMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowType(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC, shadowtypeToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22875,10 +24088,10 @@ func MakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias(wor priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias(worldToC, diffuseToC, specularToC, pssmsplitToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &ForwardPipelineLight{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLight) { - C.WrapForwardPipelineLightFree(cleanval.h) + C.HarfangForwardPipelineLightFree(cleanval.h) }) return retvalGO } @@ -22886,27 +24099,27 @@ func MakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias(wor // PrepareForwardPipelineLights Prepare a list of forward pipeline lights into a structure ready for submitting to the forward pipeline. Lights are sorted by priority/type and the most important lights are assigned to available lighting slot of the forward pipeline. See [harfang.SubmitModelToForwardPipeline]. func PrepareForwardPipelineLights(lights *ForwardPipelineLightList) *ForwardPipelineLights { lightsToC := lights.h - retval := C.WrapPrepareForwardPipelineLights(lightsToC) + retval := C.HarfangPrepareForwardPipelineLights(lightsToC) retvalGO := &ForwardPipelineLights{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLights) { - C.WrapForwardPipelineLightsFree(cleanval.h) + C.HarfangForwardPipelineLightsFree(cleanval.h) }) return retvalGO } // PrepareForwardPipelineLightsWithSliceOfLights Prepare a list of forward pipeline lights into a structure ready for submitting to the forward pipeline. Lights are sorted by priority/type and the most important lights are assigned to available lighting slot of the forward pipeline. See [harfang.SubmitModelToForwardPipeline]. func PrepareForwardPipelineLightsWithSliceOfLights(SliceOflights GoSliceOfForwardPipelineLight) *ForwardPipelineLights { - var SliceOflightsPointer []C.WrapForwardPipelineLight + var SliceOflightsPointer []C.HarfangForwardPipelineLight for _, s := range SliceOflights { SliceOflightsPointer = append(SliceOflightsPointer, s.h) } SliceOflightsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOflightsPointer)) SliceOflightsPointerToCSize := C.size_t(SliceOflightsPointerToC.Len) - SliceOflightsPointerToCBuf := (*C.WrapForwardPipelineLight)(unsafe.Pointer(SliceOflightsPointerToC.Data)) - retval := C.WrapPrepareForwardPipelineLightsWithSliceOfLights(SliceOflightsPointerToCSize, SliceOflightsPointerToCBuf) + SliceOflightsPointerToCBuf := (*C.HarfangForwardPipelineLight)(unsafe.Pointer(SliceOflightsPointerToC.Data)) + retval := C.HarfangPrepareForwardPipelineLightsWithSliceOfLights(SliceOflightsPointerToCSize, SliceOflightsPointerToCBuf) retvalGO := &ForwardPipelineLights{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLights) { - C.WrapForwardPipelineLightsFree(cleanval.h) + C.HarfangForwardPipelineLightsFree(cleanval.h) }) return retvalGO } @@ -22915,10 +24128,10 @@ func PrepareForwardPipelineLightsWithSliceOfLights(SliceOflights GoSliceOfForwar func LoadFontFromFile(path string) *Font { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadFontFromFile(pathToC) + retval := C.HarfangLoadFontFromFile(pathToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22928,10 +24141,10 @@ func LoadFontFromFileWithSize(path string, size float32) *Font { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() sizeToC := C.float(size) - retval := C.WrapLoadFontFromFileWithSize(pathToC, sizeToC) + retval := C.HarfangLoadFontFromFileWithSize(pathToC, sizeToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22942,10 +24155,10 @@ func LoadFontFromFileWithSizeResolution(path string, size float32, resolution ui defer idFinpathToC() sizeToC := C.float(size) resolutionToC := C.ushort(resolution) - retval := C.WrapLoadFontFromFileWithSizeResolution(pathToC, sizeToC, resolutionToC) + retval := C.HarfangLoadFontFromFileWithSizeResolution(pathToC, sizeToC, resolutionToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22957,10 +24170,10 @@ func LoadFontFromFileWithSizeResolutionPadding(path string, size float32, resolu sizeToC := C.float(size) resolutionToC := C.ushort(resolution) paddingToC := C.int32_t(padding) - retval := C.WrapLoadFontFromFileWithSizeResolutionPadding(pathToC, sizeToC, resolutionToC, paddingToC) + retval := C.HarfangLoadFontFromFileWithSizeResolutionPadding(pathToC, sizeToC, resolutionToC, paddingToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22974,10 +24187,10 @@ func LoadFontFromFileWithSizeResolutionPaddingGlyphs(path string, size float32, paddingToC := C.int32_t(padding) glyphsToC, idFinglyphsToC := wrapString(glyphs) defer idFinglyphsToC() - retval := C.WrapLoadFontFromFileWithSizeResolutionPaddingGlyphs(pathToC, sizeToC, resolutionToC, paddingToC, glyphsToC) + retval := C.HarfangLoadFontFromFileWithSizeResolutionPaddingGlyphs(pathToC, sizeToC, resolutionToC, paddingToC, glyphsToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22986,10 +24199,10 @@ func LoadFontFromFileWithSizeResolutionPaddingGlyphs(path string, size float32, func LoadFontFromAssets(name string) *Font { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadFontFromAssets(nameToC) + retval := C.HarfangLoadFontFromAssets(nameToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -22999,10 +24212,10 @@ func LoadFontFromAssetsWithSize(name string, size float32) *Font { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() sizeToC := C.float(size) - retval := C.WrapLoadFontFromAssetsWithSize(nameToC, sizeToC) + retval := C.HarfangLoadFontFromAssetsWithSize(nameToC, sizeToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -23013,10 +24226,10 @@ func LoadFontFromAssetsWithSizeResolution(name string, size float32, resolution defer idFinnameToC() sizeToC := C.float(size) resolutionToC := C.ushort(resolution) - retval := C.WrapLoadFontFromAssetsWithSizeResolution(nameToC, sizeToC, resolutionToC) + retval := C.HarfangLoadFontFromAssetsWithSizeResolution(nameToC, sizeToC, resolutionToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -23028,10 +24241,10 @@ func LoadFontFromAssetsWithSizeResolutionPadding(name string, size float32, reso sizeToC := C.float(size) resolutionToC := C.ushort(resolution) paddingToC := C.int32_t(padding) - retval := C.WrapLoadFontFromAssetsWithSizeResolutionPadding(nameToC, sizeToC, resolutionToC, paddingToC) + retval := C.HarfangLoadFontFromAssetsWithSizeResolutionPadding(nameToC, sizeToC, resolutionToC, paddingToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -23045,10 +24258,10 @@ func LoadFontFromAssetsWithSizeResolutionPaddingGlyphs(name string, size float32 paddingToC := C.int32_t(padding) glyphsToC, idFinglyphsToC := wrapString(glyphs) defer idFinglyphsToC() - retval := C.WrapLoadFontFromAssetsWithSizeResolutionPaddingGlyphs(nameToC, sizeToC, resolutionToC, paddingToC, glyphsToC) + retval := C.HarfangLoadFontFromAssetsWithSizeResolutionPaddingGlyphs(nameToC, sizeToC, resolutionToC, paddingToC, glyphsToC) retvalGO := &Font{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Font) { - C.WrapFontFree(cleanval.h) + C.HarfangFontFree(cleanval.h) }) return retvalGO } @@ -23064,7 +24277,7 @@ func DrawText(viewid uint16, font *Font, text string, prg *ProgramHandle, pageun defer idFinpageuniformToC() pagestageToC := C.uchar(pagestage) mtxToC := mtx.h - C.WrapDrawText(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC) + C.HarfangDrawText(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC) } // DrawTextWithPos Write text to the specified view using the provided shader program and uniform values. @@ -23079,7 +24292,7 @@ func DrawTextWithPos(viewid uint16, font *Font, text string, prg *ProgramHandle, pagestageToC := C.uchar(pagestage) mtxToC := mtx.h posToC := pos.h - C.WrapDrawTextWithPos(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC) + C.HarfangDrawTextWithPos(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC) } // DrawTextWithPosHalignValign Write text to the specified view using the provided shader program and uniform values. @@ -23096,7 +24309,7 @@ func DrawTextWithPosHalignValign(viewid uint16, font *Font, text string, prg *Pr posToC := pos.h halignToC := C.int32_t(halign) valignToC := C.int32_t(valign) - C.WrapDrawTextWithPosHalignValign(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC) + C.HarfangDrawTextWithPosHalignValign(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC) } // DrawTextWithPosHalignValignValuesTextures Write text to the specified view using the provided shader program and uniform values. @@ -23115,7 +24328,7 @@ func DrawTextWithPosHalignValignValuesTextures(viewid uint16, font *Font, text s valignToC := C.int32_t(valign) valuesToC := values.h texturesToC := textures.h - C.WrapDrawTextWithPosHalignValignValuesTextures(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC) + C.HarfangDrawTextWithPosHalignValignValuesTextures(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC) } // DrawTextWithPosHalignValignValuesTexturesState Write text to the specified view using the provided shader program and uniform values. @@ -23135,7 +24348,7 @@ func DrawTextWithPosHalignValignValuesTexturesState(viewid uint16, font *Font, t valuesToC := values.h texturesToC := textures.h stateToC := state.h - C.WrapDrawTextWithPosHalignValignValuesTexturesState(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC, stateToC) + C.HarfangDrawTextWithPosHalignValignValuesTexturesState(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC, stateToC) } // DrawTextWithPosHalignValignValuesTexturesStateDepth Write text to the specified view using the provided shader program and uniform values. @@ -23156,7 +24369,7 @@ func DrawTextWithPosHalignValignValuesTexturesStateDepth(viewid uint16, font *Fo texturesToC := textures.h stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTextWithPosHalignValignValuesTexturesStateDepth(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC, stateToC, depthToC) + C.HarfangDrawTextWithPosHalignValignValuesTexturesStateDepth(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, valuesToC, texturesToC, stateToC, depthToC) } // DrawTextWithPosHalignValignSliceOfValuesSliceOfTextures Write text to the specified view using the provided shader program and uniform values. @@ -23173,21 +24386,21 @@ func DrawTextWithPosHalignValignSliceOfValuesSliceOfTextures(viewid uint16, font posToC := pos.h halignToC := C.int32_t(halign) valignToC := C.int32_t(valign) - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) - C.WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTextures(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + C.HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTextures(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf) } // DrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState Write text to the specified view using the provided shader program and uniform values. @@ -23204,22 +24417,22 @@ func DrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState(viewid uint16, posToC := pos.h halignToC := C.int32_t(halign) valignToC := C.int32_t(valign) - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h - C.WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) + C.HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC) } // DrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth Write text to the specified view using the provided shader program and uniform values. @@ -23236,23 +24449,23 @@ func DrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth(viewid ui posToC := pos.h halignToC := C.int32_t(halign) valignToC := C.int32_t(valign) - var SliceOfvaluesPointer []C.WrapUniformSetValue + var SliceOfvaluesPointer []C.HarfangUniformSetValue for _, s := range SliceOfvalues { SliceOfvaluesPointer = append(SliceOfvaluesPointer, s.h) } SliceOfvaluesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfvaluesPointer)) SliceOfvaluesPointerToCSize := C.size_t(SliceOfvaluesPointerToC.Len) - SliceOfvaluesPointerToCBuf := (*C.WrapUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) - var SliceOftexturesPointer []C.WrapUniformSetTexture + SliceOfvaluesPointerToCBuf := (*C.HarfangUniformSetValue)(unsafe.Pointer(SliceOfvaluesPointerToC.Data)) + var SliceOftexturesPointer []C.HarfangUniformSetTexture for _, s := range SliceOftextures { SliceOftexturesPointer = append(SliceOftexturesPointer, s.h) } SliceOftexturesPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOftexturesPointer)) SliceOftexturesPointerToCSize := C.size_t(SliceOftexturesPointerToC.Len) - SliceOftexturesPointerToCBuf := (*C.WrapUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) + SliceOftexturesPointerToCBuf := (*C.HarfangUniformSetTexture)(unsafe.Pointer(SliceOftexturesPointerToC.Data)) stateToC := state.h depthToC := C.uint32_t(depth) - C.WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) + C.HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth(viewidToC, fontToC, textToC, prgToC, pageuniformToC, pagestageToC, mtxToC, posToC, halignToC, valignToC, SliceOfvaluesPointerToCSize, SliceOfvaluesPointerToCBuf, SliceOftexturesPointerToCSize, SliceOftexturesPointerToCBuf, stateToC, depthToC) } // ComputeTextRect Compute the width and height of a text string. @@ -23260,10 +24473,10 @@ func ComputeTextRect(font *Font, text string) *Rect { fontToC := font.h textToC, idFintextToC := wrapString(text) defer idFintextToC() - retval := C.WrapComputeTextRect(fontToC, textToC) + retval := C.HarfangComputeTextRect(fontToC, textToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -23274,10 +24487,10 @@ func ComputeTextRectWithXpos(font *Font, text string, xpos float32) *Rect { textToC, idFintextToC := wrapString(text) defer idFintextToC() xposToC := C.float(xpos) - retval := C.WrapComputeTextRectWithXpos(fontToC, textToC, xposToC) + retval := C.HarfangComputeTextRectWithXpos(fontToC, textToC, xposToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -23289,10 +24502,10 @@ func ComputeTextRectWithXposYpos(font *Font, text string, xpos float32, ypos flo defer idFintextToC() xposToC := C.float(xpos) yposToC := C.float(ypos) - retval := C.WrapComputeTextRectWithXposYpos(fontToC, textToC, xposToC, yposToC) + retval := C.HarfangComputeTextRectWithXposYpos(fontToC, textToC, xposToC, yposToC) retvalGO := &Rect{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Rect) { - C.WrapRectFree(cleanval.h) + C.HarfangRectFree(cleanval.h) }) return retvalGO } @@ -23302,7 +24515,7 @@ func ComputeTextHeight(font *Font, text string) float32 { fontToC := font.h textToC, idFintextToC := wrapString(text) defer idFintextToC() - retval := C.WrapComputeTextHeight(fontToC, textToC) + retval := C.HarfangComputeTextHeight(fontToC, textToC) return float32(retval) } @@ -23310,10 +24523,10 @@ func ComputeTextHeight(font *Font, text string) float32 { func LoadJsonFromFile(path string) *JSON { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadJsonFromFile(pathToC) + retval := C.HarfangLoadJsonFromFile(pathToC) retvalGO := &JSON{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *JSON) { - C.WrapJSONFree(cleanval.h) + C.HarfangJSONFree(cleanval.h) }) return retvalGO } @@ -23322,10 +24535,10 @@ func LoadJsonFromFile(path string) *JSON { func LoadJsonFromAssets(name string) *JSON { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadJsonFromAssets(nameToC) + retval := C.HarfangLoadJsonFromAssets(nameToC) retvalGO := &JSON{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *JSON) { - C.WrapJSONFree(cleanval.h) + C.HarfangJSONFree(cleanval.h) }) return retvalGO } @@ -23335,7 +24548,7 @@ func SaveJsonToFile(js *JSON, path string) bool { jsToC := js.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapSaveJsonToFile(jsToC, pathToC) + retval := C.HarfangSaveJsonToFile(jsToC, pathToC) return bool(retval) } @@ -23347,7 +24560,7 @@ func GetJsonString(js *JSON, key string) (bool, *string) { value := new(string) valueToC1 := C.CString(*value) valueToC := &valueToC1 - retval := C.WrapGetJsonString(jsToC, keyToC, valueToC) + retval := C.HarfangGetJsonString(jsToC, keyToC, valueToC) valueToCGO := string(C.GoString(*valueToC)) return bool(retval), &valueToCGO } @@ -23359,7 +24572,7 @@ func GetJsonBool(js *JSON, key string) (bool, *bool) { defer idFinkeyToC() value := new(bool) valueToC := (*C.bool)(unsafe.Pointer(value)) - retval := C.WrapGetJsonBool(jsToC, keyToC, valueToC) + retval := C.HarfangGetJsonBool(jsToC, keyToC, valueToC) return bool(retval), (*bool)(unsafe.Pointer(valueToC)) } @@ -23370,7 +24583,7 @@ func GetJsonInt(js *JSON, key string) (bool, *int32) { defer idFinkeyToC() value := new(int32) valueToC := (*C.int32_t)(unsafe.Pointer(value)) - retval := C.WrapGetJsonInt(jsToC, keyToC, valueToC) + retval := C.HarfangGetJsonInt(jsToC, keyToC, valueToC) return bool(retval), (*int32)(unsafe.Pointer(valueToC)) } @@ -23381,7 +24594,7 @@ func GetJsonFloat(js *JSON, key string) (bool, *float32) { defer idFinkeyToC() value := new(float32) valueToC := (*C.float)(unsafe.Pointer(value)) - retval := C.WrapGetJsonFloat(jsToC, keyToC, valueToC) + retval := C.HarfangGetJsonFloat(jsToC, keyToC, valueToC) return bool(retval), (*float32)(unsafe.Pointer(valueToC)) } @@ -23392,7 +24605,7 @@ func SetJsonValue(js *JSON, key string, value string) { defer idFinkeyToC() valueToC, idFinvalueToC := wrapString(value) defer idFinvalueToC() - C.WrapSetJsonValue(jsToC, keyToC, valueToC) + C.HarfangSetJsonValue(jsToC, keyToC, valueToC) } // SetJsonValueWithValue Set a JSON key value. @@ -23401,7 +24614,7 @@ func SetJsonValueWithValue(js *JSON, key string, value bool) { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() valueToC := C.bool(value) - C.WrapSetJsonValueWithValue(jsToC, keyToC, valueToC) + C.HarfangSetJsonValueWithValue(jsToC, keyToC, valueToC) } // SetJsonValueWithIntValue Set a JSON key value. @@ -23410,7 +24623,7 @@ func SetJsonValueWithIntValue(js *JSON, key string, value int32) { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() valueToC := C.int32_t(value) - C.WrapSetJsonValueWithIntValue(jsToC, keyToC, valueToC) + C.HarfangSetJsonValueWithIntValue(jsToC, keyToC, valueToC) } // SetJsonValueWithFloatValue Set a JSON key value. @@ -23419,7 +24632,7 @@ func SetJsonValueWithFloatValue(js *JSON, key string, value float32) { keyToC, idFinkeyToC := wrapString(key) defer idFinkeyToC() valueToC := C.float(value) - C.WrapSetJsonValueWithFloatValue(jsToC, keyToC, valueToC) + C.HarfangSetJsonValueWithFloatValue(jsToC, keyToC, valueToC) } // CreateSceneRootNode Helper function to create a [harfang.Node] with a [harfang.Transform] component then parent all root nodes in the scene to it. @@ -23428,10 +24641,10 @@ func CreateSceneRootNode(scene *Scene, name string, mtx *Mat4) *Node { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() mtxToC := mtx.h - retval := C.WrapCreateSceneRootNode(sceneToC, nameToC, mtxToC) + retval := C.HarfangCreateSceneRootNode(sceneToC, nameToC, mtxToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23442,10 +24655,10 @@ func CreateCamera(scene *Scene, mtx *Mat4, znear float32, zfar float32) *Node { mtxToC := mtx.h znearToC := C.float(znear) zfarToC := C.float(zfar) - retval := C.WrapCreateCamera(sceneToC, mtxToC, znearToC, zfarToC) + retval := C.HarfangCreateCamera(sceneToC, mtxToC, znearToC, zfarToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23457,10 +24670,10 @@ func CreateCameraWithFov(scene *Scene, mtx *Mat4, znear float32, zfar float32, f znearToC := C.float(znear) zfarToC := C.float(zfar) fovToC := C.float(fov) - retval := C.WrapCreateCameraWithFov(sceneToC, mtxToC, znearToC, zfarToC, fovToC) + retval := C.HarfangCreateCameraWithFov(sceneToC, mtxToC, znearToC, zfarToC, fovToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23471,10 +24684,10 @@ func CreateOrthographicCamera(scene *Scene, mtx *Mat4, znear float32, zfar float mtxToC := mtx.h znearToC := C.float(znear) zfarToC := C.float(zfar) - retval := C.WrapCreateOrthographicCamera(sceneToC, mtxToC, znearToC, zfarToC) + retval := C.HarfangCreateOrthographicCamera(sceneToC, mtxToC, znearToC, zfarToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23486,10 +24699,10 @@ func CreateOrthographicCameraWithSize(scene *Scene, mtx *Mat4, znear float32, zf znearToC := C.float(znear) zfarToC := C.float(zfar) sizeToC := C.float(size) - retval := C.WrapCreateOrthographicCameraWithSize(sceneToC, mtxToC, znearToC, zfarToC, sizeToC) + retval := C.HarfangCreateOrthographicCameraWithSize(sceneToC, mtxToC, znearToC, zfarToC, sizeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23499,10 +24712,10 @@ func CreatePointLight(scene *Scene, mtx *Mat4, radius float32) *Node { sceneToC := scene.h mtxToC := mtx.h radiusToC := C.float(radius) - retval := C.WrapCreatePointLight(sceneToC, mtxToC, radiusToC) + retval := C.HarfangCreatePointLight(sceneToC, mtxToC, radiusToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23513,10 +24726,10 @@ func CreatePointLightWithDiffuse(scene *Scene, mtx *Mat4, radius float32, diffus mtxToC := mtx.h radiusToC := C.float(radius) diffuseToC := diffuse.h - retval := C.WrapCreatePointLightWithDiffuse(sceneToC, mtxToC, radiusToC, diffuseToC) + retval := C.HarfangCreatePointLightWithDiffuse(sceneToC, mtxToC, radiusToC, diffuseToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23528,10 +24741,10 @@ func CreatePointLightWithDiffuseSpecular(scene *Scene, mtx *Mat4, radius float32 radiusToC := C.float(radius) diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreatePointLightWithDiffuseSpecular(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC) + retval := C.HarfangCreatePointLightWithDiffuseSpecular(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23544,10 +24757,10 @@ func CreatePointLightWithDiffuseSpecularPriority(scene *Scene, mtx *Mat4, radius diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreatePointLightWithDiffuseSpecularPriority(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreatePointLightWithDiffuseSpecularPriority(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23561,10 +24774,10 @@ func CreatePointLightWithDiffuseSpecularPriorityShadowType(scene *Scene, mtx *Ma specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreatePointLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreatePointLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23579,10 +24792,10 @@ func CreatePointLightWithDiffuseSpecularPriorityShadowTypeShadowBias(scene *Scen priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreatePointLightWithDiffuseSpecularPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreatePointLightWithDiffuseSpecularPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23594,10 +24807,10 @@ func CreatePointLightWithDiffuseDiffuseIntensity(scene *Scene, mtx *Mat4, radius radiusToC := C.float(radius) diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23610,10 +24823,10 @@ func CreatePointLightWithDiffuseDiffuseIntensitySpecular(scene *Scene, mtx *Mat4 diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23627,10 +24840,10 @@ func CreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(scene diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23645,10 +24858,10 @@ func CreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorit specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23664,10 +24877,10 @@ func CreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorit specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23684,10 +24897,10 @@ func CreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorit priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23699,10 +24912,10 @@ func CreateSpotLight(scene *Scene, mtx *Mat4, radius float32, innerangle float32 radiusToC := C.float(radius) innerangleToC := C.float(innerangle) outerangleToC := C.float(outerangle) - retval := C.WrapCreateSpotLight(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC) + retval := C.HarfangCreateSpotLight(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23715,10 +24928,10 @@ func CreateSpotLightWithDiffuse(scene *Scene, mtx *Mat4, radius float32, inneran innerangleToC := C.float(innerangle) outerangleToC := C.float(outerangle) diffuseToC := diffuse.h - retval := C.WrapCreateSpotLightWithDiffuse(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC) + retval := C.HarfangCreateSpotLightWithDiffuse(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23732,10 +24945,10 @@ func CreateSpotLightWithDiffuseSpecular(scene *Scene, mtx *Mat4, radius float32, outerangleToC := C.float(outerangle) diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreateSpotLightWithDiffuseSpecular(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC) + retval := C.HarfangCreateSpotLightWithDiffuseSpecular(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23750,10 +24963,10 @@ func CreateSpotLightWithDiffuseSpecularPriority(scene *Scene, mtx *Mat4, radius diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreateSpotLightWithDiffuseSpecularPriority(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreateSpotLightWithDiffuseSpecularPriority(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23769,10 +24982,10 @@ func CreateSpotLightWithDiffuseSpecularPriorityShadowType(scene *Scene, mtx *Mat specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateSpotLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateSpotLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23789,10 +25002,10 @@ func CreateSpotLightWithDiffuseSpecularPriorityShadowTypeShadowBias(scene *Scene priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateSpotLightWithDiffuseSpecularPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateSpotLightWithDiffuseSpecularPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23806,10 +25019,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensity(scene *Scene, mtx *Mat4, radius outerangleToC := C.float(outerangle) diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23824,10 +25037,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecular(scene *Scene, mtx *Mat4, diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23843,10 +25056,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(scene * diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23863,10 +25076,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23884,10 +25097,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23906,10 +25119,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) - retval := C.WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) + retval := C.HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(sceneToC, mtxToC, radiusToC, innerangleToC, outerangleToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23918,10 +25131,10 @@ func CreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority func CreateLinearLight(scene *Scene, mtx *Mat4) *Node { sceneToC := scene.h mtxToC := mtx.h - retval := C.WrapCreateLinearLight(sceneToC, mtxToC) + retval := C.HarfangCreateLinearLight(sceneToC, mtxToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23931,10 +25144,10 @@ func CreateLinearLightWithDiffuse(scene *Scene, mtx *Mat4, diffuse *Color) *Node sceneToC := scene.h mtxToC := mtx.h diffuseToC := diffuse.h - retval := C.WrapCreateLinearLightWithDiffuse(sceneToC, mtxToC, diffuseToC) + retval := C.HarfangCreateLinearLightWithDiffuse(sceneToC, mtxToC, diffuseToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23945,10 +25158,10 @@ func CreateLinearLightWithDiffuseSpecular(scene *Scene, mtx *Mat4, diffuse *Colo mtxToC := mtx.h diffuseToC := diffuse.h specularToC := specular.h - retval := C.WrapCreateLinearLightWithDiffuseSpecular(sceneToC, mtxToC, diffuseToC, specularToC) + retval := C.HarfangCreateLinearLightWithDiffuseSpecular(sceneToC, mtxToC, diffuseToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23960,10 +25173,10 @@ func CreateLinearLightWithDiffuseSpecularPriority(scene *Scene, mtx *Mat4, diffu diffuseToC := diffuse.h specularToC := specular.h priorityToC := C.float(priority) - retval := C.WrapCreateLinearLightWithDiffuseSpecularPriority(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC) + retval := C.HarfangCreateLinearLightWithDiffuseSpecularPriority(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23976,10 +25189,10 @@ func CreateLinearLightWithDiffuseSpecularPriorityShadowType(scene *Scene, mtx *M specularToC := specular.h priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateLinearLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateLinearLightWithDiffuseSpecularPriorityShadowType(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -23994,10 +25207,10 @@ func CreateLinearLightWithDiffuseSpecularPriorityShadowTypeShadowBiasPssmSplit(s shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) pssmsplitToC := pssmsplit.h - retval := C.WrapCreateLinearLightWithDiffuseSpecularPriorityShadowTypeShadowBiasPssmSplit(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) + retval := C.HarfangCreateLinearLightWithDiffuseSpecularPriorityShadowTypeShadowBiasPssmSplit(sceneToC, mtxToC, diffuseToC, specularToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24008,10 +25221,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensity(scene *Scene, mtx *Mat4, diffu mtxToC := mtx.h diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, diffuseToC, diffuseintensityToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensity(sceneToC, mtxToC, diffuseToC, diffuseintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24023,10 +25236,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensitySpecular(scene *Scene, mtx *Mat diffuseToC := diffuse.h diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecular(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24039,10 +25252,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(scene diffuseintensityToC := C.float(diffuseintensity) specularToC := specular.h specularintensityToC := C.float(specularintensity) - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24056,10 +25269,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriori specularToC := specular.h specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24074,10 +25287,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriori specularintensityToC := C.float(specularintensity) priorityToC := C.float(priority) shadowtypeToC := C.int32_t(shadowtype) - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24094,10 +25307,10 @@ func CreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriori shadowtypeToC := C.int32_t(shadowtype) shadowbiasToC := C.float(shadowbias) pssmsplitToC := pssmsplit.h - retval := C.WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) + retval := C.HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(sceneToC, mtxToC, diffuseToC, diffuseintensityToC, specularToC, specularintensityToC, priorityToC, shadowtypeToC, shadowbiasToC, pssmsplitToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24108,10 +25321,10 @@ func CreateObject(scene *Scene, mtx *Mat4, model *ModelRef, materials *MaterialL mtxToC := mtx.h modelToC := model.h materialsToC := materials.h - retval := C.WrapCreateObject(sceneToC, mtxToC, modelToC, materialsToC) + retval := C.HarfangCreateObject(sceneToC, mtxToC, modelToC, materialsToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24121,17 +25334,17 @@ func CreateObjectWithSliceOfMaterials(scene *Scene, mtx *Mat4, model *ModelRef, sceneToC := scene.h mtxToC := mtx.h modelToC := model.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) - retval := C.WrapCreateObjectWithSliceOfMaterials(sceneToC, mtxToC, modelToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + retval := C.HarfangCreateObjectWithSliceOfMaterials(sceneToC, mtxToC, modelToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24146,10 +25359,10 @@ func CreateInstanceFromFile(scene *Scene, mtx *Mat4, name string, resources *Pip pipelineToC := pipeline.h success := new(bool) successToC := (*C.bool)(unsafe.Pointer(success)) - retval := C.WrapCreateInstanceFromFile(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC) + retval := C.HarfangCreateInstanceFromFile(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO, (*bool)(unsafe.Pointer(successToC)) } @@ -24165,10 +25378,10 @@ func CreateInstanceFromFileWithFlags(scene *Scene, mtx *Mat4, name string, resou success := new(bool) successToC := (*C.bool)(unsafe.Pointer(success)) flagsToC := C.uint32_t(flags) - retval := C.WrapCreateInstanceFromFileWithFlags(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC, flagsToC) + retval := C.HarfangCreateInstanceFromFileWithFlags(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC, flagsToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO, (*bool)(unsafe.Pointer(successToC)) } @@ -24183,10 +25396,10 @@ func CreateInstanceFromAssets(scene *Scene, mtx *Mat4, name string, resources *P pipelineToC := pipeline.h success := new(bool) successToC := (*C.bool)(unsafe.Pointer(success)) - retval := C.WrapCreateInstanceFromAssets(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC) + retval := C.HarfangCreateInstanceFromAssets(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO, (*bool)(unsafe.Pointer(successToC)) } @@ -24202,10 +25415,10 @@ func CreateInstanceFromAssetsWithFlags(scene *Scene, mtx *Mat4, name string, res success := new(bool) successToC := (*C.bool)(unsafe.Pointer(success)) flagsToC := C.uint32_t(flags) - retval := C.WrapCreateInstanceFromAssetsWithFlags(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC, flagsToC) + retval := C.HarfangCreateInstanceFromAssetsWithFlags(sceneToC, mtxToC, nameToC, resourcesToC, pipelineToC, successToC, flagsToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO, (*bool)(unsafe.Pointer(successToC)) } @@ -24213,10 +25426,10 @@ func CreateInstanceFromAssetsWithFlags(scene *Scene, mtx *Mat4, name string, res // CreateScript Helper function to create a [harfang.Node] with a [harfang.Script] component. func CreateScript(scene *Scene) *Node { sceneToC := scene.h - retval := C.WrapCreateScript(sceneToC) + retval := C.HarfangCreateScript(sceneToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24226,10 +25439,10 @@ func CreateScriptWithPath(scene *Scene, path string) *Node { sceneToC := scene.h pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapCreateScriptWithPath(sceneToC, pathToC) + retval := C.HarfangCreateScriptWithPath(sceneToC, pathToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24241,10 +25454,10 @@ func CreatePhysicSphere(scene *Scene, radius float32, mtx *Mat4, modelref *Model mtxToC := mtx.h modelrefToC := modelref.h materialsToC := materials.h - retval := C.WrapCreatePhysicSphere(sceneToC, radiusToC, mtxToC, modelrefToC, materialsToC) + retval := C.HarfangCreatePhysicSphere(sceneToC, radiusToC, mtxToC, modelrefToC, materialsToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24257,10 +25470,10 @@ func CreatePhysicSphereWithMass(scene *Scene, radius float32, mtx *Mat4, modelre modelrefToC := modelref.h materialsToC := materials.h massToC := C.float(mass) - retval := C.WrapCreatePhysicSphereWithMass(sceneToC, radiusToC, mtxToC, modelrefToC, materialsToC, massToC) + retval := C.HarfangCreatePhysicSphereWithMass(sceneToC, radiusToC, mtxToC, modelrefToC, materialsToC, massToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24271,17 +25484,17 @@ func CreatePhysicSphereWithSliceOfMaterials(scene *Scene, radius float32, mtx *M radiusToC := C.float(radius) mtxToC := mtx.h modelrefToC := modelref.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) - retval := C.WrapCreatePhysicSphereWithSliceOfMaterials(sceneToC, radiusToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + retval := C.HarfangCreatePhysicSphereWithSliceOfMaterials(sceneToC, radiusToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24292,18 +25505,18 @@ func CreatePhysicSphereWithSliceOfMaterialsMass(scene *Scene, radius float32, mt radiusToC := C.float(radius) mtxToC := mtx.h modelrefToC := modelref.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) massToC := C.float(mass) - retval := C.WrapCreatePhysicSphereWithSliceOfMaterialsMass(sceneToC, radiusToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf, massToC) + retval := C.HarfangCreatePhysicSphereWithSliceOfMaterialsMass(sceneToC, radiusToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf, massToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24315,10 +25528,10 @@ func CreatePhysicCube(scene *Scene, size *Vec3, mtx *Mat4, modelref *ModelRef, m mtxToC := mtx.h modelrefToC := modelref.h materialsToC := materials.h - retval := C.WrapCreatePhysicCube(sceneToC, sizeToC, mtxToC, modelrefToC, materialsToC) + retval := C.HarfangCreatePhysicCube(sceneToC, sizeToC, mtxToC, modelrefToC, materialsToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24331,10 +25544,10 @@ func CreatePhysicCubeWithMass(scene *Scene, size *Vec3, mtx *Mat4, modelref *Mod modelrefToC := modelref.h materialsToC := materials.h massToC := C.float(mass) - retval := C.WrapCreatePhysicCubeWithMass(sceneToC, sizeToC, mtxToC, modelrefToC, materialsToC, massToC) + retval := C.HarfangCreatePhysicCubeWithMass(sceneToC, sizeToC, mtxToC, modelrefToC, materialsToC, massToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24345,17 +25558,17 @@ func CreatePhysicCubeWithSliceOfMaterials(scene *Scene, size *Vec3, mtx *Mat4, m sizeToC := size.h mtxToC := mtx.h modelrefToC := modelref.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) - retval := C.WrapCreatePhysicCubeWithSliceOfMaterials(sceneToC, sizeToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + retval := C.HarfangCreatePhysicCubeWithSliceOfMaterials(sceneToC, sizeToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24366,18 +25579,18 @@ func CreatePhysicCubeWithSliceOfMaterialsMass(scene *Scene, size *Vec3, mtx *Mat sizeToC := size.h mtxToC := mtx.h modelrefToC := modelref.h - var SliceOfmaterialsPointer []C.WrapMaterial + var SliceOfmaterialsPointer []C.HarfangMaterial for _, s := range SliceOfmaterials { SliceOfmaterialsPointer = append(SliceOfmaterialsPointer, s.h) } SliceOfmaterialsPointerToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfmaterialsPointer)) SliceOfmaterialsPointerToCSize := C.size_t(SliceOfmaterialsPointerToC.Len) - SliceOfmaterialsPointerToCBuf := (*C.WrapMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) + SliceOfmaterialsPointerToCBuf := (*C.HarfangMaterial)(unsafe.Pointer(SliceOfmaterialsPointerToC.Data)) massToC := C.float(mass) - retval := C.WrapCreatePhysicCubeWithSliceOfMaterialsMass(sceneToC, sizeToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf, massToC) + retval := C.HarfangCreatePhysicCubeWithSliceOfMaterialsMass(sceneToC, sizeToC, mtxToC, modelrefToC, SliceOfmaterialsPointerToCSize, SliceOfmaterialsPointerToCBuf, massToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24388,7 +25601,7 @@ func SaveSceneJsonToFile(path string, scene *Scene, resources *PipelineResources defer idFinpathToC() sceneToC := scene.h resourcesToC := resources.h - retval := C.WrapSaveSceneJsonToFile(pathToC, sceneToC, resourcesToC) + retval := C.HarfangSaveSceneJsonToFile(pathToC, sceneToC, resourcesToC) return bool(retval) } @@ -24399,7 +25612,7 @@ func SaveSceneJsonToFileWithFlags(path string, scene *Scene, resources *Pipeline sceneToC := scene.h resourcesToC := resources.h flagsToC := C.uint32_t(flags) - retval := C.WrapSaveSceneJsonToFileWithFlags(pathToC, sceneToC, resourcesToC, flagsToC) + retval := C.HarfangSaveSceneJsonToFileWithFlags(pathToC, sceneToC, resourcesToC, flagsToC) return bool(retval) } @@ -24409,7 +25622,7 @@ func SaveSceneBinaryToFile(path string, scene *Scene, resources *PipelineResourc defer idFinpathToC() sceneToC := scene.h resourcesToC := resources.h - retval := C.WrapSaveSceneBinaryToFile(pathToC, sceneToC, resourcesToC) + retval := C.HarfangSaveSceneBinaryToFile(pathToC, sceneToC, resourcesToC) return bool(retval) } @@ -24420,7 +25633,7 @@ func SaveSceneBinaryToFileWithFlags(path string, scene *Scene, resources *Pipeli sceneToC := scene.h resourcesToC := resources.h flagsToC := C.uint32_t(flags) - retval := C.WrapSaveSceneBinaryToFileWithFlags(pathToC, sceneToC, resourcesToC, flagsToC) + retval := C.HarfangSaveSceneBinaryToFileWithFlags(pathToC, sceneToC, resourcesToC, flagsToC) return bool(retval) } @@ -24429,7 +25642,7 @@ func SaveSceneBinaryToData(data *Data, scene *Scene, resources *PipelineResource dataToC := data.h sceneToC := scene.h resourcesToC := resources.h - retval := C.WrapSaveSceneBinaryToData(dataToC, sceneToC, resourcesToC) + retval := C.HarfangSaveSceneBinaryToData(dataToC, sceneToC, resourcesToC) return bool(retval) } @@ -24439,7 +25652,7 @@ func SaveSceneBinaryToDataWithFlags(data *Data, scene *Scene, resources *Pipelin sceneToC := scene.h resourcesToC := resources.h flagsToC := C.uint32_t(flags) - retval := C.WrapSaveSceneBinaryToDataWithFlags(dataToC, sceneToC, resourcesToC, flagsToC) + retval := C.HarfangSaveSceneBinaryToDataWithFlags(dataToC, sceneToC, resourcesToC, flagsToC) return bool(retval) } @@ -24450,7 +25663,7 @@ func LoadSceneBinaryFromFile(path string, scene *Scene, resources *PipelineResou sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneBinaryFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneBinaryFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24462,7 +25675,7 @@ func LoadSceneBinaryFromFileWithFlags(path string, scene *Scene, resources *Pipe resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneBinaryFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneBinaryFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24473,7 +25686,7 @@ func LoadSceneBinaryFromAssets(name string, scene *Scene, resources *PipelineRes sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneBinaryFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneBinaryFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24485,7 +25698,7 @@ func LoadSceneBinaryFromAssetsWithFlags(name string, scene *Scene, resources *Pi resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneBinaryFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneBinaryFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24496,7 +25709,7 @@ func LoadSceneJsonFromFile(path string, scene *Scene, resources *PipelineResourc sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneJsonFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneJsonFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24508,7 +25721,7 @@ func LoadSceneJsonFromFileWithFlags(path string, scene *Scene, resources *Pipeli resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneJsonFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneJsonFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24519,7 +25732,7 @@ func LoadSceneJsonFromAssets(name string, scene *Scene, resources *PipelineResou sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneJsonFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneJsonFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24531,7 +25744,7 @@ func LoadSceneJsonFromAssetsWithFlags(name string, scene *Scene, resources *Pipe resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneJsonFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneJsonFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24543,7 +25756,7 @@ func LoadSceneBinaryFromDataAndFile(data *Data, name string, scene *Scene, resou sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneBinaryFromDataAndFile(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneBinaryFromDataAndFile(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24556,7 +25769,7 @@ func LoadSceneBinaryFromDataAndFileWithFlags(data *Data, name string, scene *Sce resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneBinaryFromDataAndFileWithFlags(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneBinaryFromDataAndFileWithFlags(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24568,7 +25781,7 @@ func LoadSceneBinaryFromDataAndAssets(data *Data, name string, scene *Scene, res sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneBinaryFromDataAndAssets(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneBinaryFromDataAndAssets(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24581,7 +25794,7 @@ func LoadSceneBinaryFromDataAndAssetsWithFlags(data *Data, name string, scene *S resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneBinaryFromDataAndAssetsWithFlags(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneBinaryFromDataAndAssetsWithFlags(dataToC, nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24592,7 +25805,7 @@ func LoadSceneFromFile(path string, scene *Scene, resources *PipelineResources, sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneFromFile(pathToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24604,7 +25817,7 @@ func LoadSceneFromFileWithFlags(path string, scene *Scene, resources *PipelineRe resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneFromFileWithFlags(pathToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24615,7 +25828,7 @@ func LoadSceneFromAssets(name string, scene *Scene, resources *PipelineResources sceneToC := scene.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapLoadSceneFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) + retval := C.HarfangLoadSceneFromAssets(nameToC, sceneToC, resourcesToC, pipelineToC) return bool(retval) } @@ -24627,7 +25840,7 @@ func LoadSceneFromAssetsWithFlags(name string, scene *Scene, resources *Pipeline resourcesToC := resources.h pipelineToC := pipeline.h flagsToC := C.uint32_t(flags) - retval := C.WrapLoadSceneFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) + retval := C.HarfangLoadSceneFromAssetsWithFlags(nameToC, sceneToC, resourcesToC, pipelineToC, flagsToC) return bool(retval) } @@ -24637,10 +25850,10 @@ func DuplicateNodesFromFile(scene *Scene, nodes *NodeList, resources *PipelineRe nodesToC := nodes.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodesFromFile(sceneToC, nodesToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodesFromFile(sceneToC, nodesToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24651,10 +25864,10 @@ func DuplicateNodesFromAssets(scene *Scene, nodes *NodeList, resources *Pipeline nodesToC := nodes.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodesFromAssets(sceneToC, nodesToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodesFromAssets(sceneToC, nodesToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24665,10 +25878,10 @@ func DuplicateNodesAndChildrenFromFile(scene *Scene, nodes *NodeList, resources nodesToC := nodes.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodesAndChildrenFromFile(sceneToC, nodesToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodesAndChildrenFromFile(sceneToC, nodesToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24679,10 +25892,10 @@ func DuplicateNodesAndChildrenFromAssets(scene *Scene, nodes *NodeList, resource nodesToC := nodes.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodesAndChildrenFromAssets(sceneToC, nodesToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodesAndChildrenFromAssets(sceneToC, nodesToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24693,10 +25906,10 @@ func DuplicateNodeFromFile(scene *Scene, node *Node, resources *PipelineResource nodeToC := node.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodeFromFile(sceneToC, nodeToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodeFromFile(sceneToC, nodeToC, resourcesToC, pipelineToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24707,10 +25920,10 @@ func DuplicateNodeFromAssets(scene *Scene, node *Node, resources *PipelineResour nodeToC := node.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodeFromAssets(sceneToC, nodeToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodeFromAssets(sceneToC, nodeToC, resourcesToC, pipelineToC) retvalGO := &Node{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Node) { - C.WrapNodeFree(cleanval.h) + C.HarfangNodeFree(cleanval.h) }) return retvalGO } @@ -24721,10 +25934,10 @@ func DuplicateNodeAndChildrenFromFile(scene *Scene, node *Node, resources *Pipel nodeToC := node.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodeAndChildrenFromFile(sceneToC, nodeToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodeAndChildrenFromFile(sceneToC, nodeToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24735,10 +25948,10 @@ func DuplicateNodeAndChildrenFromAssets(scene *Scene, node *Node, resources *Pip nodeToC := node.h resourcesToC := resources.h pipelineToC := pipeline.h - retval := C.WrapDuplicateNodeAndChildrenFromAssets(sceneToC, nodeToC, resourcesToC, pipelineToC) + retval := C.HarfangDuplicateNodeAndChildrenFromAssets(sceneToC, nodeToC, resourcesToC, pipelineToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -24746,10 +25959,10 @@ func DuplicateNodeAndChildrenFromAssets(scene *Scene, node *Node, resources *Pip // GetSceneForwardPipelineFog ... func GetSceneForwardPipelineFog(scene *Scene) *ForwardPipelineFog { sceneToC := scene.h - retval := C.WrapGetSceneForwardPipelineFog(sceneToC) + retval := C.HarfangGetSceneForwardPipelineFog(sceneToC) retvalGO := &ForwardPipelineFog{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineFog) { - C.WrapForwardPipelineFogFree(cleanval.h) + C.HarfangForwardPipelineFogFree(cleanval.h) }) return retvalGO } @@ -24757,10 +25970,10 @@ func GetSceneForwardPipelineFog(scene *Scene) *ForwardPipelineFog { // GetSceneForwardPipelineLights Filter through the scene lights and return a list of pipeline lights to be used by the scene forward pipeline. func GetSceneForwardPipelineLights(scene *Scene) *ForwardPipelineLightList { sceneToC := scene.h - retval := C.WrapGetSceneForwardPipelineLights(sceneToC) + retval := C.HarfangGetSceneForwardPipelineLights(sceneToC) retvalGO := &ForwardPipelineLightList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineLightList) { - C.WrapForwardPipelineLightListFree(cleanval.h) + C.HarfangForwardPipelineLightListFree(cleanval.h) }) return retvalGO } @@ -24769,7 +25982,7 @@ func GetSceneForwardPipelineLights(scene *Scene) *ForwardPipelineLightList { func GetSceneForwardPipelinePassViewId(views *SceneForwardPipelinePassViewId, pass SceneForwardPipelinePass) uint16 { viewsToC := views.h passToC := C.int32_t(pass) - retval := C.WrapGetSceneForwardPipelinePassViewId(viewsToC, passToC) + retval := C.HarfangGetSceneForwardPipelinePassViewId(viewsToC, passToC) return uint16(retval) } @@ -24781,7 +25994,7 @@ func PrepareSceneForwardPipelineCommonRenderData(viewid *uint16, scene *Scene, r pipelineToC := pipeline.h resourcesToC := resources.h viewsToC := views.h - C.WrapPrepareSceneForwardPipelineCommonRenderData(viewidToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC) + C.HarfangPrepareSceneForwardPipelineCommonRenderData(viewidToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC) } // PrepareSceneForwardPipelineCommonRenderDataWithDebugName Prepare the common render data to submit a scene to the forward pipeline. Note: When rendering multiple views of the same scene, common data only needs to be prepared once. See [harfang.PrepareSceneForwardPipelineViewDependentRenderData]. @@ -24794,7 +26007,7 @@ func PrepareSceneForwardPipelineCommonRenderDataWithDebugName(viewid *uint16, sc viewsToC := views.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapPrepareSceneForwardPipelineCommonRenderDataWithDebugName(viewidToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC, debugnameToC) + C.HarfangPrepareSceneForwardPipelineCommonRenderDataWithDebugName(viewidToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC, debugnameToC) } // PrepareSceneForwardPipelineViewDependentRenderData Prepare the view dependent render data to submit a scene to the forward pipeline. See [harfang.PrepareSceneForwardPipelineCommonRenderData]. @@ -24806,7 +26019,7 @@ func PrepareSceneForwardPipelineViewDependentRenderData(viewid *uint16, viewstat pipelineToC := pipeline.h resourcesToC := resources.h viewsToC := views.h - C.WrapPrepareSceneForwardPipelineViewDependentRenderData(viewidToC, viewstateToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC) + C.HarfangPrepareSceneForwardPipelineViewDependentRenderData(viewidToC, viewstateToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC) } // PrepareSceneForwardPipelineViewDependentRenderDataWithDebugName Prepare the view dependent render data to submit a scene to the forward pipeline. See [harfang.PrepareSceneForwardPipelineCommonRenderData]. @@ -24820,7 +26033,7 @@ func PrepareSceneForwardPipelineViewDependentRenderDataWithDebugName(viewid *uin viewsToC := views.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapPrepareSceneForwardPipelineViewDependentRenderDataWithDebugName(viewidToC, viewstateToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC, debugnameToC) + C.HarfangPrepareSceneForwardPipelineViewDependentRenderDataWithDebugName(viewidToC, viewstateToC, sceneToC, renderdataToC, pipelineToC, resourcesToC, viewsToC, debugnameToC) } // SubmitSceneToForwardPipeline Submit a scene to a forward pipeline. See [harfang.PrepareSceneForwardPipelineCommonRenderData] and [harfang.PrepareSceneForwardPipelineViewDependentRenderData] if you need to render the same scene from different points of view. @@ -24834,7 +26047,7 @@ func SubmitSceneToForwardPipeline(viewid *uint16, scene *Scene, rect *IntRect, v resourcesToC := resources.h views := NewSceneForwardPipelinePassViewId() viewsToC := views.h - C.WrapSubmitSceneToForwardPipeline(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC) + C.HarfangSubmitSceneToForwardPipeline(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC) return views } @@ -24850,7 +26063,7 @@ func SubmitSceneToForwardPipelineWithFrameBuffer(viewid *uint16, scene *Scene, r views := NewSceneForwardPipelinePassViewId() viewsToC := views.h framebufferToC := framebuffer.h - C.WrapSubmitSceneToForwardPipelineWithFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, framebufferToC) + C.HarfangSubmitSceneToForwardPipelineWithFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, framebufferToC) return views } @@ -24868,7 +26081,7 @@ func SubmitSceneToForwardPipelineWithFrameBufferDebugName(viewid *uint16, scene framebufferToC := framebuffer.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToForwardPipelineWithFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, framebufferToC, debugnameToC) + C.HarfangSubmitSceneToForwardPipelineWithFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, framebufferToC, debugnameToC) return views } @@ -24885,7 +26098,7 @@ func SubmitSceneToForwardPipelineWithAaaAaaConfigFrame(viewid *uint16, scene *Sc aaaToC := aaa.h aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) - C.WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) + C.HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) } // SubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer Submit a scene to a forward pipeline. See [harfang.PrepareSceneForwardPipelineCommonRenderData] and [harfang.PrepareSceneForwardPipelineViewDependentRenderData] if you need to render the same scene from different points of view. @@ -24902,7 +26115,7 @@ func SubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer(viewid *uint16 aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) framebufferToC := framebuffer.h - C.WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) + C.HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) } // SubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName Submit a scene to a forward pipeline. See [harfang.PrepareSceneForwardPipelineCommonRenderData] and [harfang.PrepareSceneForwardPipelineViewDependentRenderData] if you need to render the same scene from different points of view. @@ -24921,7 +26134,7 @@ func SubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewi framebufferToC := framebuffer.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) + C.HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, renderdataToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) } // SubmitSceneToPipeline See [harfang.SubmitSceneToForwardPipeline]. @@ -24934,7 +26147,7 @@ func SubmitSceneToPipeline(viewid *uint16, scene *Scene, rect *IntRect, viewstat resourcesToC := resources.h views := NewSceneForwardPipelinePassViewId() viewsToC := views.h - C.WrapSubmitSceneToPipeline(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC) + C.HarfangSubmitSceneToPipeline(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC) return views } @@ -24949,7 +26162,7 @@ func SubmitSceneToPipelineWithFb(viewid *uint16, scene *Scene, rect *IntRect, vi views := NewSceneForwardPipelinePassViewId() viewsToC := views.h fbToC := fb.h - C.WrapSubmitSceneToPipelineWithFb(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, fbToC) + C.HarfangSubmitSceneToPipelineWithFb(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, fbToC) return views } @@ -24966,7 +26179,7 @@ func SubmitSceneToPipelineWithFbDebugName(viewid *uint16, scene *Scene, rect *In fbToC := fb.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToPipelineWithFbDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, fbToC, debugnameToC) + C.HarfangSubmitSceneToPipelineWithFbDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, fbToC, debugnameToC) return views } @@ -24980,7 +26193,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontal(viewid *uint16, scene *Scene, resourcesToC := resources.h views := NewSceneForwardPipelinePassViewId() viewsToC := views.h - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontal(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontal(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC) return views } @@ -24995,7 +26208,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontalFb(viewid *uint16, scene *Scene views := NewSceneForwardPipelinePassViewId() viewsToC := views.h fbToC := fb.h - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontalFb(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, fbToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalFb(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, fbToC) return views } @@ -25012,7 +26225,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontalFbDebugName(viewid *uint16, sce fbToC := fb.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontalFbDebugName(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, fbToC, debugnameToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalFbDebugName(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, fbToC, debugnameToC) return views } @@ -25029,7 +26242,7 @@ func SubmitSceneToPipelineWithAaaAaaConfigFrame(viewid *uint16, scene *Scene, re aaaToC := aaa.h aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) - C.WrapSubmitSceneToPipelineWithAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) + C.HarfangSubmitSceneToPipelineWithAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) return views } @@ -25047,7 +26260,7 @@ func SubmitSceneToPipelineWithAaaAaaConfigFrameFrameBuffer(viewid *uint16, scene aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) framebufferToC := framebuffer.h - C.WrapSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) + C.HarfangSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) return views } @@ -25067,7 +26280,7 @@ func SubmitSceneToPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewid *uint framebufferToC := framebuffer.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) + C.HarfangSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, viewstateToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) return views } @@ -25084,7 +26297,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrame(viewid *uint1 aaaToC := aaa.h aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrame(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC) return views } @@ -25102,7 +26315,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBuffer(vi aaaconfigToC := aaaconfig.h frameToC := C.int32_t(frame) framebufferToC := framebuffer.h - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBuffer(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC) return views } @@ -25122,7 +26335,7 @@ func SubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBufferDeb framebufferToC := framebuffer.h debugnameToC, idFindebugnameToC := wrapString(debugname) defer idFindebugnameToC() - C.WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) + C.HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBufferDebugName(viewidToC, sceneToC, rectToC, fovaxisishorizontalToC, pipelineToC, resourcesToC, viewsToC, aaaToC, aaaconfigToC, frameToC, framebufferToC, debugnameToC) return views } @@ -25131,7 +26344,7 @@ func LoadForwardPipelineAAAConfigFromFile(path string, config *ForwardPipelineAA pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() configToC := config.h - retval := C.WrapLoadForwardPipelineAAAConfigFromFile(pathToC, configToC) + retval := C.HarfangLoadForwardPipelineAAAConfigFromFile(pathToC, configToC) return bool(retval) } @@ -25140,7 +26353,7 @@ func LoadForwardPipelineAAAConfigFromAssets(path string, config *ForwardPipeline pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() configToC := config.h - retval := C.WrapLoadForwardPipelineAAAConfigFromAssets(pathToC, configToC) + retval := C.HarfangLoadForwardPipelineAAAConfigFromAssets(pathToC, configToC) return bool(retval) } @@ -25149,7 +26362,7 @@ func SaveForwardPipelineAAAConfigToFile(path string, config *ForwardPipelineAAAC pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() configToC := config.h - retval := C.WrapSaveForwardPipelineAAAConfigToFile(pathToC, configToC) + retval := C.HarfangSaveForwardPipelineAAAConfigToFile(pathToC, configToC) return bool(retval) } @@ -25158,10 +26371,10 @@ func CreateForwardPipelineAAAFromFile(path string, config *ForwardPipelineAAACon pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() configToC := config.h - retval := C.WrapCreateForwardPipelineAAAFromFile(pathToC, configToC) + retval := C.HarfangCreateForwardPipelineAAAFromFile(pathToC, configToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25172,10 +26385,10 @@ func CreateForwardPipelineAAAFromFileWithSsgiRatio(path string, config *ForwardP defer idFinpathToC() configToC := config.h ssgiratioToC := C.int32_t(ssgiratio) - retval := C.WrapCreateForwardPipelineAAAFromFileWithSsgiRatio(pathToC, configToC, ssgiratioToC) + retval := C.HarfangCreateForwardPipelineAAAFromFileWithSsgiRatio(pathToC, configToC, ssgiratioToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25187,10 +26400,10 @@ func CreateForwardPipelineAAAFromFileWithSsgiRatioSsrRatio(path string, config * configToC := config.h ssgiratioToC := C.int32_t(ssgiratio) ssrratioToC := C.int32_t(ssrratio) - retval := C.WrapCreateForwardPipelineAAAFromFileWithSsgiRatioSsrRatio(pathToC, configToC, ssgiratioToC, ssrratioToC) + retval := C.HarfangCreateForwardPipelineAAAFromFileWithSsgiRatioSsrRatio(pathToC, configToC, ssgiratioToC, ssrratioToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25200,10 +26413,10 @@ func CreateForwardPipelineAAAFromAssets(path string, config *ForwardPipelineAAAC pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() configToC := config.h - retval := C.WrapCreateForwardPipelineAAAFromAssets(pathToC, configToC) + retval := C.HarfangCreateForwardPipelineAAAFromAssets(pathToC, configToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25214,10 +26427,10 @@ func CreateForwardPipelineAAAFromAssetsWithSsgiRatio(path string, config *Forwar defer idFinpathToC() configToC := config.h ssgiratioToC := C.int32_t(ssgiratio) - retval := C.WrapCreateForwardPipelineAAAFromAssetsWithSsgiRatio(pathToC, configToC, ssgiratioToC) + retval := C.HarfangCreateForwardPipelineAAAFromAssetsWithSsgiRatio(pathToC, configToC, ssgiratioToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25229,10 +26442,10 @@ func CreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio(path string, config configToC := config.h ssgiratioToC := C.int32_t(ssgiratio) ssrratioToC := C.int32_t(ssrratio) - retval := C.WrapCreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio(pathToC, configToC, ssgiratioToC, ssrratioToC) + retval := C.HarfangCreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio(pathToC, configToC, ssgiratioToC, ssrratioToC) retvalGO := &ForwardPipelineAAA{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipelineAAA) { - C.WrapForwardPipelineAAAFree(cleanval.h) + C.HarfangForwardPipelineAAAFree(cleanval.h) }) return retvalGO } @@ -25240,7 +26453,7 @@ func CreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio(path string, config // DestroyForwardPipelineAAA ... func DestroyForwardPipelineAAA(pipeline *ForwardPipelineAAA) { pipelineToC := pipeline.h - C.WrapDestroyForwardPipelineAAA(pipelineToC) + C.HarfangDestroyForwardPipelineAAA(pipelineToC) } // DebugSceneExplorer ... @@ -25248,7 +26461,7 @@ func DebugSceneExplorer(scene *Scene, name string) { sceneToC := scene.h nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - C.WrapDebugSceneExplorer(sceneToC, nameToC) + C.HarfangDebugSceneExplorer(sceneToC, nameToC) } // GetNodesInContact ... @@ -25256,10 +26469,10 @@ func GetNodesInContact(scene *Scene, with *Node, nodepaircontacts *NodePairConta sceneToC := scene.h withToC := with.h nodepaircontactsToC := nodepaircontacts.h - retval := C.WrapGetNodesInContact(sceneToC, withToC, nodepaircontactsToC) + retval := C.HarfangGetNodesInContact(sceneToC, withToC, nodepaircontactsToC) retvalGO := &NodeList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *NodeList) { - C.WrapNodeListFree(cleanval.h) + C.HarfangNodeListFree(cleanval.h) }) return retvalGO } @@ -25269,10 +26482,10 @@ func GetNodePairContacts(first *Node, second *Node, nodepaircontacts *NodePairCo firstToC := first.h secondToC := second.h nodepaircontactsToC := nodepaircontacts.h - retval := C.WrapGetNodePairContacts(firstToC, secondToC, nodepaircontactsToC) + retval := C.HarfangGetNodePairContacts(firstToC, secondToC, nodepaircontactsToC) retvalGO := &ContactList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ContactList) { - C.WrapContactListFree(cleanval.h) + C.HarfangContactListFree(cleanval.h) }) return retvalGO } @@ -25281,14 +26494,14 @@ func GetNodePairContacts(first *Node, second *Node, nodepaircontacts *NodePairCo func SceneSyncToSystemsFromFile(scene *Scene, vm *SceneLuaVM) { sceneToC := scene.h vmToC := vm.h - C.WrapSceneSyncToSystemsFromFile(sceneToC, vmToC) + C.HarfangSceneSyncToSystemsFromFile(sceneToC, vmToC) } // SceneSyncToSystemsFromFileWithPhysics Synchronize optional systems (eg. physics or script) states with the scene states. Load resources from the local filesystem if required. See [harfang.man.Assets]. func SceneSyncToSystemsFromFileWithPhysics(scene *Scene, physics *SceneBullet3Physics) { sceneToC := scene.h physicsToC := physics.h - C.WrapSceneSyncToSystemsFromFileWithPhysics(sceneToC, physicsToC) + C.HarfangSceneSyncToSystemsFromFileWithPhysics(sceneToC, physicsToC) } // SceneSyncToSystemsFromFileWithPhysicsVm Synchronize optional systems (eg. physics or script) states with the scene states. Load resources from the local filesystem if required. See [harfang.man.Assets]. @@ -25296,21 +26509,21 @@ func SceneSyncToSystemsFromFileWithPhysicsVm(scene *Scene, physics *SceneBullet3 sceneToC := scene.h physicsToC := physics.h vmToC := vm.h - C.WrapSceneSyncToSystemsFromFileWithPhysicsVm(sceneToC, physicsToC, vmToC) + C.HarfangSceneSyncToSystemsFromFileWithPhysicsVm(sceneToC, physicsToC, vmToC) } // SceneSyncToSystemsFromAssets Synchronize optional systems (eg. physics or script) states with the scene states. Load resources from the assets system if required. See [harfang.man.Assets]. func SceneSyncToSystemsFromAssets(scene *Scene, vm *SceneLuaVM) { sceneToC := scene.h vmToC := vm.h - C.WrapSceneSyncToSystemsFromAssets(sceneToC, vmToC) + C.HarfangSceneSyncToSystemsFromAssets(sceneToC, vmToC) } // SceneSyncToSystemsFromAssetsWithPhysics Synchronize optional systems (eg. physics or script) states with the scene states. Load resources from the assets system if required. See [harfang.man.Assets]. func SceneSyncToSystemsFromAssetsWithPhysics(scene *Scene, physics *SceneBullet3Physics) { sceneToC := scene.h physicsToC := physics.h - C.WrapSceneSyncToSystemsFromAssetsWithPhysics(sceneToC, physicsToC) + C.HarfangSceneSyncToSystemsFromAssetsWithPhysics(sceneToC, physicsToC) } // SceneSyncToSystemsFromAssetsWithPhysicsVm Synchronize optional systems (eg. physics or script) states with the scene states. Load resources from the assets system if required. See [harfang.man.Assets]. @@ -25318,7 +26531,7 @@ func SceneSyncToSystemsFromAssetsWithPhysicsVm(scene *Scene, physics *SceneBulle sceneToC := scene.h physicsToC := physics.h vmToC := vm.h - C.WrapSceneSyncToSystemsFromAssetsWithPhysicsVm(sceneToC, physicsToC, vmToC) + C.HarfangSceneSyncToSystemsFromAssetsWithPhysicsVm(sceneToC, physicsToC, vmToC) } // SceneUpdateSystems Update a scene and all its optional systems. @@ -25326,7 +26539,7 @@ func SceneUpdateSystems(scene *Scene, clocks *SceneClocks, dt int64) { sceneToC := scene.h clocksToC := clocks.h dtToC := C.int64_t(dt) - C.WrapSceneUpdateSystems(sceneToC, clocksToC, dtToC) + C.HarfangSceneUpdateSystems(sceneToC, clocksToC, dtToC) } // SceneUpdateSystemsWithVm Update a scene and all its optional systems. @@ -25335,7 +26548,7 @@ func SceneUpdateSystemsWithVm(scene *Scene, clocks *SceneClocks, dt int64, vm *S clocksToC := clocks.h dtToC := C.int64_t(dt) vmToC := vm.h - C.WrapSceneUpdateSystemsWithVm(sceneToC, clocksToC, dtToC, vmToC) + C.HarfangSceneUpdateSystemsWithVm(sceneToC, clocksToC, dtToC, vmToC) } // SceneUpdateSystemsWithPhysicsStepMaxPhysicsStep Update a scene and all its optional systems. @@ -25346,7 +26559,7 @@ func SceneUpdateSystemsWithPhysicsStepMaxPhysicsStep(scene *Scene, clocks *Scene physicsToC := physics.h stepToC := C.int64_t(step) maxphysicsstepToC := C.int32_t(maxphysicsstep) - C.WrapSceneUpdateSystemsWithPhysicsStepMaxPhysicsStep(sceneToC, clocksToC, dtToC, physicsToC, stepToC, maxphysicsstepToC) + C.HarfangSceneUpdateSystemsWithPhysicsStepMaxPhysicsStep(sceneToC, clocksToC, dtToC, physicsToC, stepToC, maxphysicsstepToC) } // SceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm Update a scene and all its optional systems. @@ -25358,7 +26571,7 @@ func SceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm(scene *Scene, clocks *Sce stepToC := C.int64_t(step) maxphysicsstepToC := C.int32_t(maxphysicsstep) vmToC := vm.h - C.WrapSceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm(sceneToC, clocksToC, dtToC, physicsToC, stepToC, maxphysicsstepToC, vmToC) + C.HarfangSceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm(sceneToC, clocksToC, dtToC, physicsToC, stepToC, maxphysicsstepToC, vmToC) } // SceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep Update a scene and all its optional systems. @@ -25370,7 +26583,7 @@ func SceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep(scene *Scene, clock contactsToC := contacts.h stepToC := C.int64_t(step) maxphysicsstepToC := C.int32_t(maxphysicsstep) - C.WrapSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep(sceneToC, clocksToC, dtToC, physicsToC, contactsToC, stepToC, maxphysicsstepToC) + C.HarfangSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep(sceneToC, clocksToC, dtToC, physicsToC, contactsToC, stepToC, maxphysicsstepToC) } // SceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm Update a scene and all its optional systems. @@ -25383,13 +26596,13 @@ func SceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm(scene *Scene, clo stepToC := C.int64_t(step) maxphysicsstepToC := C.int32_t(maxphysicsstep) vmToC := vm.h - C.WrapSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm(sceneToC, clocksToC, dtToC, physicsToC, contactsToC, stepToC, maxphysicsstepToC, vmToC) + C.HarfangSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm(sceneToC, clocksToC, dtToC, physicsToC, contactsToC, stepToC, maxphysicsstepToC, vmToC) } // SceneGarbageCollectSystems Garbage collect a scene and all its optional systems. func SceneGarbageCollectSystems(scene *Scene) int32 { sceneToC := scene.h - retval := C.WrapSceneGarbageCollectSystems(sceneToC) + retval := C.HarfangSceneGarbageCollectSystems(sceneToC) return int32(retval) } @@ -25397,7 +26610,7 @@ func SceneGarbageCollectSystems(scene *Scene) int32 { func SceneGarbageCollectSystemsWithVm(scene *Scene, vm *SceneLuaVM) int32 { sceneToC := scene.h vmToC := vm.h - retval := C.WrapSceneGarbageCollectSystemsWithVm(sceneToC, vmToC) + retval := C.HarfangSceneGarbageCollectSystemsWithVm(sceneToC, vmToC) return int32(retval) } @@ -25405,7 +26618,7 @@ func SceneGarbageCollectSystemsWithVm(scene *Scene, vm *SceneLuaVM) int32 { func SceneGarbageCollectSystemsWithPhysics(scene *Scene, physics *SceneBullet3Physics) int32 { sceneToC := scene.h physicsToC := physics.h - retval := C.WrapSceneGarbageCollectSystemsWithPhysics(sceneToC, physicsToC) + retval := C.HarfangSceneGarbageCollectSystemsWithPhysics(sceneToC, physicsToC) return int32(retval) } @@ -25414,28 +26627,28 @@ func SceneGarbageCollectSystemsWithPhysicsVm(scene *Scene, physics *SceneBullet3 sceneToC := scene.h physicsToC := physics.h vmToC := vm.h - retval := C.WrapSceneGarbageCollectSystemsWithPhysicsVm(sceneToC, physicsToC, vmToC) + retval := C.HarfangSceneGarbageCollectSystemsWithPhysicsVm(sceneToC, physicsToC, vmToC) return int32(retval) } // SceneClearSystems Clear scene and all optional systems. func SceneClearSystems(scene *Scene) { sceneToC := scene.h - C.WrapSceneClearSystems(sceneToC) + C.HarfangSceneClearSystems(sceneToC) } // SceneClearSystemsWithVm Clear scene and all optional systems. func SceneClearSystemsWithVm(scene *Scene, vm *SceneLuaVM) { sceneToC := scene.h vmToC := vm.h - C.WrapSceneClearSystemsWithVm(sceneToC, vmToC) + C.HarfangSceneClearSystemsWithVm(sceneToC, vmToC) } // SceneClearSystemsWithPhysics Clear scene and all optional systems. func SceneClearSystemsWithPhysics(scene *Scene, physics *SceneBullet3Physics) { sceneToC := scene.h physicsToC := physics.h - C.WrapSceneClearSystemsWithPhysics(sceneToC, physicsToC) + C.HarfangSceneClearSystemsWithPhysics(sceneToC, physicsToC) } // SceneClearSystemsWithPhysicsVm Clear scene and all optional systems. @@ -25443,25 +26656,25 @@ func SceneClearSystemsWithPhysicsVm(scene *Scene, physics *SceneBullet3Physics, sceneToC := scene.h physicsToC := physics.h vmToC := vm.h - C.WrapSceneClearSystemsWithPhysicsVm(sceneToC, physicsToC, vmToC) + C.HarfangSceneClearSystemsWithPhysicsVm(sceneToC, physicsToC, vmToC) } // InputInit Initialize the Input system. Must be invoked before any call to [harfang.WindowSystemInit] to work properly. ```python hg.InputInit() hg.WindowSystemInit() ``` func InputInit() { - C.WrapInputInit() + C.HarfangInputInit() } // InputShutdown Shutdown the Input system. func InputShutdown() { - C.WrapInputShutdown() + C.HarfangInputShutdown() } // ReadMouse Read the current state of a named mouse. If no name is passed, `default` is implied. See [harfang.GetMouseNames]. func ReadMouse() *MouseState { - retval := C.WrapReadMouse() + retval := C.HarfangReadMouse() retvalGO := &MouseState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MouseState) { - C.WrapMouseStateFree(cleanval.h) + C.HarfangMouseStateFree(cleanval.h) }) return retvalGO } @@ -25470,30 +26683,30 @@ func ReadMouse() *MouseState { func ReadMouseWithName(name string) *MouseState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadMouseWithName(nameToC) + retval := C.HarfangReadMouseWithName(nameToC) retvalGO := &MouseState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *MouseState) { - C.WrapMouseStateFree(cleanval.h) + C.HarfangMouseStateFree(cleanval.h) }) return retvalGO } // GetMouseNames Return a list of names for all supported mouse devices on the system. See [harfang.ReadKeyboard]. func GetMouseNames() *StringList { - retval := C.WrapGetMouseNames() + retval := C.HarfangGetMouseNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ReadKeyboard Read the current state of a named keyboard. If no name is passed, `default` is implied. See [harfang.GetKeyboardNames]. func ReadKeyboard() *KeyboardState { - retval := C.WrapReadKeyboard() + retval := C.HarfangReadKeyboard() retvalGO := &KeyboardState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *KeyboardState) { - C.WrapKeyboardStateFree(cleanval.h) + C.HarfangKeyboardStateFree(cleanval.h) }) return retvalGO } @@ -25502,10 +26715,10 @@ func ReadKeyboard() *KeyboardState { func ReadKeyboardWithName(name string) *KeyboardState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadKeyboardWithName(nameToC) + retval := C.HarfangReadKeyboardWithName(nameToC) retvalGO := &KeyboardState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *KeyboardState) { - C.WrapKeyboardStateFree(cleanval.h) + C.HarfangKeyboardStateFree(cleanval.h) }) return retvalGO } @@ -25513,7 +26726,7 @@ func ReadKeyboardWithName(name string) *KeyboardState { // GetKeyName Return the name for a keyboard key. func GetKeyName(key Key) string { keyToC := C.int32_t(key) - retval := C.WrapGetKeyName(keyToC) + retval := C.HarfangGetKeyName(keyToC) retvalGO := string(C.GoString(retval)) return retvalGO } @@ -25523,27 +26736,27 @@ func GetKeyNameWithName(key Key, name string) string { keyToC := C.int32_t(key) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapGetKeyNameWithName(keyToC, nameToC) + retval := C.HarfangGetKeyNameWithName(keyToC, nameToC) retvalGO := string(C.GoString(retval)) return retvalGO } // GetKeyboardNames Return a list of names for all supported keyboard devices on the system. See [harfang.ReadKeyboard]. func GetKeyboardNames() *StringList { - retval := C.WrapGetKeyboardNames() + retval := C.HarfangGetKeyboardNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ReadGamepad Read the current state of a named gamepad. If no name is passed, `default` is implied. See [harfang.GetGamepadNames]. func ReadGamepad() *GamepadState { - retval := C.WrapReadGamepad() + retval := C.HarfangReadGamepad() retvalGO := &GamepadState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *GamepadState) { - C.WrapGamepadStateFree(cleanval.h) + C.HarfangGamepadStateFree(cleanval.h) }) return retvalGO } @@ -25552,30 +26765,30 @@ func ReadGamepad() *GamepadState { func ReadGamepadWithName(name string) *GamepadState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadGamepadWithName(nameToC) + retval := C.HarfangReadGamepadWithName(nameToC) retvalGO := &GamepadState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *GamepadState) { - C.WrapGamepadStateFree(cleanval.h) + C.HarfangGamepadStateFree(cleanval.h) }) return retvalGO } // GetGamepadNames Return a list of names for all supported gamepad devices on the system. See [harfang.ReadGamepad]. func GetGamepadNames() *StringList { - retval := C.WrapGetGamepadNames() + retval := C.HarfangGetGamepadNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ReadJoystick ... func ReadJoystick() *JoystickState { - retval := C.WrapReadJoystick() + retval := C.HarfangReadJoystick() retvalGO := &JoystickState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *JoystickState) { - C.WrapJoystickStateFree(cleanval.h) + C.HarfangJoystickStateFree(cleanval.h) }) return retvalGO } @@ -25584,40 +26797,40 @@ func ReadJoystick() *JoystickState { func ReadJoystickWithName(name string) *JoystickState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadJoystickWithName(nameToC) + retval := C.HarfangReadJoystickWithName(nameToC) retvalGO := &JoystickState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *JoystickState) { - C.WrapJoystickStateFree(cleanval.h) + C.HarfangJoystickStateFree(cleanval.h) }) return retvalGO } // GetJoystickNames ... func GetJoystickNames() *StringList { - retval := C.WrapGetJoystickNames() + retval := C.HarfangGetJoystickNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // GetJoystickDeviceNames ... func GetJoystickDeviceNames() *StringList { - retval := C.WrapGetJoystickDeviceNames() + retval := C.HarfangGetJoystickDeviceNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ReadVRController Read the current state of a named VR controller. If no name is passed, `default` is implied. See [harfang.GetVRControllerNames]. func ReadVRController() *VRControllerState { - retval := C.WrapReadVRController() + retval := C.HarfangReadVRController() retvalGO := &VRControllerState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRControllerState) { - C.WrapVRControllerStateFree(cleanval.h) + C.HarfangVRControllerStateFree(cleanval.h) }) return retvalGO } @@ -25626,10 +26839,10 @@ func ReadVRController() *VRControllerState { func ReadVRControllerWithName(name string) *VRControllerState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadVRControllerWithName(nameToC) + retval := C.HarfangReadVRControllerWithName(nameToC) retvalGO := &VRControllerState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRControllerState) { - C.WrapVRControllerStateFree(cleanval.h) + C.HarfangVRControllerStateFree(cleanval.h) }) return retvalGO } @@ -25637,7 +26850,7 @@ func ReadVRControllerWithName(name string) *VRControllerState { // SendVRControllerHapticPulse Send an haptic pulse to a named VR controller. See [harfang.GetVRControllerNames]. func SendVRControllerHapticPulse(duration int64) { durationToC := C.int64_t(duration) - C.WrapSendVRControllerHapticPulse(durationToC) + C.HarfangSendVRControllerHapticPulse(durationToC) } // SendVRControllerHapticPulseWithName Send an haptic pulse to a named VR controller. See [harfang.GetVRControllerNames]. @@ -25645,25 +26858,25 @@ func SendVRControllerHapticPulseWithName(duration int64, name string) { durationToC := C.int64_t(duration) nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - C.WrapSendVRControllerHapticPulseWithName(durationToC, nameToC) + C.HarfangSendVRControllerHapticPulseWithName(durationToC, nameToC) } // GetVRControllerNames Return a list of names for all supported VR controller devices on the system. See [harfang.ReadVRController]. func GetVRControllerNames() *StringList { - retval := C.WrapGetVRControllerNames() + retval := C.HarfangGetVRControllerNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ReadVRGenericTracker Read the current state of a named VR generic tracked. If no name is passed, `default` is implied. See [harfang.GetVRGenericTrackerNames]. func ReadVRGenericTracker() *VRGenericTrackerState { - retval := C.WrapReadVRGenericTracker() + retval := C.HarfangReadVRGenericTracker() retvalGO := &VRGenericTrackerState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRGenericTrackerState) { - C.WrapVRGenericTrackerStateFree(cleanval.h) + C.HarfangVRGenericTrackerStateFree(cleanval.h) }) return retvalGO } @@ -25672,39 +26885,39 @@ func ReadVRGenericTracker() *VRGenericTrackerState { func ReadVRGenericTrackerWithName(name string) *VRGenericTrackerState { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapReadVRGenericTrackerWithName(nameToC) + retval := C.HarfangReadVRGenericTrackerWithName(nameToC) retvalGO := &VRGenericTrackerState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *VRGenericTrackerState) { - C.WrapVRGenericTrackerStateFree(cleanval.h) + C.HarfangVRGenericTrackerStateFree(cleanval.h) }) return retvalGO } // GetVRGenericTrackerNames Return a list of names for all supported VR tracker devices on the system. func GetVRGenericTrackerNames() *StringList { - retval := C.WrapGetVRGenericTrackerNames() + retval := C.HarfangGetVRGenericTrackerNames() retvalGO := &StringList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *StringList) { - C.WrapStringListFree(cleanval.h) + C.HarfangStringListFree(cleanval.h) }) return retvalGO } // ImGuiNewFrame ... func ImGuiNewFrame() { - C.WrapImGuiNewFrame() + C.HarfangImGuiNewFrame() } // ImGuiRender ... func ImGuiRender() { - C.WrapImGuiRender() + C.HarfangImGuiRender() } // ImGuiBegin Start a new window. func ImGuiBegin(name string) bool { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapImGuiBegin(nameToC) + retval := C.HarfangImGuiBegin(nameToC) return bool(retval) } @@ -25714,20 +26927,20 @@ func ImGuiBeginWithOpenFlags(name string, open *bool, flags ImGuiWindowFlags) bo defer idFinnameToC() openToC := (*C.bool)(unsafe.Pointer(open)) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiBeginWithOpenFlags(nameToC, openToC, flagsToC) + retval := C.HarfangImGuiBeginWithOpenFlags(nameToC, openToC, flagsToC) return bool(retval) } // ImGuiEnd End the current window. func ImGuiEnd() { - C.WrapImGuiEnd() + C.HarfangImGuiEnd() } // ImGuiBeginChild Begin a scrolling region. func ImGuiBeginChild(id string) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiBeginChild(idToC) + retval := C.HarfangImGuiBeginChild(idToC) return bool(retval) } @@ -25736,7 +26949,7 @@ func ImGuiBeginChildWithSize(id string, size *Vec2) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() sizeToC := size.h - retval := C.WrapImGuiBeginChildWithSize(idToC, sizeToC) + retval := C.HarfangImGuiBeginChildWithSize(idToC, sizeToC) return bool(retval) } @@ -25746,7 +26959,7 @@ func ImGuiBeginChildWithSizeBorder(id string, size *Vec2, border bool) bool { defer idFinidToC() sizeToC := size.h borderToC := C.bool(border) - retval := C.WrapImGuiBeginChildWithSizeBorder(idToC, sizeToC, borderToC) + retval := C.HarfangImGuiBeginChildWithSizeBorder(idToC, sizeToC, borderToC) return bool(retval) } @@ -25757,75 +26970,75 @@ func ImGuiBeginChildWithSizeBorderFlags(id string, size *Vec2, border bool, flag sizeToC := size.h borderToC := C.bool(border) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiBeginChildWithSizeBorderFlags(idToC, sizeToC, borderToC, flagsToC) + retval := C.HarfangImGuiBeginChildWithSizeBorderFlags(idToC, sizeToC, borderToC, flagsToC) return bool(retval) } // ImGuiEndChild End a scrolling region. func ImGuiEndChild() { - C.WrapImGuiEndChild() + C.HarfangImGuiEndChild() } // ImGuiGetContentRegionMax Return the available content space including window decorations and scrollbar. func ImGuiGetContentRegionMax() *Vec2 { - retval := C.WrapImGuiGetContentRegionMax() + retval := C.HarfangImGuiGetContentRegionMax() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetContentRegionAvail Get available space for content in the current layout. func ImGuiGetContentRegionAvail() *Vec2 { - retval := C.WrapImGuiGetContentRegionAvail() + retval := C.HarfangImGuiGetContentRegionAvail() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetContentRegionAvailWidth Helper function to return the available width of current content region. See [harfang.ImGuiGetContentRegionAvail]. func ImGuiGetContentRegionAvailWidth() float32 { - retval := C.WrapImGuiGetContentRegionAvailWidth() + retval := C.HarfangImGuiGetContentRegionAvailWidth() return float32(retval) } // ImGuiGetWindowContentRegionMin Content boundaries min (roughly (0,0)-Scroll), in window space. func ImGuiGetWindowContentRegionMin() *Vec2 { - retval := C.WrapImGuiGetWindowContentRegionMin() + retval := C.HarfangImGuiGetWindowContentRegionMin() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetWindowContentRegionMax Return the content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with [harfang.ImGuiSetNextWindowContentSize], in window space. func ImGuiGetWindowContentRegionMax() *Vec2 { - retval := C.WrapImGuiGetWindowContentRegionMax() + retval := C.HarfangImGuiGetWindowContentRegionMax() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetWindowContentRegionWidth Return the width of the content region. func ImGuiGetWindowContentRegionWidth() float32 { - retval := C.WrapImGuiGetWindowContentRegionWidth() + retval := C.HarfangImGuiGetWindowContentRegionWidth() return float32(retval) } // ImGuiGetWindowDrawList Get the draw list associated to the current window, to append your own drawing primitives. func ImGuiGetWindowDrawList() *ImDrawList { - retval := C.WrapImGuiGetWindowDrawList() + retval := C.HarfangImGuiGetWindowDrawList() var retvalGO *ImDrawList if retval != nil { retvalGO = &ImDrawList{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ImDrawList) { - C.WrapImDrawListFree(cleanval.h) + C.HarfangImDrawListFree(cleanval.h) }) } return retvalGO @@ -25833,114 +27046,114 @@ func ImGuiGetWindowDrawList() *ImDrawList { // ImGuiGetWindowPos Return the current window position in screen space. See [harfang.ImGuiSetWindowPos]. func ImGuiGetWindowPos() *Vec2 { - retval := C.WrapImGuiGetWindowPos() + retval := C.HarfangImGuiGetWindowPos() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetWindowSize Return the current window size. See [harfang.ImGuiSetWindowSize]. func ImGuiGetWindowSize() *Vec2 { - retval := C.WrapImGuiGetWindowSize() + retval := C.HarfangImGuiGetWindowSize() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetWindowWidth Return the current window width. func ImGuiGetWindowWidth() float32 { - retval := C.WrapImGuiGetWindowWidth() + retval := C.HarfangImGuiGetWindowWidth() return float32(retval) } // ImGuiGetWindowHeight Return the current window height. func ImGuiGetWindowHeight() float32 { - retval := C.WrapImGuiGetWindowHeight() + retval := C.HarfangImGuiGetWindowHeight() return float32(retval) } // ImGuiIsWindowCollapsed Is the current window collapsed. func ImGuiIsWindowCollapsed() bool { - retval := C.WrapImGuiIsWindowCollapsed() + retval := C.HarfangImGuiIsWindowCollapsed() return bool(retval) } // ImGuiSetWindowFontScale Per-window font scale. func ImGuiSetWindowFontScale(scale float32) { scaleToC := C.float(scale) - C.WrapImGuiSetWindowFontScale(scaleToC) + C.HarfangImGuiSetWindowFontScale(scaleToC) } // ImGuiSetNextWindowPos Set next window position, call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowPos(pos *Vec2) { posToC := pos.h - C.WrapImGuiSetNextWindowPos(posToC) + C.HarfangImGuiSetNextWindowPos(posToC) } // ImGuiSetNextWindowPosWithCondition Set next window position, call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowPosWithCondition(pos *Vec2, condition ImGuiCond) { posToC := pos.h conditionToC := C.int32_t(condition) - C.WrapImGuiSetNextWindowPosWithCondition(posToC, conditionToC) + C.HarfangImGuiSetNextWindowPosWithCondition(posToC, conditionToC) } // ImGuiSetNextWindowPosCenter Set next window position to be centered on screen, call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowPosCenter() { - C.WrapImGuiSetNextWindowPosCenter() + C.HarfangImGuiSetNextWindowPosCenter() } // ImGuiSetNextWindowPosCenterWithCondition Set next window position to be centered on screen, call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowPosCenterWithCondition(condition ImGuiCond) { conditionToC := C.int32_t(condition) - C.WrapImGuiSetNextWindowPosCenterWithCondition(conditionToC) + C.HarfangImGuiSetNextWindowPosCenterWithCondition(conditionToC) } // ImGuiSetNextWindowSize Set next window size, call before [harfang.ImGuiBegin]. A value of 0 for an axis will auto-fit it. func ImGuiSetNextWindowSize(size *Vec2) { sizeToC := size.h - C.WrapImGuiSetNextWindowSize(sizeToC) + C.HarfangImGuiSetNextWindowSize(sizeToC) } // ImGuiSetNextWindowSizeWithCondition Set next window size, call before [harfang.ImGuiBegin]. A value of 0 for an axis will auto-fit it. func ImGuiSetNextWindowSizeWithCondition(size *Vec2, condition ImGuiCond) { sizeToC := size.h conditionToC := C.int32_t(condition) - C.WrapImGuiSetNextWindowSizeWithCondition(sizeToC, conditionToC) + C.HarfangImGuiSetNextWindowSizeWithCondition(sizeToC, conditionToC) } // ImGuiSetNextWindowSizeConstraints Set the next window size limits. Use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. func ImGuiSetNextWindowSizeConstraints(sizemin *Vec2, sizemax *Vec2) { sizeminToC := sizemin.h sizemaxToC := sizemax.h - C.WrapImGuiSetNextWindowSizeConstraints(sizeminToC, sizemaxToC) + C.HarfangImGuiSetNextWindowSizeConstraints(sizeminToC, sizemaxToC) } // ImGuiSetNextWindowContentSize Set the size of the content area of the next declared window. Call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowContentSize(size *Vec2) { sizeToC := size.h - C.WrapImGuiSetNextWindowContentSize(sizeToC) + C.HarfangImGuiSetNextWindowContentSize(sizeToC) } // ImGuiSetNextWindowContentWidth See [harfang.ImGuiSetNextWindowContentSize]. func ImGuiSetNextWindowContentWidth(width float32) { widthToC := C.float(width) - C.WrapImGuiSetNextWindowContentWidth(widthToC) + C.HarfangImGuiSetNextWindowContentWidth(widthToC) } // ImGuiSetNextWindowCollapsed Set next window collapsed state, call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowCollapsed(collapsed bool, condition ImGuiCond) { collapsedToC := C.bool(collapsed) conditionToC := C.int32_t(condition) - C.WrapImGuiSetNextWindowCollapsed(collapsedToC, conditionToC) + C.HarfangImGuiSetNextWindowCollapsed(collapsedToC, conditionToC) } // ImGuiSetNextWindowFocus Set the next window to be focused/top-most. Call before [harfang.ImGuiBegin]. func ImGuiSetNextWindowFocus() { - C.WrapImGuiSetNextWindowFocus() + C.HarfangImGuiSetNextWindowFocus() } // ImGuiSetWindowPos Set named window position. @@ -25948,7 +27161,7 @@ func ImGuiSetWindowPos(name string, pos *Vec2) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() posToC := pos.h - C.WrapImGuiSetWindowPos(nameToC, posToC) + C.HarfangImGuiSetWindowPos(nameToC, posToC) } // ImGuiSetWindowPosWithCondition Set named window position. @@ -25957,7 +27170,7 @@ func ImGuiSetWindowPosWithCondition(name string, pos *Vec2, condition ImGuiCond) defer idFinnameToC() posToC := pos.h conditionToC := C.int32_t(condition) - C.WrapImGuiSetWindowPosWithCondition(nameToC, posToC, conditionToC) + C.HarfangImGuiSetWindowPosWithCondition(nameToC, posToC, conditionToC) } // ImGuiSetWindowSize Set named window size. @@ -25965,7 +27178,7 @@ func ImGuiSetWindowSize(name string, size *Vec2) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() sizeToC := size.h - C.WrapImGuiSetWindowSize(nameToC, sizeToC) + C.HarfangImGuiSetWindowSize(nameToC, sizeToC) } // ImGuiSetWindowSizeWithCondition Set named window size. @@ -25974,7 +27187,7 @@ func ImGuiSetWindowSizeWithCondition(name string, size *Vec2, condition ImGuiCon defer idFinnameToC() sizeToC := size.h conditionToC := C.int32_t(condition) - C.WrapImGuiSetWindowSizeWithCondition(nameToC, sizeToC, conditionToC) + C.HarfangImGuiSetWindowSizeWithCondition(nameToC, sizeToC, conditionToC) } // ImGuiSetWindowCollapsed Set named window collapsed state, prefer using [harfang.ImGuiSetNextWindowCollapsed]. @@ -25982,7 +27195,7 @@ func ImGuiSetWindowCollapsed(name string, collapsed bool) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() collapsedToC := C.bool(collapsed) - C.WrapImGuiSetWindowCollapsed(nameToC, collapsedToC) + C.HarfangImGuiSetWindowCollapsed(nameToC, collapsedToC) } // ImGuiSetWindowCollapsedWithCondition Set named window collapsed state, prefer using [harfang.ImGuiSetNextWindowCollapsed]. @@ -25991,149 +27204,149 @@ func ImGuiSetWindowCollapsedWithCondition(name string, collapsed bool, condition defer idFinnameToC() collapsedToC := C.bool(collapsed) conditionToC := C.int32_t(condition) - C.WrapImGuiSetWindowCollapsedWithCondition(nameToC, collapsedToC, conditionToC) + C.HarfangImGuiSetWindowCollapsedWithCondition(nameToC, collapsedToC, conditionToC) } // ImGuiSetWindowFocus Set named window to be focused/top-most. func ImGuiSetWindowFocus(name string) { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - C.WrapImGuiSetWindowFocus(nameToC) + C.HarfangImGuiSetWindowFocus(nameToC) } // ImGuiGetScrollX Get scrolling amount on the horizontal axis. func ImGuiGetScrollX() float32 { - retval := C.WrapImGuiGetScrollX() + retval := C.HarfangImGuiGetScrollX() return float32(retval) } // ImGuiGetScrollY Get scrolling amount on the vertical axis. func ImGuiGetScrollY() float32 { - retval := C.WrapImGuiGetScrollY() + retval := C.HarfangImGuiGetScrollY() return float32(retval) } // ImGuiGetScrollMaxX Get maximum scrolling amount on the horizontal axis. func ImGuiGetScrollMaxX() float32 { - retval := C.WrapImGuiGetScrollMaxX() + retval := C.HarfangImGuiGetScrollMaxX() return float32(retval) } // ImGuiGetScrollMaxY Get maximum scrolling amount on the vertical axis. func ImGuiGetScrollMaxY() float32 { - retval := C.WrapImGuiGetScrollMaxY() + retval := C.HarfangImGuiGetScrollMaxY() return float32(retval) } // ImGuiSetScrollX Set scrolling amount between [harfang.0;[ImGuiGetScrollMaxX]]. func ImGuiSetScrollX(scrollx float32) { scrollxToC := C.float(scrollx) - C.WrapImGuiSetScrollX(scrollxToC) + C.HarfangImGuiSetScrollX(scrollxToC) } // ImGuiSetScrollY Set scrolling amount between [harfang.0;[ImGuiGetScrollMaxY]]. func ImGuiSetScrollY(scrolly float32) { scrollyToC := C.float(scrolly) - C.WrapImGuiSetScrollY(scrollyToC) + C.HarfangImGuiSetScrollY(scrollyToC) } // ImGuiSetScrollHereY Adjust scrolling amount to make current cursor position visible. - 0: Top. - 0.5: Center. - 1: Bottom. When using to make a default/current item visible, consider using [harfang.ImGuiSetItemDefaultFocus] instead. func ImGuiSetScrollHereY() { - C.WrapImGuiSetScrollHereY() + C.HarfangImGuiSetScrollHereY() } // ImGuiSetScrollHereYWithCenterYRatio Adjust scrolling amount to make current cursor position visible. - 0: Top. - 0.5: Center. - 1: Bottom. When using to make a default/current item visible, consider using [harfang.ImGuiSetItemDefaultFocus] instead. func ImGuiSetScrollHereYWithCenterYRatio(centeryratio float32) { centeryratioToC := C.float(centeryratio) - C.WrapImGuiSetScrollHereYWithCenterYRatio(centeryratioToC) + C.HarfangImGuiSetScrollHereYWithCenterYRatio(centeryratioToC) } // ImGuiSetScrollFromPosY Adjust scrolling amount to make a given position visible. Generally [harfang.ImGuiGetCursorStartPos] + offset to compute a valid position. func ImGuiSetScrollFromPosY(posy float32) { posyToC := C.float(posy) - C.WrapImGuiSetScrollFromPosY(posyToC) + C.HarfangImGuiSetScrollFromPosY(posyToC) } // ImGuiSetScrollFromPosYWithCenterYRatio Adjust scrolling amount to make a given position visible. Generally [harfang.ImGuiGetCursorStartPos] + offset to compute a valid position. func ImGuiSetScrollFromPosYWithCenterYRatio(posy float32, centeryratio float32) { posyToC := C.float(posy) centeryratioToC := C.float(centeryratio) - C.WrapImGuiSetScrollFromPosYWithCenterYRatio(posyToC, centeryratioToC) + C.HarfangImGuiSetScrollFromPosYWithCenterYRatio(posyToC, centeryratioToC) } // ImGuiSetKeyboardFocusHere Focus keyboard on the next widget. Use positive `offset` value to access sub components of a multiple component widget. Use `-1` to access the previous widget. func ImGuiSetKeyboardFocusHere() { - C.WrapImGuiSetKeyboardFocusHere() + C.HarfangImGuiSetKeyboardFocusHere() } // ImGuiSetKeyboardFocusHereWithOffset Focus keyboard on the next widget. Use positive `offset` value to access sub components of a multiple component widget. Use `-1` to access the previous widget. func ImGuiSetKeyboardFocusHereWithOffset(offset int32) { offsetToC := C.int32_t(offset) - C.WrapImGuiSetKeyboardFocusHereWithOffset(offsetToC) + C.HarfangImGuiSetKeyboardFocusHereWithOffset(offsetToC) } // ImGuiPushFont Push a font on top of the font stack and make it current for subsequent text rendering operations. func ImGuiPushFont(font *ImFont) { fontToC := font.h - C.WrapImGuiPushFont(fontToC) + C.HarfangImGuiPushFont(fontToC) } // ImGuiPopFont Undo the last call to [harfang.ImGuiPushFont]. func ImGuiPopFont() { - C.WrapImGuiPopFont() + C.HarfangImGuiPopFont() } // ImGuiPushStyleColor Push a value on the style stack for the specified style color. See [harfang.ImGuiPopStyleColor]. func ImGuiPushStyleColor(idx ImGuiCol, color *Color) { idxToC := C.int32_t(idx) colorToC := color.h - C.WrapImGuiPushStyleColor(idxToC, colorToC) + C.HarfangImGuiPushStyleColor(idxToC, colorToC) } // ImGuiPopStyleColor Undo the last call to [harfang.ImGuiPushStyleColor]. func ImGuiPopStyleColor() { - C.WrapImGuiPopStyleColor() + C.HarfangImGuiPopStyleColor() } // ImGuiPopStyleColorWithCount Undo the last call to [harfang.ImGuiPushStyleColor]. func ImGuiPopStyleColorWithCount(count int32) { countToC := C.int32_t(count) - C.WrapImGuiPopStyleColorWithCount(countToC) + C.HarfangImGuiPopStyleColorWithCount(countToC) } // ImGuiPushStyleVar Push a value on the style stack for the specified style variable. See [harfang.ImGuiPopStyleVar]. func ImGuiPushStyleVar(idx ImGuiStyleVar, value float32) { idxToC := C.int32_t(idx) valueToC := C.float(value) - C.WrapImGuiPushStyleVar(idxToC, valueToC) + C.HarfangImGuiPushStyleVar(idxToC, valueToC) } // ImGuiPushStyleVarWithValue Push a value on the style stack for the specified style variable. See [harfang.ImGuiPopStyleVar]. func ImGuiPushStyleVarWithValue(idx ImGuiStyleVar, value *Vec2) { idxToC := C.int32_t(idx) valueToC := value.h - C.WrapImGuiPushStyleVarWithValue(idxToC, valueToC) + C.HarfangImGuiPushStyleVarWithValue(idxToC, valueToC) } // ImGuiPopStyleVar Undo the last call to [harfang.ImGuiPushStyleVar]. func ImGuiPopStyleVar() { - C.WrapImGuiPopStyleVar() + C.HarfangImGuiPopStyleVar() } // ImGuiPopStyleVarWithCount Undo the last call to [harfang.ImGuiPushStyleVar]. func ImGuiPopStyleVarWithCount(count int32) { countToC := C.int32_t(count) - C.WrapImGuiPopStyleVarWithCount(countToC) + C.HarfangImGuiPopStyleVarWithCount(countToC) } // ImGuiGetFont Return the current ImGui font. func ImGuiGetFont() *ImFont { - retval := C.WrapImGuiGetFont() + retval := C.HarfangImGuiGetFont() var retvalGO *ImFont if retval != nil { retvalGO = &ImFont{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ImFont) { - C.WrapImFontFree(cleanval.h) + C.HarfangImFontFree(cleanval.h) }) } return retvalGO @@ -26141,16 +27354,16 @@ func ImGuiGetFont() *ImFont { // ImGuiGetFontSize Return the font size (height in pixels) of the current ImGui font with the current scale applied. func ImGuiGetFontSize() float32 { - retval := C.WrapImGuiGetFontSize() + retval := C.HarfangImGuiGetFontSize() return float32(retval) } // ImGuiGetFontTexUvWhitePixel Get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API. func ImGuiGetFontTexUvWhitePixel() *Vec2 { - retval := C.WrapImGuiGetFontTexUvWhitePixel() + retval := C.HarfangImGuiGetFontTexUvWhitePixel() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -26158,7 +27371,7 @@ func ImGuiGetFontTexUvWhitePixel() *Vec2 { // ImGuiGetColorU32 Return a style color component as a 32 bit unsigned integer. See [harfang.ImGuiPushStyleColor]. func ImGuiGetColorU32(idx ImGuiCol) uint32 { idxToC := C.int32_t(idx) - retval := C.WrapImGuiGetColorU32(idxToC) + retval := C.HarfangImGuiGetColorU32(idxToC) return uint32(retval) } @@ -26166,199 +27379,199 @@ func ImGuiGetColorU32(idx ImGuiCol) uint32 { func ImGuiGetColorU32WithAlphaMultiplier(idx ImGuiCol, alphamultiplier float32) uint32 { idxToC := C.int32_t(idx) alphamultiplierToC := C.float(alphamultiplier) - retval := C.WrapImGuiGetColorU32WithAlphaMultiplier(idxToC, alphamultiplierToC) + retval := C.HarfangImGuiGetColorU32WithAlphaMultiplier(idxToC, alphamultiplierToC) return uint32(retval) } // ImGuiGetColorU32WithColor Return a style color component as a 32 bit unsigned integer. See [harfang.ImGuiPushStyleColor]. func ImGuiGetColorU32WithColor(color *Color) uint32 { colorToC := color.h - retval := C.WrapImGuiGetColorU32WithColor(colorToC) + retval := C.HarfangImGuiGetColorU32WithColor(colorToC) return uint32(retval) } // ImGuiPushItemWidth Set the width of items for common large `item+label` widgets. - `>0`: width in pixels - `<0`: align `x` pixels to the right of window (so -1 always align width to the right side) - `=0`: default to ~2/3 of the window width See [harfang.ImGuiPopItemWidth]. func ImGuiPushItemWidth(itemwidth float32) { itemwidthToC := C.float(itemwidth) - C.WrapImGuiPushItemWidth(itemwidthToC) + C.HarfangImGuiPushItemWidth(itemwidthToC) } // ImGuiPopItemWidth Undo the last call to [harfang.ImGuiPushItemWidth]. func ImGuiPopItemWidth() { - C.WrapImGuiPopItemWidth() + C.HarfangImGuiPopItemWidth() } // ImGuiCalcItemWidth Returns the width of item given pushed settings and current cursor position. Note: This is not necessarily the width of last item. func ImGuiCalcItemWidth() float32 { - retval := C.WrapImGuiCalcItemWidth() + retval := C.HarfangImGuiCalcItemWidth() return float32(retval) } // ImGuiPushTextWrapPos Push word-wrapping position for text commands. - `<0`: No wrapping. - `=0`: Wrap to the end of the window or column. - `>0`: Wrap at `wrap_pos_x` position in window local space. See [harfang.ImGuiPopTextWrapPos]. func ImGuiPushTextWrapPos() { - C.WrapImGuiPushTextWrapPos() + C.HarfangImGuiPushTextWrapPos() } // ImGuiPushTextWrapPosWithWrapPosX Push word-wrapping position for text commands. - `<0`: No wrapping. - `=0`: Wrap to the end of the window or column. - `>0`: Wrap at `wrap_pos_x` position in window local space. See [harfang.ImGuiPopTextWrapPos]. func ImGuiPushTextWrapPosWithWrapPosX(wrapposx float32) { wrapposxToC := C.float(wrapposx) - C.WrapImGuiPushTextWrapPosWithWrapPosX(wrapposxToC) + C.HarfangImGuiPushTextWrapPosWithWrapPosX(wrapposxToC) } // ImGuiPopTextWrapPos Undo the last call to [harfang.ImGuiPushTextWrapPos]. func ImGuiPopTextWrapPos() { - C.WrapImGuiPopTextWrapPos() + C.HarfangImGuiPopTextWrapPos() } // ImGuiPushAllowKeyboardFocus Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets. func ImGuiPushAllowKeyboardFocus(v bool) { vToC := C.bool(v) - C.WrapImGuiPushAllowKeyboardFocus(vToC) + C.HarfangImGuiPushAllowKeyboardFocus(vToC) } // ImGuiPopAllowKeyboardFocus Undo the last call to [harfang.ImGuiPushAllowKeyboardFocus]. func ImGuiPopAllowKeyboardFocus() { - C.WrapImGuiPopAllowKeyboardFocus() + C.HarfangImGuiPopAllowKeyboardFocus() } // ImGuiPushButtonRepeat In repeat mode, `ButtonXXX` functions return repeated true in a typematic manner. Note that you can call [harfang.ImGuiIsItemActive] after any `Button` to tell if the button is held in the current frame. func ImGuiPushButtonRepeat(repeat bool) { repeatToC := C.bool(repeat) - C.WrapImGuiPushButtonRepeat(repeatToC) + C.HarfangImGuiPushButtonRepeat(repeatToC) } // ImGuiPopButtonRepeat Undo the last call to [harfang.ImGuiPushButtonRepeat]. func ImGuiPopButtonRepeat() { - C.WrapImGuiPopButtonRepeat() + C.HarfangImGuiPopButtonRepeat() } // ImGuiSeparator Output an horizontal line to separate two distinct UI sections. func ImGuiSeparator() { - C.WrapImGuiSeparator() + C.HarfangImGuiSeparator() } // ImGuiSameLine Call between widgets or groups to layout them horizontally. func ImGuiSameLine() { - C.WrapImGuiSameLine() + C.HarfangImGuiSameLine() } // ImGuiSameLineWithPosX Call between widgets or groups to layout them horizontally. func ImGuiSameLineWithPosX(posx float32) { posxToC := C.float(posx) - C.WrapImGuiSameLineWithPosX(posxToC) + C.HarfangImGuiSameLineWithPosX(posxToC) } // ImGuiSameLineWithPosXSpacingW Call between widgets or groups to layout them horizontally. func ImGuiSameLineWithPosXSpacingW(posx float32, spacingw float32) { posxToC := C.float(posx) spacingwToC := C.float(spacingw) - C.WrapImGuiSameLineWithPosXSpacingW(posxToC, spacingwToC) + C.HarfangImGuiSameLineWithPosXSpacingW(posxToC, spacingwToC) } // ImGuiNewLine Undo a [harfang.ImGuiSameLine] call or force a new line when in an horizontal layout. func ImGuiNewLine() { - C.WrapImGuiNewLine() + C.HarfangImGuiNewLine() } // ImGuiSpacing Add spacing. func ImGuiSpacing() { - C.WrapImGuiSpacing() + C.HarfangImGuiSpacing() } // ImGuiDummy Add a dummy item of given size. func ImGuiDummy(size *Vec2) { sizeToC := size.h - C.WrapImGuiDummy(sizeToC) + C.HarfangImGuiDummy(sizeToC) } // ImGuiIndent Move content position toward the right. func ImGuiIndent() { - C.WrapImGuiIndent() + C.HarfangImGuiIndent() } // ImGuiIndentWithWidth Move content position toward the right. func ImGuiIndentWithWidth(width float32) { widthToC := C.float(width) - C.WrapImGuiIndentWithWidth(widthToC) + C.HarfangImGuiIndentWithWidth(widthToC) } // ImGuiUnindent Move content position back to the left (cancel [harfang.ImGuiIndent]). func ImGuiUnindent() { - C.WrapImGuiUnindent() + C.HarfangImGuiUnindent() } // ImGuiUnindentWithWidth Move content position back to the left (cancel [harfang.ImGuiIndent]). func ImGuiUnindentWithWidth(width float32) { widthToC := C.float(width) - C.WrapImGuiUnindentWithWidth(widthToC) + C.HarfangImGuiUnindentWithWidth(widthToC) } // ImGuiBeginGroup Lock horizontal starting position. Once closing a group it is seen as a single item (so you can use [harfang.ImGuiIsItemHovered] on a group, [harfang.ImGuiSameLine] between groups, etc...). func ImGuiBeginGroup() { - C.WrapImGuiBeginGroup() + C.HarfangImGuiBeginGroup() } // ImGuiEndGroup End the current group. func ImGuiEndGroup() { - C.WrapImGuiEndGroup() + C.HarfangImGuiEndGroup() } // ImGuiGetCursorPos Return the layout cursor position in window space. Next widget declaration will take place at the cursor position. See [harfang.ImGuiSetCursorPos] and [harfang.ImGuiSameLine]. func ImGuiGetCursorPos() *Vec2 { - retval := C.WrapImGuiGetCursorPos() + retval := C.HarfangImGuiGetCursorPos() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetCursorPosX Helper for [harfang.ImGuiGetCursorPos]. func ImGuiGetCursorPosX() float32 { - retval := C.WrapImGuiGetCursorPosX() + retval := C.HarfangImGuiGetCursorPosX() return float32(retval) } // ImGuiGetCursorPosY Helper for [harfang.ImGuiGetCursorPos]. func ImGuiGetCursorPosY() float32 { - retval := C.WrapImGuiGetCursorPosY() + retval := C.HarfangImGuiGetCursorPosY() return float32(retval) } // ImGuiSetCursorPos Set the current widget output cursor position in window space. func ImGuiSetCursorPos(localpos *Vec2) { localposToC := localpos.h - C.WrapImGuiSetCursorPos(localposToC) + C.HarfangImGuiSetCursorPos(localposToC) } // ImGuiSetCursorPosX See [harfang.ImGuiSetCursorPos]. func ImGuiSetCursorPosX(x float32) { xToC := C.float(x) - C.WrapImGuiSetCursorPosX(xToC) + C.HarfangImGuiSetCursorPosX(xToC) } // ImGuiSetCursorPosY See [harfang.ImGuiSetCursorPos]. func ImGuiSetCursorPosY(y float32) { yToC := C.float(y) - C.WrapImGuiSetCursorPosY(yToC) + C.HarfangImGuiSetCursorPosY(yToC) } // ImGuiGetCursorStartPos Return the current layout \"line\" starting position. See [harfang.ImGuiSameLine]. func ImGuiGetCursorStartPos() *Vec2 { - retval := C.WrapImGuiGetCursorStartPos() + retval := C.HarfangImGuiGetCursorStartPos() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetCursorScreenPos Return the current layout cursor position in screen space. func ImGuiGetCursorScreenPos() *Vec2 { - retval := C.WrapImGuiGetCursorScreenPos() + retval := C.HarfangImGuiGetCursorScreenPos() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -26366,41 +27579,41 @@ func ImGuiGetCursorScreenPos() *Vec2 { // ImGuiSetCursorScreenPos Set the widget cursor output position in screen space. func ImGuiSetCursorScreenPos(pos *Vec2) { posToC := pos.h - C.WrapImGuiSetCursorScreenPos(posToC) + C.HarfangImGuiSetCursorScreenPos(posToC) } // ImGuiAlignTextToFramePadding Vertically align upcoming text baseline to FramePadding __y__ coordinate so that it will align properly to regularly framed items. func ImGuiAlignTextToFramePadding() { - C.WrapImGuiAlignTextToFramePadding() + C.HarfangImGuiAlignTextToFramePadding() } // ImGuiGetTextLineHeight Return the height of a text line using the current font. See [harfang.ImGuiPushFont]. func ImGuiGetTextLineHeight() float32 { - retval := C.WrapImGuiGetTextLineHeight() + retval := C.HarfangImGuiGetTextLineHeight() return float32(retval) } // ImGuiGetTextLineHeightWithSpacing Return the height of a text line using the current font plus vertical spacing between two layout lines. See [harfang.ImGuiGetTextLineHeight]. func ImGuiGetTextLineHeightWithSpacing() float32 { - retval := C.WrapImGuiGetTextLineHeightWithSpacing() + retval := C.HarfangImGuiGetTextLineHeightWithSpacing() return float32(retval) } // ImGuiGetFrameHeightWithSpacing Return the following value: FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) func ImGuiGetFrameHeightWithSpacing() float32 { - retval := C.WrapImGuiGetFrameHeightWithSpacing() + retval := C.HarfangImGuiGetFrameHeightWithSpacing() return float32(retval) } // ImGuiColumns Begin a column layout section. To move to the next column use [harfang.ImGuiNextColumn]. To end a column layout section pass `1` to this function. **Note:** Current implementation supports a maximum of 64 columns. func ImGuiColumns() { - C.WrapImGuiColumns() + C.HarfangImGuiColumns() } // ImGuiColumnsWithCount Begin a column layout section. To move to the next column use [harfang.ImGuiNextColumn]. To end a column layout section pass `1` to this function. **Note:** Current implementation supports a maximum of 64 columns. func ImGuiColumnsWithCount(count int32) { countToC := C.int32_t(count) - C.WrapImGuiColumnsWithCount(countToC) + C.HarfangImGuiColumnsWithCount(countToC) } // ImGuiColumnsWithCountId Begin a column layout section. To move to the next column use [harfang.ImGuiNextColumn]. To end a column layout section pass `1` to this function. **Note:** Current implementation supports a maximum of 64 columns. @@ -26408,7 +27621,7 @@ func ImGuiColumnsWithCountId(count int32, id string) { countToC := C.int32_t(count) idToC, idFinidToC := wrapString(id) defer idFinidToC() - C.WrapImGuiColumnsWithCountId(countToC, idToC) + C.HarfangImGuiColumnsWithCountId(countToC, idToC) } // ImGuiColumnsWithCountIdWithBorder Begin a column layout section. To move to the next column use [harfang.ImGuiNextColumn]. To end a column layout section pass `1` to this function. **Note:** Current implementation supports a maximum of 64 columns. @@ -26417,30 +27630,30 @@ func ImGuiColumnsWithCountIdWithBorder(count int32, id string, withborder bool) idToC, idFinidToC := wrapString(id) defer idFinidToC() withborderToC := C.bool(withborder) - C.WrapImGuiColumnsWithCountIdWithBorder(countToC, idToC, withborderToC) + C.HarfangImGuiColumnsWithCountIdWithBorder(countToC, idToC, withborderToC) } // ImGuiNextColumn Start the next column in multi-column layout. See [harfang.ImGuiColumns]. func ImGuiNextColumn() { - C.WrapImGuiNextColumn() + C.HarfangImGuiNextColumn() } // ImGuiGetColumnIndex Returns the index of the current column. func ImGuiGetColumnIndex() int32 { - retval := C.WrapImGuiGetColumnIndex() + retval := C.HarfangImGuiGetColumnIndex() return int32(retval) } // ImGuiGetColumnOffset Returns the current column offset in pixels, from the left side of the content region. func ImGuiGetColumnOffset() float32 { - retval := C.WrapImGuiGetColumnOffset() + retval := C.HarfangImGuiGetColumnOffset() return float32(retval) } // ImGuiGetColumnOffsetWithColumnIndex Returns the current column offset in pixels, from the left side of the content region. func ImGuiGetColumnOffsetWithColumnIndex(columnindex int32) float32 { columnindexToC := C.int32_t(columnindex) - retval := C.WrapImGuiGetColumnOffsetWithColumnIndex(columnindexToC) + retval := C.HarfangImGuiGetColumnOffsetWithColumnIndex(columnindexToC) return float32(retval) } @@ -26448,19 +27661,19 @@ func ImGuiGetColumnOffsetWithColumnIndex(columnindex int32) float32 { func ImGuiSetColumnOffset(columnindex int32, offsetx float32) { columnindexToC := C.int32_t(columnindex) offsetxToC := C.float(offsetx) - C.WrapImGuiSetColumnOffset(columnindexToC, offsetxToC) + C.HarfangImGuiSetColumnOffset(columnindexToC, offsetxToC) } // ImGuiGetColumnWidth Returns the current column width in pixels. func ImGuiGetColumnWidth() float32 { - retval := C.WrapImGuiGetColumnWidth() + retval := C.HarfangImGuiGetColumnWidth() return float32(retval) } // ImGuiGetColumnWidthWithColumnIndex Returns the current column width in pixels. func ImGuiGetColumnWidthWithColumnIndex(columnindex int32) float32 { columnindexToC := C.int32_t(columnindex) - retval := C.WrapImGuiGetColumnWidthWithColumnIndex(columnindexToC) + retval := C.HarfangImGuiGetColumnWidthWithColumnIndex(columnindexToC) return float32(retval) } @@ -26468,12 +27681,12 @@ func ImGuiGetColumnWidthWithColumnIndex(columnindex int32) float32 { func ImGuiSetColumnWidth(columnindex int32, width float32) { columnindexToC := C.int32_t(columnindex) widthToC := C.float(width) - C.WrapImGuiSetColumnWidth(columnindexToC, widthToC) + C.HarfangImGuiSetColumnWidth(columnindexToC, widthToC) } // ImGuiGetColumnsCount Return the number of columns in the current layout section. See [harfang.ImGuiColumns]. func ImGuiGetColumnsCount() int32 { - retval := C.WrapImGuiGetColumnsCount() + retval := C.HarfangImGuiGetColumnsCount() return int32(retval) } @@ -26481,25 +27694,25 @@ func ImGuiGetColumnsCount() int32 { func ImGuiPushID(id string) { idToC, idFinidToC := wrapString(id) defer idFinidToC() - C.WrapImGuiPushID(idToC) + C.HarfangImGuiPushID(idToC) } // ImGuiPushIDWithId Push a string into the ID stack. func ImGuiPushIDWithId(id int32) { idToC := C.int32_t(id) - C.WrapImGuiPushIDWithId(idToC) + C.HarfangImGuiPushIDWithId(idToC) } // ImGuiPopID Undo the last call to [harfang.ImGuiPushID]. func ImGuiPopID() { - C.WrapImGuiPopID() + C.HarfangImGuiPopID() } // ImGuiGetID Return a unique ImGui ID. func ImGuiGetID(id string) uint32 { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiGetID(idToC) + retval := C.HarfangImGuiGetID(idToC) return uint32(retval) } @@ -26507,7 +27720,7 @@ func ImGuiGetID(id string) uint32 { func ImGuiText(text string) { textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiText(textToC) + C.HarfangImGuiText(textToC) } // ImGuiTextColored Colored static text. @@ -26515,28 +27728,28 @@ func ImGuiTextColored(color *Color, text string) { colorToC := color.h textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiTextColored(colorToC, textToC) + C.HarfangImGuiTextColored(colorToC, textToC) } // ImGuiTextDisabled Disabled static text. func ImGuiTextDisabled(text string) { textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiTextDisabled(textToC) + C.HarfangImGuiTextDisabled(textToC) } // ImGuiTextWrapped Wrapped static text. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, you may need to set a size using [harfang.ImGuiSetNextWindowSize]. func ImGuiTextWrapped(text string) { textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiTextWrapped(textToC) + C.HarfangImGuiTextWrapped(textToC) } // ImGuiTextUnformatted Raw text without formatting. Roughly equivalent to [harfang.ImGuiText] but faster, recommended for long chunks of text. func ImGuiTextUnformatted(text string) { textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiTextUnformatted(textToC) + C.HarfangImGuiTextUnformatted(textToC) } // ImGuiLabelText Display text+label aligned the same way as value+label widgets. @@ -26545,26 +27758,26 @@ func ImGuiLabelText(label string, text string) { defer idFinlabelToC() textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiLabelText(labelToC, textToC) + C.HarfangImGuiLabelText(labelToC, textToC) } // ImGuiBullet Draw a small circle and keep the cursor on the same line. Advances by the same distance as an empty [harfang.ImGuiTreeNode] call. func ImGuiBullet() { - C.WrapImGuiBullet() + C.HarfangImGuiBullet() } // ImGuiBulletText Draw a bullet followed by a static text. func ImGuiBulletText(label string) { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - C.WrapImGuiBulletText(labelToC) + C.HarfangImGuiBulletText(labelToC) } // ImGuiButton Button widget returning `True` if the button was pressed. func ImGuiButton(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiButton(labelToC) + retval := C.HarfangImGuiButton(labelToC) return bool(retval) } @@ -26573,7 +27786,7 @@ func ImGuiButtonWithSize(label string, size *Vec2) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() sizeToC := size.h - retval := C.WrapImGuiButtonWithSize(labelToC, sizeToC) + retval := C.HarfangImGuiButtonWithSize(labelToC, sizeToC) return bool(retval) } @@ -26581,7 +27794,7 @@ func ImGuiButtonWithSize(label string, size *Vec2) bool { func ImGuiSmallButton(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiSmallButton(labelToC) + retval := C.HarfangImGuiSmallButton(labelToC) return bool(retval) } @@ -26590,7 +27803,7 @@ func ImGuiInvisibleButton(text string, size *Vec2) bool { textToC, idFintextToC := wrapString(text) defer idFintextToC() sizeToC := size.h - retval := C.WrapImGuiInvisibleButton(textToC, sizeToC) + retval := C.HarfangImGuiInvisibleButton(textToC, sizeToC) return bool(retval) } @@ -26598,7 +27811,7 @@ func ImGuiInvisibleButton(text string, size *Vec2) bool { func ImGuiImage(tex *Texture, size *Vec2) { texToC := tex.h sizeToC := size.h - C.WrapImGuiImage(texToC, sizeToC) + C.HarfangImGuiImage(texToC, sizeToC) } // ImGuiImageWithUv0 Display a texture as an image widget. See [harfang.ImGuiImageButton]. @@ -26606,7 +27819,7 @@ func ImGuiImageWithUv0(tex *Texture, size *Vec2, uv0 *Vec2) { texToC := tex.h sizeToC := size.h uv0ToC := uv0.h - C.WrapImGuiImageWithUv0(texToC, sizeToC, uv0ToC) + C.HarfangImGuiImageWithUv0(texToC, sizeToC, uv0ToC) } // ImGuiImageWithUv0Uv1 Display a texture as an image widget. See [harfang.ImGuiImageButton]. @@ -26615,7 +27828,7 @@ func ImGuiImageWithUv0Uv1(tex *Texture, size *Vec2, uv0 *Vec2, uv1 *Vec2) { sizeToC := size.h uv0ToC := uv0.h uv1ToC := uv1.h - C.WrapImGuiImageWithUv0Uv1(texToC, sizeToC, uv0ToC, uv1ToC) + C.HarfangImGuiImageWithUv0Uv1(texToC, sizeToC, uv0ToC, uv1ToC) } // ImGuiImageWithUv0Uv1TintCol Display a texture as an image widget. See [harfang.ImGuiImageButton]. @@ -26625,7 +27838,7 @@ func ImGuiImageWithUv0Uv1TintCol(tex *Texture, size *Vec2, uv0 *Vec2, uv1 *Vec2, uv0ToC := uv0.h uv1ToC := uv1.h tintcolToC := tintcol.h - C.WrapImGuiImageWithUv0Uv1TintCol(texToC, sizeToC, uv0ToC, uv1ToC, tintcolToC) + C.HarfangImGuiImageWithUv0Uv1TintCol(texToC, sizeToC, uv0ToC, uv1ToC, tintcolToC) } // ImGuiImageWithUv0Uv1TintColBorderCol Display a texture as an image widget. See [harfang.ImGuiImageButton]. @@ -26636,14 +27849,14 @@ func ImGuiImageWithUv0Uv1TintColBorderCol(tex *Texture, size *Vec2, uv0 *Vec2, u uv1ToC := uv1.h tintcolToC := tintcol.h bordercolToC := bordercol.h - C.WrapImGuiImageWithUv0Uv1TintColBorderCol(texToC, sizeToC, uv0ToC, uv1ToC, tintcolToC, bordercolToC) + C.HarfangImGuiImageWithUv0Uv1TintColBorderCol(texToC, sizeToC, uv0ToC, uv1ToC, tintcolToC, bordercolToC) } // ImGuiImageButton Declare an image button displaying the provided texture. See [harfang.ImGuiImage]. func ImGuiImageButton(tex *Texture, size *Vec2) bool { texToC := tex.h sizeToC := size.h - retval := C.WrapImGuiImageButton(texToC, sizeToC) + retval := C.HarfangImGuiImageButton(texToC, sizeToC) return bool(retval) } @@ -26652,7 +27865,7 @@ func ImGuiImageButtonWithUv0(tex *Texture, size *Vec2, uv0 *Vec2) bool { texToC := tex.h sizeToC := size.h uv0ToC := uv0.h - retval := C.WrapImGuiImageButtonWithUv0(texToC, sizeToC, uv0ToC) + retval := C.HarfangImGuiImageButtonWithUv0(texToC, sizeToC, uv0ToC) return bool(retval) } @@ -26662,7 +27875,7 @@ func ImGuiImageButtonWithUv0Uv1(tex *Texture, size *Vec2, uv0 *Vec2, uv1 *Vec2) sizeToC := size.h uv0ToC := uv0.h uv1ToC := uv1.h - retval := C.WrapImGuiImageButtonWithUv0Uv1(texToC, sizeToC, uv0ToC, uv1ToC) + retval := C.HarfangImGuiImageButtonWithUv0Uv1(texToC, sizeToC, uv0ToC, uv1ToC) return bool(retval) } @@ -26673,7 +27886,7 @@ func ImGuiImageButtonWithUv0Uv1FramePadding(tex *Texture, size *Vec2, uv0 *Vec2, uv0ToC := uv0.h uv1ToC := uv1.h framepaddingToC := C.int32_t(framepadding) - retval := C.WrapImGuiImageButtonWithUv0Uv1FramePadding(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC) + retval := C.HarfangImGuiImageButtonWithUv0Uv1FramePadding(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC) return bool(retval) } @@ -26685,7 +27898,7 @@ func ImGuiImageButtonWithUv0Uv1FramePaddingBgCol(tex *Texture, size *Vec2, uv0 * uv1ToC := uv1.h framepaddingToC := C.int32_t(framepadding) bgcolToC := bgcol.h - retval := C.WrapImGuiImageButtonWithUv0Uv1FramePaddingBgCol(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC, bgcolToC) + retval := C.HarfangImGuiImageButtonWithUv0Uv1FramePaddingBgCol(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC, bgcolToC) return bool(retval) } @@ -26698,7 +27911,7 @@ func ImGuiImageButtonWithUv0Uv1FramePaddingBgColTintCol(tex *Texture, size *Vec2 framepaddingToC := C.int32_t(framepadding) bgcolToC := bgcol.h tintcolToC := tintcol.h - retval := C.WrapImGuiImageButtonWithUv0Uv1FramePaddingBgColTintCol(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC, bgcolToC, tintcolToC) + retval := C.HarfangImGuiImageButtonWithUv0Uv1FramePaddingBgColTintCol(texToC, sizeToC, uv0ToC, uv1ToC, framepaddingToC, bgcolToC, tintcolToC) return bool(retval) } @@ -26712,7 +27925,7 @@ func ImGuiInputText(label string, text string, maxsize int32) (bool, *string) { out := new(string) outToC1 := C.CString(*out) outToC := &outToC1 - retval := C.WrapImGuiInputText(labelToC, textToC, maxsizeToC, outToC) + retval := C.HarfangImGuiInputText(labelToC, textToC, maxsizeToC, outToC) outToCGO := string(C.GoString(*outToC)) return bool(retval), &outToCGO } @@ -26728,7 +27941,7 @@ func ImGuiInputTextWithFlags(label string, text string, maxsize int32, flags ImG outToC1 := C.CString(*out) outToC := &outToC1 flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputTextWithFlags(labelToC, textToC, maxsizeToC, outToC, flagsToC) + retval := C.HarfangImGuiInputTextWithFlags(labelToC, textToC, maxsizeToC, outToC, flagsToC) outToCGO := string(C.GoString(*outToC)) return bool(retval), &outToCGO } @@ -26738,7 +27951,7 @@ func ImGuiCheckbox(label string, value *bool) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() valueToC := (*C.bool)(unsafe.Pointer(value)) - retval := C.WrapImGuiCheckbox(labelToC, valueToC) + retval := C.HarfangImGuiCheckbox(labelToC, valueToC) return bool(retval) } @@ -26747,7 +27960,7 @@ func ImGuiRadioButton(label string, active bool) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() activeToC := C.bool(active) - retval := C.WrapImGuiRadioButton(labelToC, activeToC) + retval := C.HarfangImGuiRadioButton(labelToC, activeToC) return bool(retval) } @@ -26757,7 +27970,7 @@ func ImGuiRadioButtonWithVVButton(label string, v *int32, vbutton int32) bool { defer idFinlabelToC() vToC := (*C.int32_t)(unsafe.Pointer(v)) vbuttonToC := C.int32_t(vbutton) - retval := C.WrapImGuiRadioButtonWithVVButton(labelToC, vToC, vbuttonToC) + retval := C.HarfangImGuiRadioButtonWithVVButton(labelToC, vToC, vbuttonToC) return bool(retval) } @@ -26767,7 +27980,7 @@ func ImGuiBeginCombo(label string, previewvalue string) bool { defer idFinlabelToC() previewvalueToC, idFinpreviewvalueToC := wrapString(previewvalue) defer idFinpreviewvalueToC() - retval := C.WrapImGuiBeginCombo(labelToC, previewvalueToC) + retval := C.HarfangImGuiBeginCombo(labelToC, previewvalueToC) return bool(retval) } @@ -26778,13 +27991,13 @@ func ImGuiBeginComboWithFlags(label string, previewvalue string, flags ImGuiComb previewvalueToC, idFinpreviewvalueToC := wrapString(previewvalue) defer idFinpreviewvalueToC() flagsToC := C.int32_t(flags) - retval := C.WrapImGuiBeginComboWithFlags(labelToC, previewvalueToC, flagsToC) + retval := C.HarfangImGuiBeginComboWithFlags(labelToC, previewvalueToC, flagsToC) return bool(retval) } // ImGuiEndCombo End a combo widget. func ImGuiEndCombo() { - C.WrapImGuiEndCombo() + C.HarfangImGuiEndCombo() } // ImGuiCombo Combo box widget, return the current selection index. Combo items are passed as an array of string. @@ -26793,7 +28006,7 @@ func ImGuiCombo(label string, currentitem *int32, items *StringList) bool { defer idFinlabelToC() currentitemToC := (*C.int32_t)(unsafe.Pointer(currentitem)) itemsToC := items.h - retval := C.WrapImGuiCombo(labelToC, currentitemToC, itemsToC) + retval := C.HarfangImGuiCombo(labelToC, currentitemToC, itemsToC) return bool(retval) } @@ -26804,7 +28017,7 @@ func ImGuiComboWithHeightInItems(label string, currentitem *int32, items *String currentitemToC := (*C.int32_t)(unsafe.Pointer(currentitem)) itemsToC := items.h heightinitemsToC := C.int32_t(heightinitems) - retval := C.WrapImGuiComboWithHeightInItems(labelToC, currentitemToC, itemsToC, heightinitemsToC) + retval := C.HarfangImGuiComboWithHeightInItems(labelToC, currentitemToC, itemsToC, heightinitemsToC) return bool(retval) } @@ -26820,7 +28033,7 @@ func ImGuiComboWithSliceOfItems(label string, currentitem *int32, SliceOfitems G SliceOfitemsSpecialStringToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfitemsSpecialString)) SliceOfitemsSpecialStringToCSize := C.size_t(SliceOfitemsSpecialStringToC.Len) SliceOfitemsSpecialStringToCBuf := (**C.char)(unsafe.Pointer(SliceOfitemsSpecialStringToC.Data)) - retval := C.WrapImGuiComboWithSliceOfItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf) + retval := C.HarfangImGuiComboWithSliceOfItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf) return bool(retval) } @@ -26837,7 +28050,7 @@ func ImGuiComboWithSliceOfItemsHeightInItems(label string, currentitem *int32, S SliceOfitemsSpecialStringToCSize := C.size_t(SliceOfitemsSpecialStringToC.Len) SliceOfitemsSpecialStringToCBuf := (**C.char)(unsafe.Pointer(SliceOfitemsSpecialStringToC.Data)) heightinitemsToC := C.int32_t(heightinitems) - retval := C.WrapImGuiComboWithSliceOfItemsHeightInItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf, heightinitemsToC) + retval := C.HarfangImGuiComboWithSliceOfItemsHeightInItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf, heightinitemsToC) return bool(retval) } @@ -26846,7 +28059,7 @@ func ImGuiColorButton(id string, color *Color) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() colorToC := color.h - retval := C.WrapImGuiColorButton(idToC, colorToC) + retval := C.HarfangImGuiColorButton(idToC, colorToC) return bool(retval) } @@ -26856,7 +28069,7 @@ func ImGuiColorButtonWithFlags(id string, color *Color, flags ImGuiColorEditFlag defer idFinidToC() colorToC := color.h flagsToC := C.int32_t(flags) - retval := C.WrapImGuiColorButtonWithFlags(idToC, colorToC, flagsToC) + retval := C.HarfangImGuiColorButtonWithFlags(idToC, colorToC, flagsToC) return bool(retval) } @@ -26867,7 +28080,7 @@ func ImGuiColorButtonWithFlagsSize(id string, color *Color, flags ImGuiColorEdit colorToC := color.h flagsToC := C.int32_t(flags) sizeToC := size.h - retval := C.WrapImGuiColorButtonWithFlagsSize(idToC, colorToC, flagsToC, sizeToC) + retval := C.HarfangImGuiColorButtonWithFlagsSize(idToC, colorToC, flagsToC, sizeToC) return bool(retval) } @@ -26876,7 +28089,7 @@ func ImGuiColorEdit(label string, color *Color) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() colorToC := color.h - retval := C.WrapImGuiColorEdit(labelToC, colorToC) + retval := C.HarfangImGuiColorEdit(labelToC, colorToC) return bool(retval) } @@ -26886,21 +28099,21 @@ func ImGuiColorEditWithFlags(label string, color *Color, flags ImGuiColorEditFla defer idFinlabelToC() colorToC := color.h flagsToC := C.int32_t(flags) - retval := C.WrapImGuiColorEditWithFlags(labelToC, colorToC, flagsToC) + retval := C.HarfangImGuiColorEditWithFlags(labelToC, colorToC, flagsToC) return bool(retval) } // ImGuiProgressBar Draw a progress bar, `fraction` must be between 0.0 and 1.0. func ImGuiProgressBar(fraction float32) { fractionToC := C.float(fraction) - C.WrapImGuiProgressBar(fractionToC) + C.HarfangImGuiProgressBar(fractionToC) } // ImGuiProgressBarWithSize Draw a progress bar, `fraction` must be between 0.0 and 1.0. func ImGuiProgressBarWithSize(fraction float32, size *Vec2) { fractionToC := C.float(fraction) sizeToC := size.h - C.WrapImGuiProgressBarWithSize(fractionToC, sizeToC) + C.HarfangImGuiProgressBarWithSize(fractionToC, sizeToC) } // ImGuiProgressBarWithSizeOverlay Draw a progress bar, `fraction` must be between 0.0 and 1.0. @@ -26909,7 +28122,7 @@ func ImGuiProgressBarWithSizeOverlay(fraction float32, size *Vec2, overlay strin sizeToC := size.h overlayToC, idFinoverlayToC := wrapString(overlay) defer idFinoverlayToC() - C.WrapImGuiProgressBarWithSizeOverlay(fractionToC, sizeToC, overlayToC) + C.HarfangImGuiProgressBarWithSizeOverlay(fractionToC, sizeToC, overlayToC) } // ImGuiDragFloat Declare a widget to edit a float value. The widget can be dragged over to modify the underlying value. @@ -26917,7 +28130,7 @@ func ImGuiDragFloat(label string, v *float32) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := (*C.float)(unsafe.Pointer(v)) - retval := C.WrapImGuiDragFloat(labelToC, vToC) + retval := C.HarfangImGuiDragFloat(labelToC, vToC) return bool(retval) } @@ -26927,7 +28140,7 @@ func ImGuiDragFloatWithVSpeed(label string, v *float32, vspeed float32) bool { defer idFinlabelToC() vToC := (*C.float)(unsafe.Pointer(v)) vspeedToC := C.float(vspeed) - retval := C.WrapImGuiDragFloatWithVSpeed(labelToC, vToC, vspeedToC) + retval := C.HarfangImGuiDragFloatWithVSpeed(labelToC, vToC, vspeedToC) return bool(retval) } @@ -26939,7 +28152,7 @@ func ImGuiDragFloatWithVSpeedVMinVMax(label string, v *float32, vspeed float32, vspeedToC := C.float(vspeed) vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiDragFloatWithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) + retval := C.HarfangImGuiDragFloatWithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) return bool(retval) } @@ -26948,7 +28161,7 @@ func ImGuiDragVec2(label string, v *Vec2) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiDragVec2(labelToC, vToC) + retval := C.HarfangImGuiDragVec2(labelToC, vToC) return bool(retval) } @@ -26958,7 +28171,7 @@ func ImGuiDragVec2WithVSpeed(label string, v *Vec2, vspeed float32) bool { defer idFinlabelToC() vToC := v.h vspeedToC := C.float(vspeed) - retval := C.WrapImGuiDragVec2WithVSpeed(labelToC, vToC, vspeedToC) + retval := C.HarfangImGuiDragVec2WithVSpeed(labelToC, vToC, vspeedToC) return bool(retval) } @@ -26970,7 +28183,7 @@ func ImGuiDragVec2WithVSpeedVMinVMax(label string, v *Vec2, vspeed float32, vmin vspeedToC := C.float(vspeed) vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiDragVec2WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) + retval := C.HarfangImGuiDragVec2WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) return bool(retval) } @@ -26979,7 +28192,7 @@ func ImGuiDragVec3(label string, v *Vec3) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiDragVec3(labelToC, vToC) + retval := C.HarfangImGuiDragVec3(labelToC, vToC) return bool(retval) } @@ -26989,7 +28202,7 @@ func ImGuiDragVec3WithVSpeed(label string, v *Vec3, vspeed float32) bool { defer idFinlabelToC() vToC := v.h vspeedToC := C.float(vspeed) - retval := C.WrapImGuiDragVec3WithVSpeed(labelToC, vToC, vspeedToC) + retval := C.HarfangImGuiDragVec3WithVSpeed(labelToC, vToC, vspeedToC) return bool(retval) } @@ -27001,7 +28214,7 @@ func ImGuiDragVec3WithVSpeedVMinVMax(label string, v *Vec3, vspeed float32, vmin vspeedToC := C.float(vspeed) vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiDragVec3WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) + retval := C.HarfangImGuiDragVec3WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) return bool(retval) } @@ -27010,7 +28223,7 @@ func ImGuiDragVec4(label string, v *Vec4) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiDragVec4(labelToC, vToC) + retval := C.HarfangImGuiDragVec4(labelToC, vToC) return bool(retval) } @@ -27020,7 +28233,7 @@ func ImGuiDragVec4WithVSpeed(label string, v *Vec4, vspeed float32) bool { defer idFinlabelToC() vToC := v.h vspeedToC := C.float(vspeed) - retval := C.WrapImGuiDragVec4WithVSpeed(labelToC, vToC, vspeedToC) + retval := C.HarfangImGuiDragVec4WithVSpeed(labelToC, vToC, vspeedToC) return bool(retval) } @@ -27032,7 +28245,7 @@ func ImGuiDragVec4WithVSpeedVMinVMax(label string, v *Vec4, vspeed float32, vmin vspeedToC := C.float(vspeed) vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiDragVec4WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) + retval := C.HarfangImGuiDragVec4WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) return bool(retval) } @@ -27041,7 +28254,7 @@ func ImGuiDragIntVec2(label string, v *IVec2) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiDragIntVec2(labelToC, vToC) + retval := C.HarfangImGuiDragIntVec2(labelToC, vToC) return bool(retval) } @@ -27051,7 +28264,7 @@ func ImGuiDragIntVec2WithVSpeed(label string, v *IVec2, vspeed float32) bool { defer idFinlabelToC() vToC := v.h vspeedToC := C.float(vspeed) - retval := C.WrapImGuiDragIntVec2WithVSpeed(labelToC, vToC, vspeedToC) + retval := C.HarfangImGuiDragIntVec2WithVSpeed(labelToC, vToC, vspeedToC) return bool(retval) } @@ -27063,7 +28276,7 @@ func ImGuiDragIntVec2WithVSpeedVMinVMax(label string, v *IVec2, vspeed float32, vspeedToC := C.float(vspeed) vminToC := C.int32_t(vmin) vmaxToC := C.int32_t(vmax) - retval := C.WrapImGuiDragIntVec2WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) + retval := C.HarfangImGuiDragIntVec2WithVSpeedVMinVMax(labelToC, vToC, vspeedToC, vminToC, vmaxToC) return bool(retval) } @@ -27072,7 +28285,7 @@ func ImGuiInputInt(label string, v *int32) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := (*C.int32_t)(unsafe.Pointer(v)) - retval := C.WrapImGuiInputInt(labelToC, vToC) + retval := C.HarfangImGuiInputInt(labelToC, vToC) return bool(retval) } @@ -27083,7 +28296,7 @@ func ImGuiInputIntWithStepStepFast(label string, v *int32, step int32, stepfast vToC := (*C.int32_t)(unsafe.Pointer(v)) stepToC := C.int32_t(step) stepfastToC := C.int32_t(stepfast) - retval := C.WrapImGuiInputIntWithStepStepFast(labelToC, vToC, stepToC, stepfastToC) + retval := C.HarfangImGuiInputIntWithStepStepFast(labelToC, vToC, stepToC, stepfastToC) return bool(retval) } @@ -27095,7 +28308,7 @@ func ImGuiInputIntWithStepStepFastFlags(label string, v *int32, step int32, step stepToC := C.int32_t(step) stepfastToC := C.int32_t(stepfast) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputIntWithStepStepFastFlags(labelToC, vToC, stepToC, stepfastToC, flagsToC) + retval := C.HarfangImGuiInputIntWithStepStepFastFlags(labelToC, vToC, stepToC, stepfastToC, flagsToC) return bool(retval) } @@ -27104,7 +28317,7 @@ func ImGuiInputFloat(label string, v *float32) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := (*C.float)(unsafe.Pointer(v)) - retval := C.WrapImGuiInputFloat(labelToC, vToC) + retval := C.HarfangImGuiInputFloat(labelToC, vToC) return bool(retval) } @@ -27115,7 +28328,7 @@ func ImGuiInputFloatWithStepStepFast(label string, v *float32, step float32, ste vToC := (*C.float)(unsafe.Pointer(v)) stepToC := C.float(step) stepfastToC := C.float(stepfast) - retval := C.WrapImGuiInputFloatWithStepStepFast(labelToC, vToC, stepToC, stepfastToC) + retval := C.HarfangImGuiInputFloatWithStepStepFast(labelToC, vToC, stepToC, stepfastToC) return bool(retval) } @@ -27127,7 +28340,7 @@ func ImGuiInputFloatWithStepStepFastDecimalPrecision(label string, v *float32, s stepToC := C.float(step) stepfastToC := C.float(stepfast) decimalprecisionToC := C.int32_t(decimalprecision) - retval := C.WrapImGuiInputFloatWithStepStepFastDecimalPrecision(labelToC, vToC, stepToC, stepfastToC, decimalprecisionToC) + retval := C.HarfangImGuiInputFloatWithStepStepFastDecimalPrecision(labelToC, vToC, stepToC, stepfastToC, decimalprecisionToC) return bool(retval) } @@ -27140,7 +28353,7 @@ func ImGuiInputFloatWithStepStepFastDecimalPrecisionFlags(label string, v *float stepfastToC := C.float(stepfast) decimalprecisionToC := C.int32_t(decimalprecision) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputFloatWithStepStepFastDecimalPrecisionFlags(labelToC, vToC, stepToC, stepfastToC, decimalprecisionToC, flagsToC) + retval := C.HarfangImGuiInputFloatWithStepStepFastDecimalPrecisionFlags(labelToC, vToC, stepToC, stepfastToC, decimalprecisionToC, flagsToC) return bool(retval) } @@ -27149,7 +28362,7 @@ func ImGuiInputVec2(label string, v *Vec2) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiInputVec2(labelToC, vToC) + retval := C.HarfangImGuiInputVec2(labelToC, vToC) return bool(retval) } @@ -27159,7 +28372,7 @@ func ImGuiInputVec2WithDecimalPrecision(label string, v *Vec2, decimalprecision defer idFinlabelToC() vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) - retval := C.WrapImGuiInputVec2WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) + retval := C.HarfangImGuiInputVec2WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) return bool(retval) } @@ -27170,7 +28383,7 @@ func ImGuiInputVec2WithDecimalPrecisionFlags(label string, v *Vec2, decimalpreci vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputVec2WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) + retval := C.HarfangImGuiInputVec2WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) return bool(retval) } @@ -27179,7 +28392,7 @@ func ImGuiInputVec3(label string, v *Vec3) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiInputVec3(labelToC, vToC) + retval := C.HarfangImGuiInputVec3(labelToC, vToC) return bool(retval) } @@ -27189,7 +28402,7 @@ func ImGuiInputVec3WithDecimalPrecision(label string, v *Vec3, decimalprecision defer idFinlabelToC() vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) - retval := C.WrapImGuiInputVec3WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) + retval := C.HarfangImGuiInputVec3WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) return bool(retval) } @@ -27200,7 +28413,7 @@ func ImGuiInputVec3WithDecimalPrecisionFlags(label string, v *Vec3, decimalpreci vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputVec3WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) + retval := C.HarfangImGuiInputVec3WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) return bool(retval) } @@ -27209,7 +28422,7 @@ func ImGuiInputVec4(label string, v *Vec4) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiInputVec4(labelToC, vToC) + retval := C.HarfangImGuiInputVec4(labelToC, vToC) return bool(retval) } @@ -27219,7 +28432,7 @@ func ImGuiInputVec4WithDecimalPrecision(label string, v *Vec4, decimalprecision defer idFinlabelToC() vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) - retval := C.WrapImGuiInputVec4WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) + retval := C.HarfangImGuiInputVec4WithDecimalPrecision(labelToC, vToC, decimalprecisionToC) return bool(retval) } @@ -27230,7 +28443,7 @@ func ImGuiInputVec4WithDecimalPrecisionFlags(label string, v *Vec4, decimalpreci vToC := v.h decimalprecisionToC := C.int32_t(decimalprecision) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputVec4WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) + retval := C.HarfangImGuiInputVec4WithDecimalPrecisionFlags(labelToC, vToC, decimalprecisionToC, flagsToC) return bool(retval) } @@ -27239,7 +28452,7 @@ func ImGuiInputIntVec2(label string, v *IVec2) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() vToC := v.h - retval := C.WrapImGuiInputIntVec2(labelToC, vToC) + retval := C.HarfangImGuiInputIntVec2(labelToC, vToC) return bool(retval) } @@ -27249,7 +28462,7 @@ func ImGuiInputIntVec2WithFlags(label string, v *IVec2, flags ImGuiInputTextFlag defer idFinlabelToC() vToC := v.h flagsToC := C.int32_t(flags) - retval := C.WrapImGuiInputIntVec2WithFlags(labelToC, vToC, flagsToC) + retval := C.HarfangImGuiInputIntVec2WithFlags(labelToC, vToC, flagsToC) return bool(retval) } @@ -27260,7 +28473,7 @@ func ImGuiSliderInt(label string, v *int32, vmin int32, vmax int32) bool { vToC := (*C.int32_t)(unsafe.Pointer(v)) vminToC := C.int32_t(vmin) vmaxToC := C.int32_t(vmax) - retval := C.WrapImGuiSliderInt(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderInt(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27273,7 +28486,7 @@ func ImGuiSliderIntWithFormat(label string, v *int32, vmin int32, vmax int32, fo vmaxToC := C.int32_t(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderIntWithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderIntWithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27284,7 +28497,7 @@ func ImGuiSliderIntVec2(label string, v *IVec2, vmin int32, vmax int32) bool { vToC := v.h vminToC := C.int32_t(vmin) vmaxToC := C.int32_t(vmax) - retval := C.WrapImGuiSliderIntVec2(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderIntVec2(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27297,7 +28510,7 @@ func ImGuiSliderIntVec2WithFormat(label string, v *IVec2, vmin int32, vmax int32 vmaxToC := C.int32_t(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderIntVec2WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderIntVec2WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27308,7 +28521,7 @@ func ImGuiSliderFloat(label string, v *float32, vmin float32, vmax float32) bool vToC := (*C.float)(unsafe.Pointer(v)) vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiSliderFloat(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderFloat(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27321,7 +28534,7 @@ func ImGuiSliderFloatWithFormat(label string, v *float32, vmin float32, vmax flo vmaxToC := C.float(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderFloatWithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderFloatWithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27332,7 +28545,7 @@ func ImGuiSliderVec2(label string, v *Vec2, vmin float32, vmax float32) bool { vToC := v.h vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiSliderVec2(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderVec2(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27345,7 +28558,7 @@ func ImGuiSliderVec2WithFormat(label string, v *Vec2, vmin float32, vmax float32 vmaxToC := C.float(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderVec2WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderVec2WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27356,7 +28569,7 @@ func ImGuiSliderVec3(label string, v *Vec3, vmin float32, vmax float32) bool { vToC := v.h vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiSliderVec3(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderVec3(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27369,7 +28582,7 @@ func ImGuiSliderVec3WithFormat(label string, v *Vec3, vmin float32, vmax float32 vmaxToC := C.float(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderVec3WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderVec3WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27380,7 +28593,7 @@ func ImGuiSliderVec4(label string, v *Vec4, vmin float32, vmax float32) bool { vToC := v.h vminToC := C.float(vmin) vmaxToC := C.float(vmax) - retval := C.WrapImGuiSliderVec4(labelToC, vToC, vminToC, vmaxToC) + retval := C.HarfangImGuiSliderVec4(labelToC, vToC, vminToC, vmaxToC) return bool(retval) } @@ -27393,7 +28606,7 @@ func ImGuiSliderVec4WithFormat(label string, v *Vec4, vmin float32, vmax float32 vmaxToC := C.float(vmax) formatToC, idFinformatToC := wrapString(format) defer idFinformatToC() - retval := C.WrapImGuiSliderVec4WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) + retval := C.HarfangImGuiSliderVec4WithFormat(labelToC, vToC, vminToC, vmaxToC, formatToC) return bool(retval) } @@ -27401,7 +28614,7 @@ func ImGuiSliderVec4WithFormat(label string, v *Vec4, vmin float32, vmax float32 func ImGuiTreeNode(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiTreeNode(labelToC) + retval := C.HarfangImGuiTreeNode(labelToC) return bool(retval) } @@ -27410,7 +28623,7 @@ func ImGuiTreeNodeEx(label string, flags ImGuiTreeNodeFlags) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() flagsToC := C.int32_t(flags) - retval := C.WrapImGuiTreeNodeEx(labelToC, flagsToC) + retval := C.HarfangImGuiTreeNodeEx(labelToC, flagsToC) return bool(retval) } @@ -27418,38 +28631,38 @@ func ImGuiTreeNodeEx(label string, flags ImGuiTreeNodeFlags) bool { func ImGuiTreePush(id string) { idToC, idFinidToC := wrapString(id) defer idFinidToC() - C.WrapImGuiTreePush(idToC) + C.HarfangImGuiTreePush(idToC) } // ImGuiTreePop Pop the current tree node. func ImGuiTreePop() { - C.WrapImGuiTreePop() + C.HarfangImGuiTreePop() } // ImGuiGetTreeNodeToLabelSpacing Return the horizontal distance preceding label when using [harfang.ImGuiTreeNode] or [harfang.ImGuiBullet]. The value `g.FontSize + style.FramePadding.x * 2` is returned for a regular unframed TreeNode. func ImGuiGetTreeNodeToLabelSpacing() float32 { - retval := C.WrapImGuiGetTreeNodeToLabelSpacing() + retval := C.HarfangImGuiGetTreeNodeToLabelSpacing() return float32(retval) } // ImGuiSetNextItemOpen Set next item open state. func ImGuiSetNextItemOpen(isopen bool) { isopenToC := C.bool(isopen) - C.WrapImGuiSetNextItemOpen(isopenToC) + C.HarfangImGuiSetNextItemOpen(isopenToC) } // ImGuiSetNextItemOpenWithCondition Set next item open state. func ImGuiSetNextItemOpenWithCondition(isopen bool, condition ImGuiCond) { isopenToC := C.bool(isopen) conditionToC := C.int32_t(condition) - C.WrapImGuiSetNextItemOpenWithCondition(isopenToC, conditionToC) + C.HarfangImGuiSetNextItemOpenWithCondition(isopenToC, conditionToC) } // ImGuiCollapsingHeader Draw a collapsing header, returns `False` if the header is collapsed so that you may skip drawing the header content. func ImGuiCollapsingHeader(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiCollapsingHeader(labelToC) + retval := C.HarfangImGuiCollapsingHeader(labelToC) return bool(retval) } @@ -27458,7 +28671,7 @@ func ImGuiCollapsingHeaderWithFlags(label string, flags ImGuiTreeNodeFlags) bool labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() flagsToC := C.int32_t(flags) - retval := C.WrapImGuiCollapsingHeaderWithFlags(labelToC, flagsToC) + retval := C.HarfangImGuiCollapsingHeaderWithFlags(labelToC, flagsToC) return bool(retval) } @@ -27467,7 +28680,7 @@ func ImGuiCollapsingHeaderWithPOpen(label string, popen *bool) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() popenToC := (*C.bool)(unsafe.Pointer(popen)) - retval := C.WrapImGuiCollapsingHeaderWithPOpen(labelToC, popenToC) + retval := C.HarfangImGuiCollapsingHeaderWithPOpen(labelToC, popenToC) return bool(retval) } @@ -27477,7 +28690,7 @@ func ImGuiCollapsingHeaderWithPOpenFlags(label string, popen *bool, flags ImGuiT defer idFinlabelToC() popenToC := (*C.bool)(unsafe.Pointer(popen)) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiCollapsingHeaderWithPOpenFlags(labelToC, popenToC, flagsToC) + retval := C.HarfangImGuiCollapsingHeaderWithPOpenFlags(labelToC, popenToC, flagsToC) return bool(retval) } @@ -27485,7 +28698,7 @@ func ImGuiCollapsingHeaderWithPOpenFlags(label string, popen *bool, flags ImGuiT func ImGuiSelectable(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiSelectable(labelToC) + retval := C.HarfangImGuiSelectable(labelToC) return bool(retval) } @@ -27494,7 +28707,7 @@ func ImGuiSelectableWithSelected(label string, selected bool) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() selectedToC := C.bool(selected) - retval := C.WrapImGuiSelectableWithSelected(labelToC, selectedToC) + retval := C.HarfangImGuiSelectableWithSelected(labelToC, selectedToC) return bool(retval) } @@ -27504,7 +28717,7 @@ func ImGuiSelectableWithSelectedFlags(label string, selected bool, flags ImGuiSe defer idFinlabelToC() selectedToC := C.bool(selected) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiSelectableWithSelectedFlags(labelToC, selectedToC, flagsToC) + retval := C.HarfangImGuiSelectableWithSelectedFlags(labelToC, selectedToC, flagsToC) return bool(retval) } @@ -27515,7 +28728,7 @@ func ImGuiSelectableWithSelectedFlagsSize(label string, selected bool, flags ImG selectedToC := C.bool(selected) flagsToC := C.int32_t(flags) sizeToC := size.h - retval := C.WrapImGuiSelectableWithSelectedFlagsSize(labelToC, selectedToC, flagsToC, sizeToC) + retval := C.HarfangImGuiSelectableWithSelectedFlagsSize(labelToC, selectedToC, flagsToC, sizeToC) return bool(retval) } @@ -27525,7 +28738,7 @@ func ImGuiListBox(label string, currentitem *int32, items *StringList) bool { defer idFinlabelToC() currentitemToC := (*C.int32_t)(unsafe.Pointer(currentitem)) itemsToC := items.h - retval := C.WrapImGuiListBox(labelToC, currentitemToC, itemsToC) + retval := C.HarfangImGuiListBox(labelToC, currentitemToC, itemsToC) return bool(retval) } @@ -27536,7 +28749,7 @@ func ImGuiListBoxWithHeightInItems(label string, currentitem *int32, items *Stri currentitemToC := (*C.int32_t)(unsafe.Pointer(currentitem)) itemsToC := items.h heightinitemsToC := C.int32_t(heightinitems) - retval := C.WrapImGuiListBoxWithHeightInItems(labelToC, currentitemToC, itemsToC, heightinitemsToC) + retval := C.HarfangImGuiListBoxWithHeightInItems(labelToC, currentitemToC, itemsToC, heightinitemsToC) return bool(retval) } @@ -27552,7 +28765,7 @@ func ImGuiListBoxWithSliceOfItems(label string, currentitem *int32, SliceOfitems SliceOfitemsSpecialStringToC := (*reflect.SliceHeader)(unsafe.Pointer(&SliceOfitemsSpecialString)) SliceOfitemsSpecialStringToCSize := C.size_t(SliceOfitemsSpecialStringToC.Len) SliceOfitemsSpecialStringToCBuf := (**C.char)(unsafe.Pointer(SliceOfitemsSpecialStringToC.Data)) - retval := C.WrapImGuiListBoxWithSliceOfItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf) + retval := C.HarfangImGuiListBoxWithSliceOfItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf) return bool(retval) } @@ -27569,7 +28782,7 @@ func ImGuiListBoxWithSliceOfItemsHeightInItems(label string, currentitem *int32, SliceOfitemsSpecialStringToCSize := C.size_t(SliceOfitemsSpecialStringToC.Len) SliceOfitemsSpecialStringToCBuf := (**C.char)(unsafe.Pointer(SliceOfitemsSpecialStringToC.Data)) heightinitemsToC := C.int32_t(heightinitems) - retval := C.WrapImGuiListBoxWithSliceOfItemsHeightInItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf, heightinitemsToC) + retval := C.HarfangImGuiListBoxWithSliceOfItemsHeightInItems(labelToC, currentitemToC, SliceOfitemsSpecialStringToCSize, SliceOfitemsSpecialStringToCBuf, heightinitemsToC) return bool(retval) } @@ -27577,46 +28790,46 @@ func ImGuiListBoxWithSliceOfItemsHeightInItems(label string, currentitem *int32, func ImGuiSetTooltip(text string) { textToC, idFintextToC := wrapString(text) defer idFintextToC() - C.WrapImGuiSetTooltip(textToC) + C.HarfangImGuiSetTooltip(textToC) } // ImGuiBeginTooltip Used to create full-featured tooltip windows that aren't just text. func ImGuiBeginTooltip() { - C.WrapImGuiBeginTooltip() + C.HarfangImGuiBeginTooltip() } // ImGuiEndTooltip End the current tooltip window. See [harfang.ImGuiBeginTooltip]. func ImGuiEndTooltip() { - C.WrapImGuiEndTooltip() + C.HarfangImGuiEndTooltip() } // ImGuiBeginMainMenuBar Create and append to a full screen menu-bar. Note: Only call [harfang.ImGuiEndMainMenuBar] if this returns `true`. func ImGuiBeginMainMenuBar() bool { - retval := C.WrapImGuiBeginMainMenuBar() + retval := C.HarfangImGuiBeginMainMenuBar() return bool(retval) } // ImGuiEndMainMenuBar End the main menu bar. See [harfang.ImGuiBeginMainMenuBar]. func ImGuiEndMainMenuBar() { - C.WrapImGuiEndMainMenuBar() + C.HarfangImGuiEndMainMenuBar() } // ImGuiBeginMenuBar Start append to the menu-bar of the current window (requires the `WindowFlags_MenuBar` flag). Note: Only call [harfang.ImGuiEndMenuBar] if this returns `true`. func ImGuiBeginMenuBar() bool { - retval := C.WrapImGuiBeginMenuBar() + retval := C.HarfangImGuiBeginMenuBar() return bool(retval) } // ImGuiEndMenuBar End the current menu bar. func ImGuiEndMenuBar() { - C.WrapImGuiEndMenuBar() + C.HarfangImGuiEndMenuBar() } // ImGuiBeginMenu Create a sub-menu entry. Note: Only call [harfang.ImGuiEndMenu] if this returns `true`. func ImGuiBeginMenu(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiBeginMenu(labelToC) + retval := C.HarfangImGuiBeginMenu(labelToC) return bool(retval) } @@ -27625,20 +28838,20 @@ func ImGuiBeginMenuWithEnabled(label string, enabled bool) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() enabledToC := C.bool(enabled) - retval := C.WrapImGuiBeginMenuWithEnabled(labelToC, enabledToC) + retval := C.HarfangImGuiBeginMenuWithEnabled(labelToC, enabledToC) return bool(retval) } // ImGuiEndMenu End the current sub-menu entry. func ImGuiEndMenu() { - C.WrapImGuiEndMenu() + C.HarfangImGuiEndMenu() } // ImGuiMenuItem Return `true` when activated. Shortcuts are displayed for convenience but not processed at the moment. func ImGuiMenuItem(label string) bool { labelToC, idFinlabelToC := wrapString(label) defer idFinlabelToC() - retval := C.WrapImGuiMenuItem(labelToC) + retval := C.HarfangImGuiMenuItem(labelToC) return bool(retval) } @@ -27648,7 +28861,7 @@ func ImGuiMenuItemWithShortcut(label string, shortcut string) bool { defer idFinlabelToC() shortcutToC, idFinshortcutToC := wrapString(shortcut) defer idFinshortcutToC() - retval := C.WrapImGuiMenuItemWithShortcut(labelToC, shortcutToC) + retval := C.HarfangImGuiMenuItemWithShortcut(labelToC, shortcutToC) return bool(retval) } @@ -27659,7 +28872,7 @@ func ImGuiMenuItemWithShortcutSelected(label string, shortcut string, selected b shortcutToC, idFinshortcutToC := wrapString(shortcut) defer idFinshortcutToC() selectedToC := C.bool(selected) - retval := C.WrapImGuiMenuItemWithShortcutSelected(labelToC, shortcutToC, selectedToC) + retval := C.HarfangImGuiMenuItemWithShortcutSelected(labelToC, shortcutToC, selectedToC) return bool(retval) } @@ -27671,7 +28884,7 @@ func ImGuiMenuItemWithShortcutSelectedEnabled(label string, shortcut string, sel defer idFinshortcutToC() selectedToC := C.bool(selected) enabledToC := C.bool(enabled) - retval := C.WrapImGuiMenuItemWithShortcutSelectedEnabled(labelToC, shortcutToC, selectedToC, enabledToC) + retval := C.HarfangImGuiMenuItemWithShortcutSelectedEnabled(labelToC, shortcutToC, selectedToC, enabledToC) return bool(retval) } @@ -27679,14 +28892,14 @@ func ImGuiMenuItemWithShortcutSelectedEnabled(label string, shortcut string, sel func ImGuiOpenPopup(id string) { idToC, idFinidToC := wrapString(id) defer idFinidToC() - C.WrapImGuiOpenPopup(idToC) + C.HarfangImGuiOpenPopup(idToC) } // ImGuiBeginPopup Return `true` if popup is opened and starts outputting to it. Note: Only call [harfang.ImGuiEndPopup] if this returns `true`. func ImGuiBeginPopup(id string) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiBeginPopup(idToC) + retval := C.HarfangImGuiBeginPopup(idToC) return bool(retval) } @@ -27694,7 +28907,7 @@ func ImGuiBeginPopup(id string) bool { func ImGuiBeginPopupModal(name string) bool { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapImGuiBeginPopupModal(nameToC) + retval := C.HarfangImGuiBeginPopupModal(nameToC) return bool(retval) } @@ -27703,7 +28916,7 @@ func ImGuiBeginPopupModalWithOpen(name string, open *bool) bool { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() openToC := (*C.bool)(unsafe.Pointer(open)) - retval := C.WrapImGuiBeginPopupModalWithOpen(nameToC, openToC) + retval := C.HarfangImGuiBeginPopupModalWithOpen(nameToC, openToC) return bool(retval) } @@ -27713,7 +28926,7 @@ func ImGuiBeginPopupModalWithOpenFlags(name string, open *bool, flags ImGuiWindo defer idFinnameToC() openToC := (*C.bool)(unsafe.Pointer(open)) flagsToC := C.int32_t(flags) - retval := C.WrapImGuiBeginPopupModalWithOpenFlags(nameToC, openToC, flagsToC) + retval := C.HarfangImGuiBeginPopupModalWithOpenFlags(nameToC, openToC, flagsToC) return bool(retval) } @@ -27721,7 +28934,7 @@ func ImGuiBeginPopupModalWithOpenFlags(name string, open *bool, flags ImGuiWindo func ImGuiBeginPopupContextItem(id string) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiBeginPopupContextItem(idToC) + retval := C.HarfangImGuiBeginPopupContextItem(idToC) return bool(retval) } @@ -27730,13 +28943,13 @@ func ImGuiBeginPopupContextItemWithMouseButton(id string, mousebutton int32) boo idToC, idFinidToC := wrapString(id) defer idFinidToC() mousebuttonToC := C.int32_t(mousebutton) - retval := C.WrapImGuiBeginPopupContextItemWithMouseButton(idToC, mousebuttonToC) + retval := C.HarfangImGuiBeginPopupContextItemWithMouseButton(idToC, mousebuttonToC) return bool(retval) } // ImGuiBeginPopupContextWindow ImGui helper to open and begin popup when clicked on current window. func ImGuiBeginPopupContextWindow() bool { - retval := C.WrapImGuiBeginPopupContextWindow() + retval := C.HarfangImGuiBeginPopupContextWindow() return bool(retval) } @@ -27744,7 +28957,7 @@ func ImGuiBeginPopupContextWindow() bool { func ImGuiBeginPopupContextWindowWithId(id string) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiBeginPopupContextWindowWithId(idToC) + retval := C.HarfangImGuiBeginPopupContextWindowWithId(idToC) return bool(retval) } @@ -27753,13 +28966,13 @@ func ImGuiBeginPopupContextWindowWithIdFlags(id string, flags ImGuiPopupFlags) b idToC, idFinidToC := wrapString(id) defer idFinidToC() flagsToC := C.int32_t(flags) - retval := C.WrapImGuiBeginPopupContextWindowWithIdFlags(idToC, flagsToC) + retval := C.HarfangImGuiBeginPopupContextWindowWithIdFlags(idToC, flagsToC) return bool(retval) } // ImGuiBeginPopupContextVoid ImGui helper to open and begin popup when clicked in void (where there are no ImGui windows) func ImGuiBeginPopupContextVoid() bool { - retval := C.WrapImGuiBeginPopupContextVoid() + retval := C.HarfangImGuiBeginPopupContextVoid() return bool(retval) } @@ -27767,7 +28980,7 @@ func ImGuiBeginPopupContextVoid() bool { func ImGuiBeginPopupContextVoidWithId(id string) bool { idToC, idFinidToC := wrapString(id) defer idFinidToC() - retval := C.WrapImGuiBeginPopupContextVoidWithId(idToC) + retval := C.HarfangImGuiBeginPopupContextVoidWithId(idToC) return bool(retval) } @@ -27776,18 +28989,18 @@ func ImGuiBeginPopupContextVoidWithIdMouseButton(id string, mousebutton int32) b idToC, idFinidToC := wrapString(id) defer idFinidToC() mousebuttonToC := C.int32_t(mousebutton) - retval := C.WrapImGuiBeginPopupContextVoidWithIdMouseButton(idToC, mousebuttonToC) + retval := C.HarfangImGuiBeginPopupContextVoidWithIdMouseButton(idToC, mousebuttonToC) return bool(retval) } // ImGuiEndPopup End the current popup. func ImGuiEndPopup() { - C.WrapImGuiEndPopup() + C.HarfangImGuiEndPopup() } // ImGuiCloseCurrentPopup Close the popup we have begin-ed into. Clicking on a menu item or selectable automatically closes the current popup. func ImGuiCloseCurrentPopup() { - C.WrapImGuiCloseCurrentPopup() + C.HarfangImGuiCloseCurrentPopup() } // ImGuiPushClipRect Push a new clip rectangle onto the clipping stack. @@ -27795,134 +29008,134 @@ func ImGuiPushClipRect(cliprectmin *Vec2, cliprectmax *Vec2, intersectwithcurren cliprectminToC := cliprectmin.h cliprectmaxToC := cliprectmax.h intersectwithcurrentcliprectToC := C.bool(intersectwithcurrentcliprect) - C.WrapImGuiPushClipRect(cliprectminToC, cliprectmaxToC, intersectwithcurrentcliprectToC) + C.HarfangImGuiPushClipRect(cliprectminToC, cliprectmaxToC, intersectwithcurrentcliprectToC) } // ImGuiPopClipRect Undo the last call to [harfang.ImGuiPushClipRect]. func ImGuiPopClipRect() { - C.WrapImGuiPopClipRect() + C.HarfangImGuiPopClipRect() } // ImGuiIsItemHovered Was the last item hovered by mouse. func ImGuiIsItemHovered() bool { - retval := C.WrapImGuiIsItemHovered() + retval := C.HarfangImGuiIsItemHovered() return bool(retval) } // ImGuiIsItemHoveredWithFlags Was the last item hovered by mouse. func ImGuiIsItemHoveredWithFlags(flags ImGuiHoveredFlags) bool { flagsToC := C.int32_t(flags) - retval := C.WrapImGuiIsItemHoveredWithFlags(flagsToC) + retval := C.HarfangImGuiIsItemHoveredWithFlags(flagsToC) return bool(retval) } // ImGuiIsItemActive Was the last item active. e.g. button being held, text field being edited - items that do not interact will always return `false`. func ImGuiIsItemActive() bool { - retval := C.WrapImGuiIsItemActive() + retval := C.HarfangImGuiIsItemActive() return bool(retval) } // ImGuiIsItemClicked Was the last item clicked. func ImGuiIsItemClicked() bool { - retval := C.WrapImGuiIsItemClicked() + retval := C.HarfangImGuiIsItemClicked() return bool(retval) } // ImGuiIsItemClickedWithMouseButton Was the last item clicked. func ImGuiIsItemClickedWithMouseButton(mousebutton int32) bool { mousebuttonToC := C.int32_t(mousebutton) - retval := C.WrapImGuiIsItemClickedWithMouseButton(mousebuttonToC) + retval := C.HarfangImGuiIsItemClickedWithMouseButton(mousebuttonToC) return bool(retval) } // ImGuiIsItemVisible Was the last item visible and not out of sight due to clipping/scrolling. func ImGuiIsItemVisible() bool { - retval := C.WrapImGuiIsItemVisible() + retval := C.HarfangImGuiIsItemVisible() return bool(retval) } // ImGuiIsAnyItemHovered Return `true` if any item is hovered by the mouse cursor, `false` otherwise. func ImGuiIsAnyItemHovered() bool { - retval := C.WrapImGuiIsAnyItemHovered() + retval := C.HarfangImGuiIsAnyItemHovered() return bool(retval) } // ImGuiIsAnyItemActive Return `true` if any item is active, `false` otherwise. func ImGuiIsAnyItemActive() bool { - retval := C.WrapImGuiIsAnyItemActive() + retval := C.HarfangImGuiIsAnyItemActive() return bool(retval) } // ImGuiGetItemRectMin Get bounding rect minimum of last item in screen space. func ImGuiGetItemRectMin() *Vec2 { - retval := C.WrapImGuiGetItemRectMin() + retval := C.HarfangImGuiGetItemRectMin() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetItemRectMax Get bounding rect maximum of last item in screen space. func ImGuiGetItemRectMax() *Vec2 { - retval := C.WrapImGuiGetItemRectMax() + retval := C.HarfangImGuiGetItemRectMax() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetItemRectSize Get bounding rect size of last item in screen space. func ImGuiGetItemRectSize() *Vec2 { - retval := C.WrapImGuiGetItemRectSize() + retval := C.HarfangImGuiGetItemRectSize() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiSetItemAllowOverlap Allow the last item to be overlapped by a subsequent item. Sometimes useful with invisible buttons, selectables, etc... to catch unused areas. func ImGuiSetItemAllowOverlap() { - C.WrapImGuiSetItemAllowOverlap() + C.HarfangImGuiSetItemAllowOverlap() } // ImGuiSetItemDefaultFocus Make the last item the default focused item of a window. func ImGuiSetItemDefaultFocus() { - C.WrapImGuiSetItemDefaultFocus() + C.HarfangImGuiSetItemDefaultFocus() } // ImGuiIsWindowHovered Is the current window hovered and hoverable (not blocked by a popup), differentiates child windows from each others. func ImGuiIsWindowHovered() bool { - retval := C.WrapImGuiIsWindowHovered() + retval := C.HarfangImGuiIsWindowHovered() return bool(retval) } // ImGuiIsWindowHoveredWithFlags Is the current window hovered and hoverable (not blocked by a popup), differentiates child windows from each others. func ImGuiIsWindowHoveredWithFlags(flags ImGuiHoveredFlags) bool { flagsToC := C.int32_t(flags) - retval := C.WrapImGuiIsWindowHoveredWithFlags(flagsToC) + retval := C.HarfangImGuiIsWindowHoveredWithFlags(flagsToC) return bool(retval) } // ImGuiIsWindowFocused Is the current window focused. func ImGuiIsWindowFocused() bool { - retval := C.WrapImGuiIsWindowFocused() + retval := C.HarfangImGuiIsWindowFocused() return bool(retval) } // ImGuiIsWindowFocusedWithFlags Is the current window focused. func ImGuiIsWindowFocusedWithFlags(flags ImGuiFocusedFlags) bool { flagsToC := C.int32_t(flags) - retval := C.WrapImGuiIsWindowFocusedWithFlags(flagsToC) + retval := C.HarfangImGuiIsWindowFocusedWithFlags(flagsToC) return bool(retval) } // ImGuiIsRectVisible Test if a rectangle of the specified size starting from cursor position is visible/not clipped. Or test if a rectangle in screen space is visible/not clipped. func ImGuiIsRectVisible(size *Vec2) bool { sizeToC := size.h - retval := C.WrapImGuiIsRectVisible(sizeToC) + retval := C.HarfangImGuiIsRectVisible(sizeToC) return bool(retval) } @@ -27930,19 +29143,19 @@ func ImGuiIsRectVisible(size *Vec2) bool { func ImGuiIsRectVisibleWithRectMinRectMax(rectmin *Vec2, rectmax *Vec2) bool { rectminToC := rectmin.h rectmaxToC := rectmax.h - retval := C.WrapImGuiIsRectVisibleWithRectMinRectMax(rectminToC, rectmaxToC) + retval := C.HarfangImGuiIsRectVisibleWithRectMinRectMax(rectminToC, rectmaxToC) return bool(retval) } // ImGuiGetTime Return the current ImGui time in seconds. func ImGuiGetTime() float32 { - retval := C.WrapImGuiGetTime() + retval := C.HarfangImGuiGetTime() return float32(retval) } // ImGuiGetFrameCount Return the ImGui frame counter. See [harfang.ImGuiBeginFrame] and [harfang.ImGuiEndFrame]. func ImGuiGetFrameCount() int32 { - retval := C.WrapImGuiGetFrameCount() + retval := C.HarfangImGuiGetFrameCount() return int32(retval) } @@ -27950,10 +29163,10 @@ func ImGuiGetFrameCount() int32 { func ImGuiCalcTextSize(text string) *Vec2 { textToC, idFintextToC := wrapString(text) defer idFintextToC() - retval := C.WrapImGuiCalcTextSize(textToC) + retval := C.HarfangImGuiCalcTextSize(textToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -27963,10 +29176,10 @@ func ImGuiCalcTextSizeWithHideTextAfterDoubleDash(text string, hidetextafterdoub textToC, idFintextToC := wrapString(text) defer idFintextToC() hidetextafterdoubledashToC := C.bool(hidetextafterdoubledash) - retval := C.WrapImGuiCalcTextSizeWithHideTextAfterDoubleDash(textToC, hidetextafterdoubledashToC) + retval := C.HarfangImGuiCalcTextSizeWithHideTextAfterDoubleDash(textToC, hidetextafterdoubledashToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -27977,10 +29190,10 @@ func ImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(text string, hidetext defer idFintextToC() hidetextafterdoubledashToC := C.bool(hidetextafterdoubledash) wrapwidthToC := C.float(wrapwidth) - retval := C.WrapImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(textToC, hidetextafterdoubledashToC, wrapwidthToC) + retval := C.HarfangImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(textToC, hidetextafterdoubledashToC, wrapwidthToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -27988,14 +29201,14 @@ func ImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(text string, hidetext // ImGuiIsKeyDown Was the specified key down during the last frame? func ImGuiIsKeyDown(keyindex int32) bool { keyindexToC := C.int32_t(keyindex) - retval := C.WrapImGuiIsKeyDown(keyindexToC) + retval := C.HarfangImGuiIsKeyDown(keyindexToC) return bool(retval) } // ImGuiIsKeyPressed Was the specified key pressed? A key press implies that the key was down and is currently released. func ImGuiIsKeyPressed(keyindex int32) bool { keyindexToC := C.int32_t(keyindex) - retval := C.WrapImGuiIsKeyPressed(keyindexToC) + retval := C.HarfangImGuiIsKeyPressed(keyindexToC) return bool(retval) } @@ -28003,28 +29216,28 @@ func ImGuiIsKeyPressed(keyindex int32) bool { func ImGuiIsKeyPressedWithRepeat(keyindex int32, repeat bool) bool { keyindexToC := C.int32_t(keyindex) repeatToC := C.bool(repeat) - retval := C.WrapImGuiIsKeyPressedWithRepeat(keyindexToC, repeatToC) + retval := C.HarfangImGuiIsKeyPressedWithRepeat(keyindexToC, repeatToC) return bool(retval) } // ImGuiIsKeyReleased Was the specified key released during the last frame? func ImGuiIsKeyReleased(keyindex int32) bool { keyindexToC := C.int32_t(keyindex) - retval := C.WrapImGuiIsKeyReleased(keyindexToC) + retval := C.HarfangImGuiIsKeyReleased(keyindexToC) return bool(retval) } // ImGuiIsMouseDown Was the specified mouse button down during the last frame? func ImGuiIsMouseDown(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapImGuiIsMouseDown(buttonToC) + retval := C.HarfangImGuiIsMouseDown(buttonToC) return bool(retval) } // ImGuiIsMouseClicked Was the specified mouse button clicked during the last frame? A mouse click implies that the button pressed earlier and released during the last frame. func ImGuiIsMouseClicked(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapImGuiIsMouseClicked(buttonToC) + retval := C.HarfangImGuiIsMouseClicked(buttonToC) return bool(retval) } @@ -28032,21 +29245,21 @@ func ImGuiIsMouseClicked(button int32) bool { func ImGuiIsMouseClickedWithRepeat(button int32, repeat bool) bool { buttonToC := C.int32_t(button) repeatToC := C.bool(repeat) - retval := C.WrapImGuiIsMouseClickedWithRepeat(buttonToC, repeatToC) + retval := C.HarfangImGuiIsMouseClickedWithRepeat(buttonToC, repeatToC) return bool(retval) } // ImGuiIsMouseDoubleClicked Was the specified mouse button double-clicked during the last frame? A double-click implies two rapid successive clicks of the same button with the mouse cursor staying in the same position. func ImGuiIsMouseDoubleClicked(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapImGuiIsMouseDoubleClicked(buttonToC) + retval := C.HarfangImGuiIsMouseDoubleClicked(buttonToC) return bool(retval) } // ImGuiIsMouseReleased Was the specified mouse button released during the last frame? func ImGuiIsMouseReleased(button int32) bool { buttonToC := C.int32_t(button) - retval := C.WrapImGuiIsMouseReleased(buttonToC) + retval := C.HarfangImGuiIsMouseReleased(buttonToC) return bool(retval) } @@ -28054,7 +29267,7 @@ func ImGuiIsMouseReleased(button int32) bool { func ImGuiIsMouseHoveringRect(rectmin *Vec2, rectmax *Vec2) bool { rectminToC := rectmin.h rectmaxToC := rectmax.h - retval := C.WrapImGuiIsMouseHoveringRect(rectminToC, rectmaxToC) + retval := C.HarfangImGuiIsMouseHoveringRect(rectminToC, rectmaxToC) return bool(retval) } @@ -28063,14 +29276,14 @@ func ImGuiIsMouseHoveringRectWithClip(rectmin *Vec2, rectmax *Vec2, clip bool) b rectminToC := rectmin.h rectmaxToC := rectmax.h clipToC := C.bool(clip) - retval := C.WrapImGuiIsMouseHoveringRectWithClip(rectminToC, rectmaxToC, clipToC) + retval := C.HarfangImGuiIsMouseHoveringRectWithClip(rectminToC, rectmaxToC, clipToC) return bool(retval) } // ImGuiIsMouseDragging Is mouse dragging? func ImGuiIsMouseDragging(button ImGuiMouseButton) bool { buttonToC := C.int32_t(button) - retval := C.WrapImGuiIsMouseDragging(buttonToC) + retval := C.HarfangImGuiIsMouseDragging(buttonToC) return bool(retval) } @@ -28078,36 +29291,36 @@ func ImGuiIsMouseDragging(button ImGuiMouseButton) bool { func ImGuiIsMouseDraggingWithLockThreshold(button ImGuiMouseButton, lockthreshold float32) bool { buttonToC := C.int32_t(button) lockthresholdToC := C.float(lockthreshold) - retval := C.WrapImGuiIsMouseDraggingWithLockThreshold(buttonToC, lockthresholdToC) + retval := C.HarfangImGuiIsMouseDraggingWithLockThreshold(buttonToC, lockthresholdToC) return bool(retval) } // ImGuiGetMousePos Return the mouse cursor coordinates in screen space. func ImGuiGetMousePos() *Vec2 { - retval := C.WrapImGuiGetMousePos() + retval := C.HarfangImGuiGetMousePos() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetMousePosOnOpeningCurrentPopup Retrieve a backup of the mouse position at the time of opening the current popup. See [harfang.ImGuiBeginPopup]. func ImGuiGetMousePosOnOpeningCurrentPopup() *Vec2 { - retval := C.WrapImGuiGetMousePosOnOpeningCurrentPopup() + retval := C.HarfangImGuiGetMousePosOnOpeningCurrentPopup() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiGetMouseDragDelta Return the distance covered by the mouse cursor since the last button press. func ImGuiGetMouseDragDelta() *Vec2 { - retval := C.WrapImGuiGetMouseDragDelta() + retval := C.HarfangImGuiGetMouseDragDelta() retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -28115,10 +29328,10 @@ func ImGuiGetMouseDragDelta() *Vec2 { // ImGuiGetMouseDragDeltaWithButton Return the distance covered by the mouse cursor since the last button press. func ImGuiGetMouseDragDeltaWithButton(button ImGuiMouseButton) *Vec2 { buttonToC := C.int32_t(button) - retval := C.WrapImGuiGetMouseDragDeltaWithButton(buttonToC) + retval := C.HarfangImGuiGetMouseDragDeltaWithButton(buttonToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } @@ -28127,47 +29340,47 @@ func ImGuiGetMouseDragDeltaWithButton(button ImGuiMouseButton) *Vec2 { func ImGuiGetMouseDragDeltaWithButtonLockThreshold(button ImGuiMouseButton, lockthreshold float32) *Vec2 { buttonToC := C.int32_t(button) lockthresholdToC := C.float(lockthreshold) - retval := C.WrapImGuiGetMouseDragDeltaWithButtonLockThreshold(buttonToC, lockthresholdToC) + retval := C.HarfangImGuiGetMouseDragDeltaWithButtonLockThreshold(buttonToC, lockthresholdToC) retvalGO := &Vec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vec2) { - C.WrapVec2Free(cleanval.h) + C.HarfangVec2Free(cleanval.h) }) return retvalGO } // ImGuiResetMouseDragDelta ... func ImGuiResetMouseDragDelta() { - C.WrapImGuiResetMouseDragDelta() + C.HarfangImGuiResetMouseDragDelta() } // ImGuiResetMouseDragDeltaWithButton ... func ImGuiResetMouseDragDeltaWithButton(button ImGuiMouseButton) { buttonToC := C.int32_t(button) - C.WrapImGuiResetMouseDragDeltaWithButton(buttonToC) + C.HarfangImGuiResetMouseDragDeltaWithButton(buttonToC) } // ImGuiCaptureKeyboardFromApp Force capture keyboard when your widget is being hovered. func ImGuiCaptureKeyboardFromApp(capture bool) { captureToC := C.bool(capture) - C.WrapImGuiCaptureKeyboardFromApp(captureToC) + C.HarfangImGuiCaptureKeyboardFromApp(captureToC) } // ImGuiCaptureMouseFromApp Force capture mouse when your widget is being hovered. func ImGuiCaptureMouseFromApp(capture bool) { captureToC := C.bool(capture) - C.WrapImGuiCaptureMouseFromApp(captureToC) + C.HarfangImGuiCaptureMouseFromApp(captureToC) } // ImGuiWantCaptureMouse ImGui wants mouse capture. Use this function to determine when to pause mouse processing from other parts of your program. func ImGuiWantCaptureMouse() bool { - retval := C.WrapImGuiWantCaptureMouse() + retval := C.HarfangImGuiWantCaptureMouse() return bool(retval) } // ImGuiMouseDrawCursor Enable/disable the ImGui software mouse cursor. func ImGuiMouseDrawCursor(drawcursor bool) { drawcursorToC := C.bool(drawcursor) - C.WrapImGuiMouseDrawCursor(drawcursorToC) + C.HarfangImGuiMouseDrawCursor(drawcursorToC) } // ImGuiInit Initialize the global ImGui context. This function must be called once before any other ImGui function using the global context. See [harfang.ImGuiInitContext]. @@ -28175,7 +29388,7 @@ func ImGuiInit(fontsize float32, imguiprogram *ProgramHandle, imguiimageprogram fontsizeToC := C.float(fontsize) imguiprogramToC := imguiprogram.h imguiimageprogramToC := imguiimageprogram.h - C.WrapImGuiInit(fontsizeToC, imguiprogramToC, imguiimageprogramToC) + C.HarfangImGuiInit(fontsizeToC, imguiprogramToC, imguiimageprogramToC) } // ImGuiInitContext Initialize an ImGui context. This function must be called once before any other ImGui function using the context. See [harfang.ImGuiInit]. @@ -28183,12 +29396,12 @@ func ImGuiInitContext(fontsize float32, imguiprogram *ProgramHandle, imguiimagep fontsizeToC := C.float(fontsize) imguiprogramToC := imguiprogram.h imguiimageprogramToC := imguiimageprogram.h - retval := C.WrapImGuiInitContext(fontsizeToC, imguiprogramToC, imguiimageprogramToC) + retval := C.HarfangImGuiInitContext(fontsizeToC, imguiprogramToC, imguiimageprogramToC) var retvalGO *DearImguiContext if retval != nil { retvalGO = &DearImguiContext{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *DearImguiContext) { - C.WrapDearImguiContextFree(cleanval.h) + C.HarfangDearImguiContextFree(cleanval.h) }) } return retvalGO @@ -28196,7 +29409,7 @@ func ImGuiInitContext(fontsize float32, imguiprogram *ProgramHandle, imguiimagep // ImGuiShutdown Shutdown the global ImGui context. func ImGuiShutdown() { - C.WrapImGuiShutdown() + C.HarfangImGuiShutdown() } // ImGuiBeginFrame Begin an ImGui frame. This function must be called once per frame before any other ImGui call. When using multiple contexts, it must be called for each context you intend to use during the current frame. See [harfang.ImGuiEndFrame]. @@ -28206,7 +29419,7 @@ func ImGuiBeginFrame(width int32, height int32, dtclock int64, mouse *MouseState dtclockToC := C.int64_t(dtclock) mouseToC := mouse.h keyboardToC := keyboard.h - C.WrapImGuiBeginFrame(widthToC, heightToC, dtclockToC, mouseToC, keyboardToC) + C.HarfangImGuiBeginFrame(widthToC, heightToC, dtclockToC, mouseToC, keyboardToC) } // ImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard Begin an ImGui frame. This function must be called once per frame before any other ImGui call. When using multiple contexts, it must be called for each context you intend to use during the current frame. See [harfang.ImGuiEndFrame]. @@ -28217,36 +29430,36 @@ func ImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard(ctx *DearImguiContext dtclockToC := C.int64_t(dtclock) mouseToC := mouse.h keyboardToC := keyboard.h - C.WrapImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard(ctxToC, widthToC, heightToC, dtclockToC, mouseToC, keyboardToC) + C.HarfangImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard(ctxToC, widthToC, heightToC, dtclockToC, mouseToC, keyboardToC) } // ImGuiEndFrameWithCtx End the current ImGui frame. All ImGui rendering is sent to the specified view. If no view is specified, view 255 is used. See [harfang.man.Views]. func ImGuiEndFrameWithCtx(ctx *DearImguiContext) { ctxToC := ctx.h - C.WrapImGuiEndFrameWithCtx(ctxToC) + C.HarfangImGuiEndFrameWithCtx(ctxToC) } // ImGuiEndFrameWithCtxViewId End the current ImGui frame. All ImGui rendering is sent to the specified view. If no view is specified, view 255 is used. See [harfang.man.Views]. func ImGuiEndFrameWithCtxViewId(ctx *DearImguiContext, viewid uint16) { ctxToC := ctx.h viewidToC := C.ushort(viewid) - C.WrapImGuiEndFrameWithCtxViewId(ctxToC, viewidToC) + C.HarfangImGuiEndFrameWithCtxViewId(ctxToC, viewidToC) } // ImGuiEndFrame End the current ImGui frame. All ImGui rendering is sent to the specified view. If no view is specified, view 255 is used. See [harfang.man.Views]. func ImGuiEndFrame() { - C.WrapImGuiEndFrame() + C.HarfangImGuiEndFrame() } // ImGuiEndFrameWithViewId End the current ImGui frame. All ImGui rendering is sent to the specified view. If no view is specified, view 255 is used. See [harfang.man.Views]. func ImGuiEndFrameWithViewId(viewid uint16) { viewidToC := C.ushort(viewid) - C.WrapImGuiEndFrameWithViewId(viewidToC) + C.HarfangImGuiEndFrameWithViewId(viewidToC) } // ImGuiClearInputBuffer Force a reset of the ImGui input buffer. func ImGuiClearInputBuffer() { - C.WrapImGuiClearInputBuffer() + C.HarfangImGuiClearInputBuffer() } // OpenFolderDialog Open a native OpenFolder dialog. @@ -28255,7 +29468,7 @@ func OpenFolderDialog(title string, foldername *string) bool { defer idFintitleToC() foldernameToC1 := C.CString(*foldername) foldernameToC := &foldernameToC1 - retval := C.WrapOpenFolderDialog(titleToC, foldernameToC) + retval := C.HarfangOpenFolderDialog(titleToC, foldernameToC) return bool(retval) } @@ -28267,7 +29480,7 @@ func OpenFolderDialogWithInitialDir(title string, foldername *string, initialdir foldernameToC := &foldernameToC1 initialdirToC, idFininitialdirToC := wrapString(initialdir) defer idFininitialdirToC() - retval := C.WrapOpenFolderDialogWithInitialDir(titleToC, foldernameToC, initialdirToC) + retval := C.HarfangOpenFolderDialogWithInitialDir(titleToC, foldernameToC, initialdirToC) return bool(retval) } @@ -28278,7 +29491,7 @@ func OpenFileDialog(title string, filters *FileFilterList, file *string) bool { filtersToC := filters.h fileToC1 := C.CString(*file) fileToC := &fileToC1 - retval := C.WrapOpenFileDialog(titleToC, filtersToC, fileToC) + retval := C.HarfangOpenFileDialog(titleToC, filtersToC, fileToC) return bool(retval) } @@ -28291,7 +29504,7 @@ func OpenFileDialogWithInitialDir(title string, filters *FileFilterList, file *s fileToC := &fileToC1 initialdirToC, idFininitialdirToC := wrapString(initialdir) defer idFininitialdirToC() - retval := C.WrapOpenFileDialogWithInitialDir(titleToC, filtersToC, fileToC, initialdirToC) + retval := C.HarfangOpenFileDialogWithInitialDir(titleToC, filtersToC, fileToC, initialdirToC) return bool(retval) } @@ -28302,7 +29515,7 @@ func SaveFileDialog(title string, filters *FileFilterList, file *string) bool { filtersToC := filters.h fileToC1 := C.CString(*file) fileToC := &fileToC1 - retval := C.WrapSaveFileDialog(titleToC, filtersToC, fileToC) + retval := C.HarfangSaveFileDialog(titleToC, filtersToC, fileToC) return bool(retval) } @@ -28315,7 +29528,7 @@ func SaveFileDialogWithInitialDir(title string, filters *FileFilterList, file *s fileToC := &fileToC1 initialdirToC, idFininitialdirToC := wrapString(initialdir) defer idFininitialdirToC() - retval := C.WrapSaveFileDialogWithInitialDir(titleToC, filtersToC, fileToC, initialdirToC) + retval := C.HarfangSaveFileDialogWithInitialDir(titleToC, filtersToC, fileToC, initialdirToC) return bool(retval) } @@ -28332,7 +29545,7 @@ func FpsControllerWithKeyUpKeyDownKeyLeftKeyRightBtnDxDyPosRotSpeedDtT(keyup boo rotToC := rot.h speedToC := C.float(speed) dttToC := C.int64_t(dtt) - C.WrapFpsControllerWithKeyUpKeyDownKeyLeftKeyRightBtnDxDyPosRotSpeedDtT(keyupToC, keydownToC, keyleftToC, keyrightToC, btnToC, dxToC, dyToC, posToC, rotToC, speedToC, dttToC) + C.HarfangFpsControllerWithKeyUpKeyDownKeyLeftKeyRightBtnDxDyPosRotSpeedDtT(keyupToC, keydownToC, keyleftToC, keyrightToC, btnToC, dxToC, dyToC, posToC, rotToC, speedToC, dttToC) } // FpsController Implement a first-person-shooter like controller. The input position and rotation parameters are returned modified according to the state of the control keys. This function is usually used by passing the current camera position and rotation then updating the camera transformation with the returned values. @@ -28343,31 +29556,31 @@ func FpsController(keyboard *Keyboard, mouse *Mouse, pos *Vec3, rot *Vec3, speed rotToC := rot.h speedToC := C.float(speed) dtToC := C.int64_t(dt) - C.WrapFpsController(keyboardToC, mouseToC, posToC, rotToC, speedToC, dtToC) + C.HarfangFpsController(keyboardToC, mouseToC, posToC, rotToC, speedToC, dtToC) } // Sleep Sleep the caller thread, this function will resume execution after waiting for at least the specified amount of time. func Sleep(duration int64) { durationToC := C.int64_t(duration) - C.WrapSleep(durationToC) + C.HarfangSleep(durationToC) } // AudioInit Initialize the audio system. func AudioInit() bool { - retval := C.WrapAudioInit() + retval := C.HarfangAudioInit() return bool(retval) } // AudioShutdown Shutdown the audio system. func AudioShutdown() { - C.WrapAudioShutdown() + C.HarfangAudioShutdown() } // LoadWAVSoundFile Load a sound in WAV format from the local filesystem and return a reference to it. func LoadWAVSoundFile(path string) int32 { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadWAVSoundFile(pathToC) + retval := C.HarfangLoadWAVSoundFile(pathToC) return int32(retval) } @@ -28375,7 +29588,7 @@ func LoadWAVSoundFile(path string) int32 { func LoadWAVSoundAsset(name string) int32 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadWAVSoundAsset(nameToC) + retval := C.HarfangLoadWAVSoundAsset(nameToC) return int32(retval) } @@ -28383,7 +29596,7 @@ func LoadWAVSoundAsset(name string) int32 { func LoadOGGSoundFile(path string) int32 { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() - retval := C.WrapLoadOGGSoundFile(pathToC) + retval := C.HarfangLoadOGGSoundFile(pathToC) return int32(retval) } @@ -28391,28 +29604,28 @@ func LoadOGGSoundFile(path string) int32 { func LoadOGGSoundAsset(name string) int32 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapLoadOGGSoundAsset(nameToC) + retval := C.HarfangLoadOGGSoundAsset(nameToC) return int32(retval) } // UnloadSound Unload a sound from the audio system. func UnloadSound(snd SoundRef) { sndToC := C.int32_t(snd) - C.WrapUnloadSound(sndToC) + C.HarfangUnloadSound(sndToC) } // SetListener Set the listener transformation and velocity for spatialization by the audio system. func SetListener(world *Mat4, velocity *Vec3) { worldToC := world.h velocityToC := velocity.h - C.WrapSetListener(worldToC, velocityToC) + C.HarfangSetListener(worldToC, velocityToC) } // PlayStereo Start playing a stereo sound. Return a handle to the started source. func PlayStereo(snd SoundRef, state *StereoSourceState) int32 { sndToC := C.int32_t(snd) stateToC := state.h - retval := C.WrapPlayStereo(sndToC, stateToC) + retval := C.HarfangPlayStereo(sndToC, stateToC) return int32(retval) } @@ -28420,7 +29633,7 @@ func PlayStereo(snd SoundRef, state *StereoSourceState) int32 { func PlaySpatialized(snd SoundRef, state *SpatializedSourceState) int32 { sndToC := C.int32_t(snd) stateToC := state.h - retval := C.WrapPlaySpatialized(sndToC, stateToC) + retval := C.HarfangPlaySpatialized(sndToC, stateToC) return int32(retval) } @@ -28429,7 +29642,7 @@ func StreamWAVFileStereo(path string, state *StereoSourceState) int32 { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() stateToC := state.h - retval := C.WrapStreamWAVFileStereo(pathToC, stateToC) + retval := C.HarfangStreamWAVFileStereo(pathToC, stateToC) return int32(retval) } @@ -28438,7 +29651,7 @@ func StreamWAVAssetStereo(name string, state *StereoSourceState) int32 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() stateToC := state.h - retval := C.WrapStreamWAVAssetStereo(nameToC, stateToC) + retval := C.HarfangStreamWAVAssetStereo(nameToC, stateToC) return int32(retval) } @@ -28447,7 +29660,7 @@ func StreamWAVFileSpatialized(path string, state *SpatializedSourceState) int32 pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() stateToC := state.h - retval := C.WrapStreamWAVFileSpatialized(pathToC, stateToC) + retval := C.HarfangStreamWAVFileSpatialized(pathToC, stateToC) return int32(retval) } @@ -28456,7 +29669,7 @@ func StreamWAVAssetSpatialized(name string, state *SpatializedSourceState) int32 nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() stateToC := state.h - retval := C.WrapStreamWAVAssetSpatialized(nameToC, stateToC) + retval := C.HarfangStreamWAVAssetSpatialized(nameToC, stateToC) return int32(retval) } @@ -28465,7 +29678,7 @@ func StreamOGGFileStereo(path string, state *StereoSourceState) int32 { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() stateToC := state.h - retval := C.WrapStreamOGGFileStereo(pathToC, stateToC) + retval := C.HarfangStreamOGGFileStereo(pathToC, stateToC) return int32(retval) } @@ -28474,7 +29687,7 @@ func StreamOGGAssetStereo(name string, state *StereoSourceState) int32 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() stateToC := state.h - retval := C.WrapStreamOGGAssetStereo(nameToC, stateToC) + retval := C.HarfangStreamOGGAssetStereo(nameToC, stateToC) return int32(retval) } @@ -28483,7 +29696,7 @@ func StreamOGGFileSpatialized(path string, state *SpatializedSourceState) int32 pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() stateToC := state.h - retval := C.WrapStreamOGGFileSpatialized(pathToC, stateToC) + retval := C.HarfangStreamOGGFileSpatialized(pathToC, stateToC) return int32(retval) } @@ -28492,21 +29705,21 @@ func StreamOGGAssetSpatialized(name string, state *SpatializedSourceState) int32 nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() stateToC := state.h - retval := C.WrapStreamOGGAssetSpatialized(nameToC, stateToC) + retval := C.HarfangStreamOGGAssetSpatialized(nameToC, stateToC) return int32(retval) } // GetSourceDuration Return the duration of an audio source. func GetSourceDuration(source SourceRef) int64 { sourceToC := C.int32_t(source) - retval := C.WrapGetSourceDuration(sourceToC) + retval := C.HarfangGetSourceDuration(sourceToC) return int64(retval) } // GetSourceTimecode Return the current timecode of a playing audio source. func GetSourceTimecode(source SourceRef) int64 { sourceToC := C.int32_t(source) - retval := C.WrapGetSourceTimecode(sourceToC) + retval := C.HarfangGetSourceTimecode(sourceToC) return int64(retval) } @@ -28514,7 +29727,7 @@ func GetSourceTimecode(source SourceRef) int64 { func SetSourceTimecode(source SourceRef, t int64) bool { sourceToC := C.int32_t(source) tToC := C.int64_t(t) - retval := C.WrapSetSourceTimecode(sourceToC, tToC) + retval := C.HarfangSetSourceTimecode(sourceToC, tToC) return bool(retval) } @@ -28522,21 +29735,21 @@ func SetSourceTimecode(source SourceRef, t int64) bool { func SetSourceVolume(source SourceRef, volume float32) { sourceToC := C.int32_t(source) volumeToC := C.float(volume) - C.WrapSetSourceVolume(sourceToC, volumeToC) + C.HarfangSetSourceVolume(sourceToC, volumeToC) } // SetSourcePanning Set a playing audio source panning. func SetSourcePanning(source SourceRef, panning float32) { sourceToC := C.int32_t(source) panningToC := C.float(panning) - C.WrapSetSourcePanning(sourceToC, panningToC) + C.HarfangSetSourcePanning(sourceToC, panningToC) } // SetSourceRepeat Set audio source repeat mode. func SetSourceRepeat(source SourceRef, repeat SourceRepeat) { sourceToC := C.int32_t(source) repeatToC := C.int32_t(repeat) - C.WrapSetSourceRepeat(sourceToC, repeatToC) + C.HarfangSetSourceRepeat(sourceToC, repeatToC) } // SetSourceTransform Set a playing spatialized audio source transformation. @@ -28544,50 +29757,50 @@ func SetSourceTransform(source SourceRef, world *Mat4, velocity *Vec3) { sourceToC := C.int32_t(source) worldToC := world.h velocityToC := velocity.h - C.WrapSetSourceTransform(sourceToC, worldToC, velocityToC) + C.HarfangSetSourceTransform(sourceToC, worldToC, velocityToC) } // GetSourceState Return the state of an audio source. func GetSourceState(source SourceRef) SourceState { sourceToC := C.int32_t(source) - retval := C.WrapGetSourceState(sourceToC) + retval := C.HarfangGetSourceState(sourceToC) return SourceState(retval) } // PauseSource Pause a playing audio source. See [harfang.PlayStereo] and [harfang.PlaySpatialized]. func PauseSource(source SourceRef) { sourceToC := C.int32_t(source) - C.WrapPauseSource(sourceToC) + C.HarfangPauseSource(sourceToC) } // StopSource Stop a playing audio source. func StopSource(source SourceRef) { sourceToC := C.int32_t(source) - C.WrapStopSource(sourceToC) + C.HarfangStopSource(sourceToC) } // StopAllSources Stop all playing audio sources. func StopAllSources() { - C.WrapStopAllSources() + C.HarfangStopAllSources() } // OpenVRInit Initialize OpenVR. Start the device display, its controllers and trackers. func OpenVRInit() bool { - retval := C.WrapOpenVRInit() + retval := C.HarfangOpenVRInit() return bool(retval) } // OpenVRShutdown Shutdown OpenVR. func OpenVRShutdown() { - C.WrapOpenVRShutdown() + C.HarfangOpenVRShutdown() } // OpenVRCreateEyeFrameBuffer Creates and returns an [harfang.man.VR] eye framebuffer, with the desired level of anti-aliasing. This function must be invoked twice, for the left and right eyes. func OpenVRCreateEyeFrameBuffer() *OpenVREyeFrameBuffer { - retval := C.WrapOpenVRCreateEyeFrameBuffer() + retval := C.HarfangOpenVRCreateEyeFrameBuffer() retvalGO := &OpenVREyeFrameBuffer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *OpenVREyeFrameBuffer) { - C.WrapOpenVREyeFrameBufferFree(cleanval.h) + C.HarfangOpenVREyeFrameBufferFree(cleanval.h) }) return retvalGO } @@ -28595,10 +29808,10 @@ func OpenVRCreateEyeFrameBuffer() *OpenVREyeFrameBuffer { // OpenVRCreateEyeFrameBufferWithAa Creates and returns an [harfang.man.VR] eye framebuffer, with the desired level of anti-aliasing. This function must be invoked twice, for the left and right eyes. func OpenVRCreateEyeFrameBufferWithAa(aa OpenVRAA) *OpenVREyeFrameBuffer { aaToC := C.int32_t(aa) - retval := C.WrapOpenVRCreateEyeFrameBufferWithAa(aaToC) + retval := C.HarfangOpenVRCreateEyeFrameBufferWithAa(aaToC) retvalGO := &OpenVREyeFrameBuffer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *OpenVREyeFrameBuffer) { - C.WrapOpenVREyeFrameBufferFree(cleanval.h) + C.HarfangOpenVREyeFrameBufferFree(cleanval.h) }) return retvalGO } @@ -28606,7 +29819,7 @@ func OpenVRCreateEyeFrameBufferWithAa(aa OpenVRAA) *OpenVREyeFrameBuffer { // OpenVRDestroyEyeFrameBuffer Destroy an eye framebuffer. func OpenVRDestroyEyeFrameBuffer(eyefb *OpenVREyeFrameBuffer) { eyefbToC := eyefb.h - C.WrapOpenVRDestroyEyeFrameBuffer(eyefbToC) + C.HarfangOpenVRDestroyEyeFrameBuffer(eyefbToC) } // OpenVRGetState Returns the current OpenVR state including the body, head and eye transformations. @@ -28614,10 +29827,10 @@ func OpenVRGetState(body *Mat4, znear float32, zfar float32) *OpenVRState { bodyToC := body.h znearToC := C.float(znear) zfarToC := C.float(zfar) - retval := C.WrapOpenVRGetState(bodyToC, znearToC, zfarToC) + retval := C.HarfangOpenVRGetState(bodyToC, znearToC, zfarToC) retvalGO := &OpenVRState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *OpenVRState) { - C.WrapOpenVRStateFree(cleanval.h) + C.HarfangOpenVRStateFree(cleanval.h) }) return retvalGO } @@ -28629,7 +29842,7 @@ func OpenVRStateToViewState(state *OpenVRState) (*ViewState, *ViewState) { leftToC := left.h right := NewViewState() rightToC := right.h - C.WrapOpenVRStateToViewState(stateToC, leftToC, rightToC) + C.HarfangOpenVRStateToViewState(stateToC, leftToC, rightToC) return left, right } @@ -28637,21 +29850,21 @@ func OpenVRStateToViewState(state *OpenVRState) (*ViewState, *ViewState) { func OpenVRSubmitFrame(left *OpenVREyeFrameBuffer, right *OpenVREyeFrameBuffer) { leftToC := left.h rightToC := right.h - C.WrapOpenVRSubmitFrame(leftToC, rightToC) + C.HarfangOpenVRSubmitFrame(leftToC, rightToC) } // OpenVRPostPresentHandoff Signal to the OpenVR compositor that it can immediatly start processing the current frame. func OpenVRPostPresentHandoff() { - C.WrapOpenVRPostPresentHandoff() + C.HarfangOpenVRPostPresentHandoff() } // OpenVRGetColorTexture Return the color texture attached to an eye framebuffer. func OpenVRGetColorTexture(eye *OpenVREyeFrameBuffer) *Texture { eyeToC := eye.h - retval := C.WrapOpenVRGetColorTexture(eyeToC) + retval := C.HarfangOpenVRGetColorTexture(eyeToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } @@ -28659,52 +29872,246 @@ func OpenVRGetColorTexture(eye *OpenVREyeFrameBuffer) *Texture { // OpenVRGetDepthTexture Return the depth texture attached to an eye framebuffer. func OpenVRGetDepthTexture(eye *OpenVREyeFrameBuffer) *Texture { eyeToC := eye.h - retval := C.WrapOpenVRGetDepthTexture(eyeToC) + retval := C.HarfangOpenVRGetDepthTexture(eyeToC) retvalGO := &Texture{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { - C.WrapTextureFree(cleanval.h) + C.HarfangTextureFree(cleanval.h) }) return retvalGO } // OpenVRGetFrameBufferSize ... func OpenVRGetFrameBufferSize() *IVec2 { - retval := C.WrapOpenVRGetFrameBufferSize() + retval := C.HarfangOpenVRGetFrameBufferSize() retvalGO := &IVec2{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVec2) { - C.WrapIVec2Free(cleanval.h) + C.HarfangIVec2Free(cleanval.h) + }) + return retvalGO +} + +// OpenVRIsHMDMounted ... +func OpenVRIsHMDMounted() bool { + retval := C.HarfangOpenVRIsHMDMounted() + return bool(retval) +} + +// OpenXRInit ... +func OpenXRInit() bool { + retval := C.HarfangOpenXRInit() + return bool(retval) +} + +// OpenXRInitWithExtensionsFlagsEnable ... +func OpenXRInitWithExtensionsFlagsEnable(ExtensionsFlagsEnable uint16) bool { + ExtensionsFlagsEnableToC := C.ushort(ExtensionsFlagsEnable) + retval := C.HarfangOpenXRInitWithExtensionsFlagsEnable(ExtensionsFlagsEnableToC) + return bool(retval) +} + +// OpenXRShutdown ... +func OpenXRShutdown() { + C.HarfangOpenXRShutdown() +} + +// OpenXRCreateEyeFrameBuffer ... +func OpenXRCreateEyeFrameBuffer() *OpenXREyeFrameBufferList { + retval := C.HarfangOpenXRCreateEyeFrameBuffer() + retvalGO := &OpenXREyeFrameBufferList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXREyeFrameBufferList) { + C.HarfangOpenXREyeFrameBufferListFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRCreateEyeFrameBufferWithAa ... +func OpenXRCreateEyeFrameBufferWithAa(aa OpenXRAA) *OpenXREyeFrameBufferList { + aaToC := C.int32_t(aa) + retval := C.HarfangOpenXRCreateEyeFrameBufferWithAa(aaToC) + retvalGO := &OpenXREyeFrameBufferList{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXREyeFrameBufferList) { + C.HarfangOpenXREyeFrameBufferListFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRDestroyEyeFrameBuffer ... +func OpenXRDestroyEyeFrameBuffer(eyefb *OpenXREyeFrameBuffer) { + eyefbToC := eyefb.h + C.HarfangOpenXRDestroyEyeFrameBuffer(eyefbToC) +} + +// OpenXRGetInstanceInfo ... +func OpenXRGetInstanceInfo() string { + retval := C.HarfangOpenXRGetInstanceInfo() + return C.GoString(retval) +} + +// OpenXRGetEyeGaze ... +func OpenXRGetEyeGaze() (bool, *Mat4) { + eyegaze := NewMat4() + eyegazeToC := eyegaze.h + retval := C.HarfangOpenXRGetEyeGaze(eyegazeToC) + return bool(retval), eyegaze +} + +// OpenXRGetHeadPose ... +func OpenXRGetHeadPose() (bool, *Mat4) { + headpose := NewMat4() + headposeToC := headpose.h + retval := C.HarfangOpenXRGetHeadPose(headposeToC) + return bool(retval), headpose +} + +// OpenXRSubmitSceneToForwardPipeline ... +func OpenXRSubmitSceneToForwardPipeline(camoffset *Mat4, updatecontrollers unsafe.Pointer, drawscene unsafe.Pointer, viewid *uint16, znear float32, zfar float32) *OpenXRFrameInfo { + camoffsetToC := camoffset.h + updatecontrollersToC := (C.HarfangFunctionReturningVoidTakingMat4Ptr)(updatecontrollers) + drawsceneToC := (C.HarfangFunctionReturningUint16TTakingRectOfIntPtrViewStatePtrUint16TPtrFrameBufferHandlePtr)(drawscene) + viewidToC := (*C.ushort)(unsafe.Pointer(viewid)) + znearToC := C.float(znear) + zfarToC := C.float(zfar) + retval := C.HarfangOpenXRSubmitSceneToForwardPipeline(camoffsetToC, updatecontrollersToC, drawsceneToC, viewidToC, znearToC, zfarToC) + retvalGO := &OpenXRFrameInfo{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *OpenXRFrameInfo) { + C.HarfangOpenXRFrameInfoFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRFinishSubmitFrameBuffer ... +func OpenXRFinishSubmitFrameBuffer(frameInfo *OpenXRFrameInfo) { + frameInfoToC := frameInfo.h + C.HarfangOpenXRFinishSubmitFrameBuffer(frameInfoToC) +} + +// OpenXRGetColorTexture ... +func OpenXRGetColorTexture(eye *OpenXREyeFrameBuffer) *Texture { + eyeToC := eye.h + retval := C.HarfangOpenXRGetColorTexture(eyeToC) + retvalGO := &Texture{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { + C.HarfangTextureFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRGetDepthTexture ... +func OpenXRGetDepthTexture(eye *OpenXREyeFrameBuffer) *Texture { + eyeToC := eye.h + retval := C.HarfangOpenXRGetDepthTexture(eyeToC) + retvalGO := &Texture{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { + C.HarfangTextureFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRGetColorTextureFromId ... +func OpenXRGetColorTextureFromId(eyes *OpenXREyeFrameBufferList, frameinfo *OpenXRFrameInfo, index int32) *Texture { + eyesToC := eyes.h + frameinfoToC := frameinfo.h + indexToC := C.int32_t(index) + retval := C.HarfangOpenXRGetColorTextureFromId(eyesToC, frameinfoToC, indexToC) + retvalGO := &Texture{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { + C.HarfangTextureFree(cleanval.h) + }) + return retvalGO +} + +// OpenXRGetDepthTextureFromId ... +func OpenXRGetDepthTextureFromId(eyes *OpenXREyeFrameBufferList, frameinfo *OpenXRFrameInfo, index int32) *Texture { + eyesToC := eyes.h + frameinfoToC := frameinfo.h + indexToC := C.int32_t(index) + retval := C.HarfangOpenXRGetDepthTextureFromId(eyesToC, frameinfoToC, indexToC) + retvalGO := &Texture{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Texture) { + C.HarfangTextureFree(cleanval.h) + }) + return retvalGO +} + +// IsHandJointActive ... +func IsHandJointActive(hand HandsSide) bool { + handToC := C.int32_t(hand) + retval := C.HarfangIsHandJointActive(handToC) + return bool(retval) +} + +// GetHandJointPose ... +func GetHandJointPose(hand HandsSide, handJoint XrHandJoint) *Mat4 { + handToC := C.int32_t(hand) + handJointToC := C.int32_t(handJoint) + retval := C.HarfangGetHandJointPose(handToC, handJointToC) + retvalGO := &Mat4{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Mat4) { + C.HarfangMat4Free(cleanval.h) + }) + return retvalGO +} + +// GetHandJointRadius ... +func GetHandJointRadius(hand HandsSide, handJoint XrHandJoint) float32 { + handToC := C.int32_t(hand) + handJointToC := C.int32_t(handJoint) + retval := C.HarfangGetHandJointRadius(handToC, handJointToC) + return float32(retval) +} + +// GetHandJointLinearVelocity ... +func GetHandJointLinearVelocity(hand HandsSide, handJoint XrHandJoint) *Vec3 { + handToC := C.int32_t(hand) + handJointToC := C.int32_t(handJoint) + retval := C.HarfangGetHandJointLinearVelocity(handToC, handJointToC) + retvalGO := &Vec3{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { + C.HarfangVec3Free(cleanval.h) + }) + return retvalGO +} + +// GetHandJointAngularVelocity ... +func GetHandJointAngularVelocity(hand HandsSide, handJoint XrHandJoint) *Vec3 { + handToC := C.int32_t(hand) + handJointToC := C.int32_t(handJoint) + retval := C.HarfangGetHandJointAngularVelocity(handToC, handJointToC) + retvalGO := &Vec3{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *Vec3) { + C.HarfangVec3Free(cleanval.h) }) return retvalGO } // SRanipalInit Initial the SRanipal eye detection SDK. func SRanipalInit() bool { - retval := C.WrapSRanipalInit() + retval := C.HarfangSRanipalInit() return bool(retval) } // SRanipalShutdown Shutdown the SRanipal eye detection SDK. func SRanipalShutdown() { - C.WrapSRanipalShutdown() + C.HarfangSRanipalShutdown() } // SRanipalLaunchEyeCalibration Launch the eye detection calibration sequence. func SRanipalLaunchEyeCalibration() { - C.WrapSRanipalLaunchEyeCalibration() + C.HarfangSRanipalLaunchEyeCalibration() } // SRanipalIsViveProEye Return `true` if the eye detection device in use is Vive Pro Eye. func SRanipalIsViveProEye() bool { - retval := C.WrapSRanipalIsViveProEye() + retval := C.HarfangSRanipalIsViveProEye() return bool(retval) } // SRanipalGetState Return the current SRanipal device state. func SRanipalGetState() *SRanipalState { - retval := C.WrapSRanipalGetState() + retval := C.HarfangSRanipalGetState() retvalGO := &SRanipalState{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SRanipalState) { - C.WrapSRanipalStateFree(cleanval.h) + C.HarfangSRanipalStateFree(cleanval.h) }) return retvalGO } @@ -28712,10 +30119,10 @@ func SRanipalGetState() *SRanipalState { // MakeVertex ... func MakeVertex(pos *Vec3) *Vertex { posToC := pos.h - retval := C.WrapMakeVertex(posToC) + retval := C.HarfangMakeVertex(posToC) retvalGO := &Vertex{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertex) { - C.WrapVertexFree(cleanval.h) + C.HarfangVertexFree(cleanval.h) }) return retvalGO } @@ -28724,10 +30131,10 @@ func MakeVertex(pos *Vec3) *Vertex { func MakeVertexWithNrm(pos *Vec3, nrm *Vec3) *Vertex { posToC := pos.h nrmToC := nrm.h - retval := C.WrapMakeVertexWithNrm(posToC, nrmToC) + retval := C.HarfangMakeVertexWithNrm(posToC, nrmToC) retvalGO := &Vertex{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertex) { - C.WrapVertexFree(cleanval.h) + C.HarfangVertexFree(cleanval.h) }) return retvalGO } @@ -28737,10 +30144,10 @@ func MakeVertexWithNrmUv0(pos *Vec3, nrm *Vec3, uv0 *Vec2) *Vertex { posToC := pos.h nrmToC := nrm.h uv0ToC := uv0.h - retval := C.WrapMakeVertexWithNrmUv0(posToC, nrmToC, uv0ToC) + retval := C.HarfangMakeVertexWithNrmUv0(posToC, nrmToC, uv0ToC) retvalGO := &Vertex{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertex) { - C.WrapVertexFree(cleanval.h) + C.HarfangVertexFree(cleanval.h) }) return retvalGO } @@ -28751,10 +30158,10 @@ func MakeVertexWithNrmUv0Color0(pos *Vec3, nrm *Vec3, uv0 *Vec2, color0 *Color) nrmToC := nrm.h uv0ToC := uv0.h color0ToC := color0.h - retval := C.WrapMakeVertexWithNrmUv0Color0(posToC, nrmToC, uv0ToC, color0ToC) + retval := C.HarfangMakeVertexWithNrmUv0Color0(posToC, nrmToC, uv0ToC, color0ToC) retvalGO := &Vertex{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Vertex) { - C.WrapVertexFree(cleanval.h) + C.HarfangVertexFree(cleanval.h) }) return retvalGO } @@ -28764,7 +30171,7 @@ func SaveGeometryToFile(path string, geo *Geometry) bool { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() geoToC := geo.h - retval := C.WrapSaveGeometryToFile(pathToC, geoToC) + retval := C.HarfangSaveGeometryToFile(pathToC, geoToC) return bool(retval) } @@ -28773,10 +30180,10 @@ func NewIsoSurface(width int32, height int32, depth int32) *IsoSurface { widthToC := C.int32_t(width) heightToC := C.int32_t(height) depthToC := C.int32_t(depth) - retval := C.WrapNewIsoSurface(widthToC, heightToC, depthToC) + retval := C.HarfangNewIsoSurface(widthToC, heightToC, depthToC) retvalGO := &IsoSurface{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IsoSurface) { - C.WrapIsoSurfaceFree(cleanval.h) + C.HarfangIsoSurfaceFree(cleanval.h) }) return retvalGO } @@ -28791,7 +30198,7 @@ func IsoSurfaceSphere(surface *IsoSurface, width int32, height int32, depth int3 yToC := C.float(y) zToC := C.float(z) radiusToC := C.float(radius) - C.WrapIsoSurfaceSphere(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC) + C.HarfangIsoSurfaceSphere(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC) } // IsoSurfaceSphereWithValue Output a sphere to an iso-surface. @@ -28805,7 +30212,7 @@ func IsoSurfaceSphereWithValue(surface *IsoSurface, width int32, height int32, d zToC := C.float(z) radiusToC := C.float(radius) valueToC := C.float(value) - C.WrapIsoSurfaceSphereWithValue(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC, valueToC) + C.HarfangIsoSurfaceSphereWithValue(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC, valueToC) } // IsoSurfaceSphereWithValueExponent Output a sphere to an iso-surface. @@ -28820,7 +30227,7 @@ func IsoSurfaceSphereWithValueExponent(surface *IsoSurface, width int32, height radiusToC := C.float(radius) valueToC := C.float(value) exponentToC := C.float(exponent) - C.WrapIsoSurfaceSphereWithValueExponent(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC, valueToC, exponentToC) + C.HarfangIsoSurfaceSphereWithValueExponent(surfaceToC, widthToC, heightToC, depthToC, xToC, yToC, zToC, radiusToC, valueToC, exponentToC) } // GaussianBlurIsoSurface Apply a Gaussian blur to an iso-surface. @@ -28829,10 +30236,10 @@ func GaussianBlurIsoSurface(surface *IsoSurface, width int32, height int32, dept widthToC := C.int32_t(width) heightToC := C.int32_t(height) depthToC := C.int32_t(depth) - retval := C.WrapGaussianBlurIsoSurface(surfaceToC, widthToC, heightToC, depthToC) + retval := C.HarfangGaussianBlurIsoSurface(surfaceToC, widthToC, heightToC, depthToC) retvalGO := &IsoSurface{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IsoSurface) { - C.WrapIsoSurfaceFree(cleanval.h) + C.HarfangIsoSurfaceFree(cleanval.h) }) return retvalGO } @@ -28844,7 +30251,7 @@ func IsoSurfaceToModel(builder *ModelBuilder, surface *IsoSurface, width int32, widthToC := C.int32_t(width) heightToC := C.int32_t(height) depthToC := C.int32_t(depth) - retval := C.WrapIsoSurfaceToModel(builderToC, surfaceToC, widthToC, heightToC, depthToC) + retval := C.HarfangIsoSurfaceToModel(builderToC, surfaceToC, widthToC, heightToC, depthToC) return bool(retval) } @@ -28856,7 +30263,7 @@ func IsoSurfaceToModelWithMaterial(builder *ModelBuilder, surface *IsoSurface, w heightToC := C.int32_t(height) depthToC := C.int32_t(depth) materialToC := C.ushort(material) - retval := C.WrapIsoSurfaceToModelWithMaterial(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC) + retval := C.HarfangIsoSurfaceToModelWithMaterial(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC) return bool(retval) } @@ -28869,7 +30276,7 @@ func IsoSurfaceToModelWithMaterialIsolevel(builder *ModelBuilder, surface *IsoSu depthToC := C.int32_t(depth) materialToC := C.ushort(material) isolevelToC := C.float(isolevel) - retval := C.WrapIsoSurfaceToModelWithMaterialIsolevel(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC, isolevelToC) + retval := C.HarfangIsoSurfaceToModelWithMaterialIsolevel(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC, isolevelToC) return bool(retval) } @@ -28885,7 +30292,7 @@ func IsoSurfaceToModelWithMaterialIsolevelScaleXScaleYScaleZ(builder *ModelBuild scalexToC := C.float(scalex) scaleyToC := C.float(scaley) scalezToC := C.float(scalez) - retval := C.WrapIsoSurfaceToModelWithMaterialIsolevelScaleXScaleYScaleZ(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC, isolevelToC, scalexToC, scaleyToC, scalezToC) + retval := C.HarfangIsoSurfaceToModelWithMaterialIsolevelScaleXScaleYScaleZ(builderToC, surfaceToC, widthToC, heightToC, depthToC, materialToC, isolevelToC, scalexToC, scaleyToC, scalezToC) return bool(retval) } @@ -28894,10 +30301,10 @@ func CreateBloomFromFile(path string, ratio BackbufferRatio) *Bloom { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() ratioToC := C.int32_t(ratio) - retval := C.WrapCreateBloomFromFile(pathToC, ratioToC) + retval := C.HarfangCreateBloomFromFile(pathToC, ratioToC) retvalGO := &Bloom{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Bloom) { - C.WrapBloomFree(cleanval.h) + C.HarfangBloomFree(cleanval.h) }) return retvalGO } @@ -28907,10 +30314,10 @@ func CreateBloomFromAssets(path string, ratio BackbufferRatio) *Bloom { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() ratioToC := C.int32_t(ratio) - retval := C.WrapCreateBloomFromAssets(pathToC, ratioToC) + retval := C.HarfangCreateBloomFromAssets(pathToC, ratioToC) retvalGO := &Bloom{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Bloom) { - C.WrapBloomFree(cleanval.h) + C.HarfangBloomFree(cleanval.h) }) return retvalGO } @@ -28918,7 +30325,7 @@ func CreateBloomFromAssets(path string, ratio BackbufferRatio) *Bloom { // DestroyBloom Destroy a bloom post process object and all associated resources. func DestroyBloom(bloom *Bloom) { bloomToC := bloom.h - C.WrapDestroyBloom(bloomToC) + C.HarfangDestroyBloom(bloomToC) } // ApplyBloom Process `input` texture and generate a bloom overlay on top of `output`, input and output must be of the same size. Use [harfang.CreateBloomFromFile]/[harfang.CreateBloomFromAssets] to create a [harfang.Bloom] object and [harfang.DestroyBloom] to destroy its internal resources after usage. @@ -28931,7 +30338,7 @@ func ApplyBloom(viewid *uint16, rect *IntRect, input *Texture, output *FrameBuff thresholdToC := C.float(threshold) smoothnessToC := C.float(smoothness) intensityToC := C.float(intensity) - C.WrapApplyBloom(viewidToC, rectToC, inputToC, outputToC, bloomToC, thresholdToC, smoothnessToC, intensityToC) + C.HarfangApplyBloom(viewidToC, rectToC, inputToC, outputToC, bloomToC, thresholdToC, smoothnessToC, intensityToC) } // CreateSAOFromFile ... @@ -28939,10 +30346,10 @@ func CreateSAOFromFile(path string, ratio BackbufferRatio) *SAO { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() ratioToC := C.int32_t(ratio) - retval := C.WrapCreateSAOFromFile(pathToC, ratioToC) + retval := C.HarfangCreateSAOFromFile(pathToC, ratioToC) retvalGO := &SAO{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SAO) { - C.WrapSAOFree(cleanval.h) + C.HarfangSAOFree(cleanval.h) }) return retvalGO } @@ -28952,10 +30359,10 @@ func CreateSAOFromAssets(path string, ratio BackbufferRatio) *SAO { pathToC, idFinpathToC := wrapString(path) defer idFinpathToC() ratioToC := C.int32_t(ratio) - retval := C.WrapCreateSAOFromAssets(pathToC, ratioToC) + retval := C.HarfangCreateSAOFromAssets(pathToC, ratioToC) retvalGO := &SAO{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *SAO) { - C.WrapSAOFree(cleanval.h) + C.HarfangSAOFree(cleanval.h) }) return retvalGO } @@ -28963,7 +30370,7 @@ func CreateSAOFromAssets(path string, ratio BackbufferRatio) *SAO { // DestroySAO Destroy an ambient occlusion post process object and its resources. func DestroySAO(sao *SAO) { saoToC := sao.h - C.WrapDestroySAO(saoToC) + C.HarfangDestroySAO(saoToC) } // ComputeSAO ... @@ -28980,14 +30387,14 @@ func ComputeSAO(viewid *uint16, rect *IntRect, attr0 *Texture, attr1 *Texture, n radiusToC := C.float(radius) samplecountToC := C.int32_t(samplecount) sharpnessToC := C.float(sharpness) - C.WrapComputeSAO(viewidToC, rectToC, attr0ToC, attr1ToC, noiseToC, outputToC, saoToC, projectionToC, biasToC, radiusToC, samplecountToC, sharpnessToC) + C.HarfangComputeSAO(viewidToC, rectToC, attr0ToC, attr1ToC, noiseToC, outputToC, saoToC, projectionToC, biasToC, radiusToC, samplecountToC, sharpnessToC) } // BeginProfilerSection Begin a named profiler section. Call [harfang.EndProfilerSection] to end the section. func BeginProfilerSection(name string) int32 { nameToC, idFinnameToC := wrapString(name) defer idFinnameToC() - retval := C.WrapBeginProfilerSection(nameToC) + retval := C.HarfangBeginProfilerSection(nameToC) return int32(retval) } @@ -28997,32 +30404,32 @@ func BeginProfilerSectionWithSectionDetails(name string, sectiondetails string) defer idFinnameToC() sectiondetailsToC, idFinsectiondetailsToC := wrapString(sectiondetails) defer idFinsectiondetailsToC() - retval := C.WrapBeginProfilerSectionWithSectionDetails(nameToC, sectiondetailsToC) + retval := C.HarfangBeginProfilerSectionWithSectionDetails(nameToC, sectiondetailsToC) return int32(retval) } // EndProfilerSection End a named profiler section. Call [harfang.BeginProfilerSection] to begin a new section. func EndProfilerSection(sectionidx int32) { sectionidxToC := C.size_t(sectionidx) - C.WrapEndProfilerSection(sectionidxToC) + C.HarfangEndProfilerSection(sectionidxToC) } // EndProfilerFrame End a profiler frame and return it. See [harfang.PrintProfilerFrame] to print a profiler frame to the console. func EndProfilerFrame() *ProfilerFrame { - retval := C.WrapEndProfilerFrame() + retval := C.HarfangEndProfilerFrame() retvalGO := &ProfilerFrame{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProfilerFrame) { - C.WrapProfilerFrameFree(cleanval.h) + C.HarfangProfilerFrameFree(cleanval.h) }) return retvalGO } // CaptureProfilerFrame Capture the current profiler frame but do not end it. See [harfang.EndProfilerFrame] to capture and end the current profiler frame. See [harfang.PrintProfilerFrame] to print a profiler frame to the console. func CaptureProfilerFrame() *ProfilerFrame { - retval := C.WrapCaptureProfilerFrame() + retval := C.HarfangCaptureProfilerFrame() retvalGO := &ProfilerFrame{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ProfilerFrame) { - C.WrapProfilerFrameFree(cleanval.h) + C.HarfangProfilerFrameFree(cleanval.h) }) return retvalGO } @@ -29030,17 +30437,17 @@ func CaptureProfilerFrame() *ProfilerFrame { // PrintProfilerFrame Print a profiler frame to the console. Print all sections in the frame, their duration and event count. func PrintProfilerFrame(profilerframe *ProfilerFrame) { profilerframeToC := profilerframe.h - C.WrapPrintProfilerFrame(profilerframeToC) + C.HarfangPrintProfilerFrame(profilerframeToC) } // MakeVideoStreamer ... func MakeVideoStreamer(modulepath string) *IVideoStreamer { modulepathToC, idFinmodulepathToC := wrapString(modulepath) defer idFinmodulepathToC() - retval := C.WrapMakeVideoStreamer(modulepathToC) + retval := C.HarfangMakeVideoStreamer(modulepathToC) retvalGO := &IVideoStreamer{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *IVideoStreamer) { - C.WrapIVideoStreamerFree(cleanval.h) + C.HarfangIVideoStreamerFree(cleanval.h) }) return retvalGO } @@ -29052,7 +30459,7 @@ func UpdateTexture(streamer *IVideoStreamer, handle *uintptr, texture *Texture, textureToC := texture.h sizeToC := size.h formatToC := (*C.int32_t)(unsafe.Pointer(format)) - retval := C.WrapUpdateTexture(streamerToC, handleToC, textureToC, sizeToC, formatToC) + retval := C.HarfangUpdateTexture(streamerToC, handleToC, textureToC, sizeToC, formatToC) return bool(retval) } @@ -29064,19 +30471,19 @@ func UpdateTextureWithDestroy(streamer *IVideoStreamer, handle *uintptr, texture sizeToC := size.h formatToC := (*C.int32_t)(unsafe.Pointer(format)) destroyToC := C.bool(destroy) - retval := C.WrapUpdateTextureWithDestroy(streamerToC, handleToC, textureToC, sizeToC, formatToC, destroyToC) + retval := C.HarfangUpdateTextureWithDestroy(streamerToC, handleToC, textureToC, sizeToC, formatToC, destroyToC) return bool(retval) } // CastForwardPipelineToPipeline ... func CastForwardPipelineToPipeline(o *ForwardPipeline) *Pipeline { oToC := o.h - retval := C.WrapCastForwardPipelineToPipeline(oToC) + retval := C.HarfangCastForwardPipelineToPipeline(oToC) var retvalGO *Pipeline if retval != nil { retvalGO = &Pipeline{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *Pipeline) { - C.WrapPipelineFree(cleanval.h) + C.HarfangPipelineFree(cleanval.h) }) } return retvalGO @@ -29085,12 +30492,12 @@ func CastForwardPipelineToPipeline(o *ForwardPipeline) *Pipeline { // CastPipelineToForwardPipeline ... func CastPipelineToForwardPipeline(o *Pipeline) *ForwardPipeline { oToC := o.h - retval := C.WrapCastPipelineToForwardPipeline(oToC) + retval := C.HarfangCastPipelineToForwardPipeline(oToC) var retvalGO *ForwardPipeline if retval != nil { retvalGO = &ForwardPipeline{h: retval} runtime.SetFinalizer(retvalGO, func(cleanval *ForwardPipeline) { - C.WrapForwardPipelineFree(cleanval.h) + C.HarfangForwardPipelineFree(cleanval.h) }) } return retvalGO @@ -29100,244 +30507,244 @@ func CastPipelineToForwardPipeline(o *Pipeline) *ForwardPipeline { type ResetFlags uint32 // RFNone ... -var RFNone = ResetFlags(C.WrapGetRFNone()) +var RFNone = ResetFlags(C.HarfangGetRFNone()) // RFMSAA2X ... -var RFMSAA2X = ResetFlags(C.WrapGetRFMSAA2X()) +var RFMSAA2X = ResetFlags(C.HarfangGetRFMSAA2X()) // RFMSAA4X ... -var RFMSAA4X = ResetFlags(C.WrapGetRFMSAA4X()) +var RFMSAA4X = ResetFlags(C.HarfangGetRFMSAA4X()) // RFMSAA8X ... -var RFMSAA8X = ResetFlags(C.WrapGetRFMSAA8X()) +var RFMSAA8X = ResetFlags(C.HarfangGetRFMSAA8X()) // RFMSAA16X ... -var RFMSAA16X = ResetFlags(C.WrapGetRFMSAA16X()) +var RFMSAA16X = ResetFlags(C.HarfangGetRFMSAA16X()) // RFVSync ... -var RFVSync = ResetFlags(C.WrapGetRFVSync()) +var RFVSync = ResetFlags(C.HarfangGetRFVSync()) // RFMaxAnisotropy ... -var RFMaxAnisotropy = ResetFlags(C.WrapGetRFMaxAnisotropy()) +var RFMaxAnisotropy = ResetFlags(C.HarfangGetRFMaxAnisotropy()) // RFCapture ... -var RFCapture = ResetFlags(C.WrapGetRFCapture()) +var RFCapture = ResetFlags(C.HarfangGetRFCapture()) // RFFlushAfterRender ... -var RFFlushAfterRender = ResetFlags(C.WrapGetRFFlushAfterRender()) +var RFFlushAfterRender = ResetFlags(C.HarfangGetRFFlushAfterRender()) // RFFlipAfterRender ... -var RFFlipAfterRender = ResetFlags(C.WrapGetRFFlipAfterRender()) +var RFFlipAfterRender = ResetFlags(C.HarfangGetRFFlipAfterRender()) // RFSRGBBackBuffer ... -var RFSRGBBackBuffer = ResetFlags(C.WrapGetRFSRGBBackBuffer()) +var RFSRGBBackBuffer = ResetFlags(C.HarfangGetRFSRGBBackBuffer()) // RFHDR10 ... -var RFHDR10 = ResetFlags(C.WrapGetRFHDR10()) +var RFHDR10 = ResetFlags(C.HarfangGetRFHDR10()) // RFHiDPI ... -var RFHiDPI = ResetFlags(C.WrapGetRFHiDPI()) +var RFHiDPI = ResetFlags(C.HarfangGetRFHiDPI()) // RFDepthClamp ... -var RFDepthClamp = ResetFlags(C.WrapGetRFDepthClamp()) +var RFDepthClamp = ResetFlags(C.HarfangGetRFDepthClamp()) // RFSuspend ... -var RFSuspend = ResetFlags(C.WrapGetRFSuspend()) +var RFSuspend = ResetFlags(C.HarfangGetRFSuspend()) // DebugFlags ... type DebugFlags uint32 // DFIFH ... -var DFIFH = DebugFlags(C.WrapGetDFIFH()) +var DFIFH = DebugFlags(C.HarfangGetDFIFH()) // DFProfiler ... -var DFProfiler = DebugFlags(C.WrapGetDFProfiler()) +var DFProfiler = DebugFlags(C.HarfangGetDFProfiler()) // DFStats ... -var DFStats = DebugFlags(C.WrapGetDFStats()) +var DFStats = DebugFlags(C.HarfangGetDFStats()) // DFText ... -var DFText = DebugFlags(C.WrapGetDFText()) +var DFText = DebugFlags(C.HarfangGetDFText()) // DFWireframe ... -var DFWireframe = DebugFlags(C.WrapGetDFWireframe()) +var DFWireframe = DebugFlags(C.HarfangGetDFWireframe()) // ClearFlags ... type ClearFlags uint16 // CFNone ... -var CFNone = ClearFlags(C.WrapGetCFNone()) +var CFNone = ClearFlags(C.HarfangGetCFNone()) // CFColor ... -var CFColor = ClearFlags(C.WrapGetCFColor()) +var CFColor = ClearFlags(C.HarfangGetCFColor()) // CFDepth ... -var CFDepth = ClearFlags(C.WrapGetCFDepth()) +var CFDepth = ClearFlags(C.HarfangGetCFDepth()) // CFStencil ... -var CFStencil = ClearFlags(C.WrapGetCFStencil()) +var CFStencil = ClearFlags(C.HarfangGetCFStencil()) // CFDiscardColor0 ... -var CFDiscardColor0 = ClearFlags(C.WrapGetCFDiscardColor0()) +var CFDiscardColor0 = ClearFlags(C.HarfangGetCFDiscardColor0()) // CFDiscardColor1 ... -var CFDiscardColor1 = ClearFlags(C.WrapGetCFDiscardColor1()) +var CFDiscardColor1 = ClearFlags(C.HarfangGetCFDiscardColor1()) // CFDiscardColor2 ... -var CFDiscardColor2 = ClearFlags(C.WrapGetCFDiscardColor2()) +var CFDiscardColor2 = ClearFlags(C.HarfangGetCFDiscardColor2()) // CFDiscardColor3 ... -var CFDiscardColor3 = ClearFlags(C.WrapGetCFDiscardColor3()) +var CFDiscardColor3 = ClearFlags(C.HarfangGetCFDiscardColor3()) // CFDiscardColor4 ... -var CFDiscardColor4 = ClearFlags(C.WrapGetCFDiscardColor4()) +var CFDiscardColor4 = ClearFlags(C.HarfangGetCFDiscardColor4()) // CFDiscardColor5 ... -var CFDiscardColor5 = ClearFlags(C.WrapGetCFDiscardColor5()) +var CFDiscardColor5 = ClearFlags(C.HarfangGetCFDiscardColor5()) // CFDiscardColor6 ... -var CFDiscardColor6 = ClearFlags(C.WrapGetCFDiscardColor6()) +var CFDiscardColor6 = ClearFlags(C.HarfangGetCFDiscardColor6()) // CFDiscardColor7 ... -var CFDiscardColor7 = ClearFlags(C.WrapGetCFDiscardColor7()) +var CFDiscardColor7 = ClearFlags(C.HarfangGetCFDiscardColor7()) // CFDiscardDepth ... -var CFDiscardDepth = ClearFlags(C.WrapGetCFDiscardDepth()) +var CFDiscardDepth = ClearFlags(C.HarfangGetCFDiscardDepth()) // CFDiscardStencil ... -var CFDiscardStencil = ClearFlags(C.WrapGetCFDiscardStencil()) +var CFDiscardStencil = ClearFlags(C.HarfangGetCFDiscardStencil()) // CFDiscardColorAll ... -var CFDiscardColorAll = ClearFlags(C.WrapGetCFDiscardColorAll()) +var CFDiscardColorAll = ClearFlags(C.HarfangGetCFDiscardColorAll()) // CFDiscardAll ... -var CFDiscardAll = ClearFlags(C.WrapGetCFDiscardAll()) +var CFDiscardAll = ClearFlags(C.HarfangGetCFDiscardAll()) // TextureFlags ... type TextureFlags uint64 // TFUMirror ... -var TFUMirror = TextureFlags(C.WrapGetTFUMirror()) +var TFUMirror = TextureFlags(C.HarfangGetTFUMirror()) // TFUClamp ... -var TFUClamp = TextureFlags(C.WrapGetTFUClamp()) +var TFUClamp = TextureFlags(C.HarfangGetTFUClamp()) // TFUBorder ... -var TFUBorder = TextureFlags(C.WrapGetTFUBorder()) +var TFUBorder = TextureFlags(C.HarfangGetTFUBorder()) // TFVMirror ... -var TFVMirror = TextureFlags(C.WrapGetTFVMirror()) +var TFVMirror = TextureFlags(C.HarfangGetTFVMirror()) // TFVClamp ... -var TFVClamp = TextureFlags(C.WrapGetTFVClamp()) +var TFVClamp = TextureFlags(C.HarfangGetTFVClamp()) // TFVBorder ... -var TFVBorder = TextureFlags(C.WrapGetTFVBorder()) +var TFVBorder = TextureFlags(C.HarfangGetTFVBorder()) // TFWMirror ... -var TFWMirror = TextureFlags(C.WrapGetTFWMirror()) +var TFWMirror = TextureFlags(C.HarfangGetTFWMirror()) // TFWClamp ... -var TFWClamp = TextureFlags(C.WrapGetTFWClamp()) +var TFWClamp = TextureFlags(C.HarfangGetTFWClamp()) // TFWBorder ... -var TFWBorder = TextureFlags(C.WrapGetTFWBorder()) +var TFWBorder = TextureFlags(C.HarfangGetTFWBorder()) // TFSamplerMinPoint ... -var TFSamplerMinPoint = TextureFlags(C.WrapGetTFSamplerMinPoint()) +var TFSamplerMinPoint = TextureFlags(C.HarfangGetTFSamplerMinPoint()) // TFSamplerMinAnisotropic ... -var TFSamplerMinAnisotropic = TextureFlags(C.WrapGetTFSamplerMinAnisotropic()) +var TFSamplerMinAnisotropic = TextureFlags(C.HarfangGetTFSamplerMinAnisotropic()) // TFSamplerMagPoint ... -var TFSamplerMagPoint = TextureFlags(C.WrapGetTFSamplerMagPoint()) +var TFSamplerMagPoint = TextureFlags(C.HarfangGetTFSamplerMagPoint()) // TFSamplerMagAnisotropic ... -var TFSamplerMagAnisotropic = TextureFlags(C.WrapGetTFSamplerMagAnisotropic()) +var TFSamplerMagAnisotropic = TextureFlags(C.HarfangGetTFSamplerMagAnisotropic()) // TFBlitDestination ... -var TFBlitDestination = TextureFlags(C.WrapGetTFBlitDestination()) +var TFBlitDestination = TextureFlags(C.HarfangGetTFBlitDestination()) // TFReadBack ... -var TFReadBack = TextureFlags(C.WrapGetTFReadBack()) +var TFReadBack = TextureFlags(C.HarfangGetTFReadBack()) // TFRenderTarget ... -var TFRenderTarget = TextureFlags(C.WrapGetTFRenderTarget()) +var TFRenderTarget = TextureFlags(C.HarfangGetTFRenderTarget()) // LoadSaveSceneFlags ... type LoadSaveSceneFlags uint32 // LSSFNodes ... -var LSSFNodes = LoadSaveSceneFlags(C.WrapGetLSSFNodes()) +var LSSFNodes = LoadSaveSceneFlags(C.HarfangGetLSSFNodes()) // LSSFScene ... -var LSSFScene = LoadSaveSceneFlags(C.WrapGetLSSFScene()) +var LSSFScene = LoadSaveSceneFlags(C.HarfangGetLSSFScene()) // LSSFAnims ... -var LSSFAnims = LoadSaveSceneFlags(C.WrapGetLSSFAnims()) +var LSSFAnims = LoadSaveSceneFlags(C.HarfangGetLSSFAnims()) // LSSFKeyValues ... -var LSSFKeyValues = LoadSaveSceneFlags(C.WrapGetLSSFKeyValues()) +var LSSFKeyValues = LoadSaveSceneFlags(C.HarfangGetLSSFKeyValues()) // LSSFPhysics ... -var LSSFPhysics = LoadSaveSceneFlags(C.WrapGetLSSFPhysics()) +var LSSFPhysics = LoadSaveSceneFlags(C.HarfangGetLSSFPhysics()) // LSSFScripts ... -var LSSFScripts = LoadSaveSceneFlags(C.WrapGetLSSFScripts()) +var LSSFScripts = LoadSaveSceneFlags(C.HarfangGetLSSFScripts()) // LSSFAll ... -var LSSFAll = LoadSaveSceneFlags(C.WrapGetLSSFAll()) +var LSSFAll = LoadSaveSceneFlags(C.HarfangGetLSSFAll()) // LSSFQueueTextureLoads ... -var LSSFQueueTextureLoads = LoadSaveSceneFlags(C.WrapGetLSSFQueueTextureLoads()) +var LSSFQueueTextureLoads = LoadSaveSceneFlags(C.HarfangGetLSSFQueueTextureLoads()) // LSSFFreezeMatrixToTransformOnSave ... -var LSSFFreezeMatrixToTransformOnSave = LoadSaveSceneFlags(C.WrapGetLSSFFreezeMatrixToTransformOnSave()) +var LSSFFreezeMatrixToTransformOnSave = LoadSaveSceneFlags(C.HarfangGetLSSFFreezeMatrixToTransformOnSave()) // LSSFQueueModelLoads ... -var LSSFQueueModelLoads = LoadSaveSceneFlags(C.WrapGetLSSFQueueModelLoads()) +var LSSFQueueModelLoads = LoadSaveSceneFlags(C.HarfangGetLSSFQueueModelLoads()) // LSSFDoNotChangeCurrentCameraIfValid ... -var LSSFDoNotChangeCurrentCameraIfValid = LoadSaveSceneFlags(C.WrapGetLSSFDoNotChangeCurrentCameraIfValid()) +var LSSFDoNotChangeCurrentCameraIfValid = LoadSaveSceneFlags(C.HarfangGetLSSFDoNotChangeCurrentCameraIfValid()) // SoundRef ... type SoundRef int32 // SNDInvalid ... -var SNDInvalid = SoundRef(C.WrapGetSNDInvalid()) +var SNDInvalid = SoundRef(C.HarfangGetSNDInvalid()) // SourceRef ... type SourceRef int32 // SRCInvalid ... -var SRCInvalid = SourceRef(C.WrapGetSRCInvalid()) +var SRCInvalid = SourceRef(C.HarfangGetSRCInvalid()) // InvalidFrameBufferHandle ... -var InvalidFrameBufferHandle = FrameBufferHandle{h: C.WrapGetInvalidFrameBufferHandle()} +var InvalidFrameBufferHandle = FrameBufferHandle{h: C.HarfangGetInvalidFrameBufferHandle()} // InvalidModelRef ... -var InvalidModelRef = ModelRef{h: C.WrapGetInvalidModelRef()} +var InvalidModelRef = ModelRef{h: C.HarfangGetInvalidModelRef()} // InvalidTextureRef ... -var InvalidTextureRef = TextureRef{h: C.WrapGetInvalidTextureRef()} +var InvalidTextureRef = TextureRef{h: C.HarfangGetInvalidTextureRef()} // InvalidMaterialRef ... -var InvalidMaterialRef = MaterialRef{h: C.WrapGetInvalidMaterialRef()} +var InvalidMaterialRef = MaterialRef{h: C.HarfangGetInvalidMaterialRef()} // InvalidPipelineProgramRef ... -var InvalidPipelineProgramRef = PipelineProgramRef{h: C.WrapGetInvalidPipelineProgramRef()} +var InvalidPipelineProgramRef = PipelineProgramRef{h: C.HarfangGetInvalidPipelineProgramRef()} // InvalidSceneAnimRef ... -var InvalidSceneAnimRef = SceneAnimRef{h: C.WrapGetInvalidSceneAnimRef()} +var InvalidSceneAnimRef = SceneAnimRef{h: C.HarfangGetInvalidSceneAnimRef()} // UnspecifiedAnimTime ... -var UnspecifiedAnimTime = int64(C.WrapGetUnspecifiedAnimTime()) +var UnspecifiedAnimTime = int64(C.HarfangGetUnspecifiedAnimTime()) // NullNode ... -var NullNode = Node{h: C.WrapGetNullNode()} +var NullNode = Node{h: C.HarfangGetNullNode()} // OnTextInput ... -var OnTextInput = SignalReturningVoidTakingConstCharPtr{h: C.WrapGetOnTextInput()} +var OnTextInput = SignalReturningVoidTakingConstCharPtr{h: C.HarfangGetOnTextInput()} // InvalidAudioStreamRef ... -var InvalidAudioStreamRef = int32(C.WrapGetInvalidAudioStreamRef()) +var InvalidAudioStreamRef = int32(C.HarfangGetInvalidAudioStreamRef()) diff --git a/linux/libharfang.a b/linux/libharfang.a index b496ab5..dd25119 100644 Binary files a/linux/libharfang.a and b/linux/libharfang.a differ diff --git a/linux/libhg_go.a b/linux/libhg_go.a index fc9ab65..b78b541 100644 Binary files a/linux/libhg_go.a and b/linux/libhg_go.a differ diff --git a/windows/libharfang.a b/windows/libharfang.a index 2be644f..4cf1ffe 100644 Binary files a/windows/libharfang.a and b/windows/libharfang.a differ diff --git a/windows/libhg_go.a b/windows/libhg_go.a index b2e88ff..04eb2bb 100644 Binary files a/windows/libhg_go.a and b/windows/libhg_go.a differ diff --git a/wrapper.h b/wrapper.h index 3288694..1af2d04 100644 --- a/wrapper.h +++ b/wrapper.h @@ -65,3356 +65,3485 @@ extern int GetAudioFrameFormat(const int id); extern int GetSourceRepeat(const int id); extern int GetSourceState(const int id); extern int GetOpenVRAA(const int id); +extern int GetOpenXRExtensions(const int id); +extern int GetOpenXRAA(const int id); +extern int GetHandsSide(const int id); +extern int GetXrHandJoint(const int id); extern int GetVideoFrameFormat(const int id); -typedef void *WrapVoidPointer; -typedef void *WrapUint16TList; -typedef void *WrapUint32TList; -typedef void *WrapStringList; -typedef void *WrapFile; -typedef void *WrapData; -typedef void *WrapDirEntry; -typedef void *WrapDirEntryList; -typedef void *WrapVec3; -typedef void *WrapVec4; -typedef void *WrapMat3; -typedef void *WrapMat4; -typedef void *WrapMat44; -typedef void *WrapQuaternion; -typedef void *WrapMinMax; -typedef void *WrapVec2; -typedef void *WrapVec2List; -typedef void *WrapIVec2; -typedef void *WrapIVec2List; -typedef void *WrapVec4List; -typedef void *WrapMat4List; -typedef void *WrapVec3List; -typedef void *WrapRect; -typedef void *WrapIntRect; -typedef void *WrapFrustum; -typedef void *WrapMonitorMode; -typedef void *WrapMonitorModeList; -typedef void *WrapMonitor; -typedef void *WrapMonitorList; -typedef void *WrapWindow; -typedef void *WrapColor; -typedef void *WrapColorList; -typedef void *WrapPicture; -typedef void *WrapFrameBufferHandle; -typedef void *WrapVertexLayout; -typedef void *WrapProgramHandle; -typedef void *WrapTextureInfo; -typedef void *WrapModelRef; -typedef void *WrapTextureRef; -typedef void *WrapMaterialRef; -typedef void *WrapPipelineProgramRef; -typedef void *WrapTexture; -typedef void *WrapUniformSetValue; -typedef void *WrapUniformSetValueList; -typedef void *WrapUniformSetTexture; -typedef void *WrapUniformSetTextureList; -typedef void *WrapPipelineProgram; -typedef void *WrapViewState; -typedef void *WrapMaterial; -typedef void *WrapMaterialList; -typedef void *WrapRenderState; -typedef void *WrapModel; -typedef void (*WrapFunctionReturningVoidTakingUint16T)(uint16_t); -typedef void *WrapPipelineResources; -typedef void *WrapFrameBuffer; -typedef void *WrapVertices; -typedef void *WrapPipeline; -typedef void *WrapPipelineInfo; -typedef void *WrapForwardPipeline; -typedef void *WrapForwardPipelineLight; -typedef void *WrapForwardPipelineLightList; -typedef void *WrapForwardPipelineLights; -typedef void *WrapForwardPipelineFog; -typedef void *WrapFont; -typedef void *WrapJSON; -typedef void *WrapLuaObject; -typedef void *WrapLuaObjectList; -typedef void *WrapSceneAnimRef; -typedef void *WrapSceneAnimRefList; -typedef void *WrapScenePlayAnimRef; -typedef void *WrapScenePlayAnimRefList; -typedef void *WrapScene; -typedef void *WrapSceneView; -typedef void *WrapNode; -typedef void *WrapTransformTRS; -typedef void *WrapTransform; -typedef void *WrapCameraZRange; -typedef void *WrapCamera; -typedef void *WrapObject; -typedef void *WrapLight; -typedef void *WrapContact; -typedef void *WrapContactList; -typedef void *WrapRigidBody; -typedef void *WrapCollision; -typedef void *WrapInstance; -typedef void *WrapScript; -typedef void *WrapScriptList; -typedef void *WrapNodeList; -typedef void *WrapRaycastOut; -typedef void *WrapRaycastOutList; -typedef void (*WrapFunctionReturningVoidTakingTimeNs)(int64_t); -typedef void *WrapTimeCallbackConnection; -typedef void *WrapSignalReturningVoidTakingTimeNs; -typedef void *WrapCanvas; -typedef void *WrapEnvironment; -typedef void *WrapSceneForwardPipelinePassViewId; -typedef void *WrapSceneForwardPipelineRenderData; -typedef void *WrapForwardPipelineAAAConfig; -typedef void *WrapForwardPipelineAAA; -typedef void *WrapNodePairContacts; -typedef void *WrapSceneBullet3Physics; -typedef void *WrapSceneLuaVM; -typedef void *WrapSceneClocks; -typedef void *WrapMouseState; -typedef void *WrapMouse; -typedef void *WrapKeyboardState; -typedef void *WrapKeyboard; -typedef void (*WrapFunctionReturningVoidTakingConstCharPtr)(const char *); -typedef void *WrapTextInputCallbackConnection; -typedef void *WrapSignalReturningVoidTakingConstCharPtr; -typedef void *WrapGamepadState; -typedef void *WrapGamepad; -typedef void *WrapJoystickState; -typedef void *WrapJoystick; -typedef void *WrapVRControllerState; -typedef void *WrapVRController; -typedef void *WrapVRGenericTrackerState; -typedef void *WrapVRGenericTracker; -typedef void *WrapDearImguiContext; -typedef void *WrapImFont; -typedef void *WrapImDrawList; -typedef void *WrapFileFilter; -typedef void *WrapFileFilterList; -typedef void *WrapStereoSourceState; -typedef void *WrapSpatializedSourceState; -typedef void *WrapOpenVREye; -typedef void *WrapOpenVREyeFrameBuffer; -typedef void *WrapOpenVRState; -typedef void *WrapSRanipalEyeState; -typedef void *WrapSRanipalState; -typedef void *WrapVertex; -typedef void *WrapModelBuilder; -typedef void *WrapGeometry; -typedef void *WrapGeometryBuilder; -typedef void *WrapIsoSurface; -typedef void *WrapBloom; -typedef void *WrapSAO; -typedef void *WrapProfilerFrame; -typedef void *WrapIVideoStreamer; -extern void WrapVoidPointerFree(WrapVoidPointer); -extern uint16_t WrapUint16TListGetOperator(WrapUint16TList h, int id); -extern void WrapUint16TListSetOperator(WrapUint16TList h, int id, uint16_t v); -extern int WrapUint16TListLenOperator(WrapUint16TList h); -extern WrapUint16TList WrapConstructorUint16TList(); -extern WrapUint16TList WrapConstructorUint16TListWithSequence(size_t sequenceToCSize, uint16_t *sequenceToCBuf); -extern void WrapUint16TListFree(WrapUint16TList); -extern void WrapClearUint16TList(WrapUint16TList this_); -extern void WrapReserveUint16TList(WrapUint16TList this_, size_t size); -extern void WrapPushBackUint16TList(WrapUint16TList this_, uint16_t v); -extern size_t WrapSizeUint16TList(WrapUint16TList this_); -extern uint16_t WrapAtUint16TList(WrapUint16TList this_, size_t idx); -extern uint32_t WrapUint32TListGetOperator(WrapUint32TList h, int id); -extern void WrapUint32TListSetOperator(WrapUint32TList h, int id, uint32_t v); -extern int WrapUint32TListLenOperator(WrapUint32TList h); -extern WrapUint32TList WrapConstructorUint32TList(); -extern WrapUint32TList WrapConstructorUint32TListWithSequence(size_t sequenceToCSize, uint32_t *sequenceToCBuf); -extern void WrapUint32TListFree(WrapUint32TList); -extern void WrapClearUint32TList(WrapUint32TList this_); -extern void WrapReserveUint32TList(WrapUint32TList this_, size_t size); -extern void WrapPushBackUint32TList(WrapUint32TList this_, uint32_t v); -extern size_t WrapSizeUint32TList(WrapUint32TList this_); -extern uint32_t WrapAtUint32TList(WrapUint32TList this_, size_t idx); -extern const char *WrapStringListGetOperator(WrapStringList h, int id); -extern void WrapStringListSetOperator(WrapStringList h, int id, const char *v); -extern int WrapStringListLenOperator(WrapStringList h); -extern WrapStringList WrapConstructorStringList(); -extern WrapStringList WrapConstructorStringListWithSequence(size_t sequenceToCSize, const char **sequenceToCBuf); -extern void WrapStringListFree(WrapStringList); -extern void WrapClearStringList(WrapStringList this_); -extern void WrapReserveStringList(WrapStringList this_, size_t size); -extern void WrapPushBackStringList(WrapStringList this_, const char *v); -extern size_t WrapSizeStringList(WrapStringList this_); -extern const char *WrapAtStringList(WrapStringList this_, size_t idx); -extern void WrapFileFree(WrapFile); -extern WrapData WrapConstructorData(); -extern void WrapDataFree(WrapData); -extern size_t WrapGetSizeData(WrapData this_); -extern void WrapRewindData(WrapData this_); -extern int WrapDirEntryGetType(WrapDirEntry h); -extern void WrapDirEntrySetType(WrapDirEntry h, int v); -extern const char *WrapDirEntryGetName(WrapDirEntry h); -extern void WrapDirEntrySetName(WrapDirEntry h, const char *v); -extern void WrapDirEntryFree(WrapDirEntry); -extern WrapDirEntry WrapDirEntryListGetOperator(WrapDirEntryList h, int id); -extern void WrapDirEntryListSetOperator(WrapDirEntryList h, int id, WrapDirEntry v); -extern int WrapDirEntryListLenOperator(WrapDirEntryList h); -extern WrapDirEntryList WrapConstructorDirEntryList(); -extern WrapDirEntryList WrapConstructorDirEntryListWithSequence(size_t sequenceToCSize, WrapDirEntry *sequenceToCBuf); -extern void WrapDirEntryListFree(WrapDirEntryList); -extern void WrapClearDirEntryList(WrapDirEntryList this_); -extern void WrapReserveDirEntryList(WrapDirEntryList this_, size_t size); -extern void WrapPushBackDirEntryList(WrapDirEntryList this_, WrapDirEntry v); -extern size_t WrapSizeDirEntryList(WrapDirEntryList this_); -extern WrapDirEntry WrapAtDirEntryList(WrapDirEntryList this_, size_t idx); -extern WrapVec3 WrapVec3GetZero(); -extern WrapVec3 WrapVec3GetOne(); -extern WrapVec3 WrapVec3GetLeft(); -extern WrapVec3 WrapVec3GetRight(); -extern WrapVec3 WrapVec3GetUp(); -extern WrapVec3 WrapVec3GetDown(); -extern WrapVec3 WrapVec3GetFront(); -extern WrapVec3 WrapVec3GetBack(); -extern float WrapVec3GetX(WrapVec3 h); -extern void WrapVec3SetX(WrapVec3 h, float v); -extern float WrapVec3GetY(WrapVec3 h); -extern void WrapVec3SetY(WrapVec3 h, float v); -extern float WrapVec3GetZ(WrapVec3 h); -extern void WrapVec3SetZ(WrapVec3 h, float v); -extern WrapVec3 WrapConstructorVec3(); -extern WrapVec3 WrapConstructorVec3WithXYZ(float x, float y, float z); -extern WrapVec3 WrapConstructorVec3WithV(const WrapVec2 v); -extern WrapVec3 WrapConstructorVec3WithIVec2V(const WrapIVec2 v); -extern WrapVec3 WrapConstructorVec3WithVec3V(const WrapVec3 v); -extern WrapVec3 WrapConstructorVec3WithVec4V(const WrapVec4 v); -extern void WrapVec3Free(WrapVec3); -extern WrapVec3 WrapAddVec3(WrapVec3 this_, WrapVec3 v); -extern WrapVec3 WrapAddVec3WithK(WrapVec3 this_, float k); -extern WrapVec3 WrapSubVec3(WrapVec3 this_, WrapVec3 v); -extern WrapVec3 WrapSubVec3WithK(WrapVec3 this_, float k); -extern WrapVec3 WrapDivVec3(WrapVec3 this_, WrapVec3 v); -extern WrapVec3 WrapDivVec3WithK(WrapVec3 this_, float k); -extern WrapVec3 WrapMulVec3(WrapVec3 this_, const WrapVec3 v); -extern WrapVec3 WrapMulVec3WithK(WrapVec3 this_, float k); -extern void WrapInplaceAddVec3(WrapVec3 this_, WrapVec3 v); -extern void WrapInplaceAddVec3WithK(WrapVec3 this_, float k); -extern void WrapInplaceSubVec3(WrapVec3 this_, WrapVec3 v); -extern void WrapInplaceSubVec3WithK(WrapVec3 this_, float k); -extern void WrapInplaceMulVec3(WrapVec3 this_, WrapVec3 v); -extern void WrapInplaceMulVec3WithK(WrapVec3 this_, float k); -extern void WrapInplaceDivVec3(WrapVec3 this_, WrapVec3 v); -extern void WrapInplaceDivVec3WithK(WrapVec3 this_, float k); -extern bool WrapEqVec3(WrapVec3 this_, const WrapVec3 v); -extern bool WrapNeVec3(WrapVec3 this_, const WrapVec3 v); -extern void WrapSetVec3(WrapVec3 this_, float x, float y, float z); -extern float WrapVec4GetX(WrapVec4 h); -extern void WrapVec4SetX(WrapVec4 h, float v); -extern float WrapVec4GetY(WrapVec4 h); -extern void WrapVec4SetY(WrapVec4 h, float v); -extern float WrapVec4GetZ(WrapVec4 h); -extern void WrapVec4SetZ(WrapVec4 h, float v); -extern float WrapVec4GetW(WrapVec4 h); -extern void WrapVec4SetW(WrapVec4 h, float v); -extern WrapVec4 WrapConstructorVec4(); -extern WrapVec4 WrapConstructorVec4WithXYZ(float x, float y, float z); -extern WrapVec4 WrapConstructorVec4WithXYZW(float x, float y, float z, float w); -extern WrapVec4 WrapConstructorVec4WithV(const WrapVec2 v); -extern WrapVec4 WrapConstructorVec4WithIVec2V(const WrapIVec2 v); -extern WrapVec4 WrapConstructorVec4WithVec3V(const WrapVec3 v); -extern WrapVec4 WrapConstructorVec4WithVec4V(const WrapVec4 v); -extern void WrapVec4Free(WrapVec4); -extern WrapVec4 WrapAddVec4(WrapVec4 this_, WrapVec4 v); -extern WrapVec4 WrapAddVec4WithK(WrapVec4 this_, float k); -extern WrapVec4 WrapSubVec4(WrapVec4 this_, WrapVec4 v); -extern WrapVec4 WrapSubVec4WithK(WrapVec4 this_, float k); -extern WrapVec4 WrapDivVec4(WrapVec4 this_, WrapVec4 v); -extern WrapVec4 WrapDivVec4WithK(WrapVec4 this_, float k); -extern WrapVec4 WrapMulVec4(WrapVec4 this_, WrapVec4 v); -extern WrapVec4 WrapMulVec4WithK(WrapVec4 this_, float k); -extern void WrapInplaceAddVec4(WrapVec4 this_, WrapVec4 v); -extern void WrapInplaceAddVec4WithK(WrapVec4 this_, float k); -extern void WrapInplaceSubVec4(WrapVec4 this_, WrapVec4 v); -extern void WrapInplaceSubVec4WithK(WrapVec4 this_, float k); -extern void WrapInplaceMulVec4(WrapVec4 this_, WrapVec4 v); -extern void WrapInplaceMulVec4WithK(WrapVec4 this_, float k); -extern void WrapInplaceDivVec4(WrapVec4 this_, WrapVec4 v); -extern void WrapInplaceDivVec4WithK(WrapVec4 this_, float k); -extern void WrapSetVec4(WrapVec4 this_, float x, float y, float z); -extern void WrapSetVec4WithW(WrapVec4 this_, float x, float y, float z, float w); -extern WrapMat3 WrapMat3GetZero(); -extern WrapMat3 WrapMat3GetIdentity(); -extern WrapMat3 WrapConstructorMat3(); -extern WrapMat3 WrapConstructorMat3WithM(const WrapMat4 m); -extern WrapMat3 WrapConstructorMat3WithXYZ(const WrapVec3 x, const WrapVec3 y, const WrapVec3 z); -extern void WrapMat3Free(WrapMat3); -extern WrapMat3 WrapAddMat3(WrapMat3 this_, WrapMat3 m); -extern WrapMat3 WrapSubMat3(WrapMat3 this_, WrapMat3 m); -extern WrapMat3 WrapMulMat3(WrapMat3 this_, const float v); -extern WrapVec2 WrapMulMat3WithV(WrapMat3 this_, const WrapVec2 v); -extern WrapVec3 WrapMulMat3WithVec3V(WrapMat3 this_, const WrapVec3 v); -extern WrapVec4 WrapMulMat3WithVec4V(WrapMat3 this_, const WrapVec4 v); -extern WrapMat3 WrapMulMat3WithM(WrapMat3 this_, const WrapMat3 m); -extern void WrapInplaceAddMat3(WrapMat3 this_, const WrapMat3 m); -extern void WrapInplaceSubMat3(WrapMat3 this_, const WrapMat3 m); -extern void WrapInplaceMulMat3(WrapMat3 this_, const float k); -extern void WrapInplaceMulMat3WithM(WrapMat3 this_, const WrapMat3 m); -extern bool WrapEqMat3(WrapMat3 this_, const WrapMat3 m); -extern bool WrapNeMat3(WrapMat3 this_, const WrapMat3 m); -extern WrapMat4 WrapMat4GetZero(); -extern WrapMat4 WrapMat4GetIdentity(); -extern WrapMat4 WrapConstructorMat4(); -extern WrapMat4 WrapConstructorMat4WithM(const WrapMat4 m); -extern WrapMat4 WrapConstructorMat4WithM00M10M20M01M11M21M02M12M22M03M13M23( +typedef void *HarfangVoidPointer; +typedef void *HarfangIntList; +typedef void *HarfangUint16TList; +typedef void *HarfangUint32TList; +typedef void *HarfangStringList; +typedef void *HarfangFile; +typedef void *HarfangData; +typedef void *HarfangDirEntry; +typedef void *HarfangDirEntryList; +typedef void *HarfangVec3; +typedef void *HarfangVec4; +typedef void *HarfangMat3; +typedef void *HarfangMat4; +typedef void *HarfangMat44; +typedef void *HarfangQuaternion; +typedef void *HarfangMinMax; +typedef void *HarfangVec2; +typedef void *HarfangVec2List; +typedef void *HarfangIVec2; +typedef void *HarfangIVec2List; +typedef void *HarfangVec4List; +typedef void *HarfangMat4List; +typedef void *HarfangVec3List; +typedef void *HarfangRect; +typedef void *HarfangIntRect; +typedef void *HarfangFrustum; +typedef void *HarfangMonitorMode; +typedef void *HarfangMonitorModeList; +typedef void *HarfangMonitor; +typedef void *HarfangMonitorList; +typedef void *HarfangWindow; +typedef void *HarfangColor; +typedef void *HarfangColorList; +typedef void *HarfangPicture; +typedef void *HarfangFrameBufferHandle; +typedef void *HarfangVertexLayout; +typedef void *HarfangProgramHandle; +typedef void *HarfangTextureInfo; +typedef void *HarfangModelRef; +typedef void *HarfangTextureRef; +typedef void *HarfangMaterialRef; +typedef void *HarfangPipelineProgramRef; +typedef void *HarfangTexture; +typedef void *HarfangUniformSetValue; +typedef void *HarfangUniformSetValueList; +typedef void *HarfangUniformSetTexture; +typedef void *HarfangUniformSetTextureList; +typedef void *HarfangPipelineProgram; +typedef void *HarfangViewState; +typedef void *HarfangMaterial; +typedef void *HarfangMaterialList; +typedef void *HarfangRenderState; +typedef void *HarfangModel; +typedef void (*HarfangFunctionReturningVoidTakingUint16T)(uint16_t); +typedef void *HarfangPipelineResources; +typedef void *HarfangFrameBuffer; +typedef void *HarfangVertices; +typedef void *HarfangPipeline; +typedef void *HarfangPipelineInfo; +typedef void *HarfangForwardPipeline; +typedef void *HarfangForwardPipelineLight; +typedef void *HarfangForwardPipelineLightList; +typedef void *HarfangForwardPipelineLights; +typedef void *HarfangForwardPipelineFog; +typedef void *HarfangFont; +typedef void *HarfangJSON; +typedef void *HarfangLuaObject; +typedef void *HarfangLuaObjectList; +typedef void *HarfangSceneAnimRef; +typedef void *HarfangSceneAnimRefList; +typedef void *HarfangScenePlayAnimRef; +typedef void *HarfangScenePlayAnimRefList; +typedef void *HarfangScene; +typedef void *HarfangSceneView; +typedef void *HarfangNode; +typedef void *HarfangTransformTRS; +typedef void *HarfangTransform; +typedef void *HarfangCameraZRange; +typedef void *HarfangCamera; +typedef void *HarfangObject; +typedef void *HarfangLight; +typedef void *HarfangContact; +typedef void *HarfangContactList; +typedef void *HarfangRigidBody; +typedef void *HarfangCollision; +typedef void *HarfangInstance; +typedef void *HarfangScript; +typedef void *HarfangScriptList; +typedef void *HarfangNodeList; +typedef void *HarfangRaycastOut; +typedef void *HarfangRaycastOutList; +typedef void (*HarfangFunctionReturningVoidTakingTimeNs)(int64_t); +typedef void *HarfangTimeCallbackConnection; +typedef void *HarfangSignalReturningVoidTakingTimeNs; +typedef void *HarfangCanvas; +typedef void *HarfangEnvironment; +typedef void *HarfangSceneForwardPipelinePassViewId; +typedef void *HarfangSceneForwardPipelineRenderData; +typedef void *HarfangForwardPipelineAAAConfig; +typedef void *HarfangForwardPipelineAAA; +typedef void *HarfangNodePairContacts; +typedef void *HarfangBtGeneric6DofConstraint; +typedef void *HarfangSceneBullet3Physics; +typedef void (*HarfangFunctionReturningVoidTakingSceneBullet3PhysicsRefTimeNs)(HarfangSceneBullet3Physics, int64_t); +typedef void *HarfangSceneLuaVM; +typedef void *HarfangSceneClocks; +typedef void *HarfangMouseState; +typedef void *HarfangMouse; +typedef void *HarfangKeyboardState; +typedef void *HarfangKeyboard; +typedef void (*HarfangFunctionReturningVoidTakingConstCharPtr)(const char *); +typedef void *HarfangTextInputCallbackConnection; +typedef void *HarfangSignalReturningVoidTakingConstCharPtr; +typedef void *HarfangGamepadState; +typedef void *HarfangGamepad; +typedef void *HarfangJoystickState; +typedef void *HarfangJoystick; +typedef void *HarfangVRControllerState; +typedef void *HarfangVRController; +typedef void *HarfangVRGenericTrackerState; +typedef void *HarfangVRGenericTracker; +typedef void *HarfangDearImguiContext; +typedef void *HarfangImFont; +typedef void *HarfangImDrawList; +typedef void *HarfangFileFilter; +typedef void *HarfangFileFilterList; +typedef void *HarfangStereoSourceState; +typedef void *HarfangSpatializedSourceState; +typedef void *HarfangOpenVREye; +typedef void *HarfangOpenVREyeFrameBuffer; +typedef void *HarfangOpenVRState; +typedef void *HarfangOpenXREyeFrameBuffer; +typedef void *HarfangOpenXREyeFrameBufferList; +typedef void *HarfangOpenXRFrameInfo; +typedef void (*HarfangFunctionReturningVoidTakingMat4Ptr)(HarfangMat4); +typedef uint16_t (*HarfangFunctionReturningUint16TTakingRectOfIntPtrViewStatePtrUint16TPtrFrameBufferHandlePtr)( + HarfangIntRect, HarfangViewState, uint16_t *, HarfangFrameBufferHandle); +typedef void *HarfangSRanipalEyeState; +typedef void *HarfangSRanipalState; +typedef void *HarfangVertex; +typedef void *HarfangModelBuilder; +typedef void *HarfangGeometry; +typedef void *HarfangGeometryBuilder; +typedef void *HarfangIsoSurface; +typedef void *HarfangBloom; +typedef void *HarfangSAO; +typedef void *HarfangProfilerFrame; +typedef void *HarfangIVideoStreamer; +extern void HarfangVoidPointerFree(HarfangVoidPointer); +extern int HarfangIntListGetOperator(HarfangIntList h, int id); +extern void HarfangIntListSetOperator(HarfangIntList h, int id, int v); +extern int HarfangIntListLenOperator(HarfangIntList h); +extern HarfangIntList HarfangConstructorIntList(); +extern HarfangIntList HarfangConstructorIntListWithSequence(size_t sequenceToCSize, int *sequenceToCBuf); +extern void HarfangIntListFree(HarfangIntList); +extern void HarfangClearIntList(HarfangIntList this_); +extern void HarfangReserveIntList(HarfangIntList this_, size_t size); +extern void HarfangPushBackIntList(HarfangIntList this_, int v); +extern size_t HarfangSizeIntList(HarfangIntList this_); +extern int HarfangAtIntList(HarfangIntList this_, size_t idx); +extern uint16_t HarfangUint16TListGetOperator(HarfangUint16TList h, int id); +extern void HarfangUint16TListSetOperator(HarfangUint16TList h, int id, uint16_t v); +extern int HarfangUint16TListLenOperator(HarfangUint16TList h); +extern HarfangUint16TList HarfangConstructorUint16TList(); +extern HarfangUint16TList HarfangConstructorUint16TListWithSequence(size_t sequenceToCSize, uint16_t *sequenceToCBuf); +extern void HarfangUint16TListFree(HarfangUint16TList); +extern void HarfangClearUint16TList(HarfangUint16TList this_); +extern void HarfangReserveUint16TList(HarfangUint16TList this_, size_t size); +extern void HarfangPushBackUint16TList(HarfangUint16TList this_, uint16_t v); +extern size_t HarfangSizeUint16TList(HarfangUint16TList this_); +extern uint16_t HarfangAtUint16TList(HarfangUint16TList this_, size_t idx); +extern uint32_t HarfangUint32TListGetOperator(HarfangUint32TList h, int id); +extern void HarfangUint32TListSetOperator(HarfangUint32TList h, int id, uint32_t v); +extern int HarfangUint32TListLenOperator(HarfangUint32TList h); +extern HarfangUint32TList HarfangConstructorUint32TList(); +extern HarfangUint32TList HarfangConstructorUint32TListWithSequence(size_t sequenceToCSize, uint32_t *sequenceToCBuf); +extern void HarfangUint32TListFree(HarfangUint32TList); +extern void HarfangClearUint32TList(HarfangUint32TList this_); +extern void HarfangReserveUint32TList(HarfangUint32TList this_, size_t size); +extern void HarfangPushBackUint32TList(HarfangUint32TList this_, uint32_t v); +extern size_t HarfangSizeUint32TList(HarfangUint32TList this_); +extern uint32_t HarfangAtUint32TList(HarfangUint32TList this_, size_t idx); +extern const char *HarfangStringListGetOperator(HarfangStringList h, int id); +extern void HarfangStringListSetOperator(HarfangStringList h, int id, const char *v); +extern int HarfangStringListLenOperator(HarfangStringList h); +extern HarfangStringList HarfangConstructorStringList(); +extern HarfangStringList HarfangConstructorStringListWithSequence(size_t sequenceToCSize, const char **sequenceToCBuf); +extern void HarfangStringListFree(HarfangStringList); +extern void HarfangClearStringList(HarfangStringList this_); +extern void HarfangReserveStringList(HarfangStringList this_, size_t size); +extern void HarfangPushBackStringList(HarfangStringList this_, const char *v); +extern size_t HarfangSizeStringList(HarfangStringList this_); +extern const char *HarfangAtStringList(HarfangStringList this_, size_t idx); +extern void HarfangFileFree(HarfangFile); +extern HarfangData HarfangConstructorData(); +extern void HarfangDataFree(HarfangData); +extern size_t HarfangGetSizeData(HarfangData this_); +extern void HarfangRewindData(HarfangData this_); +extern int HarfangDirEntryGetType(HarfangDirEntry h); +extern void HarfangDirEntrySetType(HarfangDirEntry h, int v); +extern const char *HarfangDirEntryGetName(HarfangDirEntry h); +extern void HarfangDirEntrySetName(HarfangDirEntry h, const char *v); +extern void HarfangDirEntryFree(HarfangDirEntry); +extern HarfangDirEntry HarfangDirEntryListGetOperator(HarfangDirEntryList h, int id); +extern void HarfangDirEntryListSetOperator(HarfangDirEntryList h, int id, HarfangDirEntry v); +extern int HarfangDirEntryListLenOperator(HarfangDirEntryList h); +extern HarfangDirEntryList HarfangConstructorDirEntryList(); +extern HarfangDirEntryList HarfangConstructorDirEntryListWithSequence(size_t sequenceToCSize, HarfangDirEntry *sequenceToCBuf); +extern void HarfangDirEntryListFree(HarfangDirEntryList); +extern void HarfangClearDirEntryList(HarfangDirEntryList this_); +extern void HarfangReserveDirEntryList(HarfangDirEntryList this_, size_t size); +extern void HarfangPushBackDirEntryList(HarfangDirEntryList this_, HarfangDirEntry v); +extern size_t HarfangSizeDirEntryList(HarfangDirEntryList this_); +extern HarfangDirEntry HarfangAtDirEntryList(HarfangDirEntryList this_, size_t idx); +extern HarfangVec3 HarfangVec3GetZero(); +extern HarfangVec3 HarfangVec3GetOne(); +extern HarfangVec3 HarfangVec3GetLeft(); +extern HarfangVec3 HarfangVec3GetRight(); +extern HarfangVec3 HarfangVec3GetUp(); +extern HarfangVec3 HarfangVec3GetDown(); +extern HarfangVec3 HarfangVec3GetFront(); +extern HarfangVec3 HarfangVec3GetBack(); +extern float HarfangVec3GetX(HarfangVec3 h); +extern void HarfangVec3SetX(HarfangVec3 h, float v); +extern float HarfangVec3GetY(HarfangVec3 h); +extern void HarfangVec3SetY(HarfangVec3 h, float v); +extern float HarfangVec3GetZ(HarfangVec3 h); +extern void HarfangVec3SetZ(HarfangVec3 h, float v); +extern HarfangVec3 HarfangConstructorVec3(); +extern HarfangVec3 HarfangConstructorVec3WithXYZ(float x, float y, float z); +extern HarfangVec3 HarfangConstructorVec3WithV(const HarfangVec2 v); +extern HarfangVec3 HarfangConstructorVec3WithIVec2V(const HarfangIVec2 v); +extern HarfangVec3 HarfangConstructorVec3WithVec3V(const HarfangVec3 v); +extern HarfangVec3 HarfangConstructorVec3WithVec4V(const HarfangVec4 v); +extern void HarfangVec3Free(HarfangVec3); +extern HarfangVec3 HarfangAddVec3(HarfangVec3 this_, HarfangVec3 v); +extern HarfangVec3 HarfangAddVec3WithK(HarfangVec3 this_, float k); +extern HarfangVec3 HarfangSubVec3(HarfangVec3 this_, HarfangVec3 v); +extern HarfangVec3 HarfangSubVec3WithK(HarfangVec3 this_, float k); +extern HarfangVec3 HarfangDivVec3(HarfangVec3 this_, HarfangVec3 v); +extern HarfangVec3 HarfangDivVec3WithK(HarfangVec3 this_, float k); +extern HarfangVec3 HarfangMulVec3(HarfangVec3 this_, const HarfangVec3 v); +extern HarfangVec3 HarfangMulVec3WithK(HarfangVec3 this_, float k); +extern void HarfangInplaceAddVec3(HarfangVec3 this_, HarfangVec3 v); +extern void HarfangInplaceAddVec3WithK(HarfangVec3 this_, float k); +extern void HarfangInplaceSubVec3(HarfangVec3 this_, HarfangVec3 v); +extern void HarfangInplaceSubVec3WithK(HarfangVec3 this_, float k); +extern void HarfangInplaceMulVec3(HarfangVec3 this_, HarfangVec3 v); +extern void HarfangInplaceMulVec3WithK(HarfangVec3 this_, float k); +extern void HarfangInplaceDivVec3(HarfangVec3 this_, HarfangVec3 v); +extern void HarfangInplaceDivVec3WithK(HarfangVec3 this_, float k); +extern bool HarfangEqVec3(HarfangVec3 this_, const HarfangVec3 v); +extern bool HarfangNeVec3(HarfangVec3 this_, const HarfangVec3 v); +extern void HarfangSetVec3(HarfangVec3 this_, float x, float y, float z); +extern float HarfangVec4GetX(HarfangVec4 h); +extern void HarfangVec4SetX(HarfangVec4 h, float v); +extern float HarfangVec4GetY(HarfangVec4 h); +extern void HarfangVec4SetY(HarfangVec4 h, float v); +extern float HarfangVec4GetZ(HarfangVec4 h); +extern void HarfangVec4SetZ(HarfangVec4 h, float v); +extern float HarfangVec4GetW(HarfangVec4 h); +extern void HarfangVec4SetW(HarfangVec4 h, float v); +extern HarfangVec4 HarfangConstructorVec4(); +extern HarfangVec4 HarfangConstructorVec4WithXYZ(float x, float y, float z); +extern HarfangVec4 HarfangConstructorVec4WithXYZW(float x, float y, float z, float w); +extern HarfangVec4 HarfangConstructorVec4WithV(const HarfangVec2 v); +extern HarfangVec4 HarfangConstructorVec4WithIVec2V(const HarfangIVec2 v); +extern HarfangVec4 HarfangConstructorVec4WithVec3V(const HarfangVec3 v); +extern HarfangVec4 HarfangConstructorVec4WithVec4V(const HarfangVec4 v); +extern void HarfangVec4Free(HarfangVec4); +extern HarfangVec4 HarfangAddVec4(HarfangVec4 this_, HarfangVec4 v); +extern HarfangVec4 HarfangAddVec4WithK(HarfangVec4 this_, float k); +extern HarfangVec4 HarfangSubVec4(HarfangVec4 this_, HarfangVec4 v); +extern HarfangVec4 HarfangSubVec4WithK(HarfangVec4 this_, float k); +extern HarfangVec4 HarfangDivVec4(HarfangVec4 this_, HarfangVec4 v); +extern HarfangVec4 HarfangDivVec4WithK(HarfangVec4 this_, float k); +extern HarfangVec4 HarfangMulVec4(HarfangVec4 this_, HarfangVec4 v); +extern HarfangVec4 HarfangMulVec4WithK(HarfangVec4 this_, float k); +extern void HarfangInplaceAddVec4(HarfangVec4 this_, HarfangVec4 v); +extern void HarfangInplaceAddVec4WithK(HarfangVec4 this_, float k); +extern void HarfangInplaceSubVec4(HarfangVec4 this_, HarfangVec4 v); +extern void HarfangInplaceSubVec4WithK(HarfangVec4 this_, float k); +extern void HarfangInplaceMulVec4(HarfangVec4 this_, HarfangVec4 v); +extern void HarfangInplaceMulVec4WithK(HarfangVec4 this_, float k); +extern void HarfangInplaceDivVec4(HarfangVec4 this_, HarfangVec4 v); +extern void HarfangInplaceDivVec4WithK(HarfangVec4 this_, float k); +extern void HarfangSetVec4(HarfangVec4 this_, float x, float y, float z); +extern void HarfangSetVec4WithW(HarfangVec4 this_, float x, float y, float z, float w); +extern HarfangMat3 HarfangMat3GetZero(); +extern HarfangMat3 HarfangMat3GetIdentity(); +extern HarfangMat3 HarfangConstructorMat3(); +extern HarfangMat3 HarfangConstructorMat3WithM(const HarfangMat4 m); +extern HarfangMat3 HarfangConstructorMat3WithXYZ(const HarfangVec3 x, const HarfangVec3 y, const HarfangVec3 z); +extern void HarfangMat3Free(HarfangMat3); +extern HarfangMat3 HarfangAddMat3(HarfangMat3 this_, HarfangMat3 m); +extern HarfangMat3 HarfangSubMat3(HarfangMat3 this_, HarfangMat3 m); +extern HarfangMat3 HarfangMulMat3(HarfangMat3 this_, const float v); +extern HarfangVec2 HarfangMulMat3WithV(HarfangMat3 this_, const HarfangVec2 v); +extern HarfangVec3 HarfangMulMat3WithVec3V(HarfangMat3 this_, const HarfangVec3 v); +extern HarfangVec4 HarfangMulMat3WithVec4V(HarfangMat3 this_, const HarfangVec4 v); +extern HarfangMat3 HarfangMulMat3WithM(HarfangMat3 this_, const HarfangMat3 m); +extern void HarfangInplaceAddMat3(HarfangMat3 this_, const HarfangMat3 m); +extern void HarfangInplaceSubMat3(HarfangMat3 this_, const HarfangMat3 m); +extern void HarfangInplaceMulMat3(HarfangMat3 this_, const float k); +extern void HarfangInplaceMulMat3WithM(HarfangMat3 this_, const HarfangMat3 m); +extern bool HarfangEqMat3(HarfangMat3 this_, const HarfangMat3 m); +extern bool HarfangNeMat3(HarfangMat3 this_, const HarfangMat3 m); +extern HarfangMat4 HarfangMat4GetZero(); +extern HarfangMat4 HarfangMat4GetIdentity(); +extern HarfangMat4 HarfangConstructorMat4(); +extern HarfangMat4 HarfangConstructorMat4WithM(const HarfangMat4 m); +extern HarfangMat4 HarfangConstructorMat4WithM00M10M20M01M11M21M02M12M22M03M13M23( float m00, float m10, float m20, float m01, float m11, float m21, float m02, float m12, float m22, float m03, float m13, float m23); -extern WrapMat4 WrapConstructorMat4WithMat3M(const WrapMat3 m); -extern void WrapMat4Free(WrapMat4); -extern WrapMat4 WrapAddMat4(WrapMat4 this_, WrapMat4 m); -extern WrapMat4 WrapSubMat4(WrapMat4 this_, WrapMat4 m); -extern WrapMat4 WrapMulMat4(WrapMat4 this_, const float v); -extern WrapMat4 WrapMulMat4WithM(WrapMat4 this_, const WrapMat4 m); -extern WrapVec3 WrapMulMat4WithV(WrapMat4 this_, const WrapVec3 v); -extern WrapVec4 WrapMulMat4WithVec4V(WrapMat4 this_, const WrapVec4 v); -extern WrapMat44 WrapMulMat4WithMat44M(WrapMat4 this_, const WrapMat44 m); -extern bool WrapEqMat4(WrapMat4 this_, const WrapMat4 m); -extern bool WrapNeMat4(WrapMat4 this_, const WrapMat4 m); -extern WrapMat44 WrapMat44GetZero(); -extern WrapMat44 WrapMat44GetIdentity(); -extern WrapMat44 WrapConstructorMat44(); -extern WrapMat44 WrapConstructorMat44WithM00M10M20M30M01M11M21M31M02M12M22M32M03M13M23M33(float m00, float m10, float m20, float m30, float m01, float m11, - float m21, float m31, float m02, float m12, float m22, float m32, float m03, float m13, float m23, float m33); -extern void WrapMat44Free(WrapMat44); -extern WrapMat44 WrapMulMat44(WrapMat44 this_, const WrapMat4 m); -extern WrapMat44 WrapMulMat44WithM(WrapMat44 this_, const WrapMat44 m); -extern WrapVec3 WrapMulMat44WithV(WrapMat44 this_, const WrapVec3 v); -extern WrapVec4 WrapMulMat44WithVec4V(WrapMat44 this_, const WrapVec4 v); -extern float WrapQuaternionGetX(WrapQuaternion h); -extern void WrapQuaternionSetX(WrapQuaternion h, float v); -extern float WrapQuaternionGetY(WrapQuaternion h); -extern void WrapQuaternionSetY(WrapQuaternion h, float v); -extern float WrapQuaternionGetZ(WrapQuaternion h); -extern void WrapQuaternionSetZ(WrapQuaternion h, float v); -extern float WrapQuaternionGetW(WrapQuaternion h); -extern void WrapQuaternionSetW(WrapQuaternion h, float v); -extern WrapQuaternion WrapConstructorQuaternion(); -extern WrapQuaternion WrapConstructorQuaternionWithXYZW(float x, float y, float z, float w); -extern WrapQuaternion WrapConstructorQuaternionWithQ(const WrapQuaternion q); -extern void WrapQuaternionFree(WrapQuaternion); -extern WrapQuaternion WrapAddQuaternion(WrapQuaternion this_, float v); -extern WrapQuaternion WrapAddQuaternionWithQ(WrapQuaternion this_, WrapQuaternion q); -extern WrapQuaternion WrapSubQuaternion(WrapQuaternion this_, float v); -extern WrapQuaternion WrapSubQuaternionWithQ(WrapQuaternion this_, WrapQuaternion q); -extern WrapQuaternion WrapMulQuaternion(WrapQuaternion this_, float v); -extern WrapQuaternion WrapMulQuaternionWithQ(WrapQuaternion this_, WrapQuaternion q); -extern WrapQuaternion WrapDivQuaternion(WrapQuaternion this_, float v); -extern void WrapInplaceAddQuaternion(WrapQuaternion this_, float v); -extern void WrapInplaceAddQuaternionWithQ(WrapQuaternion this_, const WrapQuaternion q); -extern void WrapInplaceSubQuaternion(WrapQuaternion this_, float v); -extern void WrapInplaceSubQuaternionWithQ(WrapQuaternion this_, const WrapQuaternion q); -extern void WrapInplaceMulQuaternion(WrapQuaternion this_, float v); -extern void WrapInplaceMulQuaternionWithQ(WrapQuaternion this_, const WrapQuaternion q); -extern void WrapInplaceDivQuaternion(WrapQuaternion this_, float v); -extern WrapVec3 WrapMinMaxGetMn(WrapMinMax h); -extern void WrapMinMaxSetMn(WrapMinMax h, WrapVec3 v); -extern WrapVec3 WrapMinMaxGetMx(WrapMinMax h); -extern void WrapMinMaxSetMx(WrapMinMax h, WrapVec3 v); -extern WrapMinMax WrapConstructorMinMax(); -extern WrapMinMax WrapConstructorMinMaxWithMinMax(const WrapVec3 min, const WrapVec3 max); -extern void WrapMinMaxFree(WrapMinMax); -extern WrapMinMax WrapMulMinMax(WrapMinMax this_, const WrapMat4 m); -extern bool WrapEqMinMax(WrapMinMax this_, const WrapMinMax minmax); -extern bool WrapNeMinMax(WrapMinMax this_, const WrapMinMax minmax); -extern WrapVec2 WrapVec2GetZero(); -extern WrapVec2 WrapVec2GetOne(); -extern float WrapVec2GetX(WrapVec2 h); -extern void WrapVec2SetX(WrapVec2 h, float v); -extern float WrapVec2GetY(WrapVec2 h); -extern void WrapVec2SetY(WrapVec2 h, float v); -extern WrapVec2 WrapConstructorVec2(); -extern WrapVec2 WrapConstructorVec2WithXY(float x, float y); -extern WrapVec2 WrapConstructorVec2WithV(const WrapVec2 v); -extern WrapVec2 WrapConstructorVec2WithVec3V(const WrapVec3 v); -extern WrapVec2 WrapConstructorVec2WithVec4V(const WrapVec4 v); -extern void WrapVec2Free(WrapVec2); -extern WrapVec2 WrapAddVec2(WrapVec2 this_, const WrapVec2 v); -extern WrapVec2 WrapAddVec2WithK(WrapVec2 this_, const float k); -extern WrapVec2 WrapSubVec2(WrapVec2 this_, const WrapVec2 v); -extern WrapVec2 WrapSubVec2WithK(WrapVec2 this_, const float k); -extern WrapVec2 WrapDivVec2(WrapVec2 this_, const WrapVec2 v); -extern WrapVec2 WrapDivVec2WithK(WrapVec2 this_, const float k); -extern WrapVec2 WrapMulVec2(WrapVec2 this_, const WrapVec2 v); -extern WrapVec2 WrapMulVec2WithK(WrapVec2 this_, const float k); -extern WrapVec2 WrapMulVec2WithM(WrapVec2 this_, const WrapMat3 m); -extern void WrapInplaceAddVec2(WrapVec2 this_, const WrapVec2 v); -extern void WrapInplaceAddVec2WithK(WrapVec2 this_, const float k); -extern void WrapInplaceSubVec2(WrapVec2 this_, const WrapVec2 v); -extern void WrapInplaceSubVec2WithK(WrapVec2 this_, const float k); -extern void WrapInplaceMulVec2(WrapVec2 this_, const WrapVec2 v); -extern void WrapInplaceMulVec2WithK(WrapVec2 this_, const float k); -extern void WrapInplaceDivVec2(WrapVec2 this_, const WrapVec2 v); -extern void WrapInplaceDivVec2WithK(WrapVec2 this_, const float k); -extern void WrapSetVec2(WrapVec2 this_, float x, float y); -extern WrapVec2 WrapVec2ListGetOperator(WrapVec2List h, int id); -extern void WrapVec2ListSetOperator(WrapVec2List h, int id, WrapVec2 v); -extern int WrapVec2ListLenOperator(WrapVec2List h); -extern WrapVec2List WrapConstructorVec2List(); -extern WrapVec2List WrapConstructorVec2ListWithSequence(size_t sequenceToCSize, WrapVec2 *sequenceToCBuf); -extern void WrapVec2ListFree(WrapVec2List); -extern void WrapClearVec2List(WrapVec2List this_); -extern void WrapReserveVec2List(WrapVec2List this_, size_t size); -extern void WrapPushBackVec2List(WrapVec2List this_, WrapVec2 v); -extern size_t WrapSizeVec2List(WrapVec2List this_); -extern WrapVec2 WrapAtVec2List(WrapVec2List this_, size_t idx); -extern WrapIVec2 WrapIVec2GetZero(); -extern WrapIVec2 WrapIVec2GetOne(); -extern int WrapIVec2GetX(WrapIVec2 h); -extern void WrapIVec2SetX(WrapIVec2 h, int v); -extern int WrapIVec2GetY(WrapIVec2 h); -extern void WrapIVec2SetY(WrapIVec2 h, int v); -extern WrapIVec2 WrapConstructorIVec2(); -extern WrapIVec2 WrapConstructorIVec2WithXY(int x, int y); -extern WrapIVec2 WrapConstructorIVec2WithV(const WrapIVec2 v); -extern WrapIVec2 WrapConstructorIVec2WithVec3V(const WrapVec3 v); -extern WrapIVec2 WrapConstructorIVec2WithVec4V(const WrapVec4 v); -extern void WrapIVec2Free(WrapIVec2); -extern WrapIVec2 WrapAddIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern WrapIVec2 WrapAddIVec2WithK(WrapIVec2 this_, const int k); -extern WrapIVec2 WrapSubIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern WrapIVec2 WrapSubIVec2WithK(WrapIVec2 this_, const int k); -extern WrapIVec2 WrapDivIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern WrapIVec2 WrapDivIVec2WithK(WrapIVec2 this_, const int k); -extern WrapIVec2 WrapMulIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern WrapIVec2 WrapMulIVec2WithK(WrapIVec2 this_, const int k); -extern WrapIVec2 WrapMulIVec2WithM(WrapIVec2 this_, const WrapMat3 m); -extern void WrapInplaceAddIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern void WrapInplaceAddIVec2WithK(WrapIVec2 this_, const int k); -extern void WrapInplaceSubIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern void WrapInplaceSubIVec2WithK(WrapIVec2 this_, const int k); -extern void WrapInplaceMulIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern void WrapInplaceMulIVec2WithK(WrapIVec2 this_, const int k); -extern void WrapInplaceDivIVec2(WrapIVec2 this_, const WrapIVec2 v); -extern void WrapInplaceDivIVec2WithK(WrapIVec2 this_, const int k); -extern void WrapSetIVec2(WrapIVec2 this_, int x, int y); -extern WrapIVec2 WrapIVec2ListGetOperator(WrapIVec2List h, int id); -extern void WrapIVec2ListSetOperator(WrapIVec2List h, int id, WrapIVec2 v); -extern int WrapIVec2ListLenOperator(WrapIVec2List h); -extern WrapIVec2List WrapConstructorIVec2List(); -extern WrapIVec2List WrapConstructorIVec2ListWithSequence(size_t sequenceToCSize, WrapIVec2 *sequenceToCBuf); -extern void WrapIVec2ListFree(WrapIVec2List); -extern void WrapClearIVec2List(WrapIVec2List this_); -extern void WrapReserveIVec2List(WrapIVec2List this_, size_t size); -extern void WrapPushBackIVec2List(WrapIVec2List this_, WrapIVec2 v); -extern size_t WrapSizeIVec2List(WrapIVec2List this_); -extern WrapIVec2 WrapAtIVec2List(WrapIVec2List this_, size_t idx); -extern WrapVec4 WrapVec4ListGetOperator(WrapVec4List h, int id); -extern void WrapVec4ListSetOperator(WrapVec4List h, int id, WrapVec4 v); -extern int WrapVec4ListLenOperator(WrapVec4List h); -extern WrapVec4List WrapConstructorVec4List(); -extern WrapVec4List WrapConstructorVec4ListWithSequence(size_t sequenceToCSize, WrapVec4 *sequenceToCBuf); -extern void WrapVec4ListFree(WrapVec4List); -extern void WrapClearVec4List(WrapVec4List this_); -extern void WrapReserveVec4List(WrapVec4List this_, size_t size); -extern void WrapPushBackVec4List(WrapVec4List this_, WrapVec4 v); -extern size_t WrapSizeVec4List(WrapVec4List this_); -extern WrapVec4 WrapAtVec4List(WrapVec4List this_, size_t idx); -extern WrapMat4 WrapMat4ListGetOperator(WrapMat4List h, int id); -extern void WrapMat4ListSetOperator(WrapMat4List h, int id, WrapMat4 v); -extern int WrapMat4ListLenOperator(WrapMat4List h); -extern WrapMat4List WrapConstructorMat4List(); -extern WrapMat4List WrapConstructorMat4ListWithSequence(size_t sequenceToCSize, WrapMat4 *sequenceToCBuf); -extern void WrapMat4ListFree(WrapMat4List); -extern void WrapClearMat4List(WrapMat4List this_); -extern void WrapReserveMat4List(WrapMat4List this_, size_t size); -extern void WrapPushBackMat4List(WrapMat4List this_, WrapMat4 v); -extern size_t WrapSizeMat4List(WrapMat4List this_); -extern WrapMat4 WrapAtMat4List(WrapMat4List this_, size_t idx); -extern WrapVec3 WrapVec3ListGetOperator(WrapVec3List h, int id); -extern void WrapVec3ListSetOperator(WrapVec3List h, int id, WrapVec3 v); -extern int WrapVec3ListLenOperator(WrapVec3List h); -extern WrapVec3List WrapConstructorVec3List(); -extern WrapVec3List WrapConstructorVec3ListWithSequence(size_t sequenceToCSize, WrapVec3 *sequenceToCBuf); -extern void WrapVec3ListFree(WrapVec3List); -extern void WrapClearVec3List(WrapVec3List this_); -extern void WrapReserveVec3List(WrapVec3List this_, size_t size); -extern void WrapPushBackVec3List(WrapVec3List this_, WrapVec3 v); -extern size_t WrapSizeVec3List(WrapVec3List this_); -extern WrapVec3 WrapAtVec3List(WrapVec3List this_, size_t idx); -extern float WrapRectGetSx(WrapRect h); -extern void WrapRectSetSx(WrapRect h, float v); -extern float WrapRectGetSy(WrapRect h); -extern void WrapRectSetSy(WrapRect h, float v); -extern float WrapRectGetEx(WrapRect h); -extern void WrapRectSetEx(WrapRect h, float v); -extern float WrapRectGetEy(WrapRect h); -extern void WrapRectSetEy(WrapRect h, float v); -extern WrapRect WrapConstructorRect(); -extern WrapRect WrapConstructorRectWithXY(float x, float y); -extern WrapRect WrapConstructorRectWithSxSyExEy(float sx, float sy, float ex, float ey); -extern WrapRect WrapConstructorRectWithRect(const WrapRect rect); -extern void WrapRectFree(WrapRect); -extern int WrapIntRectGetSx(WrapIntRect h); -extern void WrapIntRectSetSx(WrapIntRect h, int v); -extern int WrapIntRectGetSy(WrapIntRect h); -extern void WrapIntRectSetSy(WrapIntRect h, int v); -extern int WrapIntRectGetEx(WrapIntRect h); -extern void WrapIntRectSetEx(WrapIntRect h, int v); -extern int WrapIntRectGetEy(WrapIntRect h); -extern void WrapIntRectSetEy(WrapIntRect h, int v); -extern WrapIntRect WrapConstructorIntRect(); -extern WrapIntRect WrapConstructorIntRectWithXY(int x, int y); -extern WrapIntRect WrapConstructorIntRectWithSxSyExEy(int sx, int sy, int ex, int ey); -extern WrapIntRect WrapConstructorIntRectWithRect(const WrapIntRect rect); -extern void WrapIntRectFree(WrapIntRect); -extern void WrapFrustumFree(WrapFrustum); -extern WrapVec4 WrapGetTopFrustum(WrapFrustum this_); -extern void WrapSetTopFrustum(WrapFrustum this_, const WrapVec4 plane); -extern WrapVec4 WrapGetBottomFrustum(WrapFrustum this_); -extern void WrapSetBottomFrustum(WrapFrustum this_, const WrapVec4 plane); -extern WrapVec4 WrapGetLeftFrustum(WrapFrustum this_); -extern void WrapSetLeftFrustum(WrapFrustum this_, const WrapVec4 plane); -extern WrapVec4 WrapGetRightFrustum(WrapFrustum this_); -extern void WrapSetRightFrustum(WrapFrustum this_, const WrapVec4 plane); -extern WrapVec4 WrapGetNearFrustum(WrapFrustum this_); -extern void WrapSetNearFrustum(WrapFrustum this_, const WrapVec4 plane); -extern WrapVec4 WrapGetFarFrustum(WrapFrustum this_); -extern void WrapSetFarFrustum(WrapFrustum this_, const WrapVec4 plane); -extern const char *WrapMonitorModeGetName(WrapMonitorMode h); -extern void WrapMonitorModeSetName(WrapMonitorMode h, const char *v); -extern WrapIntRect WrapMonitorModeGetRect(WrapMonitorMode h); -extern void WrapMonitorModeSetRect(WrapMonitorMode h, WrapIntRect v); -extern int WrapMonitorModeGetFrequency(WrapMonitorMode h); -extern void WrapMonitorModeSetFrequency(WrapMonitorMode h, int v); -extern uint8_t WrapMonitorModeGetRotation(WrapMonitorMode h); -extern void WrapMonitorModeSetRotation(WrapMonitorMode h, uint8_t v); -extern uint8_t WrapMonitorModeGetSupportedRotations(WrapMonitorMode h); -extern void WrapMonitorModeSetSupportedRotations(WrapMonitorMode h, uint8_t v); -extern void WrapMonitorModeFree(WrapMonitorMode); -extern WrapMonitorMode WrapMonitorModeListGetOperator(WrapMonitorModeList h, int id); -extern void WrapMonitorModeListSetOperator(WrapMonitorModeList h, int id, WrapMonitorMode v); -extern int WrapMonitorModeListLenOperator(WrapMonitorModeList h); -extern WrapMonitorModeList WrapConstructorMonitorModeList(); -extern WrapMonitorModeList WrapConstructorMonitorModeListWithSequence(size_t sequenceToCSize, WrapMonitorMode *sequenceToCBuf); -extern void WrapMonitorModeListFree(WrapMonitorModeList); -extern void WrapClearMonitorModeList(WrapMonitorModeList this_); -extern void WrapReserveMonitorModeList(WrapMonitorModeList this_, size_t size); -extern void WrapPushBackMonitorModeList(WrapMonitorModeList this_, WrapMonitorMode v); -extern size_t WrapSizeMonitorModeList(WrapMonitorModeList this_); -extern WrapMonitorMode WrapAtMonitorModeList(WrapMonitorModeList this_, size_t idx); -extern void WrapMonitorFree(WrapMonitor); -extern WrapMonitor WrapMonitorListGetOperator(WrapMonitorList h, int id); -extern void WrapMonitorListSetOperator(WrapMonitorList h, int id, WrapMonitor v); -extern int WrapMonitorListLenOperator(WrapMonitorList h); -extern WrapMonitorList WrapConstructorMonitorList(); -extern WrapMonitorList WrapConstructorMonitorListWithSequence(size_t sequenceToCSize, WrapMonitor *sequenceToCBuf); -extern void WrapMonitorListFree(WrapMonitorList); -extern void WrapClearMonitorList(WrapMonitorList this_); -extern void WrapReserveMonitorList(WrapMonitorList this_, size_t size); -extern void WrapPushBackMonitorList(WrapMonitorList this_, WrapMonitor v); -extern size_t WrapSizeMonitorList(WrapMonitorList this_); -extern WrapMonitor WrapAtMonitorList(WrapMonitorList this_, size_t idx); -extern void WrapWindowFree(WrapWindow); -extern WrapColor WrapColorGetZero(); -extern WrapColor WrapColorGetOne(); -extern WrapColor WrapColorGetWhite(); -extern WrapColor WrapColorGetGrey(); -extern WrapColor WrapColorGetBlack(); -extern WrapColor WrapColorGetRed(); -extern WrapColor WrapColorGetGreen(); -extern WrapColor WrapColorGetBlue(); -extern WrapColor WrapColorGetYellow(); -extern WrapColor WrapColorGetOrange(); -extern WrapColor WrapColorGetPurple(); -extern WrapColor WrapColorGetTransparent(); -extern float WrapColorGetR(WrapColor h); -extern void WrapColorSetR(WrapColor h, float v); -extern float WrapColorGetG(WrapColor h); -extern void WrapColorSetG(WrapColor h, float v); -extern float WrapColorGetB(WrapColor h); -extern void WrapColorSetB(WrapColor h, float v); -extern float WrapColorGetA(WrapColor h); -extern void WrapColorSetA(WrapColor h, float v); -extern WrapColor WrapConstructorColor(); -extern WrapColor WrapConstructorColorWithColor(const WrapColor color); -extern WrapColor WrapConstructorColorWithRGB(float r, float g, float b); -extern WrapColor WrapConstructorColorWithRGBA(float r, float g, float b, float a); -extern void WrapColorFree(WrapColor); -extern WrapColor WrapAddColor(WrapColor this_, const WrapColor color); -extern WrapColor WrapAddColorWithK(WrapColor this_, float k); -extern WrapColor WrapSubColor(WrapColor this_, const WrapColor color); -extern WrapColor WrapSubColorWithK(WrapColor this_, float k); -extern WrapColor WrapDivColor(WrapColor this_, const WrapColor color); -extern WrapColor WrapDivColorWithK(WrapColor this_, float k); -extern WrapColor WrapMulColor(WrapColor this_, const WrapColor color); -extern WrapColor WrapMulColorWithK(WrapColor this_, float k); -extern void WrapInplaceAddColor(WrapColor this_, WrapColor color); -extern void WrapInplaceAddColorWithK(WrapColor this_, float k); -extern void WrapInplaceSubColor(WrapColor this_, WrapColor color); -extern void WrapInplaceSubColorWithK(WrapColor this_, float k); -extern void WrapInplaceMulColor(WrapColor this_, WrapColor color); -extern void WrapInplaceMulColorWithK(WrapColor this_, float k); -extern void WrapInplaceDivColor(WrapColor this_, WrapColor color); -extern void WrapInplaceDivColorWithK(WrapColor this_, float k); -extern bool WrapEqColor(WrapColor this_, const WrapColor color); -extern bool WrapNeColor(WrapColor this_, const WrapColor color); -extern WrapColor WrapColorListGetOperator(WrapColorList h, int id); -extern void WrapColorListSetOperator(WrapColorList h, int id, WrapColor v); -extern int WrapColorListLenOperator(WrapColorList h); -extern WrapColorList WrapConstructorColorList(); -extern WrapColorList WrapConstructorColorListWithSequence(size_t sequenceToCSize, WrapColor *sequenceToCBuf); -extern void WrapColorListFree(WrapColorList); -extern void WrapClearColorList(WrapColorList this_); -extern void WrapReserveColorList(WrapColorList this_, size_t size); -extern void WrapPushBackColorList(WrapColorList this_, WrapColor v); -extern size_t WrapSizeColorList(WrapColorList this_); -extern WrapColor WrapAtColorList(WrapColorList this_, size_t idx); -extern WrapPicture WrapConstructorPicture(); -extern WrapPicture WrapConstructorPictureWithPicture(const WrapPicture picture); -extern WrapPicture WrapConstructorPictureWithWidthHeightFormat(uint16_t width, uint16_t height, int format); -extern WrapPicture WrapConstructorPictureWithDataWidthHeightFormat(WrapVoidPointer data, uint16_t width, uint16_t height, int format); -extern void WrapPictureFree(WrapPicture); -extern uint32_t WrapGetWidthPicture(WrapPicture this_); -extern uint32_t WrapGetHeightPicture(WrapPicture this_); -extern int WrapGetFormatPicture(WrapPicture this_); -extern intptr_t WrapGetDataPicture(WrapPicture this_); -extern void WrapSetDataPicture(WrapPicture this_, WrapVoidPointer data, uint16_t width, uint16_t height, int format); -extern void WrapCopyDataPicture(WrapPicture this_, const WrapVoidPointer data, uint16_t width, uint16_t height, int format); -extern WrapColor WrapGetPixelRGBAPicture(WrapPicture this_, uint16_t x, uint16_t y); -extern void WrapSetPixelRGBAPicture(WrapPicture this_, uint16_t x, uint16_t y, const WrapColor col); -extern void WrapFrameBufferHandleFree(WrapFrameBufferHandle); -extern WrapVertexLayout WrapConstructorVertexLayout(); -extern void WrapVertexLayoutFree(WrapVertexLayout); -extern WrapVertexLayout WrapBeginVertexLayout(WrapVertexLayout this_); -extern WrapVertexLayout WrapAddVertexLayout(WrapVertexLayout this_, int attrib, uint8_t count, int type); -extern WrapVertexLayout WrapAddVertexLayoutWithNormalized(WrapVertexLayout this_, int attrib, uint8_t count, int type, bool normalized); -extern WrapVertexLayout WrapAddVertexLayoutWithNormalizedAsInt(WrapVertexLayout this_, int attrib, uint8_t count, int type, bool normalized, bool as_int); -extern WrapVertexLayout WrapSkipVertexLayout(WrapVertexLayout this_, uint8_t size); -extern void WrapEndVertexLayout(WrapVertexLayout this_); -extern bool WrapHasVertexLayout(WrapVertexLayout this_, int attrib); -extern uint16_t WrapGetOffsetVertexLayout(WrapVertexLayout this_, int attrib); -extern uint16_t WrapGetStrideVertexLayout(WrapVertexLayout this_); -extern uint32_t WrapGetSizeVertexLayout(WrapVertexLayout this_, uint32_t count); -extern void WrapProgramHandleFree(WrapProgramHandle); -extern int WrapTextureInfoGetFormat(WrapTextureInfo h); -extern void WrapTextureInfoSetFormat(WrapTextureInfo h, int v); -extern uint32_t WrapTextureInfoGetStorageSize(WrapTextureInfo h); -extern void WrapTextureInfoSetStorageSize(WrapTextureInfo h, uint32_t v); -extern uint16_t WrapTextureInfoGetWidth(WrapTextureInfo h); -extern void WrapTextureInfoSetWidth(WrapTextureInfo h, uint16_t v); -extern uint16_t WrapTextureInfoGetHeight(WrapTextureInfo h); -extern void WrapTextureInfoSetHeight(WrapTextureInfo h, uint16_t v); -extern uint16_t WrapTextureInfoGetDepth(WrapTextureInfo h); -extern void WrapTextureInfoSetDepth(WrapTextureInfo h, uint16_t v); -extern uint16_t WrapTextureInfoGetNumLayers(WrapTextureInfo h); -extern void WrapTextureInfoSetNumLayers(WrapTextureInfo h, uint16_t v); -extern uint8_t WrapTextureInfoGetNumMips(WrapTextureInfo h); -extern void WrapTextureInfoSetNumMips(WrapTextureInfo h, uint8_t v); -extern uint8_t WrapTextureInfoGetBitsPerPixel(WrapTextureInfo h); -extern void WrapTextureInfoSetBitsPerPixel(WrapTextureInfo h, uint8_t v); -extern bool WrapTextureInfoGetCubeMap(WrapTextureInfo h); -extern void WrapTextureInfoSetCubeMap(WrapTextureInfo h, bool v); -extern WrapTextureInfo WrapConstructorTextureInfo(); -extern void WrapTextureInfoFree(WrapTextureInfo); -extern void WrapModelRefFree(WrapModelRef); -extern bool WrapEqModelRef(WrapModelRef this_, const WrapModelRef m); -extern bool WrapNeModelRef(WrapModelRef this_, const WrapModelRef m); -extern void WrapTextureRefFree(WrapTextureRef); -extern bool WrapEqTextureRef(WrapTextureRef this_, const WrapTextureRef t); -extern bool WrapNeTextureRef(WrapTextureRef this_, const WrapTextureRef t); -extern void WrapMaterialRefFree(WrapMaterialRef); -extern bool WrapEqMaterialRef(WrapMaterialRef this_, const WrapMaterialRef m); -extern bool WrapNeMaterialRef(WrapMaterialRef this_, const WrapMaterialRef m); -extern void WrapPipelineProgramRefFree(WrapPipelineProgramRef); -extern bool WrapEqPipelineProgramRef(WrapPipelineProgramRef this_, const WrapPipelineProgramRef p); -extern bool WrapNePipelineProgramRef(WrapPipelineProgramRef this_, const WrapPipelineProgramRef p); -extern WrapTexture WrapConstructorTexture(); -extern void WrapTextureFree(WrapTexture); -extern void WrapUniformSetValueFree(WrapUniformSetValue); -extern WrapUniformSetValue WrapUniformSetValueListGetOperator(WrapUniformSetValueList h, int id); -extern void WrapUniformSetValueListSetOperator(WrapUniformSetValueList h, int id, WrapUniformSetValue v); -extern int WrapUniformSetValueListLenOperator(WrapUniformSetValueList h); -extern WrapUniformSetValueList WrapConstructorUniformSetValueList(); -extern WrapUniformSetValueList WrapConstructorUniformSetValueListWithSequence(size_t sequenceToCSize, WrapUniformSetValue *sequenceToCBuf); -extern void WrapUniformSetValueListFree(WrapUniformSetValueList); -extern void WrapClearUniformSetValueList(WrapUniformSetValueList this_); -extern void WrapReserveUniformSetValueList(WrapUniformSetValueList this_, size_t size); -extern void WrapPushBackUniformSetValueList(WrapUniformSetValueList this_, WrapUniformSetValue v); -extern size_t WrapSizeUniformSetValueList(WrapUniformSetValueList this_); -extern WrapUniformSetValue WrapAtUniformSetValueList(WrapUniformSetValueList this_, size_t idx); -extern void WrapUniformSetTextureFree(WrapUniformSetTexture); -extern WrapUniformSetTexture WrapUniformSetTextureListGetOperator(WrapUniformSetTextureList h, int id); -extern void WrapUniformSetTextureListSetOperator(WrapUniformSetTextureList h, int id, WrapUniformSetTexture v); -extern int WrapUniformSetTextureListLenOperator(WrapUniformSetTextureList h); -extern WrapUniformSetTextureList WrapConstructorUniformSetTextureList(); -extern WrapUniformSetTextureList WrapConstructorUniformSetTextureListWithSequence(size_t sequenceToCSize, WrapUniformSetTexture *sequenceToCBuf); -extern void WrapUniformSetTextureListFree(WrapUniformSetTextureList); -extern void WrapClearUniformSetTextureList(WrapUniformSetTextureList this_); -extern void WrapReserveUniformSetTextureList(WrapUniformSetTextureList this_, size_t size); -extern void WrapPushBackUniformSetTextureList(WrapUniformSetTextureList this_, WrapUniformSetTexture v); -extern size_t WrapSizeUniformSetTextureList(WrapUniformSetTextureList this_); -extern WrapUniformSetTexture WrapAtUniformSetTextureList(WrapUniformSetTextureList this_, size_t idx); -extern void WrapPipelineProgramFree(WrapPipelineProgram); -extern WrapFrustum WrapViewStateGetFrustum(WrapViewState h); -extern void WrapViewStateSetFrustum(WrapViewState h, WrapFrustum v); -extern WrapMat44 WrapViewStateGetProj(WrapViewState h); -extern void WrapViewStateSetProj(WrapViewState h, WrapMat44 v); -extern WrapMat4 WrapViewStateGetView(WrapViewState h); -extern void WrapViewStateSetView(WrapViewState h, WrapMat4 v); -extern WrapViewState WrapConstructorViewState(); -extern void WrapViewStateFree(WrapViewState); -extern WrapMaterial WrapConstructorMaterial(); -extern void WrapMaterialFree(WrapMaterial); -extern WrapMaterial WrapMaterialListGetOperator(WrapMaterialList h, int id); -extern void WrapMaterialListSetOperator(WrapMaterialList h, int id, WrapMaterial v); -extern int WrapMaterialListLenOperator(WrapMaterialList h); -extern WrapMaterialList WrapConstructorMaterialList(); -extern WrapMaterialList WrapConstructorMaterialListWithSequence(size_t sequenceToCSize, WrapMaterial *sequenceToCBuf); -extern void WrapMaterialListFree(WrapMaterialList); -extern void WrapClearMaterialList(WrapMaterialList this_); -extern void WrapReserveMaterialList(WrapMaterialList this_, size_t size); -extern void WrapPushBackMaterialList(WrapMaterialList this_, WrapMaterial v); -extern size_t WrapSizeMaterialList(WrapMaterialList this_); -extern WrapMaterial WrapAtMaterialList(WrapMaterialList this_, size_t idx); -extern void WrapRenderStateFree(WrapRenderState); -extern void WrapModelFree(WrapModel); -extern WrapPipelineResources WrapConstructorPipelineResources(); -extern void WrapPipelineResourcesFree(WrapPipelineResources); -extern WrapTextureRef WrapAddTexturePipelineResources(WrapPipelineResources this_, const char *name, const WrapTexture tex); -extern WrapModelRef WrapAddModelPipelineResources(WrapPipelineResources this_, const char *name, const WrapModel mdl); -extern WrapPipelineProgramRef WrapAddProgramPipelineResources(WrapPipelineResources this_, const char *name, const WrapPipelineProgram prg); -extern WrapTextureRef WrapHasTexturePipelineResources(WrapPipelineResources this_, const char *name); -extern WrapModelRef WrapHasModelPipelineResources(WrapPipelineResources this_, const char *name); -extern WrapPipelineProgramRef WrapHasProgramPipelineResources(WrapPipelineResources this_, const char *name); -extern void WrapUpdateTexturePipelineResources(WrapPipelineResources this_, WrapTextureRef ref, const WrapTexture tex); -extern void WrapUpdateModelPipelineResources(WrapPipelineResources this_, WrapModelRef ref, const WrapModel mdl); -extern void WrapUpdateProgramPipelineResources(WrapPipelineResources this_, WrapPipelineProgramRef ref, const WrapPipelineProgram prg); -extern WrapTexture WrapGetTexturePipelineResources(WrapPipelineResources this_, WrapTextureRef ref); -extern WrapModel WrapGetModelPipelineResources(WrapPipelineResources this_, WrapModelRef ref); -extern WrapPipelineProgram WrapGetProgramPipelineResources(WrapPipelineResources this_, WrapPipelineProgramRef ref); -extern const char *WrapGetTextureNamePipelineResources(WrapPipelineResources this_, WrapTextureRef ref); -extern const char *WrapGetModelNamePipelineResources(WrapPipelineResources this_, WrapModelRef ref); -extern const char *WrapGetProgramNamePipelineResources(WrapPipelineResources this_, WrapPipelineProgramRef ref); -extern void WrapDestroyAllTexturesPipelineResources(WrapPipelineResources this_); -extern void WrapDestroyAllModelsPipelineResources(WrapPipelineResources this_); -extern void WrapDestroyAllProgramsPipelineResources(WrapPipelineResources this_); -extern void WrapDestroyTexturePipelineResources(WrapPipelineResources this_, WrapTextureRef ref); -extern void WrapDestroyModelPipelineResources(WrapPipelineResources this_, WrapModelRef ref); -extern void WrapDestroyProgramPipelineResources(WrapPipelineResources this_, WrapPipelineProgramRef ref); -extern bool WrapHasTextureInfoPipelineResources(WrapPipelineResources this_, WrapTextureRef ref); -extern WrapTextureInfo WrapGetTextureInfoPipelineResources(WrapPipelineResources this_, WrapTextureRef ref); -extern WrapFrameBufferHandle WrapFrameBufferGetHandle(WrapFrameBuffer h); -extern void WrapFrameBufferSetHandle(WrapFrameBuffer h, WrapFrameBufferHandle v); -extern void WrapFrameBufferFree(WrapFrameBuffer); -extern WrapVertices WrapConstructorVertices(const WrapVertexLayout decl, size_t count); -extern void WrapVerticesFree(WrapVertices); -extern const WrapVertexLayout WrapGetDeclVertices(WrapVertices this_); -extern WrapVertices WrapBeginVertices(WrapVertices this_, size_t vertex_index); -extern WrapVertices WrapSetPosVertices(WrapVertices this_, const WrapVec3 pos); -extern WrapVertices WrapSetNormalVertices(WrapVertices this_, const WrapVec3 normal); -extern WrapVertices WrapSetTangentVertices(WrapVertices this_, const WrapVec3 tangent); -extern WrapVertices WrapSetBinormalVertices(WrapVertices this_, const WrapVec3 binormal); -extern WrapVertices WrapSetTexCoord0Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord1Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord2Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord3Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord4Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord5Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord6Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetTexCoord7Vertices(WrapVertices this_, const WrapVec2 uv); -extern WrapVertices WrapSetColor0Vertices(WrapVertices this_, const WrapColor color); -extern WrapVertices WrapSetColor1Vertices(WrapVertices this_, const WrapColor color); -extern WrapVertices WrapSetColor2Vertices(WrapVertices this_, const WrapColor color); -extern WrapVertices WrapSetColor3Vertices(WrapVertices this_, const WrapColor color); -extern void WrapEndVertices(WrapVertices this_); -extern void WrapEndVerticesWithValidate(WrapVertices this_, bool validate); -extern void WrapClearVertices(WrapVertices this_); -extern void WrapReserveVertices(WrapVertices this_, size_t count); -extern void WrapResizeVertices(WrapVertices this_, size_t count); -extern const WrapVoidPointer WrapGetDataVertices(WrapVertices this_); -extern size_t WrapGetSizeVertices(WrapVertices this_); -extern size_t WrapGetCountVertices(WrapVertices this_); -extern size_t WrapGetCapacityVertices(WrapVertices this_); -extern void WrapPipelineFree(WrapPipeline); -extern const char *WrapPipelineInfoGetName(WrapPipelineInfo h); -extern void WrapPipelineInfoSetName(WrapPipelineInfo h, const char *v); -extern void WrapPipelineInfoFree(WrapPipelineInfo); -extern void WrapForwardPipelineFree(WrapForwardPipeline); -extern int WrapForwardPipelineLightGetType(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetType(WrapForwardPipelineLight h, int v); -extern WrapMat4 WrapForwardPipelineLightGetWorld(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetWorld(WrapForwardPipelineLight h, WrapMat4 v); -extern WrapColor WrapForwardPipelineLightGetDiffuse(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetDiffuse(WrapForwardPipelineLight h, WrapColor v); -extern WrapColor WrapForwardPipelineLightGetSpecular(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetSpecular(WrapForwardPipelineLight h, WrapColor v); -extern float WrapForwardPipelineLightGetRadius(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetRadius(WrapForwardPipelineLight h, float v); -extern float WrapForwardPipelineLightGetInnerAngle(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetInnerAngle(WrapForwardPipelineLight h, float v); -extern float WrapForwardPipelineLightGetOuterAngle(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetOuterAngle(WrapForwardPipelineLight h, float v); -extern WrapVec4 WrapForwardPipelineLightGetPssmSplit(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetPssmSplit(WrapForwardPipelineLight h, WrapVec4 v); -extern float WrapForwardPipelineLightGetPriority(WrapForwardPipelineLight h); -extern void WrapForwardPipelineLightSetPriority(WrapForwardPipelineLight h, float v); -extern WrapForwardPipelineLight WrapConstructorForwardPipelineLight(); -extern void WrapForwardPipelineLightFree(WrapForwardPipelineLight); -extern WrapForwardPipelineLight WrapForwardPipelineLightListGetOperator(WrapForwardPipelineLightList h, int id); -extern void WrapForwardPipelineLightListSetOperator(WrapForwardPipelineLightList h, int id, WrapForwardPipelineLight v); -extern int WrapForwardPipelineLightListLenOperator(WrapForwardPipelineLightList h); -extern WrapForwardPipelineLightList WrapConstructorForwardPipelineLightList(); -extern WrapForwardPipelineLightList WrapConstructorForwardPipelineLightListWithSequence(size_t sequenceToCSize, WrapForwardPipelineLight *sequenceToCBuf); -extern void WrapForwardPipelineLightListFree(WrapForwardPipelineLightList); -extern void WrapClearForwardPipelineLightList(WrapForwardPipelineLightList this_); -extern void WrapReserveForwardPipelineLightList(WrapForwardPipelineLightList this_, size_t size); -extern void WrapPushBackForwardPipelineLightList(WrapForwardPipelineLightList this_, WrapForwardPipelineLight v); -extern size_t WrapSizeForwardPipelineLightList(WrapForwardPipelineLightList this_); -extern WrapForwardPipelineLight WrapAtForwardPipelineLightList(WrapForwardPipelineLightList this_, size_t idx); -extern void WrapForwardPipelineLightsFree(WrapForwardPipelineLights); -extern float WrapForwardPipelineFogGetNear(WrapForwardPipelineFog h); -extern void WrapForwardPipelineFogSetNear(WrapForwardPipelineFog h, float v); -extern float WrapForwardPipelineFogGetFar(WrapForwardPipelineFog h); -extern void WrapForwardPipelineFogSetFar(WrapForwardPipelineFog h, float v); -extern WrapColor WrapForwardPipelineFogGetColor(WrapForwardPipelineFog h); -extern void WrapForwardPipelineFogSetColor(WrapForwardPipelineFog h, WrapColor v); -extern WrapForwardPipelineFog WrapConstructorForwardPipelineFog(); -extern void WrapForwardPipelineFogFree(WrapForwardPipelineFog); -extern void WrapFontFree(WrapFont); -extern WrapJSON WrapConstructorJSON(); -extern void WrapJSONFree(WrapJSON); -extern void WrapLuaObjectFree(WrapLuaObject); -extern WrapLuaObject WrapLuaObjectListGetOperator(WrapLuaObjectList h, int id); -extern void WrapLuaObjectListSetOperator(WrapLuaObjectList h, int id, WrapLuaObject v); -extern int WrapLuaObjectListLenOperator(WrapLuaObjectList h); -extern WrapLuaObjectList WrapConstructorLuaObjectList(); -extern WrapLuaObjectList WrapConstructorLuaObjectListWithSequence(size_t sequenceToCSize, WrapLuaObject *sequenceToCBuf); -extern void WrapLuaObjectListFree(WrapLuaObjectList); -extern void WrapClearLuaObjectList(WrapLuaObjectList this_); -extern void WrapReserveLuaObjectList(WrapLuaObjectList this_, size_t size); -extern void WrapPushBackLuaObjectList(WrapLuaObjectList this_, WrapLuaObject v); -extern size_t WrapSizeLuaObjectList(WrapLuaObjectList this_); -extern WrapLuaObject WrapAtLuaObjectList(WrapLuaObjectList this_, size_t idx); -extern void WrapSceneAnimRefFree(WrapSceneAnimRef); -extern bool WrapEqSceneAnimRef(WrapSceneAnimRef this_, const WrapSceneAnimRef ref); -extern bool WrapNeSceneAnimRef(WrapSceneAnimRef this_, const WrapSceneAnimRef ref); -extern WrapSceneAnimRef WrapSceneAnimRefListGetOperator(WrapSceneAnimRefList h, int id); -extern void WrapSceneAnimRefListSetOperator(WrapSceneAnimRefList h, int id, WrapSceneAnimRef v); -extern int WrapSceneAnimRefListLenOperator(WrapSceneAnimRefList h); -extern WrapSceneAnimRefList WrapConstructorSceneAnimRefList(); -extern WrapSceneAnimRefList WrapConstructorSceneAnimRefListWithSequence(size_t sequenceToCSize, WrapSceneAnimRef *sequenceToCBuf); -extern void WrapSceneAnimRefListFree(WrapSceneAnimRefList); -extern void WrapClearSceneAnimRefList(WrapSceneAnimRefList this_); -extern void WrapReserveSceneAnimRefList(WrapSceneAnimRefList this_, size_t size); -extern void WrapPushBackSceneAnimRefList(WrapSceneAnimRefList this_, WrapSceneAnimRef v); -extern size_t WrapSizeSceneAnimRefList(WrapSceneAnimRefList this_); -extern WrapSceneAnimRef WrapAtSceneAnimRefList(WrapSceneAnimRefList this_, size_t idx); -extern void WrapScenePlayAnimRefFree(WrapScenePlayAnimRef); -extern bool WrapEqScenePlayAnimRef(WrapScenePlayAnimRef this_, const WrapScenePlayAnimRef ref); -extern bool WrapNeScenePlayAnimRef(WrapScenePlayAnimRef this_, const WrapScenePlayAnimRef ref); -extern WrapScenePlayAnimRef WrapScenePlayAnimRefListGetOperator(WrapScenePlayAnimRefList h, int id); -extern void WrapScenePlayAnimRefListSetOperator(WrapScenePlayAnimRefList h, int id, WrapScenePlayAnimRef v); -extern int WrapScenePlayAnimRefListLenOperator(WrapScenePlayAnimRefList h); -extern WrapScenePlayAnimRefList WrapConstructorScenePlayAnimRefList(); -extern WrapScenePlayAnimRefList WrapConstructorScenePlayAnimRefListWithSequence(size_t sequenceToCSize, WrapScenePlayAnimRef *sequenceToCBuf); -extern void WrapScenePlayAnimRefListFree(WrapScenePlayAnimRefList); -extern void WrapClearScenePlayAnimRefList(WrapScenePlayAnimRefList this_); -extern void WrapReserveScenePlayAnimRefList(WrapScenePlayAnimRefList this_, size_t size); -extern void WrapPushBackScenePlayAnimRefList(WrapScenePlayAnimRefList this_, WrapScenePlayAnimRef v); -extern size_t WrapSizeScenePlayAnimRefList(WrapScenePlayAnimRefList this_); -extern WrapScenePlayAnimRef WrapAtScenePlayAnimRefList(WrapScenePlayAnimRefList this_, size_t idx); -extern WrapCanvas WrapSceneGetCanvas(WrapScene h); -extern void WrapSceneSetCanvas(WrapScene h, WrapCanvas v); -extern WrapEnvironment WrapSceneGetEnvironment(WrapScene h); -extern void WrapSceneSetEnvironment(WrapScene h, WrapEnvironment v); -extern WrapScene WrapConstructorScene(); -extern void WrapSceneFree(WrapScene); -extern WrapNode WrapGetNodeScene(WrapScene this_, const char *name); -extern WrapNode WrapGetNodeExScene(WrapScene this_, const char *path); -extern WrapNodeList WrapGetNodesScene(WrapScene this_); -extern WrapNodeList WrapGetAllNodesScene(WrapScene this_); -extern WrapNodeList WrapGetNodesWithComponentScene(WrapScene this_, int idx); -extern WrapNodeList WrapGetAllNodesWithComponentScene(WrapScene this_, int idx); -extern size_t WrapGetNodeCountScene(WrapScene this_); -extern size_t WrapGetAllNodeCountScene(WrapScene this_); -extern WrapNodeList WrapGetNodeChildrenScene(WrapScene this_, const WrapNode node); -extern bool WrapIsChildOfScene(WrapScene this_, const WrapNode node, const WrapNode parent); -extern bool WrapIsRootScene(WrapScene this_, const WrapNode node); -extern void WrapReadyWorldMatricesScene(WrapScene this_); -extern void WrapComputeWorldMatricesScene(WrapScene this_); -extern void WrapUpdateScene(WrapScene this_, int64_t dt); -extern WrapSceneAnimRefList WrapGetSceneAnimsScene(WrapScene this_); -extern WrapSceneAnimRef WrapGetSceneAnimScene(WrapScene this_, const char *name); -extern WrapScenePlayAnimRef WrapPlayAnimScene(WrapScene this_, WrapSceneAnimRef ref); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopMode(WrapScene this_, WrapSceneAnimRef ref, int loop_mode); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopModeEasing(WrapScene this_, WrapSceneAnimRef ref, int loop_mode, unsigned char easing); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopModeEasingTStart( - WrapScene this_, WrapSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopModeEasingTStartTEnd( - WrapScene this_, WrapSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopModeEasingTStartTEndPaused( - WrapScene this_, WrapSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end, bool paused); -extern WrapScenePlayAnimRef WrapPlayAnimSceneWithLoopModeEasingTStartTEndPausedTScale( - WrapScene this_, WrapSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end, bool paused, float t_scale); -extern bool WrapIsPlayingScene(WrapScene this_, WrapScenePlayAnimRef ref); -extern void WrapStopAnimScene(WrapScene this_, WrapScenePlayAnimRef ref); -extern void WrapStopAllAnimsScene(WrapScene this_); -extern WrapStringList WrapGetPlayingAnimNamesScene(WrapScene this_); -extern WrapScenePlayAnimRefList WrapGetPlayingAnimRefsScene(WrapScene this_); -extern void WrapUpdatePlayingAnimsScene(WrapScene this_, int64_t dt); -extern bool WrapHasKeyScene(WrapScene this_, const char *key); -extern WrapStringList WrapGetKeysScene(WrapScene this_); -extern void WrapRemoveKeyScene(WrapScene this_, const char *key); -extern const char *WrapGetValueScene(WrapScene this_, const char *key); -extern void WrapSetValueScene(WrapScene this_, const char *key, const char *value); -extern size_t WrapGarbageCollectScene(WrapScene this_); -extern void WrapClearScene(WrapScene this_); -extern void WrapReserveNodesScene(WrapScene this_, size_t count); -extern WrapNode WrapCreateNodeScene(WrapScene this_); -extern WrapNode WrapCreateNodeSceneWithName(WrapScene this_, const char *name); -extern void WrapDestroyNodeScene(WrapScene this_, const WrapNode node); -extern void WrapReserveTransformsScene(WrapScene this_, size_t count); -extern WrapTransform WrapCreateTransformScene(WrapScene this_); -extern WrapTransform WrapCreateTransformSceneWithT(WrapScene this_, const WrapVec3 T); -extern WrapTransform WrapCreateTransformSceneWithTR(WrapScene this_, const WrapVec3 T, const WrapVec3 R); -extern WrapTransform WrapCreateTransformSceneWithTRS(WrapScene this_, const WrapVec3 T, const WrapVec3 R, const WrapVec3 S); -extern void WrapDestroyTransformScene(WrapScene this_, const WrapTransform transform); -extern void WrapReserveCamerasScene(WrapScene this_, size_t count); -extern WrapCamera WrapCreateCameraScene(WrapScene this_); -extern WrapCamera WrapCreateCameraSceneWithZnearZfar(WrapScene this_, float znear, float zfar); -extern WrapCamera WrapCreateCameraSceneWithZnearZfarFov(WrapScene this_, float znear, float zfar, float fov); -extern WrapCamera WrapCreateOrthographicCameraScene(WrapScene this_, float znear, float zfar); -extern WrapCamera WrapCreateOrthographicCameraSceneWithSize(WrapScene this_, float znear, float zfar, float size); -extern void WrapDestroyCameraScene(WrapScene this_, const WrapCamera camera); -extern WrapViewState WrapComputeCurrentCameraViewStateScene(WrapScene this_, const WrapVec2 aspect_ratio); -extern void WrapReserveObjectsScene(WrapScene this_, size_t count); -extern WrapObject WrapCreateObjectScene(WrapScene this_); -extern WrapObject WrapCreateObjectSceneWithModelMaterials(WrapScene this_, const WrapModelRef model, const WrapMaterialList materials); -extern WrapObject WrapCreateObjectSceneWithModelSliceOfMaterials( - WrapScene this_, const WrapModelRef model, size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf); -extern void WrapDestroyObjectScene(WrapScene this_, const WrapObject object); -extern void WrapReserveLightsScene(WrapScene this_, size_t count); -extern WrapLight WrapCreateLightScene(WrapScene this_); -extern void WrapDestroyLightScene(WrapScene this_, const WrapLight light); -extern WrapLight WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensity( - WrapScene this_, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapLight WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority( - WrapScene this_, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapLight WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType( - WrapScene this_, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type); -extern WrapLight WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(WrapScene this_, const WrapColor diffuse, - float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type, float shadow_bias); -extern WrapLight WrapCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(WrapScene this_, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type, float shadow_bias, - const WrapVec4 pssm_split); -extern WrapLight WrapCreateLinearLightScene(WrapScene this_, const WrapColor diffuse, const WrapColor specular); -extern WrapLight WrapCreateLinearLightSceneWithPriority(WrapScene this_, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapLight WrapCreateLinearLightSceneWithPriorityShadowType( - WrapScene this_, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapLight WrapCreateLinearLightSceneWithPriorityShadowTypeShadowBias( - WrapScene this_, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias); -extern WrapLight WrapCreateLinearLightSceneWithPriorityShadowTypeShadowBiasPssmSplit( - WrapScene this_, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias, const WrapVec4 pssm_split); -extern WrapLight WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensity( - WrapScene this_, float radius, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapLight WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority( - WrapScene this_, float radius, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapLight WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(WrapScene this_, float radius, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type); -extern WrapLight WrapCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(WrapScene this_, float radius, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type, float shadow_bias); -extern WrapLight WrapCreatePointLightScene(WrapScene this_, float radius, const WrapColor diffuse, const WrapColor specular); -extern WrapLight WrapCreatePointLightSceneWithPriority(WrapScene this_, float radius, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapLight WrapCreatePointLightSceneWithPriorityShadowType( - WrapScene this_, float radius, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapLight WrapCreatePointLightSceneWithPriorityShadowTypeShadowBias( - WrapScene this_, float radius, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias); -extern WrapLight WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensity(WrapScene this_, float radius, float inner_angle, float outer_angle, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapLight WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(WrapScene this_, float radius, float inner_angle, - float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapLight WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(WrapScene this_, float radius, float inner_angle, - float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type); -extern WrapLight WrapCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(WrapScene this_, float radius, - float inner_angle, float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, - int shadow_type, float shadow_bias); -extern WrapLight WrapCreateSpotLightScene( - WrapScene this_, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, const WrapColor specular); -extern WrapLight WrapCreateSpotLightSceneWithPriority( - WrapScene this_, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapLight WrapCreateSpotLightSceneWithPriorityShadowType( - WrapScene this_, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapLight WrapCreateSpotLightSceneWithPriorityShadowTypeShadowBias(WrapScene this_, float radius, float inner_angle, float outer_angle, - const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias); -extern void WrapReserveScriptsScene(WrapScene this_, size_t count); -extern WrapScript WrapCreateScriptScene(WrapScene this_); -extern WrapScript WrapCreateScriptSceneWithPath(WrapScene this_, const char *path); -extern void WrapDestroyScriptScene(WrapScene this_, const WrapScript script); -extern size_t WrapGetScriptCountScene(WrapScene this_); -extern void WrapSetScriptScene(WrapScene this_, size_t slot_idx, const WrapScript script); -extern WrapScript WrapGetScriptScene(WrapScene this_, size_t slot_idx); -extern WrapRigidBody WrapCreateRigidBodyScene(WrapScene this_); -extern void WrapDestroyRigidBodyScene(WrapScene this_, const WrapRigidBody rigid_body); -extern WrapCollision WrapCreateCollisionScene(WrapScene this_); -extern void WrapDestroyCollisionScene(WrapScene this_, const WrapCollision collision); -extern WrapInstance WrapCreateInstanceScene(WrapScene this_); -extern void WrapDestroyInstanceScene(WrapScene this_, const WrapInstance Instance); -extern void WrapSetProbeScene(WrapScene this_, WrapTextureRef irradiance, WrapTextureRef radiance, WrapTextureRef brdf); -extern WrapNode WrapGetCurrentCameraScene(WrapScene this_); -extern void WrapSetCurrentCameraScene(WrapScene this_, const WrapNode camera); -extern bool WrapGetMinMaxScene(WrapScene this_, const WrapPipelineResources resources, WrapMinMax minmax); -extern void WrapSceneViewFree(WrapSceneView); -extern WrapNodeList WrapGetNodesSceneView(WrapSceneView this_, const WrapScene scene); -extern WrapNode WrapGetNodeSceneView(WrapSceneView this_, const WrapScene scene, const char *name); -extern void WrapNodeFree(WrapNode); -extern bool WrapEqNode(WrapNode this_, const WrapNode n); -extern bool WrapIsValidNode(WrapNode this_); -extern uint32_t WrapGetUidNode(WrapNode this_); -extern uint32_t WrapGetFlagsNode(WrapNode this_); -extern void WrapSetFlagsNode(WrapNode this_, uint32_t flags); -extern void WrapEnableNode(WrapNode this_); -extern void WrapDisableNode(WrapNode this_); -extern bool WrapIsEnabledNode(WrapNode this_); -extern bool WrapIsItselfEnabledNode(WrapNode this_); -extern bool WrapHasTransformNode(WrapNode this_); -extern WrapTransform WrapGetTransformNode(WrapNode this_); -extern void WrapSetTransformNode(WrapNode this_, const WrapTransform t); -extern void WrapRemoveTransformNode(WrapNode this_); -extern bool WrapHasCameraNode(WrapNode this_); -extern WrapCamera WrapGetCameraNode(WrapNode this_); -extern void WrapSetCameraNode(WrapNode this_, const WrapCamera c); -extern void WrapRemoveCameraNode(WrapNode this_); -extern WrapViewState WrapComputeCameraViewStateNode(WrapNode this_, const WrapVec2 aspect_ratio); -extern bool WrapHasObjectNode(WrapNode this_); -extern WrapObject WrapGetObjectNode(WrapNode this_); -extern void WrapSetObjectNode(WrapNode this_, const WrapObject o); -extern void WrapRemoveObjectNode(WrapNode this_); -extern bool WrapGetMinMaxNode(WrapNode this_, const WrapPipelineResources resources, WrapMinMax minmax); -extern bool WrapHasLightNode(WrapNode this_); -extern WrapLight WrapGetLightNode(WrapNode this_); -extern void WrapSetLightNode(WrapNode this_, const WrapLight l); -extern void WrapRemoveLightNode(WrapNode this_); -extern bool WrapHasRigidBodyNode(WrapNode this_); -extern WrapRigidBody WrapGetRigidBodyNode(WrapNode this_); -extern void WrapSetRigidBodyNode(WrapNode this_, const WrapRigidBody b); -extern void WrapRemoveRigidBodyNode(WrapNode this_); -extern size_t WrapGetCollisionCountNode(WrapNode this_); -extern WrapCollision WrapGetCollisionNode(WrapNode this_, size_t slot); -extern void WrapSetCollisionNode(WrapNode this_, size_t slot, const WrapCollision c); -extern void WrapRemoveCollisionNode(WrapNode this_, const WrapCollision c); -extern void WrapRemoveCollisionNodeWithSlot(WrapNode this_, size_t slot); -extern const char *WrapGetNameNode(WrapNode this_); -extern void WrapSetNameNode(WrapNode this_, const char *name); -extern size_t WrapGetScriptCountNode(WrapNode this_); -extern WrapScript WrapGetScriptNode(WrapNode this_, size_t idx); -extern void WrapSetScriptNode(WrapNode this_, size_t idx, const WrapScript s); -extern void WrapRemoveScriptNode(WrapNode this_, const WrapScript s); -extern void WrapRemoveScriptNodeWithSlot(WrapNode this_, size_t slot); -extern bool WrapHasInstanceNode(WrapNode this_); -extern WrapInstance WrapGetInstanceNode(WrapNode this_); -extern void WrapSetInstanceNode(WrapNode this_, const WrapInstance instance); -extern bool WrapSetupInstanceFromFileNode(WrapNode this_, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapSetupInstanceFromFileNodeWithFlags(WrapNode this_, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapSetupInstanceFromAssetsNode(WrapNode this_, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapSetupInstanceFromAssetsNodeWithFlags(WrapNode this_, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern void WrapDestroyInstanceNode(WrapNode this_); -extern WrapNode WrapIsInstantiatedByNode(WrapNode this_); -extern WrapSceneView WrapGetInstanceSceneViewNode(WrapNode this_); -extern WrapSceneAnimRef WrapGetInstanceSceneAnimNode(WrapNode this_, const char *path); -extern void WrapStartOnInstantiateAnimNode(WrapNode this_); -extern void WrapStopOnInstantiateAnimNode(WrapNode this_); -extern WrapMat4 WrapGetWorldNode(WrapNode this_); -extern void WrapSetWorldNode(WrapNode this_, const WrapMat4 world); -extern WrapMat4 WrapComputeWorldNode(WrapNode this_); -extern WrapVec3 WrapTransformTRSGetPos(WrapTransformTRS h); -extern void WrapTransformTRSSetPos(WrapTransformTRS h, WrapVec3 v); -extern WrapVec3 WrapTransformTRSGetRot(WrapTransformTRS h); -extern void WrapTransformTRSSetRot(WrapTransformTRS h, WrapVec3 v); -extern WrapVec3 WrapTransformTRSGetScl(WrapTransformTRS h); -extern void WrapTransformTRSSetScl(WrapTransformTRS h, WrapVec3 v); -extern WrapTransformTRS WrapConstructorTransformTRS(); -extern void WrapTransformTRSFree(WrapTransformTRS); -extern void WrapTransformFree(WrapTransform); -extern bool WrapEqTransform(WrapTransform this_, const WrapTransform t); -extern bool WrapIsValidTransform(WrapTransform this_); -extern WrapVec3 WrapGetPosTransform(WrapTransform this_); -extern void WrapSetPosTransform(WrapTransform this_, const WrapVec3 T); -extern WrapVec3 WrapGetRotTransform(WrapTransform this_); -extern void WrapSetRotTransform(WrapTransform this_, const WrapVec3 R); -extern WrapVec3 WrapGetScaleTransform(WrapTransform this_); -extern void WrapSetScaleTransform(WrapTransform this_, const WrapVec3 S); -extern WrapTransformTRS WrapGetTRSTransform(WrapTransform this_); -extern void WrapSetTRSTransform(WrapTransform this_, const WrapTransformTRS TRS); -extern void WrapGetPosRotTransform(WrapTransform this_, WrapVec3 pos, WrapVec3 rot); -extern void WrapSetPosRotTransform(WrapTransform this_, const WrapVec3 pos, const WrapVec3 rot); -extern WrapNode WrapGetParentTransform(WrapTransform this_); -extern void WrapSetParentTransform(WrapTransform this_, const WrapNode n); -extern void WrapClearParentTransform(WrapTransform this_); -extern WrapMat4 WrapGetWorldTransform(WrapTransform this_); -extern void WrapSetWorldTransform(WrapTransform this_, const WrapMat4 world); -extern void WrapSetLocalTransform(WrapTransform this_, const WrapMat4 local); -extern float WrapCameraZRangeGetZnear(WrapCameraZRange h); -extern void WrapCameraZRangeSetZnear(WrapCameraZRange h, float v); -extern float WrapCameraZRangeGetZfar(WrapCameraZRange h); -extern void WrapCameraZRangeSetZfar(WrapCameraZRange h, float v); -extern WrapCameraZRange WrapConstructorCameraZRange(); -extern void WrapCameraZRangeFree(WrapCameraZRange); -extern void WrapCameraFree(WrapCamera); -extern bool WrapEqCamera(WrapCamera this_, const WrapCamera c); -extern bool WrapIsValidCamera(WrapCamera this_); -extern float WrapGetZNearCamera(WrapCamera this_); -extern void WrapSetZNearCamera(WrapCamera this_, float v); -extern float WrapGetZFarCamera(WrapCamera this_); -extern void WrapSetZFarCamera(WrapCamera this_, float v); -extern WrapCameraZRange WrapGetZRangeCamera(WrapCamera this_); -extern void WrapSetZRangeCamera(WrapCamera this_, const WrapCameraZRange z); -extern float WrapGetFovCamera(WrapCamera this_); -extern void WrapSetFovCamera(WrapCamera this_, float v); -extern bool WrapGetIsOrthographicCamera(WrapCamera this_); -extern void WrapSetIsOrthographicCamera(WrapCamera this_, bool v); -extern float WrapGetSizeCamera(WrapCamera this_); -extern void WrapSetSizeCamera(WrapCamera this_, float v); -extern void WrapObjectFree(WrapObject); -extern bool WrapEqObject(WrapObject this_, const WrapObject o); -extern bool WrapIsValidObject(WrapObject this_); -extern WrapModelRef WrapGetModelRefObject(WrapObject this_); -extern void WrapSetModelRefObject(WrapObject this_, const WrapModelRef r); -extern void WrapClearModelRefObject(WrapObject this_); -extern WrapMaterial WrapGetMaterialObject(WrapObject this_, size_t slot_idx); -extern WrapMaterial WrapGetMaterialObjectWithName(WrapObject this_, const char *name); -extern void WrapSetMaterialObject(WrapObject this_, size_t slot_idx, WrapMaterial mat); -extern size_t WrapGetMaterialCountObject(WrapObject this_); -extern void WrapSetMaterialCountObject(WrapObject this_, size_t count); -extern const char *WrapGetMaterialNameObject(WrapObject this_, size_t slot_idx); -extern void WrapSetMaterialNameObject(WrapObject this_, size_t slot_idx, const char *name); -extern bool WrapGetMinMaxObject(WrapObject this_, const WrapPipelineResources resources, WrapMinMax minmax); -extern size_t WrapGetBoneCountObject(WrapObject this_); -extern void WrapSetBoneCountObject(WrapObject this_, size_t count); -extern bool WrapSetBoneObject(WrapObject this_, size_t idx, const WrapNode node); -extern WrapNode WrapGetBoneObject(WrapObject this_, size_t idx); -extern void WrapLightFree(WrapLight); -extern bool WrapEqLight(WrapLight this_, const WrapLight l); -extern bool WrapIsValidLight(WrapLight this_); -extern int WrapGetTypeLight(WrapLight this_); -extern void WrapSetTypeLight(WrapLight this_, int v); -extern int WrapGetShadowTypeLight(WrapLight this_); -extern void WrapSetShadowTypeLight(WrapLight this_, int v); -extern WrapColor WrapGetDiffuseColorLight(WrapLight this_); -extern void WrapSetDiffuseColorLight(WrapLight this_, const WrapColor v); -extern float WrapGetDiffuseIntensityLight(WrapLight this_); -extern void WrapSetDiffuseIntensityLight(WrapLight this_, float v); -extern WrapColor WrapGetSpecularColorLight(WrapLight this_); -extern void WrapSetSpecularColorLight(WrapLight this_, const WrapColor v); -extern float WrapGetSpecularIntensityLight(WrapLight this_); -extern void WrapSetSpecularIntensityLight(WrapLight this_, float v); -extern float WrapGetRadiusLight(WrapLight this_); -extern void WrapSetRadiusLight(WrapLight this_, float v); -extern float WrapGetInnerAngleLight(WrapLight this_); -extern void WrapSetInnerAngleLight(WrapLight this_, float v); -extern float WrapGetOuterAngleLight(WrapLight this_); -extern void WrapSetOuterAngleLight(WrapLight this_, float v); -extern WrapVec4 WrapGetPSSMSplitLight(WrapLight this_); -extern void WrapSetPSSMSplitLight(WrapLight this_, const WrapVec4 v); -extern float WrapGetPriorityLight(WrapLight this_); -extern void WrapSetPriorityLight(WrapLight this_, float v); -extern WrapVec3 WrapContactGetP(WrapContact h); -extern void WrapContactSetP(WrapContact h, WrapVec3 v); -extern WrapVec3 WrapContactGetN(WrapContact h); -extern void WrapContactSetN(WrapContact h, WrapVec3 v); -extern float WrapContactGetD(WrapContact h); -extern void WrapContactSetD(WrapContact h, float v); -extern void WrapContactFree(WrapContact); -extern WrapContact WrapContactListGetOperator(WrapContactList h, int id); -extern void WrapContactListSetOperator(WrapContactList h, int id, WrapContact v); -extern int WrapContactListLenOperator(WrapContactList h); -extern WrapContactList WrapConstructorContactList(); -extern WrapContactList WrapConstructorContactListWithSequence(size_t sequenceToCSize, WrapContact *sequenceToCBuf); -extern void WrapContactListFree(WrapContactList); -extern void WrapClearContactList(WrapContactList this_); -extern void WrapReserveContactList(WrapContactList this_, size_t size); -extern void WrapPushBackContactList(WrapContactList this_, WrapContact v); -extern size_t WrapSizeContactList(WrapContactList this_); -extern WrapContact WrapAtContactList(WrapContactList this_, size_t idx); -extern void WrapRigidBodyFree(WrapRigidBody); -extern bool WrapEqRigidBody(WrapRigidBody this_, const WrapRigidBody b); -extern bool WrapIsValidRigidBody(WrapRigidBody this_); -extern uint8_t WrapGetTypeRigidBody(WrapRigidBody this_); -extern void WrapSetTypeRigidBody(WrapRigidBody this_, uint8_t type); -extern float WrapGetLinearDampingRigidBody(WrapRigidBody this_); -extern void WrapSetLinearDampingRigidBody(WrapRigidBody this_, float damping); -extern float WrapGetAngularDampingRigidBody(WrapRigidBody this_); -extern void WrapSetAngularDampingRigidBody(WrapRigidBody this_, float damping); -extern float WrapGetRestitutionRigidBody(WrapRigidBody this_); -extern void WrapSetRestitutionRigidBody(WrapRigidBody this_, float restitution); -extern float WrapGetFrictionRigidBody(WrapRigidBody this_); -extern void WrapSetFrictionRigidBody(WrapRigidBody this_, float friction); -extern float WrapGetRollingFrictionRigidBody(WrapRigidBody this_); -extern void WrapSetRollingFrictionRigidBody(WrapRigidBody this_, float rolling_friction); -extern void WrapCollisionFree(WrapCollision); -extern bool WrapEqCollision(WrapCollision this_, const WrapCollision c); -extern bool WrapIsValidCollision(WrapCollision this_); -extern uint8_t WrapGetTypeCollision(WrapCollision this_); -extern void WrapSetTypeCollision(WrapCollision this_, uint8_t type); -extern WrapMat4 WrapGetLocalTransformCollision(WrapCollision this_); -extern void WrapSetLocalTransformCollision(WrapCollision this_, WrapMat4 m); -extern float WrapGetMassCollision(WrapCollision this_); -extern void WrapSetMassCollision(WrapCollision this_, float mass); -extern float WrapGetRadiusCollision(WrapCollision this_); -extern void WrapSetRadiusCollision(WrapCollision this_, float radius); -extern float WrapGetHeightCollision(WrapCollision this_); -extern void WrapSetHeightCollision(WrapCollision this_, float height); -extern void WrapSetSizeCollision(WrapCollision this_, const WrapVec3 size); -extern const char *WrapGetCollisionResourceCollision(WrapCollision this_); -extern void WrapSetCollisionResourceCollision(WrapCollision this_, const char *path); -extern void WrapInstanceFree(WrapInstance); -extern bool WrapEqInstance(WrapInstance this_, const WrapInstance i); -extern bool WrapIsValidInstance(WrapInstance this_); -extern const char *WrapGetPathInstance(WrapInstance this_); -extern void WrapSetPathInstance(WrapInstance this_, const char *path); -extern void WrapSetOnInstantiateAnimInstance(WrapInstance this_, const char *anim); -extern void WrapSetOnInstantiateAnimLoopModeInstance(WrapInstance this_, int loop_mode); -extern void WrapClearOnInstantiateAnimInstance(WrapInstance this_); -extern const char *WrapGetOnInstantiateAnimInstance(WrapInstance this_); -extern int WrapGetOnInstantiateAnimLoopModeInstance(WrapInstance this_); -extern WrapScenePlayAnimRef WrapGetOnInstantiatePlayAnimRefInstance(WrapInstance this_); -extern void WrapScriptFree(WrapScript); -extern bool WrapEqScript(WrapScript this_, const WrapScript s); -extern bool WrapIsValidScript(WrapScript this_); -extern const char *WrapGetPathScript(WrapScript this_); -extern void WrapSetPathScript(WrapScript this_, const char *path); -extern WrapScript WrapScriptListGetOperator(WrapScriptList h, int id); -extern void WrapScriptListSetOperator(WrapScriptList h, int id, WrapScript v); -extern int WrapScriptListLenOperator(WrapScriptList h); -extern WrapScriptList WrapConstructorScriptList(); -extern WrapScriptList WrapConstructorScriptListWithSequence(size_t sequenceToCSize, WrapScript *sequenceToCBuf); -extern void WrapScriptListFree(WrapScriptList); -extern void WrapClearScriptList(WrapScriptList this_); -extern void WrapReserveScriptList(WrapScriptList this_, size_t size); -extern void WrapPushBackScriptList(WrapScriptList this_, WrapScript v); -extern size_t WrapSizeScriptList(WrapScriptList this_); -extern WrapScript WrapAtScriptList(WrapScriptList this_, size_t idx); -extern WrapNode WrapNodeListGetOperator(WrapNodeList h, int id); -extern void WrapNodeListSetOperator(WrapNodeList h, int id, WrapNode v); -extern int WrapNodeListLenOperator(WrapNodeList h); -extern WrapNodeList WrapConstructorNodeList(); -extern WrapNodeList WrapConstructorNodeListWithSequence(size_t sequenceToCSize, WrapNode *sequenceToCBuf); -extern void WrapNodeListFree(WrapNodeList); -extern void WrapClearNodeList(WrapNodeList this_); -extern void WrapReserveNodeList(WrapNodeList this_, size_t size); -extern void WrapPushBackNodeList(WrapNodeList this_, WrapNode v); -extern size_t WrapSizeNodeList(WrapNodeList this_); -extern WrapNode WrapAtNodeList(WrapNodeList this_, size_t idx); -extern WrapVec3 WrapRaycastOutGetP(WrapRaycastOut h); -extern void WrapRaycastOutSetP(WrapRaycastOut h, WrapVec3 v); -extern WrapVec3 WrapRaycastOutGetN(WrapRaycastOut h); -extern void WrapRaycastOutSetN(WrapRaycastOut h, WrapVec3 v); -extern WrapNode WrapRaycastOutGetNode(WrapRaycastOut h); -extern void WrapRaycastOutSetNode(WrapRaycastOut h, WrapNode v); -extern float WrapRaycastOutGetT(WrapRaycastOut h); -extern void WrapRaycastOutSetT(WrapRaycastOut h, float v); -extern void WrapRaycastOutFree(WrapRaycastOut); -extern WrapRaycastOut WrapRaycastOutListGetOperator(WrapRaycastOutList h, int id); -extern void WrapRaycastOutListSetOperator(WrapRaycastOutList h, int id, WrapRaycastOut v); -extern int WrapRaycastOutListLenOperator(WrapRaycastOutList h); -extern WrapRaycastOutList WrapConstructorRaycastOutList(); -extern WrapRaycastOutList WrapConstructorRaycastOutListWithSequence(size_t sequenceToCSize, WrapRaycastOut *sequenceToCBuf); -extern void WrapRaycastOutListFree(WrapRaycastOutList); -extern void WrapClearRaycastOutList(WrapRaycastOutList this_); -extern void WrapReserveRaycastOutList(WrapRaycastOutList this_, size_t size); -extern void WrapPushBackRaycastOutList(WrapRaycastOutList this_, WrapRaycastOut v); -extern size_t WrapSizeRaycastOutList(WrapRaycastOutList this_); -extern WrapRaycastOut WrapAtRaycastOutList(WrapRaycastOutList this_, size_t idx); -extern void WrapTimeCallbackConnectionFree(WrapTimeCallbackConnection); -extern void WrapSignalReturningVoidTakingTimeNsFree(WrapSignalReturningVoidTakingTimeNs); -extern WrapTimeCallbackConnection WrapConnectSignalReturningVoidTakingTimeNs( - WrapSignalReturningVoidTakingTimeNs this_, WrapFunctionReturningVoidTakingTimeNs listener); -extern void WrapDisconnectSignalReturningVoidTakingTimeNs(WrapSignalReturningVoidTakingTimeNs this_, WrapTimeCallbackConnection connection); -extern void WrapDisconnectAllSignalReturningVoidTakingTimeNs(WrapSignalReturningVoidTakingTimeNs this_); -extern void WrapEmitSignalReturningVoidTakingTimeNs(WrapSignalReturningVoidTakingTimeNs this_, int64_t arg0); -extern size_t WrapGetListenerCountSignalReturningVoidTakingTimeNs(WrapSignalReturningVoidTakingTimeNs this_); -extern bool WrapCanvasGetClearZ(WrapCanvas h); -extern void WrapCanvasSetClearZ(WrapCanvas h, bool v); -extern bool WrapCanvasGetClearColor(WrapCanvas h); -extern void WrapCanvasSetClearColor(WrapCanvas h, bool v); -extern WrapColor WrapCanvasGetColor(WrapCanvas h); -extern void WrapCanvasSetColor(WrapCanvas h, WrapColor v); -extern void WrapCanvasFree(WrapCanvas); -extern WrapColor WrapEnvironmentGetAmbient(WrapEnvironment h); -extern void WrapEnvironmentSetAmbient(WrapEnvironment h, WrapColor v); -extern WrapColor WrapEnvironmentGetFogColor(WrapEnvironment h); -extern void WrapEnvironmentSetFogColor(WrapEnvironment h, WrapColor v); -extern float WrapEnvironmentGetFogNear(WrapEnvironment h); -extern void WrapEnvironmentSetFogNear(WrapEnvironment h, float v); -extern float WrapEnvironmentGetFogFar(WrapEnvironment h); -extern void WrapEnvironmentSetFogFar(WrapEnvironment h, float v); -extern WrapTextureRef WrapEnvironmentGetBrdfMap(WrapEnvironment h); -extern void WrapEnvironmentSetBrdfMap(WrapEnvironment h, WrapTextureRef v); -extern void WrapEnvironmentFree(WrapEnvironment); -extern WrapSceneForwardPipelinePassViewId WrapConstructorSceneForwardPipelinePassViewId(); -extern void WrapSceneForwardPipelinePassViewIdFree(WrapSceneForwardPipelinePassViewId); -extern WrapSceneForwardPipelineRenderData WrapConstructorSceneForwardPipelineRenderData(); -extern void WrapSceneForwardPipelineRenderDataFree(WrapSceneForwardPipelineRenderData); -extern float WrapForwardPipelineAAAConfigGetTemporalAaWeight(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetTemporalAaWeight(WrapForwardPipelineAAAConfig h, float v); -extern int WrapForwardPipelineAAAConfigGetSampleCount(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetSampleCount(WrapForwardPipelineAAAConfig h, int v); -extern float WrapForwardPipelineAAAConfigGetMaxDistance(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetMaxDistance(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetZThickness(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetZThickness(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetBloomThreshold(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetBloomThreshold(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetBloomBias(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetBloomBias(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetBloomIntensity(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetBloomIntensity(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetMotionBlur(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetMotionBlur(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetExposure(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetExposure(WrapForwardPipelineAAAConfig h, float v); -extern float WrapForwardPipelineAAAConfigGetGamma(WrapForwardPipelineAAAConfig h); -extern void WrapForwardPipelineAAAConfigSetGamma(WrapForwardPipelineAAAConfig h, float v); -extern WrapForwardPipelineAAAConfig WrapConstructorForwardPipelineAAAConfig(); -extern void WrapForwardPipelineAAAConfigFree(WrapForwardPipelineAAAConfig); -extern void WrapForwardPipelineAAAFree(WrapForwardPipelineAAA); -extern void WrapFlipForwardPipelineAAA(WrapForwardPipelineAAA this_, const WrapViewState view_state); -extern WrapNodePairContacts WrapConstructorNodePairContacts(); -extern void WrapNodePairContactsFree(WrapNodePairContacts); -extern WrapSceneBullet3Physics WrapConstructorSceneBullet3Physics(); -extern WrapSceneBullet3Physics WrapConstructorSceneBullet3PhysicsWithThreadCount(int thread_count); -extern void WrapSceneBullet3PhysicsFree(WrapSceneBullet3Physics); -extern void WrapSceneCreatePhysicsFromFileSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene); -extern void WrapSceneCreatePhysicsFromAssetsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene); -extern void WrapNodeCreatePhysicsFromFileSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeCreatePhysicsFromAssetsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeStartTrackingCollisionEventsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeStartTrackingCollisionEventsSceneBullet3PhysicsWithMode(WrapSceneBullet3Physics this_, const WrapNode node, uint8_t mode); -extern void WrapNodeStopTrackingCollisionEventsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeDestroyPhysicsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern bool WrapNodeHasBodySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapStepSimulationSceneBullet3Physics(WrapSceneBullet3Physics this_, int64_t display_dt); -extern void WrapStepSimulationSceneBullet3PhysicsWithStepDt(WrapSceneBullet3Physics this_, int64_t display_dt, int64_t step_dt); -extern void WrapStepSimulationSceneBullet3PhysicsWithStepDtMaxStep(WrapSceneBullet3Physics this_, int64_t display_dt, int64_t step_dt, int max_step); -extern void WrapCollectCollisionEventsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene, WrapNodePairContacts node_pair_contacts); -extern void WrapSyncTransformsFromSceneSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene); -extern void WrapSyncTransformsToSceneSceneBullet3Physics(WrapSceneBullet3Physics this_, WrapScene scene); -extern size_t WrapGarbageCollectSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene); -extern size_t WrapGarbageCollectResourcesSceneBullet3Physics(WrapSceneBullet3Physics this_); -extern void WrapClearNodesSceneBullet3Physics(WrapSceneBullet3Physics this_); -extern void WrapClearSceneBullet3Physics(WrapSceneBullet3Physics this_); -extern void WrapNodeWakeSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeSetDeactivationSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, bool enable); -extern bool WrapNodeGetDeactivationSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeResetWorldSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapMat4 world); -extern void WrapNodeTeleportSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapMat4 world); -extern void WrapNodeAddForceSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 F); -extern void WrapNodeAddForceSceneBullet3PhysicsWithWorldPos(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 F, const WrapVec3 world_pos); -extern void WrapNodeAddImpulseSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 dt_velocity); -extern void WrapNodeAddImpulseSceneBullet3PhysicsWithWorldPos( - WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 dt_velocity, const WrapVec3 world_pos); -extern void WrapNodeAddTorqueSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 T); -extern void WrapNodeAddTorqueImpulseSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 dt_angular_velocity); -extern WrapVec3 WrapNodeGetPointVelocitySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 world_pos); -extern WrapVec3 WrapNodeGetLinearVelocitySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeSetLinearVelocitySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 V); -extern WrapVec3 WrapNodeGetAngularVelocitySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeSetAngularVelocitySceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 W); -extern WrapVec3 WrapNodeGetLinearFactorSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeSetLinearFactorSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 k); -extern WrapVec3 WrapNodeGetAngularFactorSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node); -extern void WrapNodeSetAngularFactorSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapVec3 k); -extern WrapNodePairContacts WrapNodeCollideWorldSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapNode node, const WrapMat4 world); -extern WrapNodePairContacts WrapNodeCollideWorldSceneBullet3PhysicsWithMaxContact( - WrapSceneBullet3Physics this_, const WrapNode node, const WrapMat4 world, int max_contact); -extern WrapRaycastOut WrapRaycastFirstHitSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene, const WrapVec3 p0, const WrapVec3 p1); -extern WrapRaycastOutList WrapRaycastAllHitsSceneBullet3Physics(WrapSceneBullet3Physics this_, const WrapScene scene, const WrapVec3 p0, const WrapVec3 p1); -extern void WrapRenderCollisionSceneBullet3Physics( - WrapSceneBullet3Physics this_, uint16_t view_id, const WrapVertexLayout vtx_layout, WrapProgramHandle prg, WrapRenderState render_state, uint32_t depth); -extern WrapSceneLuaVM WrapConstructorSceneLuaVM(); -extern void WrapSceneLuaVMFree(WrapSceneLuaVM); -extern bool WrapCreateScriptFromSourceSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene, const WrapScript script, const char *src); -extern bool WrapCreateScriptFromFileSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene, const WrapScript script); -extern bool WrapCreateScriptFromAssetsSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene, const WrapScript script); -extern WrapScriptList WrapCreateNodeScriptsFromFileSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene, const WrapNode node); -extern WrapScriptList WrapCreateNodeScriptsFromAssetsSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene, const WrapNode node); -extern WrapScriptList WrapSceneCreateScriptsFromFileSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene); -extern WrapScriptList WrapSceneCreateScriptsFromAssetsSceneLuaVM(WrapSceneLuaVM this_, WrapScene scene); -extern WrapScriptList WrapGarbageCollectSceneLuaVM(WrapSceneLuaVM this_, const WrapScene scene); -extern void WrapDestroyScriptsSceneLuaVM(WrapSceneLuaVM this_, const WrapScriptList scripts); -extern WrapStringList WrapGetScriptInterfaceSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script); -extern size_t WrapGetScriptCountSceneLuaVM(WrapSceneLuaVM this_); -extern WrapLuaObject WrapGetScriptEnvSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script); -extern WrapLuaObject WrapGetScriptValueSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *name); -extern bool WrapSetScriptValueSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *name, const WrapLuaObject value); -extern bool WrapSetScriptValueSceneLuaVMWithNotify(WrapSceneLuaVM this_, const WrapScript script, const char *name, const WrapLuaObject value, bool notify); -extern bool WrapCallSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *function, const WrapLuaObjectList args, WrapLuaObjectList ret_vals); -extern bool WrapCallSceneLuaVMWithSliceOfArgs(WrapSceneLuaVM this_, const WrapScript script, const char *function, size_t SliceOfargsToCSize, - WrapLuaObject *SliceOfargsToCBuf, WrapLuaObjectList ret_vals); -extern WrapLuaObject WrapMakeLuaObjectSceneLuaVM(WrapSceneLuaVM this_); -extern WrapSceneClocks WrapConstructorSceneClocks(); -extern void WrapSceneClocksFree(WrapSceneClocks); -extern void WrapMouseStateFree(WrapMouseState); -extern int WrapXMouseState(WrapMouseState this_); -extern int WrapYMouseState(WrapMouseState this_); -extern bool WrapButtonMouseState(WrapMouseState this_, int btn); -extern int WrapWheelMouseState(WrapMouseState this_); -extern int WrapHWheelMouseState(WrapMouseState this_); -extern WrapMouse WrapConstructorMouse(); -extern WrapMouse WrapConstructorMouseWithName(const char *name); -extern void WrapMouseFree(WrapMouse); -extern int WrapXMouse(WrapMouse this_); -extern int WrapYMouse(WrapMouse this_); -extern int WrapDtXMouse(WrapMouse this_); -extern int WrapDtYMouse(WrapMouse this_); -extern bool WrapDownMouse(WrapMouse this_, int button); -extern bool WrapPressedMouse(WrapMouse this_, int button); -extern bool WrapReleasedMouse(WrapMouse this_, int button); -extern int WrapWheelMouse(WrapMouse this_); -extern int WrapHWheelMouse(WrapMouse this_); -extern void WrapUpdateMouse(WrapMouse this_); -extern WrapMouseState WrapGetStateMouse(WrapMouse this_); -extern WrapMouseState WrapGetOldStateMouse(WrapMouse this_); -extern void WrapKeyboardStateFree(WrapKeyboardState); -extern bool WrapKeyKeyboardState(WrapKeyboardState this_, int key); -extern WrapKeyboard WrapConstructorKeyboard(); -extern WrapKeyboard WrapConstructorKeyboardWithName(const char *name); -extern void WrapKeyboardFree(WrapKeyboard); -extern bool WrapDownKeyboard(WrapKeyboard this_, int key); -extern bool WrapPressedKeyboard(WrapKeyboard this_, int key); -extern bool WrapReleasedKeyboard(WrapKeyboard this_, int key); -extern void WrapUpdateKeyboard(WrapKeyboard this_); -extern WrapKeyboardState WrapGetStateKeyboard(WrapKeyboard this_); -extern WrapKeyboardState WrapGetOldStateKeyboard(WrapKeyboard this_); -extern void WrapTextInputCallbackConnectionFree(WrapTextInputCallbackConnection); -extern void WrapSignalReturningVoidTakingConstCharPtrFree(WrapSignalReturningVoidTakingConstCharPtr); -extern WrapTextInputCallbackConnection WrapConnectSignalReturningVoidTakingConstCharPtr( - WrapSignalReturningVoidTakingConstCharPtr this_, WrapFunctionReturningVoidTakingConstCharPtr listener); -extern void WrapDisconnectSignalReturningVoidTakingConstCharPtr(WrapSignalReturningVoidTakingConstCharPtr this_, WrapTextInputCallbackConnection connection); -extern void WrapDisconnectAllSignalReturningVoidTakingConstCharPtr(WrapSignalReturningVoidTakingConstCharPtr this_); -extern void WrapEmitSignalReturningVoidTakingConstCharPtr(WrapSignalReturningVoidTakingConstCharPtr this_, const char *arg0); -extern size_t WrapGetListenerCountSignalReturningVoidTakingConstCharPtr(WrapSignalReturningVoidTakingConstCharPtr this_); -extern void WrapGamepadStateFree(WrapGamepadState); -extern bool WrapIsConnectedGamepadState(WrapGamepadState this_); -extern float WrapAxesGamepadState(WrapGamepadState this_, int idx); -extern bool WrapButtonGamepadState(WrapGamepadState this_, int btn); -extern WrapGamepad WrapConstructorGamepad(); -extern WrapGamepad WrapConstructorGamepadWithName(const char *name); -extern void WrapGamepadFree(WrapGamepad); -extern bool WrapIsConnectedGamepad(WrapGamepad this_); -extern bool WrapConnectedGamepad(WrapGamepad this_); -extern bool WrapDisconnectedGamepad(WrapGamepad this_); -extern float WrapAxesGamepad(WrapGamepad this_, int axis); -extern float WrapDtAxesGamepad(WrapGamepad this_, int axis); -extern bool WrapDownGamepad(WrapGamepad this_, int btn); -extern bool WrapPressedGamepad(WrapGamepad this_, int btn); -extern bool WrapReleasedGamepad(WrapGamepad this_, int btn); -extern void WrapUpdateGamepad(WrapGamepad this_); -extern void WrapJoystickStateFree(WrapJoystickState); -extern bool WrapIsConnectedJoystickState(WrapJoystickState this_); -extern float WrapAxesJoystickState(WrapJoystickState this_, int idx); -extern bool WrapButtonJoystickState(WrapJoystickState this_, int btn); -extern WrapJoystick WrapConstructorJoystick(); -extern WrapJoystick WrapConstructorJoystickWithName(const char *name); -extern void WrapJoystickFree(WrapJoystick); -extern bool WrapIsConnectedJoystick(WrapJoystick this_); -extern bool WrapConnectedJoystick(WrapJoystick this_); -extern bool WrapDisconnectedJoystick(WrapJoystick this_); -extern int WrapAxesCountJoystick(WrapJoystick this_); -extern float WrapAxesJoystick(WrapJoystick this_, int axis); -extern float WrapDtAxesJoystick(WrapJoystick this_, int axis); -extern int WrapButtonsCountJoystick(WrapJoystick this_); -extern bool WrapDownJoystick(WrapJoystick this_, int btn); -extern bool WrapPressedJoystick(WrapJoystick this_, int btn); -extern bool WrapReleasedJoystick(WrapJoystick this_, int btn); -extern void WrapUpdateJoystick(WrapJoystick this_); -extern const char *WrapGetDeviceNameJoystick(WrapJoystick this_); -extern void WrapVRControllerStateFree(WrapVRControllerState); -extern bool WrapIsConnectedVRControllerState(WrapVRControllerState this_); -extern WrapMat4 WrapWorldVRControllerState(WrapVRControllerState this_); -extern bool WrapPressedVRControllerState(WrapVRControllerState this_, int btn); -extern bool WrapTouchedVRControllerState(WrapVRControllerState this_, int btn); -extern WrapVec2 WrapSurfaceVRControllerState(WrapVRControllerState this_, int idx); -extern WrapVRController WrapConstructorVRController(); -extern WrapVRController WrapConstructorVRControllerWithName(const char *name); -extern void WrapVRControllerFree(WrapVRController); -extern bool WrapIsConnectedVRController(WrapVRController this_); -extern bool WrapConnectedVRController(WrapVRController this_); -extern bool WrapDisconnectedVRController(WrapVRController this_); -extern WrapMat4 WrapWorldVRController(WrapVRController this_); -extern bool WrapDownVRController(WrapVRController this_, int btn); -extern bool WrapPressedVRController(WrapVRController this_, int btn); -extern bool WrapReleasedVRController(WrapVRController this_, int btn); -extern bool WrapTouchVRController(WrapVRController this_, int btn); -extern bool WrapTouchStartVRController(WrapVRController this_, int btn); -extern bool WrapTouchEndVRController(WrapVRController this_, int btn); -extern WrapVec2 WrapSurfaceVRController(WrapVRController this_, int idx); -extern WrapVec2 WrapDtSurfaceVRController(WrapVRController this_, int idx); -extern void WrapSendHapticPulseVRController(WrapVRController this_, int64_t duration); -extern void WrapUpdateVRController(WrapVRController this_); -extern void WrapVRGenericTrackerStateFree(WrapVRGenericTrackerState); -extern bool WrapIsConnectedVRGenericTrackerState(WrapVRGenericTrackerState this_); -extern WrapMat4 WrapWorldVRGenericTrackerState(WrapVRGenericTrackerState this_); -extern WrapVRGenericTracker WrapConstructorVRGenericTracker(); -extern WrapVRGenericTracker WrapConstructorVRGenericTrackerWithName(const char *name); -extern void WrapVRGenericTrackerFree(WrapVRGenericTracker); -extern bool WrapIsConnectedVRGenericTracker(WrapVRGenericTracker this_); -extern WrapMat4 WrapWorldVRGenericTracker(WrapVRGenericTracker this_); -extern void WrapUpdateVRGenericTracker(WrapVRGenericTracker this_); -extern void WrapDearImguiContextFree(WrapDearImguiContext); -extern void WrapImFontFree(WrapImFont); -extern void WrapImDrawListFree(WrapImDrawList); -extern void WrapPushClipRectImDrawList(WrapImDrawList this_, WrapVec2 clip_rect_min, WrapVec2 clip_rect_max); -extern void WrapPushClipRectImDrawListWithIntersectWithCurentClipRect( - WrapImDrawList this_, WrapVec2 clip_rect_min, WrapVec2 clip_rect_max, bool intersect_with_curent_clip_rect); -extern void WrapPushClipRectFullScreenImDrawList(WrapImDrawList this_); -extern void WrapPopClipRectImDrawList(WrapImDrawList this_); -extern void WrapPushTextureIDImDrawList(WrapImDrawList this_, const WrapTexture tex); -extern void WrapPopTextureIDImDrawList(WrapImDrawList this_); -extern WrapVec2 WrapGetClipRectMinImDrawList(WrapImDrawList this_); -extern WrapVec2 WrapGetClipRectMaxImDrawList(WrapImDrawList this_); -extern void WrapAddLineImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col); -extern void WrapAddLineImDrawListWithThickness(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float thickness); -extern void WrapAddRectImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col); -extern void WrapAddRectImDrawListWithRounding(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float rounding); -extern void WrapAddRectImDrawListWithRoundingRoundingCornerFlags( - WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float rounding, int rounding_corner_flags); -extern void WrapAddRectImDrawListWithRoundingRoundingCornerFlagsThickness( - WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float rounding, int rounding_corner_flags, float thickness); -extern void WrapAddRectFilledImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col); -extern void WrapAddRectFilledImDrawListWithRounding(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float rounding); -extern void WrapAddRectFilledImDrawListWithRoundingRoundingCornerFlags( - WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col, float rounding, int rounding_corner_flags); -extern void WrapAddRectFilledMultiColorImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, unsigned int col_upr_left, +extern HarfangMat4 HarfangConstructorMat4WithMat3M(const HarfangMat3 m); +extern void HarfangMat4Free(HarfangMat4); +extern HarfangMat4 HarfangAddMat4(HarfangMat4 this_, HarfangMat4 m); +extern HarfangMat4 HarfangSubMat4(HarfangMat4 this_, HarfangMat4 m); +extern HarfangMat4 HarfangMulMat4(HarfangMat4 this_, const float v); +extern HarfangMat4 HarfangMulMat4WithM(HarfangMat4 this_, const HarfangMat4 m); +extern HarfangVec3 HarfangMulMat4WithV(HarfangMat4 this_, const HarfangVec3 v); +extern HarfangVec4 HarfangMulMat4WithVec4V(HarfangMat4 this_, const HarfangVec4 v); +extern HarfangMat44 HarfangMulMat4WithMat44M(HarfangMat4 this_, const HarfangMat44 m); +extern HarfangMinMax HarfangMulMat4WithMinmax(HarfangMat4 this_, const HarfangMinMax minmax); +extern bool HarfangEqMat4(HarfangMat4 this_, const HarfangMat4 m); +extern bool HarfangNeMat4(HarfangMat4 this_, const HarfangMat4 m); +extern HarfangMat44 HarfangMat44GetZero(); +extern HarfangMat44 HarfangMat44GetIdentity(); +extern HarfangMat44 HarfangConstructorMat44(); +extern HarfangMat44 HarfangConstructorMat44WithM00M10M20M30M01M11M21M31M02M12M22M32M03M13M23M33(float m00, float m10, float m20, float m30, float m01, + float m11, float m21, float m31, float m02, float m12, float m22, float m32, float m03, float m13, float m23, float m33); +extern void HarfangMat44Free(HarfangMat44); +extern HarfangMat44 HarfangMulMat44(HarfangMat44 this_, const HarfangMat4 m); +extern HarfangMat44 HarfangMulMat44WithM(HarfangMat44 this_, const HarfangMat44 m); +extern HarfangVec3 HarfangMulMat44WithV(HarfangMat44 this_, const HarfangVec3 v); +extern HarfangVec4 HarfangMulMat44WithVec4V(HarfangMat44 this_, const HarfangVec4 v); +extern float HarfangQuaternionGetX(HarfangQuaternion h); +extern void HarfangQuaternionSetX(HarfangQuaternion h, float v); +extern float HarfangQuaternionGetY(HarfangQuaternion h); +extern void HarfangQuaternionSetY(HarfangQuaternion h, float v); +extern float HarfangQuaternionGetZ(HarfangQuaternion h); +extern void HarfangQuaternionSetZ(HarfangQuaternion h, float v); +extern float HarfangQuaternionGetW(HarfangQuaternion h); +extern void HarfangQuaternionSetW(HarfangQuaternion h, float v); +extern HarfangQuaternion HarfangConstructorQuaternion(); +extern HarfangQuaternion HarfangConstructorQuaternionWithXYZW(float x, float y, float z, float w); +extern HarfangQuaternion HarfangConstructorQuaternionWithQ(const HarfangQuaternion q); +extern void HarfangQuaternionFree(HarfangQuaternion); +extern HarfangQuaternion HarfangAddQuaternion(HarfangQuaternion this_, float v); +extern HarfangQuaternion HarfangAddQuaternionWithQ(HarfangQuaternion this_, HarfangQuaternion q); +extern HarfangQuaternion HarfangSubQuaternion(HarfangQuaternion this_, float v); +extern HarfangQuaternion HarfangSubQuaternionWithQ(HarfangQuaternion this_, HarfangQuaternion q); +extern HarfangQuaternion HarfangMulQuaternion(HarfangQuaternion this_, float v); +extern HarfangQuaternion HarfangMulQuaternionWithQ(HarfangQuaternion this_, HarfangQuaternion q); +extern HarfangQuaternion HarfangDivQuaternion(HarfangQuaternion this_, float v); +extern void HarfangInplaceAddQuaternion(HarfangQuaternion this_, float v); +extern void HarfangInplaceAddQuaternionWithQ(HarfangQuaternion this_, const HarfangQuaternion q); +extern void HarfangInplaceSubQuaternion(HarfangQuaternion this_, float v); +extern void HarfangInplaceSubQuaternionWithQ(HarfangQuaternion this_, const HarfangQuaternion q); +extern void HarfangInplaceMulQuaternion(HarfangQuaternion this_, float v); +extern void HarfangInplaceMulQuaternionWithQ(HarfangQuaternion this_, const HarfangQuaternion q); +extern void HarfangInplaceDivQuaternion(HarfangQuaternion this_, float v); +extern HarfangVec3 HarfangMinMaxGetMn(HarfangMinMax h); +extern void HarfangMinMaxSetMn(HarfangMinMax h, HarfangVec3 v); +extern HarfangVec3 HarfangMinMaxGetMx(HarfangMinMax h); +extern void HarfangMinMaxSetMx(HarfangMinMax h, HarfangVec3 v); +extern HarfangMinMax HarfangConstructorMinMax(); +extern HarfangMinMax HarfangConstructorMinMaxWithMinMax(const HarfangVec3 min, const HarfangVec3 max); +extern void HarfangMinMaxFree(HarfangMinMax); +extern bool HarfangEqMinMax(HarfangMinMax this_, const HarfangMinMax minmax); +extern bool HarfangNeMinMax(HarfangMinMax this_, const HarfangMinMax minmax); +extern HarfangVec2 HarfangVec2GetZero(); +extern HarfangVec2 HarfangVec2GetOne(); +extern float HarfangVec2GetX(HarfangVec2 h); +extern void HarfangVec2SetX(HarfangVec2 h, float v); +extern float HarfangVec2GetY(HarfangVec2 h); +extern void HarfangVec2SetY(HarfangVec2 h, float v); +extern HarfangVec2 HarfangConstructorVec2(); +extern HarfangVec2 HarfangConstructorVec2WithXY(float x, float y); +extern HarfangVec2 HarfangConstructorVec2WithV(const HarfangVec2 v); +extern HarfangVec2 HarfangConstructorVec2WithVec3V(const HarfangVec3 v); +extern HarfangVec2 HarfangConstructorVec2WithVec4V(const HarfangVec4 v); +extern void HarfangVec2Free(HarfangVec2); +extern HarfangVec2 HarfangAddVec2(HarfangVec2 this_, const HarfangVec2 v); +extern HarfangVec2 HarfangAddVec2WithK(HarfangVec2 this_, const float k); +extern HarfangVec2 HarfangSubVec2(HarfangVec2 this_, const HarfangVec2 v); +extern HarfangVec2 HarfangSubVec2WithK(HarfangVec2 this_, const float k); +extern HarfangVec2 HarfangDivVec2(HarfangVec2 this_, const HarfangVec2 v); +extern HarfangVec2 HarfangDivVec2WithK(HarfangVec2 this_, const float k); +extern HarfangVec2 HarfangMulVec2(HarfangVec2 this_, const HarfangVec2 v); +extern HarfangVec2 HarfangMulVec2WithK(HarfangVec2 this_, const float k); +extern void HarfangInplaceAddVec2(HarfangVec2 this_, const HarfangVec2 v); +extern void HarfangInplaceAddVec2WithK(HarfangVec2 this_, const float k); +extern void HarfangInplaceSubVec2(HarfangVec2 this_, const HarfangVec2 v); +extern void HarfangInplaceSubVec2WithK(HarfangVec2 this_, const float k); +extern void HarfangInplaceMulVec2(HarfangVec2 this_, const HarfangVec2 v); +extern void HarfangInplaceMulVec2WithK(HarfangVec2 this_, const float k); +extern void HarfangInplaceDivVec2(HarfangVec2 this_, const HarfangVec2 v); +extern void HarfangInplaceDivVec2WithK(HarfangVec2 this_, const float k); +extern void HarfangSetVec2(HarfangVec2 this_, float x, float y); +extern HarfangVec2 HarfangVec2ListGetOperator(HarfangVec2List h, int id); +extern void HarfangVec2ListSetOperator(HarfangVec2List h, int id, HarfangVec2 v); +extern int HarfangVec2ListLenOperator(HarfangVec2List h); +extern HarfangVec2List HarfangConstructorVec2List(); +extern HarfangVec2List HarfangConstructorVec2ListWithSequence(size_t sequenceToCSize, HarfangVec2 *sequenceToCBuf); +extern void HarfangVec2ListFree(HarfangVec2List); +extern void HarfangClearVec2List(HarfangVec2List this_); +extern void HarfangReserveVec2List(HarfangVec2List this_, size_t size); +extern void HarfangPushBackVec2List(HarfangVec2List this_, HarfangVec2 v); +extern size_t HarfangSizeVec2List(HarfangVec2List this_); +extern HarfangVec2 HarfangAtVec2List(HarfangVec2List this_, size_t idx); +extern HarfangIVec2 HarfangIVec2GetZero(); +extern HarfangIVec2 HarfangIVec2GetOne(); +extern int HarfangIVec2GetX(HarfangIVec2 h); +extern void HarfangIVec2SetX(HarfangIVec2 h, int v); +extern int HarfangIVec2GetY(HarfangIVec2 h); +extern void HarfangIVec2SetY(HarfangIVec2 h, int v); +extern HarfangIVec2 HarfangConstructorIVec2(); +extern HarfangIVec2 HarfangConstructorIVec2WithXY(int x, int y); +extern HarfangIVec2 HarfangConstructorIVec2WithV(const HarfangIVec2 v); +extern HarfangIVec2 HarfangConstructorIVec2WithVec3V(const HarfangVec3 v); +extern HarfangIVec2 HarfangConstructorIVec2WithVec4V(const HarfangVec4 v); +extern void HarfangIVec2Free(HarfangIVec2); +extern HarfangIVec2 HarfangAddIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern HarfangIVec2 HarfangAddIVec2WithK(HarfangIVec2 this_, const int k); +extern HarfangIVec2 HarfangSubIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern HarfangIVec2 HarfangSubIVec2WithK(HarfangIVec2 this_, const int k); +extern HarfangIVec2 HarfangDivIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern HarfangIVec2 HarfangDivIVec2WithK(HarfangIVec2 this_, const int k); +extern HarfangIVec2 HarfangMulIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern HarfangIVec2 HarfangMulIVec2WithK(HarfangIVec2 this_, const int k); +extern void HarfangInplaceAddIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern void HarfangInplaceAddIVec2WithK(HarfangIVec2 this_, const int k); +extern void HarfangInplaceSubIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern void HarfangInplaceSubIVec2WithK(HarfangIVec2 this_, const int k); +extern void HarfangInplaceMulIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern void HarfangInplaceMulIVec2WithK(HarfangIVec2 this_, const int k); +extern void HarfangInplaceDivIVec2(HarfangIVec2 this_, const HarfangIVec2 v); +extern void HarfangInplaceDivIVec2WithK(HarfangIVec2 this_, const int k); +extern void HarfangSetIVec2(HarfangIVec2 this_, int x, int y); +extern HarfangIVec2 HarfangIVec2ListGetOperator(HarfangIVec2List h, int id); +extern void HarfangIVec2ListSetOperator(HarfangIVec2List h, int id, HarfangIVec2 v); +extern int HarfangIVec2ListLenOperator(HarfangIVec2List h); +extern HarfangIVec2List HarfangConstructorIVec2List(); +extern HarfangIVec2List HarfangConstructorIVec2ListWithSequence(size_t sequenceToCSize, HarfangIVec2 *sequenceToCBuf); +extern void HarfangIVec2ListFree(HarfangIVec2List); +extern void HarfangClearIVec2List(HarfangIVec2List this_); +extern void HarfangReserveIVec2List(HarfangIVec2List this_, size_t size); +extern void HarfangPushBackIVec2List(HarfangIVec2List this_, HarfangIVec2 v); +extern size_t HarfangSizeIVec2List(HarfangIVec2List this_); +extern HarfangIVec2 HarfangAtIVec2List(HarfangIVec2List this_, size_t idx); +extern HarfangVec4 HarfangVec4ListGetOperator(HarfangVec4List h, int id); +extern void HarfangVec4ListSetOperator(HarfangVec4List h, int id, HarfangVec4 v); +extern int HarfangVec4ListLenOperator(HarfangVec4List h); +extern HarfangVec4List HarfangConstructorVec4List(); +extern HarfangVec4List HarfangConstructorVec4ListWithSequence(size_t sequenceToCSize, HarfangVec4 *sequenceToCBuf); +extern void HarfangVec4ListFree(HarfangVec4List); +extern void HarfangClearVec4List(HarfangVec4List this_); +extern void HarfangReserveVec4List(HarfangVec4List this_, size_t size); +extern void HarfangPushBackVec4List(HarfangVec4List this_, HarfangVec4 v); +extern size_t HarfangSizeVec4List(HarfangVec4List this_); +extern HarfangVec4 HarfangAtVec4List(HarfangVec4List this_, size_t idx); +extern HarfangMat4 HarfangMat4ListGetOperator(HarfangMat4List h, int id); +extern void HarfangMat4ListSetOperator(HarfangMat4List h, int id, HarfangMat4 v); +extern int HarfangMat4ListLenOperator(HarfangMat4List h); +extern HarfangMat4List HarfangConstructorMat4List(); +extern HarfangMat4List HarfangConstructorMat4ListWithSequence(size_t sequenceToCSize, HarfangMat4 *sequenceToCBuf); +extern void HarfangMat4ListFree(HarfangMat4List); +extern void HarfangClearMat4List(HarfangMat4List this_); +extern void HarfangReserveMat4List(HarfangMat4List this_, size_t size); +extern void HarfangPushBackMat4List(HarfangMat4List this_, HarfangMat4 v); +extern size_t HarfangSizeMat4List(HarfangMat4List this_); +extern HarfangMat4 HarfangAtMat4List(HarfangMat4List this_, size_t idx); +extern HarfangVec3 HarfangVec3ListGetOperator(HarfangVec3List h, int id); +extern void HarfangVec3ListSetOperator(HarfangVec3List h, int id, HarfangVec3 v); +extern int HarfangVec3ListLenOperator(HarfangVec3List h); +extern HarfangVec3List HarfangConstructorVec3List(); +extern HarfangVec3List HarfangConstructorVec3ListWithSequence(size_t sequenceToCSize, HarfangVec3 *sequenceToCBuf); +extern void HarfangVec3ListFree(HarfangVec3List); +extern void HarfangClearVec3List(HarfangVec3List this_); +extern void HarfangReserveVec3List(HarfangVec3List this_, size_t size); +extern void HarfangPushBackVec3List(HarfangVec3List this_, HarfangVec3 v); +extern size_t HarfangSizeVec3List(HarfangVec3List this_); +extern HarfangVec3 HarfangAtVec3List(HarfangVec3List this_, size_t idx); +extern float HarfangRectGetSx(HarfangRect h); +extern void HarfangRectSetSx(HarfangRect h, float v); +extern float HarfangRectGetSy(HarfangRect h); +extern void HarfangRectSetSy(HarfangRect h, float v); +extern float HarfangRectGetEx(HarfangRect h); +extern void HarfangRectSetEx(HarfangRect h, float v); +extern float HarfangRectGetEy(HarfangRect h); +extern void HarfangRectSetEy(HarfangRect h, float v); +extern HarfangRect HarfangConstructorRect(); +extern HarfangRect HarfangConstructorRectWithXY(float x, float y); +extern HarfangRect HarfangConstructorRectWithSxSyExEy(float sx, float sy, float ex, float ey); +extern HarfangRect HarfangConstructorRectWithRect(const HarfangRect rect); +extern void HarfangRectFree(HarfangRect); +extern int HarfangIntRectGetSx(HarfangIntRect h); +extern void HarfangIntRectSetSx(HarfangIntRect h, int v); +extern int HarfangIntRectGetSy(HarfangIntRect h); +extern void HarfangIntRectSetSy(HarfangIntRect h, int v); +extern int HarfangIntRectGetEx(HarfangIntRect h); +extern void HarfangIntRectSetEx(HarfangIntRect h, int v); +extern int HarfangIntRectGetEy(HarfangIntRect h); +extern void HarfangIntRectSetEy(HarfangIntRect h, int v); +extern HarfangIntRect HarfangConstructorIntRect(); +extern HarfangIntRect HarfangConstructorIntRectWithXY(int x, int y); +extern HarfangIntRect HarfangConstructorIntRectWithSxSyExEy(int sx, int sy, int ex, int ey); +extern HarfangIntRect HarfangConstructorIntRectWithRect(const HarfangIntRect rect); +extern void HarfangIntRectFree(HarfangIntRect); +extern void HarfangFrustumFree(HarfangFrustum); +extern HarfangVec4 HarfangGetTopFrustum(HarfangFrustum this_); +extern void HarfangSetTopFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern HarfangVec4 HarfangGetBottomFrustum(HarfangFrustum this_); +extern void HarfangSetBottomFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern HarfangVec4 HarfangGetLeftFrustum(HarfangFrustum this_); +extern void HarfangSetLeftFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern HarfangVec4 HarfangGetRightFrustum(HarfangFrustum this_); +extern void HarfangSetRightFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern HarfangVec4 HarfangGetNearFrustum(HarfangFrustum this_); +extern void HarfangSetNearFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern HarfangVec4 HarfangGetFarFrustum(HarfangFrustum this_); +extern void HarfangSetFarFrustum(HarfangFrustum this_, const HarfangVec4 plane); +extern const char *HarfangMonitorModeGetName(HarfangMonitorMode h); +extern void HarfangMonitorModeSetName(HarfangMonitorMode h, const char *v); +extern HarfangIntRect HarfangMonitorModeGetRect(HarfangMonitorMode h); +extern void HarfangMonitorModeSetRect(HarfangMonitorMode h, HarfangIntRect v); +extern int HarfangMonitorModeGetFrequency(HarfangMonitorMode h); +extern void HarfangMonitorModeSetFrequency(HarfangMonitorMode h, int v); +extern uint8_t HarfangMonitorModeGetRotation(HarfangMonitorMode h); +extern void HarfangMonitorModeSetRotation(HarfangMonitorMode h, uint8_t v); +extern uint8_t HarfangMonitorModeGetSupportedRotations(HarfangMonitorMode h); +extern void HarfangMonitorModeSetSupportedRotations(HarfangMonitorMode h, uint8_t v); +extern void HarfangMonitorModeFree(HarfangMonitorMode); +extern HarfangMonitorMode HarfangMonitorModeListGetOperator(HarfangMonitorModeList h, int id); +extern void HarfangMonitorModeListSetOperator(HarfangMonitorModeList h, int id, HarfangMonitorMode v); +extern int HarfangMonitorModeListLenOperator(HarfangMonitorModeList h); +extern HarfangMonitorModeList HarfangConstructorMonitorModeList(); +extern HarfangMonitorModeList HarfangConstructorMonitorModeListWithSequence(size_t sequenceToCSize, HarfangMonitorMode *sequenceToCBuf); +extern void HarfangMonitorModeListFree(HarfangMonitorModeList); +extern void HarfangClearMonitorModeList(HarfangMonitorModeList this_); +extern void HarfangReserveMonitorModeList(HarfangMonitorModeList this_, size_t size); +extern void HarfangPushBackMonitorModeList(HarfangMonitorModeList this_, HarfangMonitorMode v); +extern size_t HarfangSizeMonitorModeList(HarfangMonitorModeList this_); +extern HarfangMonitorMode HarfangAtMonitorModeList(HarfangMonitorModeList this_, size_t idx); +extern void HarfangMonitorFree(HarfangMonitor); +extern HarfangMonitor HarfangMonitorListGetOperator(HarfangMonitorList h, int id); +extern void HarfangMonitorListSetOperator(HarfangMonitorList h, int id, HarfangMonitor v); +extern int HarfangMonitorListLenOperator(HarfangMonitorList h); +extern HarfangMonitorList HarfangConstructorMonitorList(); +extern HarfangMonitorList HarfangConstructorMonitorListWithSequence(size_t sequenceToCSize, HarfangMonitor *sequenceToCBuf); +extern void HarfangMonitorListFree(HarfangMonitorList); +extern void HarfangClearMonitorList(HarfangMonitorList this_); +extern void HarfangReserveMonitorList(HarfangMonitorList this_, size_t size); +extern void HarfangPushBackMonitorList(HarfangMonitorList this_, HarfangMonitor v); +extern size_t HarfangSizeMonitorList(HarfangMonitorList this_); +extern HarfangMonitor HarfangAtMonitorList(HarfangMonitorList this_, size_t idx); +extern void HarfangWindowFree(HarfangWindow); +extern HarfangColor HarfangColorGetZero(); +extern HarfangColor HarfangColorGetOne(); +extern HarfangColor HarfangColorGetWhite(); +extern HarfangColor HarfangColorGetGrey(); +extern HarfangColor HarfangColorGetBlack(); +extern HarfangColor HarfangColorGetRed(); +extern HarfangColor HarfangColorGetGreen(); +extern HarfangColor HarfangColorGetBlue(); +extern HarfangColor HarfangColorGetYellow(); +extern HarfangColor HarfangColorGetOrange(); +extern HarfangColor HarfangColorGetPurple(); +extern HarfangColor HarfangColorGetTransparent(); +extern float HarfangColorGetR(HarfangColor h); +extern void HarfangColorSetR(HarfangColor h, float v); +extern float HarfangColorGetG(HarfangColor h); +extern void HarfangColorSetG(HarfangColor h, float v); +extern float HarfangColorGetB(HarfangColor h); +extern void HarfangColorSetB(HarfangColor h, float v); +extern float HarfangColorGetA(HarfangColor h); +extern void HarfangColorSetA(HarfangColor h, float v); +extern HarfangColor HarfangConstructorColor(); +extern HarfangColor HarfangConstructorColorWithColor(const HarfangColor color); +extern HarfangColor HarfangConstructorColorWithRGB(float r, float g, float b); +extern HarfangColor HarfangConstructorColorWithRGBA(float r, float g, float b, float a); +extern void HarfangColorFree(HarfangColor); +extern HarfangColor HarfangAddColor(HarfangColor this_, const HarfangColor color); +extern HarfangColor HarfangAddColorWithK(HarfangColor this_, float k); +extern HarfangColor HarfangSubColor(HarfangColor this_, const HarfangColor color); +extern HarfangColor HarfangSubColorWithK(HarfangColor this_, float k); +extern HarfangColor HarfangDivColor(HarfangColor this_, const HarfangColor color); +extern HarfangColor HarfangDivColorWithK(HarfangColor this_, float k); +extern HarfangColor HarfangMulColor(HarfangColor this_, const HarfangColor color); +extern HarfangColor HarfangMulColorWithK(HarfangColor this_, float k); +extern void HarfangInplaceAddColor(HarfangColor this_, HarfangColor color); +extern void HarfangInplaceAddColorWithK(HarfangColor this_, float k); +extern void HarfangInplaceSubColor(HarfangColor this_, HarfangColor color); +extern void HarfangInplaceSubColorWithK(HarfangColor this_, float k); +extern void HarfangInplaceMulColor(HarfangColor this_, HarfangColor color); +extern void HarfangInplaceMulColorWithK(HarfangColor this_, float k); +extern void HarfangInplaceDivColor(HarfangColor this_, HarfangColor color); +extern void HarfangInplaceDivColorWithK(HarfangColor this_, float k); +extern bool HarfangEqColor(HarfangColor this_, const HarfangColor color); +extern bool HarfangNeColor(HarfangColor this_, const HarfangColor color); +extern HarfangColor HarfangColorListGetOperator(HarfangColorList h, int id); +extern void HarfangColorListSetOperator(HarfangColorList h, int id, HarfangColor v); +extern int HarfangColorListLenOperator(HarfangColorList h); +extern HarfangColorList HarfangConstructorColorList(); +extern HarfangColorList HarfangConstructorColorListWithSequence(size_t sequenceToCSize, HarfangColor *sequenceToCBuf); +extern void HarfangColorListFree(HarfangColorList); +extern void HarfangClearColorList(HarfangColorList this_); +extern void HarfangReserveColorList(HarfangColorList this_, size_t size); +extern void HarfangPushBackColorList(HarfangColorList this_, HarfangColor v); +extern size_t HarfangSizeColorList(HarfangColorList this_); +extern HarfangColor HarfangAtColorList(HarfangColorList this_, size_t idx); +extern HarfangPicture HarfangConstructorPicture(); +extern HarfangPicture HarfangConstructorPictureWithPicture(const HarfangPicture picture); +extern HarfangPicture HarfangConstructorPictureWithWidthHeightFormat(uint16_t width, uint16_t height, int format); +extern HarfangPicture HarfangConstructorPictureWithDataWidthHeightFormat(HarfangVoidPointer data, uint16_t width, uint16_t height, int format); +extern void HarfangPictureFree(HarfangPicture); +extern uint32_t HarfangGetWidthPicture(HarfangPicture this_); +extern uint32_t HarfangGetHeightPicture(HarfangPicture this_); +extern int HarfangGetFormatPicture(HarfangPicture this_); +extern intptr_t HarfangGetDataPicture(HarfangPicture this_); +extern void HarfangSetDataPicture(HarfangPicture this_, HarfangVoidPointer data, uint16_t width, uint16_t height, int format); +extern void HarfangCopyDataPicture(HarfangPicture this_, const HarfangVoidPointer data, uint16_t width, uint16_t height, int format); +extern HarfangColor HarfangGetPixelRGBAPicture(HarfangPicture this_, uint16_t x, uint16_t y); +extern void HarfangSetPixelRGBAPicture(HarfangPicture this_, uint16_t x, uint16_t y, const HarfangColor col); +extern void HarfangFrameBufferHandleFree(HarfangFrameBufferHandle); +extern HarfangVertexLayout HarfangConstructorVertexLayout(); +extern void HarfangVertexLayoutFree(HarfangVertexLayout); +extern HarfangVertexLayout HarfangBeginVertexLayout(HarfangVertexLayout this_); +extern HarfangVertexLayout HarfangAddVertexLayout(HarfangVertexLayout this_, int attrib, uint8_t count, int type); +extern HarfangVertexLayout HarfangAddVertexLayoutWithNormalized(HarfangVertexLayout this_, int attrib, uint8_t count, int type, bool normalized); +extern HarfangVertexLayout HarfangAddVertexLayoutWithNormalizedAsInt( + HarfangVertexLayout this_, int attrib, uint8_t count, int type, bool normalized, bool as_int); +extern HarfangVertexLayout HarfangSkipVertexLayout(HarfangVertexLayout this_, uint8_t size); +extern void HarfangEndVertexLayout(HarfangVertexLayout this_); +extern bool HarfangHasVertexLayout(HarfangVertexLayout this_, int attrib); +extern uint16_t HarfangGetOffsetVertexLayout(HarfangVertexLayout this_, int attrib); +extern uint16_t HarfangGetStrideVertexLayout(HarfangVertexLayout this_); +extern uint32_t HarfangGetSizeVertexLayout(HarfangVertexLayout this_, uint32_t count); +extern void HarfangProgramHandleFree(HarfangProgramHandle); +extern int HarfangTextureInfoGetFormat(HarfangTextureInfo h); +extern void HarfangTextureInfoSetFormat(HarfangTextureInfo h, int v); +extern uint32_t HarfangTextureInfoGetStorageSize(HarfangTextureInfo h); +extern void HarfangTextureInfoSetStorageSize(HarfangTextureInfo h, uint32_t v); +extern uint16_t HarfangTextureInfoGetWidth(HarfangTextureInfo h); +extern void HarfangTextureInfoSetWidth(HarfangTextureInfo h, uint16_t v); +extern uint16_t HarfangTextureInfoGetHeight(HarfangTextureInfo h); +extern void HarfangTextureInfoSetHeight(HarfangTextureInfo h, uint16_t v); +extern uint16_t HarfangTextureInfoGetDepth(HarfangTextureInfo h); +extern void HarfangTextureInfoSetDepth(HarfangTextureInfo h, uint16_t v); +extern uint16_t HarfangTextureInfoGetNumLayers(HarfangTextureInfo h); +extern void HarfangTextureInfoSetNumLayers(HarfangTextureInfo h, uint16_t v); +extern uint8_t HarfangTextureInfoGetNumMips(HarfangTextureInfo h); +extern void HarfangTextureInfoSetNumMips(HarfangTextureInfo h, uint8_t v); +extern uint8_t HarfangTextureInfoGetBitsPerPixel(HarfangTextureInfo h); +extern void HarfangTextureInfoSetBitsPerPixel(HarfangTextureInfo h, uint8_t v); +extern bool HarfangTextureInfoGetCubeMap(HarfangTextureInfo h); +extern void HarfangTextureInfoSetCubeMap(HarfangTextureInfo h, bool v); +extern HarfangTextureInfo HarfangConstructorTextureInfo(); +extern void HarfangTextureInfoFree(HarfangTextureInfo); +extern void HarfangModelRefFree(HarfangModelRef); +extern bool HarfangEqModelRef(HarfangModelRef this_, const HarfangModelRef m); +extern bool HarfangNeModelRef(HarfangModelRef this_, const HarfangModelRef m); +extern void HarfangTextureRefFree(HarfangTextureRef); +extern bool HarfangEqTextureRef(HarfangTextureRef this_, const HarfangTextureRef t); +extern bool HarfangNeTextureRef(HarfangTextureRef this_, const HarfangTextureRef t); +extern void HarfangMaterialRefFree(HarfangMaterialRef); +extern bool HarfangEqMaterialRef(HarfangMaterialRef this_, const HarfangMaterialRef m); +extern bool HarfangNeMaterialRef(HarfangMaterialRef this_, const HarfangMaterialRef m); +extern void HarfangPipelineProgramRefFree(HarfangPipelineProgramRef); +extern bool HarfangEqPipelineProgramRef(HarfangPipelineProgramRef this_, const HarfangPipelineProgramRef p); +extern bool HarfangNePipelineProgramRef(HarfangPipelineProgramRef this_, const HarfangPipelineProgramRef p); +extern HarfangTexture HarfangConstructorTexture(); +extern void HarfangTextureFree(HarfangTexture); +extern void HarfangUniformSetValueFree(HarfangUniformSetValue); +extern HarfangUniformSetValue HarfangUniformSetValueListGetOperator(HarfangUniformSetValueList h, int id); +extern void HarfangUniformSetValueListSetOperator(HarfangUniformSetValueList h, int id, HarfangUniformSetValue v); +extern int HarfangUniformSetValueListLenOperator(HarfangUniformSetValueList h); +extern HarfangUniformSetValueList HarfangConstructorUniformSetValueList(); +extern HarfangUniformSetValueList HarfangConstructorUniformSetValueListWithSequence(size_t sequenceToCSize, HarfangUniformSetValue *sequenceToCBuf); +extern void HarfangUniformSetValueListFree(HarfangUniformSetValueList); +extern void HarfangClearUniformSetValueList(HarfangUniformSetValueList this_); +extern void HarfangReserveUniformSetValueList(HarfangUniformSetValueList this_, size_t size); +extern void HarfangPushBackUniformSetValueList(HarfangUniformSetValueList this_, HarfangUniformSetValue v); +extern size_t HarfangSizeUniformSetValueList(HarfangUniformSetValueList this_); +extern HarfangUniformSetValue HarfangAtUniformSetValueList(HarfangUniformSetValueList this_, size_t idx); +extern void HarfangUniformSetTextureFree(HarfangUniformSetTexture); +extern HarfangUniformSetTexture HarfangUniformSetTextureListGetOperator(HarfangUniformSetTextureList h, int id); +extern void HarfangUniformSetTextureListSetOperator(HarfangUniformSetTextureList h, int id, HarfangUniformSetTexture v); +extern int HarfangUniformSetTextureListLenOperator(HarfangUniformSetTextureList h); +extern HarfangUniformSetTextureList HarfangConstructorUniformSetTextureList(); +extern HarfangUniformSetTextureList HarfangConstructorUniformSetTextureListWithSequence(size_t sequenceToCSize, HarfangUniformSetTexture *sequenceToCBuf); +extern void HarfangUniformSetTextureListFree(HarfangUniformSetTextureList); +extern void HarfangClearUniformSetTextureList(HarfangUniformSetTextureList this_); +extern void HarfangReserveUniformSetTextureList(HarfangUniformSetTextureList this_, size_t size); +extern void HarfangPushBackUniformSetTextureList(HarfangUniformSetTextureList this_, HarfangUniformSetTexture v); +extern size_t HarfangSizeUniformSetTextureList(HarfangUniformSetTextureList this_); +extern HarfangUniformSetTexture HarfangAtUniformSetTextureList(HarfangUniformSetTextureList this_, size_t idx); +extern void HarfangPipelineProgramFree(HarfangPipelineProgram); +extern HarfangFrustum HarfangViewStateGetFrustum(HarfangViewState h); +extern void HarfangViewStateSetFrustum(HarfangViewState h, HarfangFrustum v); +extern HarfangMat44 HarfangViewStateGetProj(HarfangViewState h); +extern void HarfangViewStateSetProj(HarfangViewState h, HarfangMat44 v); +extern HarfangMat4 HarfangViewStateGetView(HarfangViewState h); +extern void HarfangViewStateSetView(HarfangViewState h, HarfangMat4 v); +extern HarfangViewState HarfangConstructorViewState(); +extern void HarfangViewStateFree(HarfangViewState); +extern HarfangMaterial HarfangConstructorMaterial(); +extern void HarfangMaterialFree(HarfangMaterial); +extern HarfangMaterial HarfangMaterialListGetOperator(HarfangMaterialList h, int id); +extern void HarfangMaterialListSetOperator(HarfangMaterialList h, int id, HarfangMaterial v); +extern int HarfangMaterialListLenOperator(HarfangMaterialList h); +extern HarfangMaterialList HarfangConstructorMaterialList(); +extern HarfangMaterialList HarfangConstructorMaterialListWithSequence(size_t sequenceToCSize, HarfangMaterial *sequenceToCBuf); +extern void HarfangMaterialListFree(HarfangMaterialList); +extern void HarfangClearMaterialList(HarfangMaterialList this_); +extern void HarfangReserveMaterialList(HarfangMaterialList this_, size_t size); +extern void HarfangPushBackMaterialList(HarfangMaterialList this_, HarfangMaterial v); +extern size_t HarfangSizeMaterialList(HarfangMaterialList this_); +extern HarfangMaterial HarfangAtMaterialList(HarfangMaterialList this_, size_t idx); +extern void HarfangRenderStateFree(HarfangRenderState); +extern void HarfangModelFree(HarfangModel); +extern HarfangPipelineResources HarfangConstructorPipelineResources(); +extern void HarfangPipelineResourcesFree(HarfangPipelineResources); +extern HarfangTextureRef HarfangAddTexturePipelineResources(HarfangPipelineResources this_, const char *name, const HarfangTexture tex); +extern HarfangModelRef HarfangAddModelPipelineResources(HarfangPipelineResources this_, const char *name, const HarfangModel mdl); +extern HarfangPipelineProgramRef HarfangAddProgramPipelineResources(HarfangPipelineResources this_, const char *name, const HarfangPipelineProgram prg); +extern HarfangTextureRef HarfangHasTexturePipelineResources(HarfangPipelineResources this_, const char *name); +extern HarfangModelRef HarfangHasModelPipelineResources(HarfangPipelineResources this_, const char *name); +extern HarfangPipelineProgramRef HarfangHasProgramPipelineResources(HarfangPipelineResources this_, const char *name); +extern void HarfangUpdateTexturePipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref, const HarfangTexture tex); +extern void HarfangUpdateModelPipelineResources(HarfangPipelineResources this_, HarfangModelRef ref, const HarfangModel mdl); +extern void HarfangUpdateProgramPipelineResources(HarfangPipelineResources this_, HarfangPipelineProgramRef ref, const HarfangPipelineProgram prg); +extern HarfangTexture HarfangGetTexturePipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref); +extern HarfangModel HarfangGetModelPipelineResources(HarfangPipelineResources this_, HarfangModelRef ref); +extern HarfangPipelineProgram HarfangGetProgramPipelineResources(HarfangPipelineResources this_, HarfangPipelineProgramRef ref); +extern const char *HarfangGetTextureNamePipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref); +extern const char *HarfangGetModelNamePipelineResources(HarfangPipelineResources this_, HarfangModelRef ref); +extern const char *HarfangGetProgramNamePipelineResources(HarfangPipelineResources this_, HarfangPipelineProgramRef ref); +extern void HarfangDestroyAllTexturesPipelineResources(HarfangPipelineResources this_); +extern void HarfangDestroyAllModelsPipelineResources(HarfangPipelineResources this_); +extern void HarfangDestroyAllProgramsPipelineResources(HarfangPipelineResources this_); +extern void HarfangDestroyTexturePipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref); +extern void HarfangDestroyModelPipelineResources(HarfangPipelineResources this_, HarfangModelRef ref); +extern void HarfangDestroyProgramPipelineResources(HarfangPipelineResources this_, HarfangPipelineProgramRef ref); +extern bool HarfangHasTextureInfoPipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref); +extern HarfangTextureInfo HarfangGetTextureInfoPipelineResources(HarfangPipelineResources this_, HarfangTextureRef ref); +extern HarfangFrameBufferHandle HarfangFrameBufferGetHandle(HarfangFrameBuffer h); +extern void HarfangFrameBufferSetHandle(HarfangFrameBuffer h, HarfangFrameBufferHandle v); +extern void HarfangFrameBufferFree(HarfangFrameBuffer); +extern HarfangVertices HarfangConstructorVertices(const HarfangVertexLayout decl, size_t count); +extern void HarfangVerticesFree(HarfangVertices); +extern const HarfangVertexLayout HarfangGetDeclVertices(HarfangVertices this_); +extern HarfangVertices HarfangBeginVertices(HarfangVertices this_, size_t vertex_index); +extern HarfangVertices HarfangSetPosVertices(HarfangVertices this_, const HarfangVec3 pos); +extern HarfangVertices HarfangSetNormalVertices(HarfangVertices this_, const HarfangVec3 normal); +extern HarfangVertices HarfangSetTangentVertices(HarfangVertices this_, const HarfangVec3 tangent); +extern HarfangVertices HarfangSetBinormalVertices(HarfangVertices this_, const HarfangVec3 binormal); +extern HarfangVertices HarfangSetTexCoord0Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord1Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord2Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord3Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord4Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord5Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord6Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetTexCoord7Vertices(HarfangVertices this_, const HarfangVec2 uv); +extern HarfangVertices HarfangSetColor0Vertices(HarfangVertices this_, const HarfangColor color); +extern HarfangVertices HarfangSetColor1Vertices(HarfangVertices this_, const HarfangColor color); +extern HarfangVertices HarfangSetColor2Vertices(HarfangVertices this_, const HarfangColor color); +extern HarfangVertices HarfangSetColor3Vertices(HarfangVertices this_, const HarfangColor color); +extern void HarfangEndVertices(HarfangVertices this_); +extern void HarfangEndVerticesWithValidate(HarfangVertices this_, bool validate); +extern void HarfangClearVertices(HarfangVertices this_); +extern void HarfangReserveVertices(HarfangVertices this_, size_t count); +extern void HarfangResizeVertices(HarfangVertices this_, size_t count); +extern const HarfangVoidPointer HarfangGetDataVertices(HarfangVertices this_); +extern size_t HarfangGetSizeVertices(HarfangVertices this_); +extern size_t HarfangGetCountVertices(HarfangVertices this_); +extern size_t HarfangGetCapacityVertices(HarfangVertices this_); +extern void HarfangPipelineFree(HarfangPipeline); +extern const char *HarfangPipelineInfoGetName(HarfangPipelineInfo h); +extern void HarfangPipelineInfoSetName(HarfangPipelineInfo h, const char *v); +extern void HarfangPipelineInfoFree(HarfangPipelineInfo); +extern void HarfangForwardPipelineFree(HarfangForwardPipeline); +extern int HarfangForwardPipelineLightGetType(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetType(HarfangForwardPipelineLight h, int v); +extern HarfangMat4 HarfangForwardPipelineLightGetWorld(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetWorld(HarfangForwardPipelineLight h, HarfangMat4 v); +extern HarfangColor HarfangForwardPipelineLightGetDiffuse(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetDiffuse(HarfangForwardPipelineLight h, HarfangColor v); +extern HarfangColor HarfangForwardPipelineLightGetSpecular(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetSpecular(HarfangForwardPipelineLight h, HarfangColor v); +extern float HarfangForwardPipelineLightGetRadius(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetRadius(HarfangForwardPipelineLight h, float v); +extern float HarfangForwardPipelineLightGetInnerAngle(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetInnerAngle(HarfangForwardPipelineLight h, float v); +extern float HarfangForwardPipelineLightGetOuterAngle(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetOuterAngle(HarfangForwardPipelineLight h, float v); +extern HarfangVec4 HarfangForwardPipelineLightGetPssmSplit(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetPssmSplit(HarfangForwardPipelineLight h, HarfangVec4 v); +extern float HarfangForwardPipelineLightGetPriority(HarfangForwardPipelineLight h); +extern void HarfangForwardPipelineLightSetPriority(HarfangForwardPipelineLight h, float v); +extern HarfangForwardPipelineLight HarfangConstructorForwardPipelineLight(); +extern void HarfangForwardPipelineLightFree(HarfangForwardPipelineLight); +extern HarfangForwardPipelineLight HarfangForwardPipelineLightListGetOperator(HarfangForwardPipelineLightList h, int id); +extern void HarfangForwardPipelineLightListSetOperator(HarfangForwardPipelineLightList h, int id, HarfangForwardPipelineLight v); +extern int HarfangForwardPipelineLightListLenOperator(HarfangForwardPipelineLightList h); +extern HarfangForwardPipelineLightList HarfangConstructorForwardPipelineLightList(); +extern HarfangForwardPipelineLightList HarfangConstructorForwardPipelineLightListWithSequence( + size_t sequenceToCSize, HarfangForwardPipelineLight *sequenceToCBuf); +extern void HarfangForwardPipelineLightListFree(HarfangForwardPipelineLightList); +extern void HarfangClearForwardPipelineLightList(HarfangForwardPipelineLightList this_); +extern void HarfangReserveForwardPipelineLightList(HarfangForwardPipelineLightList this_, size_t size); +extern void HarfangPushBackForwardPipelineLightList(HarfangForwardPipelineLightList this_, HarfangForwardPipelineLight v); +extern size_t HarfangSizeForwardPipelineLightList(HarfangForwardPipelineLightList this_); +extern HarfangForwardPipelineLight HarfangAtForwardPipelineLightList(HarfangForwardPipelineLightList this_, size_t idx); +extern void HarfangForwardPipelineLightsFree(HarfangForwardPipelineLights); +extern float HarfangForwardPipelineFogGetNear(HarfangForwardPipelineFog h); +extern void HarfangForwardPipelineFogSetNear(HarfangForwardPipelineFog h, float v); +extern float HarfangForwardPipelineFogGetFar(HarfangForwardPipelineFog h); +extern void HarfangForwardPipelineFogSetFar(HarfangForwardPipelineFog h, float v); +extern HarfangColor HarfangForwardPipelineFogGetColor(HarfangForwardPipelineFog h); +extern void HarfangForwardPipelineFogSetColor(HarfangForwardPipelineFog h, HarfangColor v); +extern HarfangForwardPipelineFog HarfangConstructorForwardPipelineFog(); +extern void HarfangForwardPipelineFogFree(HarfangForwardPipelineFog); +extern void HarfangFontFree(HarfangFont); +extern HarfangJSON HarfangConstructorJSON(); +extern void HarfangJSONFree(HarfangJSON); +extern void HarfangLuaObjectFree(HarfangLuaObject); +extern HarfangLuaObject HarfangLuaObjectListGetOperator(HarfangLuaObjectList h, int id); +extern void HarfangLuaObjectListSetOperator(HarfangLuaObjectList h, int id, HarfangLuaObject v); +extern int HarfangLuaObjectListLenOperator(HarfangLuaObjectList h); +extern HarfangLuaObjectList HarfangConstructorLuaObjectList(); +extern HarfangLuaObjectList HarfangConstructorLuaObjectListWithSequence(size_t sequenceToCSize, HarfangLuaObject *sequenceToCBuf); +extern void HarfangLuaObjectListFree(HarfangLuaObjectList); +extern void HarfangClearLuaObjectList(HarfangLuaObjectList this_); +extern void HarfangReserveLuaObjectList(HarfangLuaObjectList this_, size_t size); +extern void HarfangPushBackLuaObjectList(HarfangLuaObjectList this_, HarfangLuaObject v); +extern size_t HarfangSizeLuaObjectList(HarfangLuaObjectList this_); +extern HarfangLuaObject HarfangAtLuaObjectList(HarfangLuaObjectList this_, size_t idx); +extern void HarfangSceneAnimRefFree(HarfangSceneAnimRef); +extern bool HarfangEqSceneAnimRef(HarfangSceneAnimRef this_, const HarfangSceneAnimRef ref); +extern bool HarfangNeSceneAnimRef(HarfangSceneAnimRef this_, const HarfangSceneAnimRef ref); +extern HarfangSceneAnimRef HarfangSceneAnimRefListGetOperator(HarfangSceneAnimRefList h, int id); +extern void HarfangSceneAnimRefListSetOperator(HarfangSceneAnimRefList h, int id, HarfangSceneAnimRef v); +extern int HarfangSceneAnimRefListLenOperator(HarfangSceneAnimRefList h); +extern HarfangSceneAnimRefList HarfangConstructorSceneAnimRefList(); +extern HarfangSceneAnimRefList HarfangConstructorSceneAnimRefListWithSequence(size_t sequenceToCSize, HarfangSceneAnimRef *sequenceToCBuf); +extern void HarfangSceneAnimRefListFree(HarfangSceneAnimRefList); +extern void HarfangClearSceneAnimRefList(HarfangSceneAnimRefList this_); +extern void HarfangReserveSceneAnimRefList(HarfangSceneAnimRefList this_, size_t size); +extern void HarfangPushBackSceneAnimRefList(HarfangSceneAnimRefList this_, HarfangSceneAnimRef v); +extern size_t HarfangSizeSceneAnimRefList(HarfangSceneAnimRefList this_); +extern HarfangSceneAnimRef HarfangAtSceneAnimRefList(HarfangSceneAnimRefList this_, size_t idx); +extern void HarfangScenePlayAnimRefFree(HarfangScenePlayAnimRef); +extern bool HarfangEqScenePlayAnimRef(HarfangScenePlayAnimRef this_, const HarfangScenePlayAnimRef ref); +extern bool HarfangNeScenePlayAnimRef(HarfangScenePlayAnimRef this_, const HarfangScenePlayAnimRef ref); +extern HarfangScenePlayAnimRef HarfangScenePlayAnimRefListGetOperator(HarfangScenePlayAnimRefList h, int id); +extern void HarfangScenePlayAnimRefListSetOperator(HarfangScenePlayAnimRefList h, int id, HarfangScenePlayAnimRef v); +extern int HarfangScenePlayAnimRefListLenOperator(HarfangScenePlayAnimRefList h); +extern HarfangScenePlayAnimRefList HarfangConstructorScenePlayAnimRefList(); +extern HarfangScenePlayAnimRefList HarfangConstructorScenePlayAnimRefListWithSequence(size_t sequenceToCSize, HarfangScenePlayAnimRef *sequenceToCBuf); +extern void HarfangScenePlayAnimRefListFree(HarfangScenePlayAnimRefList); +extern void HarfangClearScenePlayAnimRefList(HarfangScenePlayAnimRefList this_); +extern void HarfangReserveScenePlayAnimRefList(HarfangScenePlayAnimRefList this_, size_t size); +extern void HarfangPushBackScenePlayAnimRefList(HarfangScenePlayAnimRefList this_, HarfangScenePlayAnimRef v); +extern size_t HarfangSizeScenePlayAnimRefList(HarfangScenePlayAnimRefList this_); +extern HarfangScenePlayAnimRef HarfangAtScenePlayAnimRefList(HarfangScenePlayAnimRefList this_, size_t idx); +extern HarfangCanvas HarfangSceneGetCanvas(HarfangScene h); +extern void HarfangSceneSetCanvas(HarfangScene h, HarfangCanvas v); +extern HarfangEnvironment HarfangSceneGetEnvironment(HarfangScene h); +extern void HarfangSceneSetEnvironment(HarfangScene h, HarfangEnvironment v); +extern HarfangScene HarfangConstructorScene(); +extern void HarfangSceneFree(HarfangScene); +extern HarfangNode HarfangGetNodeScene(HarfangScene this_, const char *name); +extern HarfangNode HarfangGetNodeExScene(HarfangScene this_, const char *path); +extern HarfangNodeList HarfangGetNodesScene(HarfangScene this_); +extern HarfangNodeList HarfangGetAllNodesScene(HarfangScene this_); +extern HarfangNodeList HarfangGetNodesWithComponentScene(HarfangScene this_, int idx); +extern HarfangNodeList HarfangGetAllNodesWithComponentScene(HarfangScene this_, int idx); +extern size_t HarfangGetNodeCountScene(HarfangScene this_); +extern size_t HarfangGetAllNodeCountScene(HarfangScene this_); +extern HarfangNodeList HarfangGetNodeChildrenScene(HarfangScene this_, const HarfangNode node); +extern bool HarfangIsChildOfScene(HarfangScene this_, const HarfangNode node, const HarfangNode parent); +extern bool HarfangIsRootScene(HarfangScene this_, const HarfangNode node); +extern void HarfangReadyWorldMatricesScene(HarfangScene this_); +extern void HarfangComputeWorldMatricesScene(HarfangScene this_); +extern void HarfangUpdateScene(HarfangScene this_, int64_t dt); +extern HarfangSceneAnimRefList HarfangGetSceneAnimsScene(HarfangScene this_); +extern HarfangSceneAnimRef HarfangGetSceneAnimScene(HarfangScene this_, const char *name); +extern HarfangScenePlayAnimRef HarfangPlayAnimScene(HarfangScene this_, HarfangSceneAnimRef ref); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopMode(HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopModeEasing(HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode, unsigned char easing); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopModeEasingTStart( + HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopModeEasingTStartTEnd( + HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopModeEasingTStartTEndPaused( + HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end, bool paused); +extern HarfangScenePlayAnimRef HarfangPlayAnimSceneWithLoopModeEasingTStartTEndPausedTScale( + HarfangScene this_, HarfangSceneAnimRef ref, int loop_mode, unsigned char easing, int64_t t_start, int64_t t_end, bool paused, float t_scale); +extern bool HarfangIsPlayingScene(HarfangScene this_, HarfangScenePlayAnimRef ref); +extern void HarfangStopAnimScene(HarfangScene this_, HarfangScenePlayAnimRef ref); +extern void HarfangStopAllAnimsScene(HarfangScene this_); +extern HarfangStringList HarfangGetPlayingAnimNamesScene(HarfangScene this_); +extern HarfangScenePlayAnimRefList HarfangGetPlayingAnimRefsScene(HarfangScene this_); +extern void HarfangUpdatePlayingAnimsScene(HarfangScene this_, int64_t dt); +extern bool HarfangHasKeyScene(HarfangScene this_, const char *key); +extern HarfangStringList HarfangGetKeysScene(HarfangScene this_); +extern void HarfangRemoveKeyScene(HarfangScene this_, const char *key); +extern const char *HarfangGetValueScene(HarfangScene this_, const char *key); +extern void HarfangSetValueScene(HarfangScene this_, const char *key, const char *value); +extern size_t HarfangGarbageCollectScene(HarfangScene this_); +extern void HarfangClearScene(HarfangScene this_); +extern void HarfangReserveNodesScene(HarfangScene this_, size_t count); +extern HarfangNode HarfangCreateNodeScene(HarfangScene this_); +extern HarfangNode HarfangCreateNodeSceneWithName(HarfangScene this_, const char *name); +extern void HarfangDestroyNodeScene(HarfangScene this_, const HarfangNode node); +extern void HarfangReserveTransformsScene(HarfangScene this_, size_t count); +extern HarfangTransform HarfangCreateTransformScene(HarfangScene this_); +extern HarfangTransform HarfangCreateTransformSceneWithT(HarfangScene this_, const HarfangVec3 T); +extern HarfangTransform HarfangCreateTransformSceneWithTR(HarfangScene this_, const HarfangVec3 T, const HarfangVec3 R); +extern HarfangTransform HarfangCreateTransformSceneWithTRS(HarfangScene this_, const HarfangVec3 T, const HarfangVec3 R, const HarfangVec3 S); +extern void HarfangDestroyTransformScene(HarfangScene this_, const HarfangTransform transform); +extern void HarfangReserveCamerasScene(HarfangScene this_, size_t count); +extern HarfangCamera HarfangCreateCameraScene(HarfangScene this_); +extern HarfangCamera HarfangCreateCameraSceneWithZnearZfar(HarfangScene this_, float znear, float zfar); +extern HarfangCamera HarfangCreateCameraSceneWithZnearZfarFov(HarfangScene this_, float znear, float zfar, float fov); +extern HarfangCamera HarfangCreateOrthographicCameraScene(HarfangScene this_, float znear, float zfar); +extern HarfangCamera HarfangCreateOrthographicCameraSceneWithSize(HarfangScene this_, float znear, float zfar, float size); +extern void HarfangDestroyCameraScene(HarfangScene this_, const HarfangCamera camera); +extern HarfangViewState HarfangComputeCurrentCameraViewStateScene(HarfangScene this_, const HarfangVec2 aspect_ratio); +extern void HarfangReserveObjectsScene(HarfangScene this_, size_t count); +extern HarfangObject HarfangCreateObjectScene(HarfangScene this_); +extern HarfangObject HarfangCreateObjectSceneWithModelMaterials(HarfangScene this_, const HarfangModelRef model, const HarfangMaterialList materials); +extern HarfangObject HarfangCreateObjectSceneWithModelSliceOfMaterials( + HarfangScene this_, const HarfangModelRef model, size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf); +extern void HarfangDestroyObjectScene(HarfangScene this_, const HarfangObject object); +extern void HarfangReserveLightsScene(HarfangScene this_, size_t count); +extern HarfangLight HarfangCreateLightScene(HarfangScene this_); +extern void HarfangDestroyLightScene(HarfangScene this_, const HarfangLight light); +extern HarfangLight HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensity( + HarfangScene this_, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangLight HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority( + HarfangScene this_, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority); +extern HarfangLight HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene this_, const HarfangColor diffuse, + float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type); +extern HarfangLight HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(HarfangScene this_, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type, + float shadow_bias); +extern HarfangLight HarfangCreateLinearLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(HarfangScene this_, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type, + float shadow_bias, const HarfangVec4 pssm_split); +extern HarfangLight HarfangCreateLinearLightScene(HarfangScene this_, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangLight HarfangCreateLinearLightSceneWithPriority(HarfangScene this_, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangLight HarfangCreateLinearLightSceneWithPriorityShadowType( + HarfangScene this_, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangLight HarfangCreateLinearLightSceneWithPriorityShadowTypeShadowBias( + HarfangScene this_, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias); +extern HarfangLight HarfangCreateLinearLightSceneWithPriorityShadowTypeShadowBiasPssmSplit(HarfangScene this_, const HarfangColor diffuse, + const HarfangColor specular, float priority, int shadow_type, float shadow_bias, const HarfangVec4 pssm_split); +extern HarfangLight HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensity( + HarfangScene this_, float radius, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangLight HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(HarfangScene this_, float radius, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority); +extern HarfangLight HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene this_, float radius, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type); +extern HarfangLight HarfangCreatePointLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(HarfangScene this_, float radius, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type, + float shadow_bias); +extern HarfangLight HarfangCreatePointLightScene(HarfangScene this_, float radius, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangLight HarfangCreatePointLightSceneWithPriority( + HarfangScene this_, float radius, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangLight HarfangCreatePointLightSceneWithPriorityShadowType( + HarfangScene this_, float radius, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangLight HarfangCreatePointLightSceneWithPriorityShadowTypeShadowBias( + HarfangScene this_, float radius, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias); +extern HarfangLight HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensity(HarfangScene this_, float radius, float inner_angle, + float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangLight HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriority(HarfangScene this_, float radius, float inner_angle, + float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority); +extern HarfangLight HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene this_, float radius, + float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, + float priority, int shadow_type); +extern HarfangLight HarfangCreateSpotLightSceneWithDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(HarfangScene this_, float radius, + float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, + float priority, int shadow_type, float shadow_bias); +extern HarfangLight HarfangCreateSpotLightScene( + HarfangScene this_, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangLight HarfangCreateSpotLightSceneWithPriority( + HarfangScene this_, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangLight HarfangCreateSpotLightSceneWithPriorityShadowType(HarfangScene this_, float radius, float inner_angle, float outer_angle, + const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangLight HarfangCreateSpotLightSceneWithPriorityShadowTypeShadowBias(HarfangScene this_, float radius, float inner_angle, float outer_angle, + const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias); +extern void HarfangReserveScriptsScene(HarfangScene this_, size_t count); +extern HarfangScript HarfangCreateScriptScene(HarfangScene this_); +extern HarfangScript HarfangCreateScriptSceneWithPath(HarfangScene this_, const char *path); +extern void HarfangDestroyScriptScene(HarfangScene this_, const HarfangScript script); +extern size_t HarfangGetScriptCountScene(HarfangScene this_); +extern void HarfangSetScriptScene(HarfangScene this_, size_t slot_idx, const HarfangScript script); +extern HarfangScript HarfangGetScriptScene(HarfangScene this_, size_t slot_idx); +extern HarfangRigidBody HarfangCreateRigidBodyScene(HarfangScene this_); +extern void HarfangDestroyRigidBodyScene(HarfangScene this_, const HarfangRigidBody rigid_body); +extern HarfangCollision HarfangCreateCollisionScene(HarfangScene this_); +extern void HarfangDestroyCollisionScene(HarfangScene this_, const HarfangCollision collision); +extern HarfangInstance HarfangCreateInstanceScene(HarfangScene this_); +extern void HarfangDestroyInstanceScene(HarfangScene this_, const HarfangInstance Instance); +extern void HarfangSetProbeScene(HarfangScene this_, HarfangTextureRef irradiance, HarfangTextureRef radiance, HarfangTextureRef brdf); +extern HarfangNode HarfangGetCurrentCameraScene(HarfangScene this_); +extern void HarfangSetCurrentCameraScene(HarfangScene this_, const HarfangNode camera); +extern bool HarfangGetMinMaxScene(HarfangScene this_, const HarfangPipelineResources resources, HarfangMinMax minmax); +extern void HarfangSceneViewFree(HarfangSceneView); +extern HarfangNodeList HarfangGetNodesSceneView(HarfangSceneView this_, const HarfangScene scene); +extern HarfangNode HarfangGetNodeSceneView(HarfangSceneView this_, const HarfangScene scene, const char *name); +extern void HarfangNodeFree(HarfangNode); +extern bool HarfangEqNode(HarfangNode this_, const HarfangNode n); +extern bool HarfangIsValidNode(HarfangNode this_); +extern uint32_t HarfangGetUidNode(HarfangNode this_); +extern uint32_t HarfangGetFlagsNode(HarfangNode this_); +extern void HarfangSetFlagsNode(HarfangNode this_, uint32_t flags); +extern void HarfangEnableNode(HarfangNode this_); +extern void HarfangDisableNode(HarfangNode this_); +extern bool HarfangIsEnabledNode(HarfangNode this_); +extern bool HarfangIsItselfEnabledNode(HarfangNode this_); +extern bool HarfangHasTransformNode(HarfangNode this_); +extern HarfangTransform HarfangGetTransformNode(HarfangNode this_); +extern void HarfangSetTransformNode(HarfangNode this_, const HarfangTransform t); +extern void HarfangRemoveTransformNode(HarfangNode this_); +extern bool HarfangHasCameraNode(HarfangNode this_); +extern HarfangCamera HarfangGetCameraNode(HarfangNode this_); +extern void HarfangSetCameraNode(HarfangNode this_, const HarfangCamera c); +extern void HarfangRemoveCameraNode(HarfangNode this_); +extern HarfangViewState HarfangComputeCameraViewStateNode(HarfangNode this_, const HarfangVec2 aspect_ratio); +extern bool HarfangHasObjectNode(HarfangNode this_); +extern HarfangObject HarfangGetObjectNode(HarfangNode this_); +extern void HarfangSetObjectNode(HarfangNode this_, const HarfangObject o); +extern void HarfangRemoveObjectNode(HarfangNode this_); +extern bool HarfangGetMinMaxNode(HarfangNode this_, const HarfangPipelineResources resources, HarfangMinMax minmax); +extern bool HarfangHasLightNode(HarfangNode this_); +extern HarfangLight HarfangGetLightNode(HarfangNode this_); +extern void HarfangSetLightNode(HarfangNode this_, const HarfangLight l); +extern void HarfangRemoveLightNode(HarfangNode this_); +extern bool HarfangHasRigidBodyNode(HarfangNode this_); +extern HarfangRigidBody HarfangGetRigidBodyNode(HarfangNode this_); +extern void HarfangSetRigidBodyNode(HarfangNode this_, const HarfangRigidBody b); +extern void HarfangRemoveRigidBodyNode(HarfangNode this_); +extern size_t HarfangGetCollisionCountNode(HarfangNode this_); +extern HarfangCollision HarfangGetCollisionNode(HarfangNode this_, size_t slot); +extern void HarfangSetCollisionNode(HarfangNode this_, size_t slot, const HarfangCollision c); +extern void HarfangRemoveCollisionNode(HarfangNode this_, const HarfangCollision c); +extern void HarfangRemoveCollisionNodeWithSlot(HarfangNode this_, size_t slot); +extern const char *HarfangGetNameNode(HarfangNode this_); +extern void HarfangSetNameNode(HarfangNode this_, const char *name); +extern size_t HarfangGetScriptCountNode(HarfangNode this_); +extern HarfangScript HarfangGetScriptNode(HarfangNode this_, size_t idx); +extern void HarfangSetScriptNode(HarfangNode this_, size_t idx, const HarfangScript s); +extern void HarfangRemoveScriptNode(HarfangNode this_, const HarfangScript s); +extern void HarfangRemoveScriptNodeWithSlot(HarfangNode this_, size_t slot); +extern bool HarfangHasInstanceNode(HarfangNode this_); +extern HarfangInstance HarfangGetInstanceNode(HarfangNode this_); +extern void HarfangSetInstanceNode(HarfangNode this_, const HarfangInstance instance); +extern bool HarfangSetupInstanceFromFileNode(HarfangNode this_, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangSetupInstanceFromFileNodeWithFlags( + HarfangNode this_, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangSetupInstanceFromAssetsNode(HarfangNode this_, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangSetupInstanceFromAssetsNodeWithFlags( + HarfangNode this_, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern void HarfangDestroyInstanceNode(HarfangNode this_); +extern HarfangNode HarfangIsInstantiatedByNode(HarfangNode this_); +extern HarfangSceneView HarfangGetInstanceSceneViewNode(HarfangNode this_); +extern HarfangSceneAnimRef HarfangGetInstanceSceneAnimNode(HarfangNode this_, const char *path); +extern void HarfangStartOnInstantiateAnimNode(HarfangNode this_); +extern void HarfangStopOnInstantiateAnimNode(HarfangNode this_); +extern HarfangMat4 HarfangGetWorldNode(HarfangNode this_); +extern void HarfangSetWorldNode(HarfangNode this_, const HarfangMat4 world); +extern HarfangMat4 HarfangComputeWorldNode(HarfangNode this_); +extern HarfangVec3 HarfangTransformTRSGetPos(HarfangTransformTRS h); +extern void HarfangTransformTRSSetPos(HarfangTransformTRS h, HarfangVec3 v); +extern HarfangVec3 HarfangTransformTRSGetRot(HarfangTransformTRS h); +extern void HarfangTransformTRSSetRot(HarfangTransformTRS h, HarfangVec3 v); +extern HarfangVec3 HarfangTransformTRSGetScl(HarfangTransformTRS h); +extern void HarfangTransformTRSSetScl(HarfangTransformTRS h, HarfangVec3 v); +extern HarfangTransformTRS HarfangConstructorTransformTRS(); +extern void HarfangTransformTRSFree(HarfangTransformTRS); +extern void HarfangTransformFree(HarfangTransform); +extern bool HarfangEqTransform(HarfangTransform this_, const HarfangTransform t); +extern bool HarfangIsValidTransform(HarfangTransform this_); +extern HarfangVec3 HarfangGetPosTransform(HarfangTransform this_); +extern void HarfangSetPosTransform(HarfangTransform this_, const HarfangVec3 T); +extern HarfangVec3 HarfangGetRotTransform(HarfangTransform this_); +extern void HarfangSetRotTransform(HarfangTransform this_, const HarfangVec3 R); +extern HarfangVec3 HarfangGetScaleTransform(HarfangTransform this_); +extern void HarfangSetScaleTransform(HarfangTransform this_, const HarfangVec3 S); +extern HarfangTransformTRS HarfangGetTRSTransform(HarfangTransform this_); +extern void HarfangSetTRSTransform(HarfangTransform this_, const HarfangTransformTRS TRS); +extern void HarfangGetPosRotTransform(HarfangTransform this_, HarfangVec3 pos, HarfangVec3 rot); +extern void HarfangSetPosRotTransform(HarfangTransform this_, const HarfangVec3 pos, const HarfangVec3 rot); +extern HarfangNode HarfangGetParentTransform(HarfangTransform this_); +extern void HarfangSetParentTransform(HarfangTransform this_, const HarfangNode n); +extern void HarfangClearParentTransform(HarfangTransform this_); +extern HarfangMat4 HarfangGetWorldTransform(HarfangTransform this_); +extern void HarfangSetWorldTransform(HarfangTransform this_, const HarfangMat4 world); +extern void HarfangSetLocalTransform(HarfangTransform this_, const HarfangMat4 local); +extern float HarfangCameraZRangeGetZnear(HarfangCameraZRange h); +extern void HarfangCameraZRangeSetZnear(HarfangCameraZRange h, float v); +extern float HarfangCameraZRangeGetZfar(HarfangCameraZRange h); +extern void HarfangCameraZRangeSetZfar(HarfangCameraZRange h, float v); +extern HarfangCameraZRange HarfangConstructorCameraZRange(); +extern void HarfangCameraZRangeFree(HarfangCameraZRange); +extern void HarfangCameraFree(HarfangCamera); +extern bool HarfangEqCamera(HarfangCamera this_, const HarfangCamera c); +extern bool HarfangIsValidCamera(HarfangCamera this_); +extern float HarfangGetZNearCamera(HarfangCamera this_); +extern void HarfangSetZNearCamera(HarfangCamera this_, float v); +extern float HarfangGetZFarCamera(HarfangCamera this_); +extern void HarfangSetZFarCamera(HarfangCamera this_, float v); +extern HarfangCameraZRange HarfangGetZRangeCamera(HarfangCamera this_); +extern void HarfangSetZRangeCamera(HarfangCamera this_, const HarfangCameraZRange z); +extern float HarfangGetFovCamera(HarfangCamera this_); +extern void HarfangSetFovCamera(HarfangCamera this_, float v); +extern bool HarfangGetIsOrthographicCamera(HarfangCamera this_); +extern void HarfangSetIsOrthographicCamera(HarfangCamera this_, bool v); +extern float HarfangGetSizeCamera(HarfangCamera this_); +extern void HarfangSetSizeCamera(HarfangCamera this_, float v); +extern void HarfangObjectFree(HarfangObject); +extern bool HarfangEqObject(HarfangObject this_, const HarfangObject o); +extern bool HarfangIsValidObject(HarfangObject this_); +extern HarfangModelRef HarfangGetModelRefObject(HarfangObject this_); +extern void HarfangSetModelRefObject(HarfangObject this_, const HarfangModelRef r); +extern void HarfangClearModelRefObject(HarfangObject this_); +extern HarfangMaterial HarfangGetMaterialObject(HarfangObject this_, size_t slot_idx); +extern HarfangMaterial HarfangGetMaterialObjectWithName(HarfangObject this_, const char *name); +extern void HarfangSetMaterialObject(HarfangObject this_, size_t slot_idx, HarfangMaterial mat); +extern size_t HarfangGetMaterialCountObject(HarfangObject this_); +extern void HarfangSetMaterialCountObject(HarfangObject this_, size_t count); +extern const char *HarfangGetMaterialNameObject(HarfangObject this_, size_t slot_idx); +extern void HarfangSetMaterialNameObject(HarfangObject this_, size_t slot_idx, const char *name); +extern bool HarfangGetMinMaxObject(HarfangObject this_, const HarfangPipelineResources resources, HarfangMinMax minmax); +extern size_t HarfangGetBoneCountObject(HarfangObject this_); +extern void HarfangSetBoneCountObject(HarfangObject this_, size_t count); +extern bool HarfangSetBoneObject(HarfangObject this_, size_t idx, const HarfangNode node); +extern HarfangNode HarfangGetBoneObject(HarfangObject this_, size_t idx); +extern void HarfangLightFree(HarfangLight); +extern bool HarfangEqLight(HarfangLight this_, const HarfangLight l); +extern bool HarfangIsValidLight(HarfangLight this_); +extern int HarfangGetTypeLight(HarfangLight this_); +extern void HarfangSetTypeLight(HarfangLight this_, int v); +extern int HarfangGetShadowTypeLight(HarfangLight this_); +extern void HarfangSetShadowTypeLight(HarfangLight this_, int v); +extern HarfangColor HarfangGetDiffuseColorLight(HarfangLight this_); +extern void HarfangSetDiffuseColorLight(HarfangLight this_, const HarfangColor v); +extern float HarfangGetDiffuseIntensityLight(HarfangLight this_); +extern void HarfangSetDiffuseIntensityLight(HarfangLight this_, float v); +extern HarfangColor HarfangGetSpecularColorLight(HarfangLight this_); +extern void HarfangSetSpecularColorLight(HarfangLight this_, const HarfangColor v); +extern float HarfangGetSpecularIntensityLight(HarfangLight this_); +extern void HarfangSetSpecularIntensityLight(HarfangLight this_, float v); +extern float HarfangGetRadiusLight(HarfangLight this_); +extern void HarfangSetRadiusLight(HarfangLight this_, float v); +extern float HarfangGetInnerAngleLight(HarfangLight this_); +extern void HarfangSetInnerAngleLight(HarfangLight this_, float v); +extern float HarfangGetOuterAngleLight(HarfangLight this_); +extern void HarfangSetOuterAngleLight(HarfangLight this_, float v); +extern HarfangVec4 HarfangGetPSSMSplitLight(HarfangLight this_); +extern void HarfangSetPSSMSplitLight(HarfangLight this_, const HarfangVec4 v); +extern float HarfangGetPriorityLight(HarfangLight this_); +extern void HarfangSetPriorityLight(HarfangLight this_, float v); +extern HarfangVec3 HarfangContactGetP(HarfangContact h); +extern void HarfangContactSetP(HarfangContact h, HarfangVec3 v); +extern HarfangVec3 HarfangContactGetN(HarfangContact h); +extern void HarfangContactSetN(HarfangContact h, HarfangVec3 v); +extern float HarfangContactGetD(HarfangContact h); +extern void HarfangContactSetD(HarfangContact h, float v); +extern void HarfangContactFree(HarfangContact); +extern HarfangContact HarfangContactListGetOperator(HarfangContactList h, int id); +extern void HarfangContactListSetOperator(HarfangContactList h, int id, HarfangContact v); +extern int HarfangContactListLenOperator(HarfangContactList h); +extern HarfangContactList HarfangConstructorContactList(); +extern HarfangContactList HarfangConstructorContactListWithSequence(size_t sequenceToCSize, HarfangContact *sequenceToCBuf); +extern void HarfangContactListFree(HarfangContactList); +extern void HarfangClearContactList(HarfangContactList this_); +extern void HarfangReserveContactList(HarfangContactList this_, size_t size); +extern void HarfangPushBackContactList(HarfangContactList this_, HarfangContact v); +extern size_t HarfangSizeContactList(HarfangContactList this_); +extern HarfangContact HarfangAtContactList(HarfangContactList this_, size_t idx); +extern void HarfangRigidBodyFree(HarfangRigidBody); +extern bool HarfangEqRigidBody(HarfangRigidBody this_, const HarfangRigidBody b); +extern bool HarfangIsValidRigidBody(HarfangRigidBody this_); +extern uint8_t HarfangGetTypeRigidBody(HarfangRigidBody this_); +extern void HarfangSetTypeRigidBody(HarfangRigidBody this_, uint8_t type); +extern float HarfangGetLinearDampingRigidBody(HarfangRigidBody this_); +extern void HarfangSetLinearDampingRigidBody(HarfangRigidBody this_, float damping); +extern float HarfangGetAngularDampingRigidBody(HarfangRigidBody this_); +extern void HarfangSetAngularDampingRigidBody(HarfangRigidBody this_, float damping); +extern float HarfangGetRestitutionRigidBody(HarfangRigidBody this_); +extern void HarfangSetRestitutionRigidBody(HarfangRigidBody this_, float restitution); +extern float HarfangGetFrictionRigidBody(HarfangRigidBody this_); +extern void HarfangSetFrictionRigidBody(HarfangRigidBody this_, float friction); +extern float HarfangGetRollingFrictionRigidBody(HarfangRigidBody this_); +extern void HarfangSetRollingFrictionRigidBody(HarfangRigidBody this_, float rolling_friction); +extern void HarfangCollisionFree(HarfangCollision); +extern bool HarfangEqCollision(HarfangCollision this_, const HarfangCollision c); +extern bool HarfangIsValidCollision(HarfangCollision this_); +extern uint8_t HarfangGetTypeCollision(HarfangCollision this_); +extern void HarfangSetTypeCollision(HarfangCollision this_, uint8_t type); +extern HarfangMat4 HarfangGetLocalTransformCollision(HarfangCollision this_); +extern void HarfangSetLocalTransformCollision(HarfangCollision this_, HarfangMat4 m); +extern float HarfangGetMassCollision(HarfangCollision this_); +extern void HarfangSetMassCollision(HarfangCollision this_, float mass); +extern float HarfangGetRadiusCollision(HarfangCollision this_); +extern void HarfangSetRadiusCollision(HarfangCollision this_, float radius); +extern float HarfangGetHeightCollision(HarfangCollision this_); +extern void HarfangSetHeightCollision(HarfangCollision this_, float height); +extern void HarfangSetSizeCollision(HarfangCollision this_, const HarfangVec3 size); +extern const char *HarfangGetCollisionResourceCollision(HarfangCollision this_); +extern void HarfangSetCollisionResourceCollision(HarfangCollision this_, const char *path); +extern void HarfangInstanceFree(HarfangInstance); +extern bool HarfangEqInstance(HarfangInstance this_, const HarfangInstance i); +extern bool HarfangIsValidInstance(HarfangInstance this_); +extern const char *HarfangGetPathInstance(HarfangInstance this_); +extern void HarfangSetPathInstance(HarfangInstance this_, const char *path); +extern void HarfangSetOnInstantiateAnimInstance(HarfangInstance this_, const char *anim); +extern void HarfangSetOnInstantiateAnimLoopModeInstance(HarfangInstance this_, int loop_mode); +extern void HarfangClearOnInstantiateAnimInstance(HarfangInstance this_); +extern const char *HarfangGetOnInstantiateAnimInstance(HarfangInstance this_); +extern int HarfangGetOnInstantiateAnimLoopModeInstance(HarfangInstance this_); +extern HarfangScenePlayAnimRef HarfangGetOnInstantiatePlayAnimRefInstance(HarfangInstance this_); +extern void HarfangScriptFree(HarfangScript); +extern bool HarfangEqScript(HarfangScript this_, const HarfangScript s); +extern bool HarfangIsValidScript(HarfangScript this_); +extern const char *HarfangGetPathScript(HarfangScript this_); +extern void HarfangSetPathScript(HarfangScript this_, const char *path); +extern HarfangScript HarfangScriptListGetOperator(HarfangScriptList h, int id); +extern void HarfangScriptListSetOperator(HarfangScriptList h, int id, HarfangScript v); +extern int HarfangScriptListLenOperator(HarfangScriptList h); +extern HarfangScriptList HarfangConstructorScriptList(); +extern HarfangScriptList HarfangConstructorScriptListWithSequence(size_t sequenceToCSize, HarfangScript *sequenceToCBuf); +extern void HarfangScriptListFree(HarfangScriptList); +extern void HarfangClearScriptList(HarfangScriptList this_); +extern void HarfangReserveScriptList(HarfangScriptList this_, size_t size); +extern void HarfangPushBackScriptList(HarfangScriptList this_, HarfangScript v); +extern size_t HarfangSizeScriptList(HarfangScriptList this_); +extern HarfangScript HarfangAtScriptList(HarfangScriptList this_, size_t idx); +extern HarfangNode HarfangNodeListGetOperator(HarfangNodeList h, int id); +extern void HarfangNodeListSetOperator(HarfangNodeList h, int id, HarfangNode v); +extern int HarfangNodeListLenOperator(HarfangNodeList h); +extern HarfangNodeList HarfangConstructorNodeList(); +extern HarfangNodeList HarfangConstructorNodeListWithSequence(size_t sequenceToCSize, HarfangNode *sequenceToCBuf); +extern void HarfangNodeListFree(HarfangNodeList); +extern void HarfangClearNodeList(HarfangNodeList this_); +extern void HarfangReserveNodeList(HarfangNodeList this_, size_t size); +extern void HarfangPushBackNodeList(HarfangNodeList this_, HarfangNode v); +extern size_t HarfangSizeNodeList(HarfangNodeList this_); +extern HarfangNode HarfangAtNodeList(HarfangNodeList this_, size_t idx); +extern HarfangVec3 HarfangRaycastOutGetP(HarfangRaycastOut h); +extern void HarfangRaycastOutSetP(HarfangRaycastOut h, HarfangVec3 v); +extern HarfangVec3 HarfangRaycastOutGetN(HarfangRaycastOut h); +extern void HarfangRaycastOutSetN(HarfangRaycastOut h, HarfangVec3 v); +extern HarfangNode HarfangRaycastOutGetNode(HarfangRaycastOut h); +extern void HarfangRaycastOutSetNode(HarfangRaycastOut h, HarfangNode v); +extern float HarfangRaycastOutGetT(HarfangRaycastOut h); +extern void HarfangRaycastOutSetT(HarfangRaycastOut h, float v); +extern void HarfangRaycastOutFree(HarfangRaycastOut); +extern HarfangRaycastOut HarfangRaycastOutListGetOperator(HarfangRaycastOutList h, int id); +extern void HarfangRaycastOutListSetOperator(HarfangRaycastOutList h, int id, HarfangRaycastOut v); +extern int HarfangRaycastOutListLenOperator(HarfangRaycastOutList h); +extern HarfangRaycastOutList HarfangConstructorRaycastOutList(); +extern HarfangRaycastOutList HarfangConstructorRaycastOutListWithSequence(size_t sequenceToCSize, HarfangRaycastOut *sequenceToCBuf); +extern void HarfangRaycastOutListFree(HarfangRaycastOutList); +extern void HarfangClearRaycastOutList(HarfangRaycastOutList this_); +extern void HarfangReserveRaycastOutList(HarfangRaycastOutList this_, size_t size); +extern void HarfangPushBackRaycastOutList(HarfangRaycastOutList this_, HarfangRaycastOut v); +extern size_t HarfangSizeRaycastOutList(HarfangRaycastOutList this_); +extern HarfangRaycastOut HarfangAtRaycastOutList(HarfangRaycastOutList this_, size_t idx); +extern void HarfangTimeCallbackConnectionFree(HarfangTimeCallbackConnection); +extern void HarfangSignalReturningVoidTakingTimeNsFree(HarfangSignalReturningVoidTakingTimeNs); +extern HarfangTimeCallbackConnection HarfangConnectSignalReturningVoidTakingTimeNs( + HarfangSignalReturningVoidTakingTimeNs this_, HarfangFunctionReturningVoidTakingTimeNs listener); +extern void HarfangDisconnectSignalReturningVoidTakingTimeNs(HarfangSignalReturningVoidTakingTimeNs this_, HarfangTimeCallbackConnection connection); +extern void HarfangDisconnectAllSignalReturningVoidTakingTimeNs(HarfangSignalReturningVoidTakingTimeNs this_); +extern void HarfangEmitSignalReturningVoidTakingTimeNs(HarfangSignalReturningVoidTakingTimeNs this_, int64_t arg0); +extern size_t HarfangGetListenerCountSignalReturningVoidTakingTimeNs(HarfangSignalReturningVoidTakingTimeNs this_); +extern bool HarfangCanvasGetClearZ(HarfangCanvas h); +extern void HarfangCanvasSetClearZ(HarfangCanvas h, bool v); +extern bool HarfangCanvasGetClearColor(HarfangCanvas h); +extern void HarfangCanvasSetClearColor(HarfangCanvas h, bool v); +extern HarfangColor HarfangCanvasGetColor(HarfangCanvas h); +extern void HarfangCanvasSetColor(HarfangCanvas h, HarfangColor v); +extern void HarfangCanvasFree(HarfangCanvas); +extern HarfangColor HarfangEnvironmentGetAmbient(HarfangEnvironment h); +extern void HarfangEnvironmentSetAmbient(HarfangEnvironment h, HarfangColor v); +extern HarfangColor HarfangEnvironmentGetFogColor(HarfangEnvironment h); +extern void HarfangEnvironmentSetFogColor(HarfangEnvironment h, HarfangColor v); +extern float HarfangEnvironmentGetFogNear(HarfangEnvironment h); +extern void HarfangEnvironmentSetFogNear(HarfangEnvironment h, float v); +extern float HarfangEnvironmentGetFogFar(HarfangEnvironment h); +extern void HarfangEnvironmentSetFogFar(HarfangEnvironment h, float v); +extern HarfangTextureRef HarfangEnvironmentGetBrdfMap(HarfangEnvironment h); +extern void HarfangEnvironmentSetBrdfMap(HarfangEnvironment h, HarfangTextureRef v); +extern void HarfangEnvironmentFree(HarfangEnvironment); +extern HarfangSceneForwardPipelinePassViewId HarfangConstructorSceneForwardPipelinePassViewId(); +extern void HarfangSceneForwardPipelinePassViewIdFree(HarfangSceneForwardPipelinePassViewId); +extern HarfangSceneForwardPipelineRenderData HarfangConstructorSceneForwardPipelineRenderData(); +extern void HarfangSceneForwardPipelineRenderDataFree(HarfangSceneForwardPipelineRenderData); +extern float HarfangForwardPipelineAAAConfigGetTemporalAaWeight(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetTemporalAaWeight(HarfangForwardPipelineAAAConfig h, float v); +extern int HarfangForwardPipelineAAAConfigGetSampleCount(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetSampleCount(HarfangForwardPipelineAAAConfig h, int v); +extern float HarfangForwardPipelineAAAConfigGetMaxDistance(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetMaxDistance(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetZThickness(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetZThickness(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetBloomThreshold(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetBloomThreshold(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetBloomBias(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetBloomBias(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetBloomIntensity(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetBloomIntensity(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetMotionBlur(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetMotionBlur(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetExposure(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetExposure(HarfangForwardPipelineAAAConfig h, float v); +extern float HarfangForwardPipelineAAAConfigGetGamma(HarfangForwardPipelineAAAConfig h); +extern void HarfangForwardPipelineAAAConfigSetGamma(HarfangForwardPipelineAAAConfig h, float v); +extern HarfangForwardPipelineAAAConfig HarfangConstructorForwardPipelineAAAConfig(); +extern void HarfangForwardPipelineAAAConfigFree(HarfangForwardPipelineAAAConfig); +extern void HarfangForwardPipelineAAAFree(HarfangForwardPipelineAAA); +extern void HarfangFlipForwardPipelineAAA(HarfangForwardPipelineAAA this_, const HarfangViewState view_state); +extern HarfangNodePairContacts HarfangConstructorNodePairContacts(); +extern void HarfangNodePairContactsFree(HarfangNodePairContacts); +extern void HarfangBtGeneric6DofConstraintFree(HarfangBtGeneric6DofConstraint); +extern HarfangSceneBullet3Physics HarfangConstructorSceneBullet3Physics(); +extern HarfangSceneBullet3Physics HarfangConstructorSceneBullet3PhysicsWithThreadCount(int thread_count); +extern void HarfangSceneBullet3PhysicsFree(HarfangSceneBullet3Physics); +extern void HarfangSceneCreatePhysicsFromFileSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangScene scene); +extern void HarfangSceneCreatePhysicsFromAssetsSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangScene scene); +extern void HarfangNodeCreatePhysicsFromFileSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeCreatePhysicsFromAssetsSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeStartTrackingCollisionEventsSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeStartTrackingCollisionEventsSceneBullet3PhysicsWithMode(HarfangSceneBullet3Physics this_, const HarfangNode node, uint8_t mode); +extern void HarfangNodeStopTrackingCollisionEventsSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeDestroyPhysicsSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern bool HarfangNodeHasBodySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangStepSimulationSceneBullet3Physics(HarfangSceneBullet3Physics this_, int64_t display_dt); +extern void HarfangStepSimulationSceneBullet3PhysicsWithStepDt(HarfangSceneBullet3Physics this_, int64_t display_dt, int64_t step_dt); +extern void HarfangStepSimulationSceneBullet3PhysicsWithStepDtMaxStep(HarfangSceneBullet3Physics this_, int64_t display_dt, int64_t step_dt, int max_step); +extern void HarfangCollectCollisionEventsSceneBullet3Physics( + HarfangSceneBullet3Physics this_, const HarfangScene scene, HarfangNodePairContacts node_pair_contacts); +extern void HarfangSyncTransformsFromSceneSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangScene scene); +extern void HarfangSyncTransformsToSceneSceneBullet3Physics(HarfangSceneBullet3Physics this_, HarfangScene scene); +extern size_t HarfangGarbageCollectSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangScene scene); +extern size_t HarfangGarbageCollectResourcesSceneBullet3Physics(HarfangSceneBullet3Physics this_); +extern void HarfangClearNodesSceneBullet3Physics(HarfangSceneBullet3Physics this_); +extern void HarfangClearSceneBullet3Physics(HarfangSceneBullet3Physics this_); +extern void HarfangNodeWakeSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeSetDeactivationSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, bool enable); +extern bool HarfangNodeGetDeactivationSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeResetWorldSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangMat4 world); +extern void HarfangNodeTeleportSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangMat4 world); +extern void HarfangNodeAddForceSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 F); +extern void HarfangNodeAddForceSceneBullet3PhysicsWithWorldPos( + HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 F, const HarfangVec3 world_pos); +extern void HarfangNodeAddImpulseSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 dt_velocity); +extern void HarfangNodeAddImpulseSceneBullet3PhysicsWithWorldPos( + HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 dt_velocity, const HarfangVec3 world_pos); +extern void HarfangNodeAddTorqueSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 T); +extern void HarfangNodeAddTorqueImpulseSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 dt_angular_velocity); +extern HarfangVec3 HarfangNodeGetPointVelocitySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 world_pos); +extern HarfangVec3 HarfangNodeGetLinearVelocitySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeSetLinearVelocitySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 V); +extern HarfangVec3 HarfangNodeGetAngularVelocitySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeSetAngularVelocitySceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 W); +extern HarfangVec3 HarfangNodeGetLinearFactorSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeSetLinearFactorSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 k); +extern HarfangVec3 HarfangNodeGetAngularFactorSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node); +extern void HarfangNodeSetAngularFactorSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangVec3 k); +extern HarfangBtGeneric6DofConstraint HarfangAdd6DofConstraintSceneBullet3Physics( + HarfangSceneBullet3Physics this_, const HarfangNode nodeA, const HarfangNode nodeB, const HarfangMat4 anchorALocal, const HarfangMat4 anchorBInLocalSpaceA); +extern void HarfangRemove6DofConstraintSceneBullet3Physics(HarfangSceneBullet3Physics this_, HarfangBtGeneric6DofConstraint constraint6Dof); +extern HarfangNodePairContacts HarfangNodeCollideWorldSceneBullet3Physics(HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangMat4 world); +extern HarfangNodePairContacts HarfangNodeCollideWorldSceneBullet3PhysicsWithMaxContact( + HarfangSceneBullet3Physics this_, const HarfangNode node, const HarfangMat4 world, int max_contact); +extern HarfangRaycastOut HarfangRaycastFirstHitSceneBullet3Physics( + HarfangSceneBullet3Physics this_, const HarfangScene scene, const HarfangVec3 p0, const HarfangVec3 p1); +extern HarfangRaycastOutList HarfangRaycastAllHitsSceneBullet3Physics( + HarfangSceneBullet3Physics this_, const HarfangScene scene, const HarfangVec3 p0, const HarfangVec3 p1); +extern void HarfangRenderCollisionSceneBullet3Physics(HarfangSceneBullet3Physics this_, uint16_t view_id, const HarfangVertexLayout vtx_layout, + HarfangProgramHandle prg, HarfangRenderState render_state, uint32_t depth); +extern void HarfangSetPreTickCallbackSceneBullet3Physics( + HarfangSceneBullet3Physics this_, const HarfangFunctionReturningVoidTakingSceneBullet3PhysicsRefTimeNs cbk); +extern HarfangSceneLuaVM HarfangConstructorSceneLuaVM(); +extern void HarfangSceneLuaVMFree(HarfangSceneLuaVM); +extern bool HarfangCreateScriptFromSourceSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene, const HarfangScript script, const char *src); +extern bool HarfangCreateScriptFromFileSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene, const HarfangScript script); +extern bool HarfangCreateScriptFromAssetsSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene, const HarfangScript script); +extern HarfangScriptList HarfangCreateNodeScriptsFromFileSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene, const HarfangNode node); +extern HarfangScriptList HarfangCreateNodeScriptsFromAssetsSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene, const HarfangNode node); +extern HarfangScriptList HarfangSceneCreateScriptsFromFileSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene); +extern HarfangScriptList HarfangSceneCreateScriptsFromAssetsSceneLuaVM(HarfangSceneLuaVM this_, HarfangScene scene); +extern HarfangScriptList HarfangGarbageCollectSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScene scene); +extern void HarfangDestroyScriptsSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScriptList scripts); +extern HarfangStringList HarfangGetScriptInterfaceSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScript script); +extern size_t HarfangGetScriptCountSceneLuaVM(HarfangSceneLuaVM this_); +extern HarfangLuaObject HarfangGetScriptEnvSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScript script); +extern HarfangLuaObject HarfangGetScriptValueSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScript script, const char *name); +extern bool HarfangSetScriptValueSceneLuaVM(HarfangSceneLuaVM this_, const HarfangScript script, const char *name, const HarfangLuaObject value); +extern bool HarfangSetScriptValueSceneLuaVMWithNotify( + HarfangSceneLuaVM this_, const HarfangScript script, const char *name, const HarfangLuaObject value, bool notify); +extern bool HarfangCallSceneLuaVM( + HarfangSceneLuaVM this_, const HarfangScript script, const char *function, const HarfangLuaObjectList args, HarfangLuaObjectList ret_vals); +extern bool HarfangCallSceneLuaVMWithSliceOfArgs(HarfangSceneLuaVM this_, const HarfangScript script, const char *function, size_t SliceOfargsToCSize, + HarfangLuaObject *SliceOfargsToCBuf, HarfangLuaObjectList ret_vals); +extern HarfangLuaObject HarfangMakeLuaObjectSceneLuaVM(HarfangSceneLuaVM this_); +extern HarfangSceneClocks HarfangConstructorSceneClocks(); +extern void HarfangSceneClocksFree(HarfangSceneClocks); +extern void HarfangMouseStateFree(HarfangMouseState); +extern int HarfangXMouseState(HarfangMouseState this_); +extern int HarfangYMouseState(HarfangMouseState this_); +extern bool HarfangButtonMouseState(HarfangMouseState this_, int btn); +extern int HarfangWheelMouseState(HarfangMouseState this_); +extern int HarfangHWheelMouseState(HarfangMouseState this_); +extern HarfangMouse HarfangConstructorMouse(); +extern HarfangMouse HarfangConstructorMouseWithName(const char *name); +extern void HarfangMouseFree(HarfangMouse); +extern int HarfangXMouse(HarfangMouse this_); +extern int HarfangYMouse(HarfangMouse this_); +extern int HarfangDtXMouse(HarfangMouse this_); +extern int HarfangDtYMouse(HarfangMouse this_); +extern bool HarfangDownMouse(HarfangMouse this_, int button); +extern bool HarfangPressedMouse(HarfangMouse this_, int button); +extern bool HarfangReleasedMouse(HarfangMouse this_, int button); +extern int HarfangWheelMouse(HarfangMouse this_); +extern int HarfangHWheelMouse(HarfangMouse this_); +extern void HarfangUpdateMouse(HarfangMouse this_); +extern HarfangMouseState HarfangGetStateMouse(HarfangMouse this_); +extern HarfangMouseState HarfangGetOldStateMouse(HarfangMouse this_); +extern void HarfangKeyboardStateFree(HarfangKeyboardState); +extern bool HarfangKeyKeyboardState(HarfangKeyboardState this_, int key); +extern HarfangKeyboard HarfangConstructorKeyboard(); +extern HarfangKeyboard HarfangConstructorKeyboardWithName(const char *name); +extern void HarfangKeyboardFree(HarfangKeyboard); +extern bool HarfangDownKeyboard(HarfangKeyboard this_, int key); +extern bool HarfangPressedKeyboard(HarfangKeyboard this_, int key); +extern bool HarfangReleasedKeyboard(HarfangKeyboard this_, int key); +extern void HarfangUpdateKeyboard(HarfangKeyboard this_); +extern HarfangKeyboardState HarfangGetStateKeyboard(HarfangKeyboard this_); +extern HarfangKeyboardState HarfangGetOldStateKeyboard(HarfangKeyboard this_); +extern void HarfangTextInputCallbackConnectionFree(HarfangTextInputCallbackConnection); +extern void HarfangSignalReturningVoidTakingConstCharPtrFree(HarfangSignalReturningVoidTakingConstCharPtr); +extern HarfangTextInputCallbackConnection HarfangConnectSignalReturningVoidTakingConstCharPtr( + HarfangSignalReturningVoidTakingConstCharPtr this_, HarfangFunctionReturningVoidTakingConstCharPtr listener); +extern void HarfangDisconnectSignalReturningVoidTakingConstCharPtr( + HarfangSignalReturningVoidTakingConstCharPtr this_, HarfangTextInputCallbackConnection connection); +extern void HarfangDisconnectAllSignalReturningVoidTakingConstCharPtr(HarfangSignalReturningVoidTakingConstCharPtr this_); +extern void HarfangEmitSignalReturningVoidTakingConstCharPtr(HarfangSignalReturningVoidTakingConstCharPtr this_, const char *arg0); +extern size_t HarfangGetListenerCountSignalReturningVoidTakingConstCharPtr(HarfangSignalReturningVoidTakingConstCharPtr this_); +extern void HarfangGamepadStateFree(HarfangGamepadState); +extern bool HarfangIsConnectedGamepadState(HarfangGamepadState this_); +extern float HarfangAxesGamepadState(HarfangGamepadState this_, int idx); +extern bool HarfangButtonGamepadState(HarfangGamepadState this_, int btn); +extern HarfangGamepad HarfangConstructorGamepad(); +extern HarfangGamepad HarfangConstructorGamepadWithName(const char *name); +extern void HarfangGamepadFree(HarfangGamepad); +extern bool HarfangIsConnectedGamepad(HarfangGamepad this_); +extern bool HarfangConnectedGamepad(HarfangGamepad this_); +extern bool HarfangDisconnectedGamepad(HarfangGamepad this_); +extern float HarfangAxesGamepad(HarfangGamepad this_, int axis); +extern float HarfangDtAxesGamepad(HarfangGamepad this_, int axis); +extern bool HarfangDownGamepad(HarfangGamepad this_, int btn); +extern bool HarfangPressedGamepad(HarfangGamepad this_, int btn); +extern bool HarfangReleasedGamepad(HarfangGamepad this_, int btn); +extern void HarfangUpdateGamepad(HarfangGamepad this_); +extern void HarfangJoystickStateFree(HarfangJoystickState); +extern bool HarfangIsConnectedJoystickState(HarfangJoystickState this_); +extern float HarfangAxesJoystickState(HarfangJoystickState this_, int idx); +extern bool HarfangButtonJoystickState(HarfangJoystickState this_, int btn); +extern HarfangJoystick HarfangConstructorJoystick(); +extern HarfangJoystick HarfangConstructorJoystickWithName(const char *name); +extern void HarfangJoystickFree(HarfangJoystick); +extern bool HarfangIsConnectedJoystick(HarfangJoystick this_); +extern bool HarfangConnectedJoystick(HarfangJoystick this_); +extern bool HarfangDisconnectedJoystick(HarfangJoystick this_); +extern int HarfangAxesCountJoystick(HarfangJoystick this_); +extern float HarfangAxesJoystick(HarfangJoystick this_, int axis); +extern float HarfangDtAxesJoystick(HarfangJoystick this_, int axis); +extern int HarfangButtonsCountJoystick(HarfangJoystick this_); +extern bool HarfangDownJoystick(HarfangJoystick this_, int btn); +extern bool HarfangPressedJoystick(HarfangJoystick this_, int btn); +extern bool HarfangReleasedJoystick(HarfangJoystick this_, int btn); +extern void HarfangUpdateJoystick(HarfangJoystick this_); +extern const char *HarfangGetDeviceNameJoystick(HarfangJoystick this_); +extern void HarfangVRControllerStateFree(HarfangVRControllerState); +extern bool HarfangIsConnectedVRControllerState(HarfangVRControllerState this_); +extern HarfangMat4 HarfangWorldVRControllerState(HarfangVRControllerState this_); +extern bool HarfangPressedVRControllerState(HarfangVRControllerState this_, int btn); +extern bool HarfangTouchedVRControllerState(HarfangVRControllerState this_, int btn); +extern HarfangVec2 HarfangSurfaceVRControllerState(HarfangVRControllerState this_, int idx); +extern HarfangVRController HarfangConstructorVRController(); +extern HarfangVRController HarfangConstructorVRControllerWithName(const char *name); +extern void HarfangVRControllerFree(HarfangVRController); +extern bool HarfangIsConnectedVRController(HarfangVRController this_); +extern bool HarfangConnectedVRController(HarfangVRController this_); +extern bool HarfangDisconnectedVRController(HarfangVRController this_); +extern HarfangMat4 HarfangWorldVRController(HarfangVRController this_); +extern bool HarfangDownVRController(HarfangVRController this_, int btn); +extern bool HarfangPressedVRController(HarfangVRController this_, int btn); +extern bool HarfangReleasedVRController(HarfangVRController this_, int btn); +extern bool HarfangTouchVRController(HarfangVRController this_, int btn); +extern bool HarfangTouchStartVRController(HarfangVRController this_, int btn); +extern bool HarfangTouchEndVRController(HarfangVRController this_, int btn); +extern HarfangVec2 HarfangSurfaceVRController(HarfangVRController this_, int idx); +extern HarfangVec2 HarfangDtSurfaceVRController(HarfangVRController this_, int idx); +extern void HarfangSendHapticPulseVRController(HarfangVRController this_, int64_t duration); +extern void HarfangUpdateVRController(HarfangVRController this_); +extern void HarfangVRGenericTrackerStateFree(HarfangVRGenericTrackerState); +extern bool HarfangIsConnectedVRGenericTrackerState(HarfangVRGenericTrackerState this_); +extern HarfangMat4 HarfangWorldVRGenericTrackerState(HarfangVRGenericTrackerState this_); +extern HarfangVRGenericTracker HarfangConstructorVRGenericTracker(); +extern HarfangVRGenericTracker HarfangConstructorVRGenericTrackerWithName(const char *name); +extern void HarfangVRGenericTrackerFree(HarfangVRGenericTracker); +extern bool HarfangIsConnectedVRGenericTracker(HarfangVRGenericTracker this_); +extern HarfangMat4 HarfangWorldVRGenericTracker(HarfangVRGenericTracker this_); +extern void HarfangUpdateVRGenericTracker(HarfangVRGenericTracker this_); +extern void HarfangDearImguiContextFree(HarfangDearImguiContext); +extern void HarfangImFontFree(HarfangImFont); +extern void HarfangImDrawListFree(HarfangImDrawList); +extern void HarfangPushClipRectImDrawList(HarfangImDrawList this_, HarfangVec2 clip_rect_min, HarfangVec2 clip_rect_max); +extern void HarfangPushClipRectImDrawListWithIntersectWithCurentClipRect( + HarfangImDrawList this_, HarfangVec2 clip_rect_min, HarfangVec2 clip_rect_max, bool intersect_with_curent_clip_rect); +extern void HarfangPushClipRectFullScreenImDrawList(HarfangImDrawList this_); +extern void HarfangPopClipRectImDrawList(HarfangImDrawList this_); +extern void HarfangPushTextureIDImDrawList(HarfangImDrawList this_, const HarfangTexture tex); +extern void HarfangPopTextureIDImDrawList(HarfangImDrawList this_); +extern HarfangVec2 HarfangGetClipRectMinImDrawList(HarfangImDrawList this_); +extern HarfangVec2 HarfangGetClipRectMaxImDrawList(HarfangImDrawList this_); +extern void HarfangAddLineImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col); +extern void HarfangAddLineImDrawListWithThickness(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float thickness); +extern void HarfangAddRectImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col); +extern void HarfangAddRectImDrawListWithRounding(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float rounding); +extern void HarfangAddRectImDrawListWithRoundingRoundingCornerFlags( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float rounding, int rounding_corner_flags); +extern void HarfangAddRectImDrawListWithRoundingRoundingCornerFlagsThickness( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float rounding, int rounding_corner_flags, float thickness); +extern void HarfangAddRectFilledImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col); +extern void HarfangAddRectFilledImDrawListWithRounding(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float rounding); +extern void HarfangAddRectFilledImDrawListWithRoundingRoundingCornerFlags( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col, float rounding, int rounding_corner_flags); +extern void HarfangAddRectFilledMultiColorImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, unsigned int col_upr_left, unsigned int col_upr_right, unsigned int col_bot_right, unsigned int col_bot_left); -extern void WrapAddQuadImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, const WrapVec2 d, unsigned int col); -extern void WrapAddQuadImDrawListWithThickness( - WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, const WrapVec2 d, unsigned int col, float thickness); -extern void WrapAddQuadFilledImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, const WrapVec2 d, unsigned int col); -extern void WrapAddTriangleImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, unsigned int col); -extern void WrapAddTriangleImDrawListWithThickness( - WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, unsigned int col, float thickness); -extern void WrapAddTriangleFilledImDrawList(WrapImDrawList this_, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, unsigned int col); -extern void WrapAddCircleImDrawList(WrapImDrawList this_, const WrapVec2 centre, float radius, unsigned int col); -extern void WrapAddCircleImDrawListWithNumSegments(WrapImDrawList this_, const WrapVec2 centre, float radius, unsigned int col, int num_segments); -extern void WrapAddCircleImDrawListWithNumSegmentsThickness( - WrapImDrawList this_, const WrapVec2 centre, float radius, unsigned int col, int num_segments, float thickness); -extern void WrapAddCircleFilledImDrawList(WrapImDrawList this_, const WrapVec2 centre, float radius, unsigned int col); -extern void WrapAddCircleFilledImDrawListWithNumSegments(WrapImDrawList this_, const WrapVec2 centre, float radius, unsigned int col, int num_segments); -extern void WrapAddTextImDrawList(WrapImDrawList this_, const WrapVec2 pos, unsigned int col, const char *text); -extern void WrapAddTextImDrawListWithFontFontSizePosColText( - WrapImDrawList this_, const WrapImFont font, float font_size, const WrapVec2 pos, unsigned int col, const char *text); -extern void WrapAddTextImDrawListWithFontFontSizePosColTextWrapWidth( - WrapImDrawList this_, const WrapImFont font, float font_size, const WrapVec2 pos, unsigned int col, const char *text, float wrap_width); -extern void WrapAddTextImDrawListWithFontFontSizePosColTextWrapWidthCpuFineClipRect(WrapImDrawList this_, const WrapImFont font, float font_size, - const WrapVec2 pos, unsigned int col, const char *text, float wrap_width, const WrapVec4 cpu_fine_clip_rect); -extern void WrapAddImageImDrawList(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b); -extern void WrapAddImageImDrawListWithUvAUvB( - WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 uv_a, const WrapVec2 uv_b); -extern void WrapAddImageImDrawListWithUvAUvBCol( - WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 uv_a, const WrapVec2 uv_b, unsigned int col); -extern void WrapAddImageQuadImDrawList(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, const WrapVec2 d); -extern void WrapAddImageQuadImDrawListWithUvAUvBUvCUvD(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, - const WrapVec2 d, const WrapVec2 uv_a, const WrapVec2 uv_b, const WrapVec2 uv_c, const WrapVec2 uv_d); -extern void WrapAddImageQuadImDrawListWithUvAUvBUvCUvDCol(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 c, - const WrapVec2 d, const WrapVec2 uv_a, const WrapVec2 uv_b, const WrapVec2 uv_c, const WrapVec2 uv_d, unsigned int col); -extern void WrapAddImageRoundedImDrawList(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 uv_a, - const WrapVec2 uv_b, unsigned int col, float rounding); -extern void WrapAddImageRoundedImDrawListWithFlags(WrapImDrawList this_, const WrapTexture tex, const WrapVec2 a, const WrapVec2 b, const WrapVec2 uv_a, - const WrapVec2 uv_b, unsigned int col, float rounding, int flags); -extern void WrapAddPolylineImDrawList(WrapImDrawList this_, const WrapVec2List points, unsigned int col, bool closed, float thickness); -extern void WrapAddConvexPolyFilledImDrawList(WrapImDrawList this_, const WrapVec2List points, unsigned int col); -extern void WrapAddBezierCubicImDrawList( - WrapImDrawList this_, const WrapVec2 pos0, const WrapVec2 cp0, const WrapVec2 cp1, const WrapVec2 pos1, unsigned int col, float thickness); -extern void WrapAddBezierCubicImDrawListWithNumSegments(WrapImDrawList this_, const WrapVec2 pos0, const WrapVec2 cp0, const WrapVec2 cp1, const WrapVec2 pos1, - unsigned int col, float thickness, int num_segments); -extern void WrapPathClearImDrawList(WrapImDrawList this_); -extern void WrapPathLineToImDrawList(WrapImDrawList this_, const WrapVec2 pos); -extern void WrapPathLineToMergeDuplicateImDrawList(WrapImDrawList this_, const WrapVec2 pos); -extern void WrapPathFillConvexImDrawList(WrapImDrawList this_, unsigned int col); -extern void WrapPathStrokeImDrawList(WrapImDrawList this_, unsigned int col, bool closed); -extern void WrapPathStrokeImDrawListWithThickness(WrapImDrawList this_, unsigned int col, bool closed, float thickness); -extern void WrapPathArcToImDrawList(WrapImDrawList this_, const WrapVec2 centre, float radius, float a_min, float a_max); -extern void WrapPathArcToImDrawListWithNumSegments(WrapImDrawList this_, const WrapVec2 centre, float radius, float a_min, float a_max, int num_segments); -extern void WrapPathArcToFastImDrawList(WrapImDrawList this_, const WrapVec2 centre, float radius, int a_min_of_12, int a_max_of_12); -extern void WrapPathBezierCubicCurveToImDrawList(WrapImDrawList this_, const WrapVec2 p1, const WrapVec2 p2, const WrapVec2 p3); -extern void WrapPathBezierCubicCurveToImDrawListWithNumSegments( - WrapImDrawList this_, const WrapVec2 p1, const WrapVec2 p2, const WrapVec2 p3, int num_segments); -extern void WrapPathRectImDrawList(WrapImDrawList this_, const WrapVec2 rect_min, const WrapVec2 rect_max); -extern void WrapPathRectImDrawListWithRounding(WrapImDrawList this_, const WrapVec2 rect_min, const WrapVec2 rect_max, float rounding); -extern void WrapPathRectImDrawListWithRoundingFlags(WrapImDrawList this_, const WrapVec2 rect_min, const WrapVec2 rect_max, float rounding, int flags); -extern void WrapChannelsSplitImDrawList(WrapImDrawList this_, int channels_count); -extern void WrapChannelsMergeImDrawList(WrapImDrawList this_); -extern void WrapChannelsSetCurrentImDrawList(WrapImDrawList this_, int channel_index); -extern const char *WrapFileFilterGetName(WrapFileFilter h); -extern void WrapFileFilterSetName(WrapFileFilter h, const char *v); -extern const char *WrapFileFilterGetPattern(WrapFileFilter h); -extern void WrapFileFilterSetPattern(WrapFileFilter h, const char *v); -extern WrapFileFilter WrapConstructorFileFilter(); -extern void WrapFileFilterFree(WrapFileFilter); -extern WrapFileFilter WrapFileFilterListGetOperator(WrapFileFilterList h, int id); -extern void WrapFileFilterListSetOperator(WrapFileFilterList h, int id, WrapFileFilter v); -extern int WrapFileFilterListLenOperator(WrapFileFilterList h); -extern WrapFileFilterList WrapConstructorFileFilterList(); -extern WrapFileFilterList WrapConstructorFileFilterListWithSequence(size_t sequenceToCSize, WrapFileFilter *sequenceToCBuf); -extern void WrapFileFilterListFree(WrapFileFilterList); -extern void WrapClearFileFilterList(WrapFileFilterList this_); -extern void WrapReserveFileFilterList(WrapFileFilterList this_, size_t size); -extern void WrapPushBackFileFilterList(WrapFileFilterList this_, WrapFileFilter v); -extern size_t WrapSizeFileFilterList(WrapFileFilterList this_); -extern WrapFileFilter WrapAtFileFilterList(WrapFileFilterList this_, size_t idx); -extern float WrapStereoSourceStateGetVolume(WrapStereoSourceState h); -extern void WrapStereoSourceStateSetVolume(WrapStereoSourceState h, float v); -extern int WrapStereoSourceStateGetRepeat(WrapStereoSourceState h); -extern void WrapStereoSourceStateSetRepeat(WrapStereoSourceState h, int v); -extern float WrapStereoSourceStateGetPanning(WrapStereoSourceState h); -extern void WrapStereoSourceStateSetPanning(WrapStereoSourceState h, float v); -extern WrapStereoSourceState WrapConstructorStereoSourceState(); -extern WrapStereoSourceState WrapConstructorStereoSourceStateWithVolume(float volume); -extern WrapStereoSourceState WrapConstructorStereoSourceStateWithVolumeRepeat(float volume, int repeat); -extern WrapStereoSourceState WrapConstructorStereoSourceStateWithVolumeRepeatPanning(float volume, int repeat, float panning); -extern void WrapStereoSourceStateFree(WrapStereoSourceState); -extern WrapMat4 WrapSpatializedSourceStateGetMtx(WrapSpatializedSourceState h); -extern void WrapSpatializedSourceStateSetMtx(WrapSpatializedSourceState h, WrapMat4 v); -extern float WrapSpatializedSourceStateGetVolume(WrapSpatializedSourceState h); -extern void WrapSpatializedSourceStateSetVolume(WrapSpatializedSourceState h, float v); -extern int WrapSpatializedSourceStateGetRepeat(WrapSpatializedSourceState h); -extern void WrapSpatializedSourceStateSetRepeat(WrapSpatializedSourceState h, int v); -extern WrapVec3 WrapSpatializedSourceStateGetVel(WrapSpatializedSourceState h); -extern void WrapSpatializedSourceStateSetVel(WrapSpatializedSourceState h, WrapVec3 v); -extern WrapSpatializedSourceState WrapConstructorSpatializedSourceState(); -extern WrapSpatializedSourceState WrapConstructorSpatializedSourceStateWithMtx(WrapMat4 mtx); -extern WrapSpatializedSourceState WrapConstructorSpatializedSourceStateWithMtxVolume(WrapMat4 mtx, float volume); -extern WrapSpatializedSourceState WrapConstructorSpatializedSourceStateWithMtxVolumeRepeat(WrapMat4 mtx, float volume, int repeat); -extern WrapSpatializedSourceState WrapConstructorSpatializedSourceStateWithMtxVolumeRepeatVel(WrapMat4 mtx, float volume, int repeat, const WrapVec3 vel); -extern void WrapSpatializedSourceStateFree(WrapSpatializedSourceState); -extern WrapMat4 WrapOpenVREyeGetOffset(WrapOpenVREye h); -extern void WrapOpenVREyeSetOffset(WrapOpenVREye h, WrapMat4 v); -extern WrapMat44 WrapOpenVREyeGetProjection(WrapOpenVREye h); -extern void WrapOpenVREyeSetProjection(WrapOpenVREye h, WrapMat44 v); -extern void WrapOpenVREyeFree(WrapOpenVREye); -extern void WrapOpenVREyeFrameBufferFree(WrapOpenVREyeFrameBuffer); -extern WrapFrameBufferHandle WrapGetHandleOpenVREyeFrameBuffer(WrapOpenVREyeFrameBuffer this_); -extern WrapMat4 WrapOpenVRStateGetBody(WrapOpenVRState h); -extern void WrapOpenVRStateSetBody(WrapOpenVRState h, WrapMat4 v); -extern WrapMat4 WrapOpenVRStateGetHead(WrapOpenVRState h); -extern void WrapOpenVRStateSetHead(WrapOpenVRState h, WrapMat4 v); -extern WrapMat4 WrapOpenVRStateGetInvHead(WrapOpenVRState h); -extern void WrapOpenVRStateSetInvHead(WrapOpenVRState h, WrapMat4 v); -extern WrapOpenVREye WrapOpenVRStateGetLeft(WrapOpenVRState h); -extern void WrapOpenVRStateSetLeft(WrapOpenVRState h, WrapOpenVREye v); -extern WrapOpenVREye WrapOpenVRStateGetRight(WrapOpenVRState h); -extern void WrapOpenVRStateSetRight(WrapOpenVRState h, WrapOpenVREye v); -extern uint32_t WrapOpenVRStateGetWidth(WrapOpenVRState h); -extern void WrapOpenVRStateSetWidth(WrapOpenVRState h, uint32_t v); -extern uint32_t WrapOpenVRStateGetHeight(WrapOpenVRState h); -extern void WrapOpenVRStateSetHeight(WrapOpenVRState h, uint32_t v); -extern void WrapOpenVRStateFree(WrapOpenVRState); -extern bool WrapSRanipalEyeStateGetPupilDiameterValid(WrapSRanipalEyeState h); -extern void WrapSRanipalEyeStateSetPupilDiameterValid(WrapSRanipalEyeState h, bool v); -extern WrapVec3 WrapSRanipalEyeStateGetGazeOriginMm(WrapSRanipalEyeState h); -extern void WrapSRanipalEyeStateSetGazeOriginMm(WrapSRanipalEyeState h, WrapVec3 v); -extern WrapVec3 WrapSRanipalEyeStateGetGazeDirectionNormalized(WrapSRanipalEyeState h); -extern void WrapSRanipalEyeStateSetGazeDirectionNormalized(WrapSRanipalEyeState h, WrapVec3 v); -extern float WrapSRanipalEyeStateGetPupilDiameterMm(WrapSRanipalEyeState h); -extern void WrapSRanipalEyeStateSetPupilDiameterMm(WrapSRanipalEyeState h, float v); -extern float WrapSRanipalEyeStateGetEyeOpenness(WrapSRanipalEyeState h); -extern void WrapSRanipalEyeStateSetEyeOpenness(WrapSRanipalEyeState h, float v); -extern void WrapSRanipalEyeStateFree(WrapSRanipalEyeState); -extern WrapSRanipalEyeState WrapSRanipalStateGetRightEye(WrapSRanipalState h); -extern void WrapSRanipalStateSetRightEye(WrapSRanipalState h, WrapSRanipalEyeState v); -extern WrapSRanipalEyeState WrapSRanipalStateGetLeftEye(WrapSRanipalState h); -extern void WrapSRanipalStateSetLeftEye(WrapSRanipalState h, WrapSRanipalEyeState v); -extern void WrapSRanipalStateFree(WrapSRanipalState); -extern WrapVec3 WrapVertexGetPos(WrapVertex h); -extern void WrapVertexSetPos(WrapVertex h, WrapVec3 v); -extern WrapVec3 WrapVertexGetNormal(WrapVertex h); -extern void WrapVertexSetNormal(WrapVertex h, WrapVec3 v); -extern WrapVec3 WrapVertexGetTangent(WrapVertex h); -extern void WrapVertexSetTangent(WrapVertex h, WrapVec3 v); -extern WrapVec3 WrapVertexGetBinormal(WrapVertex h); -extern void WrapVertexSetBinormal(WrapVertex h, WrapVec3 v); -extern WrapVec2 WrapVertexGetUv0(WrapVertex h); -extern void WrapVertexSetUv0(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv1(WrapVertex h); -extern void WrapVertexSetUv1(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv2(WrapVertex h); -extern void WrapVertexSetUv2(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv3(WrapVertex h); -extern void WrapVertexSetUv3(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv4(WrapVertex h); -extern void WrapVertexSetUv4(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv5(WrapVertex h); -extern void WrapVertexSetUv5(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv6(WrapVertex h); -extern void WrapVertexSetUv6(WrapVertex h, WrapVec2 v); -extern WrapVec2 WrapVertexGetUv7(WrapVertex h); -extern void WrapVertexSetUv7(WrapVertex h, WrapVec2 v); -extern WrapColor WrapVertexGetColor0(WrapVertex h); -extern void WrapVertexSetColor0(WrapVertex h, WrapColor v); -extern WrapColor WrapVertexGetColor1(WrapVertex h); -extern void WrapVertexSetColor1(WrapVertex h, WrapColor v); -extern WrapColor WrapVertexGetColor2(WrapVertex h); -extern void WrapVertexSetColor2(WrapVertex h, WrapColor v); -extern WrapColor WrapVertexGetColor3(WrapVertex h); -extern void WrapVertexSetColor3(WrapVertex h, WrapColor v); -extern WrapVertex WrapConstructorVertex(); -extern void WrapVertexFree(WrapVertex); -extern WrapModelBuilder WrapConstructorModelBuilder(); -extern void WrapModelBuilderFree(WrapModelBuilder); -extern uint32_t WrapAddVertexModelBuilder(WrapModelBuilder this_, const WrapVertex vtx); -extern void WrapAddTriangleModelBuilder(WrapModelBuilder this_, uint32_t a, uint32_t b, uint32_t c); -extern void WrapAddQuadModelBuilder(WrapModelBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t d); -extern void WrapAddPolygonModelBuilder(WrapModelBuilder this_, const WrapUint32TList idxs); -extern size_t WrapGetCurrentListIndexCountModelBuilder(WrapModelBuilder this_); -extern void WrapEndListModelBuilder(WrapModelBuilder this_, uint16_t material); -extern void WrapClearModelBuilder(WrapModelBuilder this_); -extern WrapModel WrapMakeModelModelBuilder(WrapModelBuilder this_, const WrapVertexLayout decl); -extern void WrapGeometryFree(WrapGeometry); -extern WrapGeometryBuilder WrapConstructorGeometryBuilder(); -extern void WrapGeometryBuilderFree(WrapGeometryBuilder); -extern void WrapAddVertexGeometryBuilder(WrapGeometryBuilder this_, WrapVertex vtx); -extern void WrapAddPolygonGeometryBuilder(WrapGeometryBuilder this_, const WrapUint32TList idxs, uint16_t material); -extern void WrapAddPolygonGeometryBuilderWithSliceOfIdxs(WrapGeometryBuilder this_, size_t SliceOfidxsToCSize, uint32_t *SliceOfidxsToCBuf, uint16_t material); -extern void WrapAddTriangleGeometryBuilder(WrapGeometryBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t material); -extern void WrapAddQuadGeometryBuilder(WrapGeometryBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t material); -extern WrapGeometry WrapMakeGeometryBuilder(WrapGeometryBuilder this_); -extern void WrapClearGeometryBuilder(WrapGeometryBuilder this_); -extern void WrapIsoSurfaceFree(WrapIsoSurface); -extern void WrapBloomFree(WrapBloom); -extern void WrapSAOFree(WrapSAO); -extern void WrapProfilerFrameFree(WrapProfilerFrame); -extern void WrapIVideoStreamerFree(WrapIVideoStreamer); -extern int WrapStartupIVideoStreamer(WrapIVideoStreamer this_); -extern void WrapShutdownIVideoStreamer(WrapIVideoStreamer this_); -extern intptr_t WrapOpenIVideoStreamer(WrapIVideoStreamer this_, const char *name); -extern int WrapPlayIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int WrapPauseIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int WrapCloseIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int WrapSeekIVideoStreamer(WrapIVideoStreamer this_, intptr_t h, int64_t t); -extern int64_t WrapGetDurationIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int64_t WrapGetTimeStampIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int WrapIsEndedIVideoStreamer(WrapIVideoStreamer this_, intptr_t h); -extern int WrapGetFrameIVideoStreamer(WrapIVideoStreamer this_, intptr_t h, intptr_t *ptr, int *width, int *height, int *pitch, int *format); -extern int WrapFreeFrameIVideoStreamer(WrapIVideoStreamer this_, intptr_t h, int frame); -extern WrapVoidPointer WrapIntToVoidPointer(intptr_t ptr); -extern void WrapSetLogLevel(int log_level); -extern void WrapSetLogDetailed(bool is_detailed); -extern void WrapLog(const char *msg); -extern void WrapLogWithDetails(const char *msg, const char *details); -extern void WrapWarn(const char *msg); -extern void WrapWarnWithDetails(const char *msg, const char *details); -extern void WrapError(const char *msg); -extern void WrapErrorWithDetails(const char *msg, const char *details); -extern void WrapDebug(const char *msg); -extern void WrapDebugWithDetails(const char *msg, const char *details); -extern float WrapTimeToSecF(int64_t t); -extern float WrapTimeToMsF(int64_t t); -extern float WrapTimeToUsF(int64_t t); -extern int64_t WrapTimeToDay(int64_t t); -extern int64_t WrapTimeToHour(int64_t t); -extern int64_t WrapTimeToMin(int64_t t); -extern int64_t WrapTimeToSec(int64_t t); -extern int64_t WrapTimeToMs(int64_t t); -extern int64_t WrapTimeToUs(int64_t t); -extern int64_t WrapTimeToNs(int64_t t); -extern int64_t WrapTimeFromSecF(float sec); -extern int64_t WrapTimeFromMsF(float ms); -extern int64_t WrapTimeFromUsF(float us); -extern int64_t WrapTimeFromDay(int64_t day); -extern int64_t WrapTimeFromHour(int64_t hour); -extern int64_t WrapTimeFromMin(int64_t min); -extern int64_t WrapTimeFromSec(int64_t sec); -extern int64_t WrapTimeFromMs(int64_t ms); -extern int64_t WrapTimeFromUs(int64_t us); -extern int64_t WrapTimeFromNs(int64_t ns); -extern int64_t WrapTimeNow(); -extern const char *WrapTimeToString(int64_t t); -extern void WrapResetClock(); -extern int64_t WrapTickClock(); -extern int64_t WrapGetClock(); -extern int64_t WrapGetClockDt(); -extern void WrapSkipClock(); -extern WrapFile WrapOpen(const char *path); -extern WrapFile WrapOpenText(const char *path); -extern WrapFile WrapOpenWrite(const char *path); -extern WrapFile WrapOpenWriteText(const char *path); -extern WrapFile WrapOpenTemp(const char *template_path); -extern bool WrapClose(WrapFile file); -extern bool WrapIsValid(WrapFile file); -extern bool WrapIsValidWithT(const WrapTexture t); -extern bool WrapIsValidWithFb(const WrapFrameBuffer fb); -extern bool WrapIsValidWithPipeline(const WrapForwardPipelineAAA pipeline); -extern bool WrapIsValidWithStreamer(WrapIVideoStreamer streamer); -extern bool WrapIsEOF(WrapFile file); -extern size_t WrapGetSize(WrapFile file); -extern WrapVec2 WrapGetSizeWithRect(const WrapRect rect); -extern WrapIVec2 WrapGetSizeWithIntRectRect(const WrapIntRect rect); -extern bool WrapSeek(WrapFile file, int64_t offset, int mode); -extern size_t WrapTell(WrapFile file); -extern void WrapRewind(WrapFile file); -extern bool WrapIsFile(const char *path); -extern bool WrapUnlink(const char *path); -extern uint8_t WrapReadUInt8(WrapFile file); -extern uint16_t WrapReadUInt16(WrapFile file); -extern uint32_t WrapReadUInt32(WrapFile file); -extern float WrapReadFloat(WrapFile file); -extern bool WrapWriteUInt8(WrapFile file, uint8_t value); -extern bool WrapWriteUInt16(WrapFile file, uint16_t value); -extern bool WrapWriteUInt32(WrapFile file, uint32_t value); -extern bool WrapWriteFloat(WrapFile file, float value); -extern const char *WrapReadString(WrapFile file); -extern bool WrapWriteString(WrapFile file, const char *value); -extern bool WrapCopyFile(const char *src, const char *dst); -extern const char *WrapFileToString(const char *path); -extern bool WrapStringToFile(const char *path, const char *value); -extern bool WrapLoadDataFromFile(const char *path, WrapData data); -extern bool WrapSaveDataToFile(const char *path, const WrapData data); -extern WrapDirEntryList WrapListDir(const char *path, int type); -extern WrapDirEntryList WrapListDirRecursive(const char *path, int type); -extern bool WrapMkDir(const char *path); -extern bool WrapMkDirWithPermissions(const char *path, int permissions); -extern bool WrapRmDir(const char *path); -extern bool WrapMkTree(const char *path); -extern bool WrapMkTreeWithPermissions(const char *path, int permissions); -extern bool WrapRmTree(const char *path); -extern bool WrapExists(const char *path); -extern bool WrapIsDir(const char *path); -extern bool WrapCopyDir(const char *src, const char *dst); -extern bool WrapCopyDirRecursive(const char *src, const char *dst); -extern bool WrapIsPathAbsolute(const char *path); -extern const char *WrapPathToDisplay(const char *path); -extern const char *WrapNormalizePath(const char *path); -extern const char *WrapFactorizePath(const char *path); -extern const char *WrapCleanPath(const char *path); -extern const char *WrapCutFilePath(const char *path); -extern const char *WrapCutFileName(const char *path); -extern const char *WrapCutFileExtension(const char *path); -extern const char *WrapGetFilePath(const char *path); -extern const char *WrapGetFileName(const char *path); -extern const char *WrapGetFileExtension(const char *path); -extern bool WrapHasFileExtension(const char *path); -extern bool WrapPathStartsWith(const char *path, const char *with); -extern const char *WrapPathStripPrefix(const char *path, const char *prefix); -extern const char *WrapPathStripSuffix(const char *path, const char *suffix); -extern const char *WrapPathJoin(const WrapStringList elements); -extern const char *WrapSwapFileExtension(const char *path, const char *ext); -extern const char *WrapGetCurrentWorkingDirectory(); -extern const char *WrapGetUserFolder(); -extern bool WrapAddAssetsFolder(const char *path); -extern void WrapRemoveAssetsFolder(const char *path); -extern bool WrapAddAssetsPackage(const char *path); -extern void WrapRemoveAssetsPackage(const char *path); -extern bool WrapIsAssetFile(const char *name); -extern float WrapLinearInterpolate(float y0, float y1, float t); -extern float WrapCosineInterpolate(float y0, float y1, float t); -extern float WrapCubicInterpolate(float y0, float y1, float y2, float y3, float t); -extern WrapVec3 WrapCubicInterpolateWithV0V1V2V3(const WrapVec3 v0, const WrapVec3 v1, const WrapVec3 v2, const WrapVec3 v3, float t); -extern float WrapHermiteInterpolate(float y0, float y1, float y2, float y3, float t, float tension, float bias); -extern uint8_t WrapReverseRotationOrder(uint8_t rotation_order); -extern float WrapGetArea(const WrapMinMax minmax); -extern WrapVec3 WrapGetCenter(const WrapMinMax minmax); -extern void WrapComputeMinMaxBoundingSphere(const WrapMinMax minmax, WrapVec3 origin, float *radius); -extern bool WrapOverlap(const WrapMinMax minmax_a, const WrapMinMax minmax_b); -extern bool WrapOverlapWithAxis(const WrapMinMax minmax_a, const WrapMinMax minmax_b, uint8_t axis); -extern bool WrapContains(const WrapMinMax minmax, const WrapVec3 position); -extern WrapMinMax WrapUnion(const WrapMinMax minmax_a, const WrapMinMax minmax_b); -extern WrapMinMax WrapUnionWithMinmaxPosition(const WrapMinMax minmax, const WrapVec3 position); -extern bool WrapIntersectRay(const WrapMinMax minmax, const WrapVec3 origin, const WrapVec3 direction, float *t_min, float *t_max); -extern bool WrapClassifyLine(const WrapMinMax minmax, const WrapVec3 position, const WrapVec3 direction, WrapVec3 intersection, WrapVec3 normal); -extern bool WrapClassifySegment(const WrapMinMax minmax, const WrapVec3 p0, const WrapVec3 p1, WrapVec3 intersection, WrapVec3 normal); -extern WrapMinMax WrapMinMaxFromPositionSize(const WrapVec3 position, const WrapVec3 size); -extern WrapVec2 WrapMin(const WrapVec2 a, const WrapVec2 b); -extern WrapIVec2 WrapMinWithAB(const WrapIVec2 a, const WrapIVec2 b); -extern WrapVec3 WrapMinWithVec3AVec3B(const WrapVec3 a, const WrapVec3 b); -extern float WrapMinWithFloatAFloatB(float a, float b); -extern int WrapMinWithIntAIntB(int a, int b); -extern WrapVec2 WrapMax(const WrapVec2 a, const WrapVec2 b); -extern WrapIVec2 WrapMaxWithAB(const WrapIVec2 a, const WrapIVec2 b); -extern WrapVec3 WrapMaxWithVec3AVec3B(const WrapVec3 a, const WrapVec3 b); -extern float WrapMaxWithFloatAFloatB(float a, float b); -extern int WrapMaxWithIntAIntB(int a, int b); -extern float WrapLen2(const WrapVec2 v); -extern int WrapLen2WithV(const WrapIVec2 v); -extern float WrapLen2WithQ(const WrapQuaternion q); -extern float WrapLen2WithVec3V(const WrapVec3 v); -extern float WrapLen(const WrapVec2 v); -extern int WrapLenWithV(const WrapIVec2 v); -extern float WrapLenWithQ(const WrapQuaternion q); -extern float WrapLenWithVec3V(const WrapVec3 v); -extern float WrapDot(const WrapVec2 a, const WrapVec2 b); -extern int WrapDotWithAB(const WrapIVec2 a, const WrapIVec2 b); -extern float WrapDotWithVec3AVec3B(const WrapVec3 a, const WrapVec3 b); -extern WrapVec2 WrapNormalize(const WrapVec2 v); -extern WrapIVec2 WrapNormalizeWithV(const WrapIVec2 v); -extern WrapVec4 WrapNormalizeWithVec4V(const WrapVec4 v); -extern WrapQuaternion WrapNormalizeWithQ(const WrapQuaternion q); -extern WrapMat3 WrapNormalizeWithM(const WrapMat3 m); -extern WrapVec3 WrapNormalizeWithVec3V(const WrapVec3 v); -extern WrapVec2 WrapReverse(const WrapVec2 a); -extern WrapIVec2 WrapReverseWithA(const WrapIVec2 a); -extern WrapVec3 WrapReverseWithV(const WrapVec3 v); -extern float WrapDist2(const WrapVec2 a, const WrapVec2 b); -extern int WrapDist2WithAB(const WrapIVec2 a, const WrapIVec2 b); -extern float WrapDist2WithVec3AVec3B(const WrapVec3 a, const WrapVec3 b); -extern float WrapDist(const WrapVec2 a, const WrapVec2 b); -extern int WrapDistWithAB(const WrapIVec2 a, const WrapIVec2 b); -extern float WrapDistWithQuaternionAQuaternionB(const WrapQuaternion a, const WrapQuaternion b); -extern float WrapDistWithVec3AVec3B(const WrapVec3 a, const WrapVec3 b); -extern WrapVec4 WrapAbs(const WrapVec4 v); -extern WrapVec3 WrapAbsWithV(const WrapVec3 v); -extern float WrapAbsWithFloatV(float v); -extern int WrapAbsWithIntV(int v); -extern WrapVec4 WrapRandomVec4(float min, float max); -extern WrapVec4 WrapRandomVec4WithMinMax(const WrapVec4 min, const WrapVec4 max); -extern WrapQuaternion WrapInverse(const WrapQuaternion q); -extern bool WrapInverseWithMI(const WrapMat3 m, WrapMat3 I); -extern bool WrapInverseWithMat4MMat4I(const WrapMat4 m, WrapMat4 I); -extern WrapMat44 WrapInverseWithMResult(const WrapMat44 m, bool *result); -extern WrapVec3 WrapInverseWithV(const WrapVec3 v); -extern WrapQuaternion WrapSlerp(const WrapQuaternion a, const WrapQuaternion b, float t); -extern WrapQuaternion WrapQuaternionFromEulerWithXYZ(float x, float y, float z); -extern WrapQuaternion WrapQuaternionFromEulerWithXYZRotationOrder(float x, float y, float z, uint8_t rotation_order); -extern WrapQuaternion WrapQuaternionFromEuler(WrapVec3 euler); -extern WrapQuaternion WrapQuaternionFromEulerWithRotationOrder(WrapVec3 euler, uint8_t rotation_order); -extern WrapQuaternion WrapQuaternionLookAt(const WrapVec3 at); -extern WrapQuaternion WrapQuaternionFromMatrix3(const WrapMat3 m); -extern WrapQuaternion WrapQuaternionFromAxisAngle(float angle, const WrapVec3 axis); -extern WrapMat3 WrapToMatrix3(const WrapQuaternion q); -extern WrapVec3 WrapToEuler(const WrapQuaternion q); -extern WrapVec3 WrapToEulerWithRotationOrder(const WrapQuaternion q, uint8_t rotation_order); -extern WrapVec3 WrapToEulerWithM(const WrapMat3 m); -extern WrapVec3 WrapToEulerWithMRotationOrder(const WrapMat3 m, uint8_t rotation_order); -extern float WrapDet(const WrapMat3 m); -extern WrapMat3 WrapTranspose(const WrapMat3 m); -extern WrapVec3 WrapGetRow(const WrapMat3 m, uint32_t n); -extern WrapVec4 WrapGetRowWithMN(const WrapMat4 m, unsigned int n); -extern WrapVec4 WrapGetRowWithMIdx(const WrapMat44 m, uint32_t idx); -extern WrapVec3 WrapGetColumn(const WrapMat3 m, uint32_t n); -extern WrapVec3 WrapGetColumnWithMN(const WrapMat4 m, unsigned int n); -extern WrapVec4 WrapGetColumnWithMIdx(const WrapMat44 m, uint32_t idx); -extern void WrapSetRow(WrapMat3 m, uint32_t n, const WrapVec3 row); -extern void WrapSetRowWithMNV(const WrapMat4 m, unsigned int n, const WrapVec4 v); -extern void WrapSetRowWithMIdxV(const WrapMat44 m, uint32_t idx, const WrapVec4 v); -extern void WrapSetColumn(WrapMat3 m, uint32_t n, const WrapVec3 column); -extern void WrapSetColumnWithMNV(const WrapMat4 m, unsigned int n, const WrapVec3 v); -extern void WrapSetColumnWithMIdxV(const WrapMat44 m, uint32_t idx, const WrapVec4 v); -extern WrapVec3 WrapGetX(const WrapMat3 m); -extern WrapVec3 WrapGetXWithM(const WrapMat4 m); -extern float WrapGetXWithRect(const WrapRect rect); -extern int WrapGetXWithIntRectRect(const WrapIntRect rect); -extern WrapVec3 WrapGetY(const WrapMat3 m); -extern WrapVec3 WrapGetYWithM(const WrapMat4 m); -extern float WrapGetYWithRect(const WrapRect rect); -extern int WrapGetYWithIntRectRect(const WrapIntRect rect); -extern WrapVec3 WrapGetZ(const WrapMat3 m); -extern WrapVec3 WrapGetZWithM(const WrapMat4 m); -extern WrapVec3 WrapGetTranslation(const WrapMat3 m); -extern WrapVec3 WrapGetTranslationWithM(const WrapMat4 m); -extern WrapVec3 WrapGetScale(const WrapMat3 m); -extern WrapVec3 WrapGetScaleWithM(const WrapMat4 m); -extern void WrapSetX(WrapMat3 m, const WrapVec3 X); -extern void WrapSetXWithM(const WrapMat4 m, const WrapVec3 X); -extern void WrapSetXWithRectX(WrapRect rect, float x); -extern void WrapSetXWithIntRectRectIntX(WrapIntRect rect, int x); -extern void WrapSetY(WrapMat3 m, const WrapVec3 Y); -extern void WrapSetYWithM(const WrapMat4 m, const WrapVec3 Y); -extern void WrapSetYWithRectY(WrapRect rect, float y); -extern void WrapSetYWithIntRectRectIntY(WrapIntRect rect, int y); -extern void WrapSetZ(WrapMat3 m, const WrapVec3 Z); -extern void WrapSetZWithM(const WrapMat4 m, const WrapVec3 Z); -extern void WrapSetTranslation(WrapMat3 m, const WrapVec3 T); -extern void WrapSetTranslationWithT(WrapMat3 m, const WrapVec2 T); -extern void WrapSetTranslationWithM(const WrapMat4 m, const WrapVec3 T); -extern void WrapSetScale(WrapMat3 m, const WrapVec3 S); -extern void WrapSetScaleWithMScale(const WrapMat4 m, const WrapVec3 scale); -extern void WrapSetAxises(WrapMat3 m, const WrapVec3 X, const WrapVec3 Y, const WrapVec3 Z); -extern WrapMat3 WrapOrthonormalize(const WrapMat3 m); -extern WrapMat4 WrapOrthonormalizeWithM(const WrapMat4 m); -extern WrapMat3 WrapVectorMat3(const WrapVec3 V); -extern WrapMat3 WrapTranslationMat3(const WrapVec2 T); -extern WrapMat3 WrapTranslationMat3WithT(const WrapVec3 T); -extern WrapMat3 WrapScaleMat3(const WrapVec2 S); -extern WrapMat3 WrapScaleMat3WithS(const WrapVec3 S); -extern WrapMat3 WrapCrossProductMat3(const WrapVec3 V); -extern WrapMat3 WrapRotationMatX(float angle); -extern WrapMat3 WrapRotationMatY(float angle); -extern WrapMat3 WrapRotationMatZ(float angle); -extern WrapMat3 WrapRotationMat2D(float angle, const WrapVec2 pivot); -extern WrapMat3 WrapRotationMat3WithXYZ(float x, float y, float z); -extern WrapMat3 WrapRotationMat3WithXYZRotationOrder(float x, float y, float z, uint8_t rotation_order); -extern WrapMat3 WrapRotationMat3(const WrapVec3 euler); -extern WrapMat3 WrapRotationMat3WithRotationOrder(const WrapVec3 euler, uint8_t rotation_order); -extern WrapMat3 WrapMat3LookAt(const WrapVec3 front); -extern WrapMat3 WrapMat3LookAtWithUp(const WrapVec3 front, const WrapVec3 up); -extern WrapMat3 WrapRotationMatXZY(float x, float y, float z); -extern WrapMat3 WrapRotationMatZYX(float x, float y, float z); -extern WrapMat3 WrapRotationMatXYZ(float x, float y, float z); -extern WrapMat3 WrapRotationMatZXY(float x, float y, float z); -extern WrapMat3 WrapRotationMatYZX(float x, float y, float z); -extern WrapMat3 WrapRotationMatYXZ(float x, float y, float z); -extern WrapMat3 WrapRotationMatXY(float x, float y); -extern WrapVec3 WrapGetT(const WrapMat4 m); -extern WrapVec3 WrapGetR(const WrapMat4 m); -extern WrapVec3 WrapGetRWithRotationOrder(const WrapMat4 m, uint8_t rotation_order); -extern WrapVec3 WrapGetRotation(const WrapMat4 m); -extern WrapVec3 WrapGetRotationWithRotationOrder(const WrapMat4 m, uint8_t rotation_order); -extern WrapMat3 WrapGetRMatrix(const WrapMat4 m); -extern WrapMat3 WrapGetRotationMatrix(const WrapMat4 m); -extern WrapVec3 WrapGetS(const WrapMat4 m); -extern void WrapSetT(const WrapMat4 m, const WrapVec3 T); -extern void WrapSetS(const WrapMat4 m, const WrapVec3 scale); -extern WrapMat4 WrapInverseFast(const WrapMat4 m); -extern WrapMat4 WrapLerpAsOrthonormalBase(const WrapMat4 from, const WrapMat4 to, float k); -extern WrapMat4 WrapLerpAsOrthonormalBaseWithFast(const WrapMat4 from, const WrapMat4 to, float k, bool fast); -extern void WrapDecompose(const WrapMat4 m, WrapVec3 position, WrapVec3 rotation, WrapVec3 scale); -extern void WrapDecomposeWithRotationOrder(const WrapMat4 m, WrapVec3 position, WrapVec3 rotation, WrapVec3 scale, uint8_t rotation_order); -extern WrapMat4 WrapMat4LookAt(const WrapVec3 position, const WrapVec3 at); -extern WrapMat4 WrapMat4LookAtWithScale(const WrapVec3 position, const WrapVec3 at, const WrapVec3 scale); -extern WrapMat4 WrapMat4LookAtUp(const WrapVec3 position, const WrapVec3 at, const WrapVec3 up); -extern WrapMat4 WrapMat4LookAtUpWithScale(const WrapVec3 position, const WrapVec3 at, const WrapVec3 up, const WrapVec3 scale); -extern WrapMat4 WrapMat4LookToward(const WrapVec3 position, const WrapVec3 direction); -extern WrapMat4 WrapMat4LookTowardWithScale(const WrapVec3 position, const WrapVec3 direction, const WrapVec3 scale); -extern WrapMat4 WrapMat4LookTowardUp(const WrapVec3 position, const WrapVec3 direction, const WrapVec3 up); -extern WrapMat4 WrapMat4LookTowardUpWithScale(const WrapVec3 position, const WrapVec3 direction, const WrapVec3 up, const WrapVec3 scale); -extern WrapMat4 WrapTranslationMat4(const WrapVec3 t); -extern WrapMat4 WrapRotationMat4(const WrapVec3 euler); -extern WrapMat4 WrapRotationMat4WithOrder(const WrapVec3 euler, uint8_t order); -extern WrapMat4 WrapScaleMat4(const WrapVec3 scale); -extern WrapMat4 WrapScaleMat4WithScale(float scale); -extern WrapMat4 WrapTransformationMat4(const WrapVec3 pos, const WrapVec3 rot); -extern WrapMat4 WrapTransformationMat4WithScale(const WrapVec3 pos, const WrapVec3 rot, const WrapVec3 scale); -extern WrapMat4 WrapTransformationMat4WithRot(const WrapVec3 pos, const WrapMat3 rot); -extern WrapMat4 WrapTransformationMat4WithRotScale(const WrapVec3 pos, const WrapMat3 rot, const WrapVec3 scale); -extern WrapVec3 WrapMakeVec3(const WrapVec4 v); -extern WrapVec3 WrapRandomVec3(float min, float max); -extern WrapVec3 WrapRandomVec3WithMinMax(const WrapVec3 min, const WrapVec3 max); -extern WrapVec3 WrapBaseToEuler(const WrapVec3 z); -extern WrapVec3 WrapBaseToEulerWithY(const WrapVec3 z, const WrapVec3 y); -extern WrapVec3 WrapCross(const WrapVec3 a, const WrapVec3 b); -extern WrapVec3 WrapClamp(const WrapVec3 v, float min, float max); -extern WrapVec3 WrapClampWithMinMax(const WrapVec3 v, const WrapVec3 min, const WrapVec3 max); -extern float WrapClampWithV(float v, float min, float max); -extern int WrapClampWithVMinMax(int v, int min, int max); -extern WrapColor WrapClampWithColor(const WrapColor color, float min, float max); -extern WrapColor WrapClampWithColorMinMax(const WrapColor color, const WrapColor min, const WrapColor max); -extern WrapVec3 WrapClampLen(const WrapVec3 v, float min, float max); -extern WrapVec3 WrapSign(const WrapVec3 v); -extern WrapVec3 WrapReflect(const WrapVec3 v, const WrapVec3 n); -extern WrapVec3 WrapRefract(const WrapVec3 v, const WrapVec3 n); -extern WrapVec3 WrapRefractWithKIn(const WrapVec3 v, const WrapVec3 n, float k_in); -extern WrapVec3 WrapRefractWithKInKOut(const WrapVec3 v, const WrapVec3 n, float k_in, float k_out); -extern WrapVec3 WrapFloor(const WrapVec3 v); -extern WrapVec3 WrapCeil(const WrapVec3 v); -extern WrapVec3 WrapFaceForward(const WrapVec3 v, const WrapVec3 d); -extern WrapVec3 WrapDeg3(float x, float y, float z); -extern WrapVec3 WrapRad3(float x, float y, float z); -extern WrapVec3 WrapVec3I(int x, int y, int z); -extern WrapVec4 WrapVec4I(int x, int y, int z); -extern WrapVec4 WrapVec4IWithW(int x, int y, int z, int w); -extern float WrapGetWidth(const WrapRect rect); -extern int WrapGetWidthWithRect(const WrapIntRect rect); -extern float WrapGetHeight(const WrapRect rect); -extern int WrapGetHeightWithRect(const WrapIntRect rect); -extern void WrapSetWidth(WrapRect rect, float width); -extern void WrapSetWidthWithRectWidth(WrapIntRect rect, int width); -extern void WrapSetHeight(WrapRect rect, float height); -extern void WrapSetHeightWithRectHeight(WrapIntRect rect, int height); -extern bool WrapInside(const WrapRect rect, WrapIVec2 v); -extern bool WrapInsideWithV(const WrapRect rect, WrapVec2 v); -extern bool WrapInsideWithVec3V(const WrapRect rect, WrapVec3 v); -extern bool WrapInsideWithVec4V(const WrapRect rect, WrapVec4 v); -extern bool WrapInsideWithRect(const WrapIntRect rect, WrapIVec2 v); -extern bool WrapInsideWithRectV(const WrapIntRect rect, WrapVec2 v); -extern bool WrapInsideWithIntRectRectVec3V(const WrapIntRect rect, WrapVec3 v); -extern bool WrapInsideWithIntRectRectVec4V(const WrapIntRect rect, WrapVec4 v); -extern bool WrapFitsInside(const WrapRect a, const WrapRect b); -extern bool WrapFitsInsideWithAB(const WrapIntRect a, const WrapIntRect b); -extern bool WrapIntersects(const WrapRect a, const WrapRect b); -extern bool WrapIntersectsWithAB(const WrapIntRect a, const WrapIntRect b); -extern WrapRect WrapIntersection(const WrapRect a, const WrapRect b); -extern WrapIntRect WrapIntersectionWithAB(const WrapIntRect a, const WrapIntRect b); -extern WrapRect WrapGrow(const WrapRect rect, float border); -extern WrapIntRect WrapGrowWithRectBorder(const WrapIntRect rect, int border); -extern WrapRect WrapOffset(const WrapRect rect, float x, float y); -extern WrapIntRect WrapOffsetWithRectXY(const WrapIntRect rect, int x, int y); -extern WrapRect WrapCrop(const WrapRect rect, float left, float top, float right, float bottom); -extern WrapIntRect WrapCropWithRectLeftTopRightBottom(const WrapIntRect rect, int left, int top, int right, int bottom); -extern WrapRect WrapMakeRectFromWidthHeight(float x, float y, float w, float h); -extern WrapIntRect WrapMakeRectFromWidthHeightWithXYWH(int x, int y, int w, int h); -extern WrapRect WrapToFloatRect(const WrapIntRect rect); -extern WrapIntRect WrapToIntRect(const WrapRect rect); -extern WrapVec4 WrapMakePlane(const WrapVec3 p, const WrapVec3 n); -extern WrapVec4 WrapMakePlaneWithM(const WrapVec3 p, const WrapVec3 n, const WrapMat4 m); -extern float WrapDistanceToPlane(const WrapVec4 plane, const WrapVec3 p); -extern float WrapWrap(float v, float start, float end); -extern int WrapWrapWithVStartEnd(int v, int start, int end); -extern int WrapLerp(int a, int b, float t); -extern float WrapLerpWithAB(float a, float b, float t); -extern WrapVec3 WrapLerpWithVec3AVec3B(const WrapVec3 a, const WrapVec3 b, float t); -extern WrapVec4 WrapLerpWithVec4AVec4B(const WrapVec4 a, const WrapVec4 b, float t); -extern float WrapQuantize(float v, float q); -extern bool WrapIsFinite(float v); -extern float WrapDeg(float degrees); -extern float WrapRad(float radians); -extern float WrapDegreeToRadian(float degrees); -extern float WrapRadianToDegree(float radians); -extern float WrapSec(float seconds); -extern float WrapMs(float milliseconds); -extern float WrapKm(float km); -extern float WrapMtr(float m); -extern float WrapCm(float cm); -extern float WrapMm(float mm); -extern float WrapInch(float inch); -extern void WrapSeed(uint32_t seed); -extern uint32_t WrapRand(); -extern uint32_t WrapRandWithRange(uint32_t range); -extern float WrapFRand(); -extern float WrapFRandWithRange(float range); -extern float WrapFRRand(); -extern float WrapFRRandWithRangeStart(float range_start); -extern float WrapFRRandWithRangeStartRangeEnd(float range_start, float range_end); -extern float WrapZoomFactorToFov(float zoom_factor); -extern float WrapFovToZoomFactor(float fov); -extern WrapMat44 WrapComputeOrthographicProjectionMatrix(float znear, float zfar, float size, const WrapVec2 aspect_ratio); -extern WrapMat44 WrapComputeOrthographicProjectionMatrixWithOffset(float znear, float zfar, float size, const WrapVec2 aspect_ratio, const WrapVec2 offset); -extern WrapMat44 WrapComputePerspectiveProjectionMatrix(float znear, float zfar, float zoom_factor, const WrapVec2 aspect_ratio); -extern WrapMat44 WrapComputePerspectiveProjectionMatrixWithOffset( - float znear, float zfar, float zoom_factor, const WrapVec2 aspect_ratio, const WrapVec2 offset); -extern WrapVec2 WrapComputeAspectRatioX(float width, float height); -extern WrapVec2 WrapComputeAspectRatioY(float width, float height); -extern WrapMat44 WrapCompute2DProjectionMatrix(float znear, float zfar, float res_x, float res_y, bool y_up); -extern float WrapExtractZoomFactorFromProjectionMatrix(const WrapMat44 m); -extern void WrapExtractZRangeFromPerspectiveProjectionMatrix(const WrapMat44 m, float *znear, float *zfar); -extern void WrapExtractZRangeFromOrthographicProjectionMatrix(const WrapMat44 m, float *znear, float *zfar); -extern void WrapExtractZRangeFromProjectionMatrix(const WrapMat44 m, float *znear, float *zfar); -extern bool WrapProjectToClipSpace(const WrapMat44 proj, const WrapVec3 view, WrapVec3 clip); -extern bool WrapProjectOrthoToClipSpace(const WrapMat44 proj, const WrapVec3 view, WrapVec3 clip); -extern bool WrapUnprojectFromClipSpace(const WrapMat44 inv_proj, const WrapVec3 clip, WrapVec3 view); -extern bool WrapUnprojectOrthoFromClipSpace(const WrapMat44 inv_proj, const WrapVec3 clip, WrapVec3 view); -extern WrapVec3 WrapClipSpaceToScreenSpace(const WrapVec3 clip, const WrapVec2 resolution); -extern WrapVec3 WrapScreenSpaceToClipSpace(const WrapVec3 screen, const WrapVec2 resolution); -extern bool WrapProjectToScreenSpace(const WrapMat44 proj, const WrapVec3 view, const WrapVec2 resolution, WrapVec3 screen); -extern bool WrapProjectOrthoToScreenSpace(const WrapMat44 proj, const WrapVec3 view, const WrapVec2 resolution, WrapVec3 screen); -extern bool WrapUnprojectFromScreenSpace(const WrapMat44 inv_proj, const WrapVec3 screen, const WrapVec2 resolution, WrapVec3 view); -extern bool WrapUnprojectOrthoFromScreenSpace(const WrapMat44 inv_proj, const WrapVec3 screen, const WrapVec2 resolution, WrapVec3 view); -extern float WrapProjectZToClipSpace(float z, const WrapMat44 proj); -extern WrapFrustum WrapMakeFrustum(const WrapMat44 projection); -extern WrapFrustum WrapMakeFrustumWithMtx(const WrapMat44 projection, const WrapMat4 mtx); -extern WrapFrustum WrapTransformFrustum(const WrapFrustum frustum, const WrapMat4 mtx); -extern uint8_t WrapTestVisibilityWithCountPoints(const WrapFrustum frustum, uint32_t count, const WrapVec3 points); -extern uint8_t WrapTestVisibilityWithCountPointsDistance(const WrapFrustum frustum, uint32_t count, const WrapVec3 points, float distance); -extern uint8_t WrapTestVisibilityWithOriginRadius(const WrapFrustum frustum, const WrapVec3 origin, float radius); -extern uint8_t WrapTestVisibility(const WrapFrustum frustum, const WrapMinMax minmax); -extern void WrapWindowSystemInit(); -extern void WrapWindowSystemShutdown(); -extern WrapMonitorList WrapGetMonitors(); -extern WrapIntRect WrapGetMonitorRect(const WrapMonitor monitor); -extern bool WrapIsPrimaryMonitor(const WrapMonitor monitor); -extern bool WrapIsMonitorConnected(const WrapMonitor monitor); -extern const char *WrapGetMonitorName(const WrapMonitor monitor); -extern WrapIVec2 WrapGetMonitorSizeMM(const WrapMonitor monitor); -extern bool WrapGetMonitorModes(const WrapMonitor monitor, WrapMonitorModeList modes); -extern WrapWindow WrapNewWindow(int width, int height); -extern WrapWindow WrapNewWindowWithBpp(int width, int height, int bpp); -extern WrapWindow WrapNewWindowWithBppVisibility(int width, int height, int bpp, int visibility); -extern WrapWindow WrapNewWindowWithTitleWidthHeight(const char *title, int width, int height); -extern WrapWindow WrapNewWindowWithTitleWidthHeightBpp(const char *title, int width, int height, int bpp); -extern WrapWindow WrapNewWindowWithTitleWidthHeightBppVisibility(const char *title, int width, int height, int bpp, int visibility); -extern WrapWindow WrapNewFullscreenWindow(const WrapMonitor monitor, int mode_index); -extern WrapWindow WrapNewFullscreenWindowWithRotation(const WrapMonitor monitor, int mode_index, uint8_t rotation); -extern WrapWindow WrapNewFullscreenWindowWithTitleMonitorModeIndex(const char *title, const WrapMonitor monitor, int mode_index); -extern WrapWindow WrapNewFullscreenWindowWithTitleMonitorModeIndexRotation(const char *title, const WrapMonitor monitor, int mode_index, uint8_t rotation); -extern WrapWindow WrapNewWindowFrom(WrapVoidPointer handle); -extern WrapVoidPointer WrapGetWindowHandle(const WrapWindow window); -extern bool WrapUpdateWindow(const WrapWindow window); -extern bool WrapDestroyWindow(const WrapWindow window); -extern bool WrapGetWindowClientSize(const WrapWindow window, int *width, int *height); -extern bool WrapSetWindowClientSize(WrapWindow window, int width, int height); -extern WrapVec2 WrapGetWindowContentScale(const WrapWindow window); -extern bool WrapGetWindowTitle(const WrapWindow window, const char **title); -extern bool WrapSetWindowTitle(WrapWindow window, const char *title); -extern bool WrapWindowHasFocus(const WrapWindow window); -extern WrapWindow WrapGetWindowInFocus(); -extern WrapIVec2 WrapGetWindowPos(const WrapWindow window); -extern bool WrapSetWindowPos(WrapWindow window, const WrapIVec2 position); -extern bool WrapIsWindowOpen(const WrapWindow window); -extern void WrapShowCursor(); -extern void WrapHideCursor(); -extern float WrapColorToGrayscale(const WrapColor color); -extern uint32_t WrapColorToRGBA32(const WrapColor color); -extern WrapColor WrapColorFromRGBA32(uint32_t rgba32); -extern uint32_t WrapColorToABGR32(const WrapColor color); -extern WrapColor WrapColorFromABGR32(uint32_t rgba32); -extern uint32_t WrapARGB32ToRGBA32(uint32_t argb); -extern uint32_t WrapRGBA32(uint8_t r, uint8_t g, uint8_t b); -extern uint32_t WrapRGBA32WithA(uint8_t r, uint8_t g, uint8_t b, uint8_t a); -extern uint32_t WrapARGB32(uint8_t r, uint8_t g, uint8_t b); -extern uint32_t WrapARGB32WithA(uint8_t r, uint8_t g, uint8_t b, uint8_t a); -extern WrapColor WrapChromaScale(const WrapColor color, float k); -extern WrapColor WrapAlphaScale(const WrapColor color, float k); -extern WrapColor WrapColorFromVector3(const WrapVec3 v); -extern WrapColor WrapColorFromVector4(const WrapVec4 v); -extern WrapColor WrapColorI(int r, int g, int b); -extern WrapColor WrapColorIWithA(int r, int g, int b, int a); -extern WrapColor WrapToHLS(const WrapColor color); -extern WrapColor WrapFromHLS(const WrapColor color); -extern WrapColor WrapSetSaturation(const WrapColor color, float saturation); -extern bool WrapLoadJPG(WrapPicture pict, const char *path); -extern bool WrapLoadPNG(WrapPicture pict, const char *path); -extern bool WrapLoadGIF(WrapPicture pict, const char *path); -extern bool WrapLoadPSD(WrapPicture pict, const char *path); -extern bool WrapLoadTGA(WrapPicture pict, const char *path); -extern bool WrapLoadBMP(WrapPicture pict, const char *path); -extern bool WrapLoadPicture(WrapPicture pict, const char *path); -extern bool WrapSavePNG(WrapPicture pict, const char *path); -extern bool WrapSaveTGA(WrapPicture pict, const char *path); -extern bool WrapSaveBMP(WrapPicture pict, const char *path); -extern bool WrapRenderInit(WrapWindow window); -extern bool WrapRenderInitWithType(WrapWindow window, int type); -extern WrapWindow WrapRenderInitWithWidthHeightResetFlags(int width, int height, uint32_t reset_flags); -extern WrapWindow WrapRenderInitWithWidthHeightResetFlagsFormat(int width, int height, uint32_t reset_flags, int format); -extern WrapWindow WrapRenderInitWithWidthHeightResetFlagsFormatDebugFlags(int width, int height, uint32_t reset_flags, int format, uint32_t debug_flags); -extern WrapWindow WrapRenderInitWithWidthHeightType(int width, int height, int type); -extern WrapWindow WrapRenderInitWithWidthHeightTypeResetFlags(int width, int height, int type, uint32_t reset_flags); -extern WrapWindow WrapRenderInitWithWidthHeightTypeResetFlagsFormat(int width, int height, int type, uint32_t reset_flags, int format); -extern WrapWindow WrapRenderInitWithWidthHeightTypeResetFlagsFormatDebugFlags( +extern void HarfangAddQuadImDrawList( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, const HarfangVec2 d, unsigned int col); +extern void HarfangAddQuadImDrawListWithThickness( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, const HarfangVec2 d, unsigned int col, float thickness); +extern void HarfangAddQuadFilledImDrawList( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, const HarfangVec2 d, unsigned int col); +extern void HarfangAddTriangleImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, unsigned int col); +extern void HarfangAddTriangleImDrawListWithThickness( + HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, unsigned int col, float thickness); +extern void HarfangAddTriangleFilledImDrawList(HarfangImDrawList this_, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, unsigned int col); +extern void HarfangAddCircleImDrawList(HarfangImDrawList this_, const HarfangVec2 centre, float radius, unsigned int col); +extern void HarfangAddCircleImDrawListWithNumSegments(HarfangImDrawList this_, const HarfangVec2 centre, float radius, unsigned int col, int num_segments); +extern void HarfangAddCircleImDrawListWithNumSegmentsThickness( + HarfangImDrawList this_, const HarfangVec2 centre, float radius, unsigned int col, int num_segments, float thickness); +extern void HarfangAddCircleFilledImDrawList(HarfangImDrawList this_, const HarfangVec2 centre, float radius, unsigned int col); +extern void HarfangAddCircleFilledImDrawListWithNumSegments( + HarfangImDrawList this_, const HarfangVec2 centre, float radius, unsigned int col, int num_segments); +extern void HarfangAddTextImDrawList(HarfangImDrawList this_, const HarfangVec2 pos, unsigned int col, const char *text); +extern void HarfangAddTextImDrawListWithFontFontSizePosColText( + HarfangImDrawList this_, const HarfangImFont font, float font_size, const HarfangVec2 pos, unsigned int col, const char *text); +extern void HarfangAddTextImDrawListWithFontFontSizePosColTextWrapWidth( + HarfangImDrawList this_, const HarfangImFont font, float font_size, const HarfangVec2 pos, unsigned int col, const char *text, float wrap_width); +extern void HarfangAddTextImDrawListWithFontFontSizePosColTextWrapWidthCpuFineClipRect(HarfangImDrawList this_, const HarfangImFont font, float font_size, + const HarfangVec2 pos, unsigned int col, const char *text, float wrap_width, const HarfangVec4 cpu_fine_clip_rect); +extern void HarfangAddImageImDrawList(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b); +extern void HarfangAddImageImDrawListWithUvAUvB( + HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 uv_a, const HarfangVec2 uv_b); +extern void HarfangAddImageImDrawListWithUvAUvBCol(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, + const HarfangVec2 uv_a, const HarfangVec2 uv_b, unsigned int col); +extern void HarfangAddImageQuadImDrawList( + HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, const HarfangVec2 c, const HarfangVec2 d); +extern void HarfangAddImageQuadImDrawListWithUvAUvBUvCUvD(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, + const HarfangVec2 c, const HarfangVec2 d, const HarfangVec2 uv_a, const HarfangVec2 uv_b, const HarfangVec2 uv_c, const HarfangVec2 uv_d); +extern void HarfangAddImageQuadImDrawListWithUvAUvBUvCUvDCol(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, + const HarfangVec2 c, const HarfangVec2 d, const HarfangVec2 uv_a, const HarfangVec2 uv_b, const HarfangVec2 uv_c, const HarfangVec2 uv_d, unsigned int col); +extern void HarfangAddImageRoundedImDrawList(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, + const HarfangVec2 uv_a, const HarfangVec2 uv_b, unsigned int col, float rounding); +extern void HarfangAddImageRoundedImDrawListWithFlags(HarfangImDrawList this_, const HarfangTexture tex, const HarfangVec2 a, const HarfangVec2 b, + const HarfangVec2 uv_a, const HarfangVec2 uv_b, unsigned int col, float rounding, int flags); +extern void HarfangAddPolylineImDrawList(HarfangImDrawList this_, const HarfangVec2List points, unsigned int col, bool closed, float thickness); +extern void HarfangAddConvexPolyFilledImDrawList(HarfangImDrawList this_, const HarfangVec2List points, unsigned int col); +extern void HarfangAddBezierCubicImDrawList( + HarfangImDrawList this_, const HarfangVec2 pos0, const HarfangVec2 cp0, const HarfangVec2 cp1, const HarfangVec2 pos1, unsigned int col, float thickness); +extern void HarfangAddBezierCubicImDrawListWithNumSegments(HarfangImDrawList this_, const HarfangVec2 pos0, const HarfangVec2 cp0, const HarfangVec2 cp1, + const HarfangVec2 pos1, unsigned int col, float thickness, int num_segments); +extern void HarfangPathClearImDrawList(HarfangImDrawList this_); +extern void HarfangPathLineToImDrawList(HarfangImDrawList this_, const HarfangVec2 pos); +extern void HarfangPathLineToMergeDuplicateImDrawList(HarfangImDrawList this_, const HarfangVec2 pos); +extern void HarfangPathFillConvexImDrawList(HarfangImDrawList this_, unsigned int col); +extern void HarfangPathStrokeImDrawList(HarfangImDrawList this_, unsigned int col, bool closed); +extern void HarfangPathStrokeImDrawListWithThickness(HarfangImDrawList this_, unsigned int col, bool closed, float thickness); +extern void HarfangPathArcToImDrawList(HarfangImDrawList this_, const HarfangVec2 centre, float radius, float a_min, float a_max); +extern void HarfangPathArcToImDrawListWithNumSegments( + HarfangImDrawList this_, const HarfangVec2 centre, float radius, float a_min, float a_max, int num_segments); +extern void HarfangPathArcToFastImDrawList(HarfangImDrawList this_, const HarfangVec2 centre, float radius, int a_min_of_12, int a_max_of_12); +extern void HarfangPathBezierCubicCurveToImDrawList(HarfangImDrawList this_, const HarfangVec2 p1, const HarfangVec2 p2, const HarfangVec2 p3); +extern void HarfangPathBezierCubicCurveToImDrawListWithNumSegments( + HarfangImDrawList this_, const HarfangVec2 p1, const HarfangVec2 p2, const HarfangVec2 p3, int num_segments); +extern void HarfangPathRectImDrawList(HarfangImDrawList this_, const HarfangVec2 rect_min, const HarfangVec2 rect_max); +extern void HarfangPathRectImDrawListWithRounding(HarfangImDrawList this_, const HarfangVec2 rect_min, const HarfangVec2 rect_max, float rounding); +extern void HarfangPathRectImDrawListWithRoundingFlags( + HarfangImDrawList this_, const HarfangVec2 rect_min, const HarfangVec2 rect_max, float rounding, int flags); +extern void HarfangChannelsSplitImDrawList(HarfangImDrawList this_, int channels_count); +extern void HarfangChannelsMergeImDrawList(HarfangImDrawList this_); +extern void HarfangChannelsSetCurrentImDrawList(HarfangImDrawList this_, int channel_index); +extern const char *HarfangFileFilterGetName(HarfangFileFilter h); +extern void HarfangFileFilterSetName(HarfangFileFilter h, const char *v); +extern const char *HarfangFileFilterGetPattern(HarfangFileFilter h); +extern void HarfangFileFilterSetPattern(HarfangFileFilter h, const char *v); +extern HarfangFileFilter HarfangConstructorFileFilter(); +extern void HarfangFileFilterFree(HarfangFileFilter); +extern HarfangFileFilter HarfangFileFilterListGetOperator(HarfangFileFilterList h, int id); +extern void HarfangFileFilterListSetOperator(HarfangFileFilterList h, int id, HarfangFileFilter v); +extern int HarfangFileFilterListLenOperator(HarfangFileFilterList h); +extern HarfangFileFilterList HarfangConstructorFileFilterList(); +extern HarfangFileFilterList HarfangConstructorFileFilterListWithSequence(size_t sequenceToCSize, HarfangFileFilter *sequenceToCBuf); +extern void HarfangFileFilterListFree(HarfangFileFilterList); +extern void HarfangClearFileFilterList(HarfangFileFilterList this_); +extern void HarfangReserveFileFilterList(HarfangFileFilterList this_, size_t size); +extern void HarfangPushBackFileFilterList(HarfangFileFilterList this_, HarfangFileFilter v); +extern size_t HarfangSizeFileFilterList(HarfangFileFilterList this_); +extern HarfangFileFilter HarfangAtFileFilterList(HarfangFileFilterList this_, size_t idx); +extern float HarfangStereoSourceStateGetVolume(HarfangStereoSourceState h); +extern void HarfangStereoSourceStateSetVolume(HarfangStereoSourceState h, float v); +extern int HarfangStereoSourceStateGetRepeat(HarfangStereoSourceState h); +extern void HarfangStereoSourceStateSetRepeat(HarfangStereoSourceState h, int v); +extern float HarfangStereoSourceStateGetPanning(HarfangStereoSourceState h); +extern void HarfangStereoSourceStateSetPanning(HarfangStereoSourceState h, float v); +extern HarfangStereoSourceState HarfangConstructorStereoSourceState(); +extern HarfangStereoSourceState HarfangConstructorStereoSourceStateWithVolume(float volume); +extern HarfangStereoSourceState HarfangConstructorStereoSourceStateWithVolumeRepeat(float volume, int repeat); +extern HarfangStereoSourceState HarfangConstructorStereoSourceStateWithVolumeRepeatPanning(float volume, int repeat, float panning); +extern void HarfangStereoSourceStateFree(HarfangStereoSourceState); +extern HarfangMat4 HarfangSpatializedSourceStateGetMtx(HarfangSpatializedSourceState h); +extern void HarfangSpatializedSourceStateSetMtx(HarfangSpatializedSourceState h, HarfangMat4 v); +extern float HarfangSpatializedSourceStateGetVolume(HarfangSpatializedSourceState h); +extern void HarfangSpatializedSourceStateSetVolume(HarfangSpatializedSourceState h, float v); +extern int HarfangSpatializedSourceStateGetRepeat(HarfangSpatializedSourceState h); +extern void HarfangSpatializedSourceStateSetRepeat(HarfangSpatializedSourceState h, int v); +extern HarfangVec3 HarfangSpatializedSourceStateGetVel(HarfangSpatializedSourceState h); +extern void HarfangSpatializedSourceStateSetVel(HarfangSpatializedSourceState h, HarfangVec3 v); +extern HarfangSpatializedSourceState HarfangConstructorSpatializedSourceState(); +extern HarfangSpatializedSourceState HarfangConstructorSpatializedSourceStateWithMtx(HarfangMat4 mtx); +extern HarfangSpatializedSourceState HarfangConstructorSpatializedSourceStateWithMtxVolume(HarfangMat4 mtx, float volume); +extern HarfangSpatializedSourceState HarfangConstructorSpatializedSourceStateWithMtxVolumeRepeat(HarfangMat4 mtx, float volume, int repeat); +extern HarfangSpatializedSourceState HarfangConstructorSpatializedSourceStateWithMtxVolumeRepeatVel( + HarfangMat4 mtx, float volume, int repeat, const HarfangVec3 vel); +extern void HarfangSpatializedSourceStateFree(HarfangSpatializedSourceState); +extern HarfangMat4 HarfangOpenVREyeGetOffset(HarfangOpenVREye h); +extern void HarfangOpenVREyeSetOffset(HarfangOpenVREye h, HarfangMat4 v); +extern HarfangMat44 HarfangOpenVREyeGetProjection(HarfangOpenVREye h); +extern void HarfangOpenVREyeSetProjection(HarfangOpenVREye h, HarfangMat44 v); +extern void HarfangOpenVREyeFree(HarfangOpenVREye); +extern void HarfangOpenVREyeFrameBufferFree(HarfangOpenVREyeFrameBuffer); +extern HarfangFrameBufferHandle HarfangGetHandleOpenVREyeFrameBuffer(HarfangOpenVREyeFrameBuffer this_); +extern HarfangMat4 HarfangOpenVRStateGetBody(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetBody(HarfangOpenVRState h, HarfangMat4 v); +extern HarfangMat4 HarfangOpenVRStateGetHead(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetHead(HarfangOpenVRState h, HarfangMat4 v); +extern HarfangMat4 HarfangOpenVRStateGetInvHead(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetInvHead(HarfangOpenVRState h, HarfangMat4 v); +extern HarfangOpenVREye HarfangOpenVRStateGetLeft(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetLeft(HarfangOpenVRState h, HarfangOpenVREye v); +extern HarfangOpenVREye HarfangOpenVRStateGetRight(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetRight(HarfangOpenVRState h, HarfangOpenVREye v); +extern uint32_t HarfangOpenVRStateGetWidth(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetWidth(HarfangOpenVRState h, uint32_t v); +extern uint32_t HarfangOpenVRStateGetHeight(HarfangOpenVRState h); +extern void HarfangOpenVRStateSetHeight(HarfangOpenVRState h, uint32_t v); +extern void HarfangOpenVRStateFree(HarfangOpenVRState); +extern void HarfangOpenXREyeFrameBufferFree(HarfangOpenXREyeFrameBuffer); +extern HarfangOpenXREyeFrameBuffer HarfangOpenXREyeFrameBufferListGetOperator(HarfangOpenXREyeFrameBufferList h, int id); +extern void HarfangOpenXREyeFrameBufferListSetOperator(HarfangOpenXREyeFrameBufferList h, int id, HarfangOpenXREyeFrameBuffer v); +extern int HarfangOpenXREyeFrameBufferListLenOperator(HarfangOpenXREyeFrameBufferList h); +extern HarfangOpenXREyeFrameBufferList HarfangConstructorOpenXREyeFrameBufferList(); +extern HarfangOpenXREyeFrameBufferList HarfangConstructorOpenXREyeFrameBufferListWithSequence( + size_t sequenceToCSize, HarfangOpenXREyeFrameBuffer *sequenceToCBuf); +extern void HarfangOpenXREyeFrameBufferListFree(HarfangOpenXREyeFrameBufferList); +extern void HarfangClearOpenXREyeFrameBufferList(HarfangOpenXREyeFrameBufferList this_); +extern void HarfangReserveOpenXREyeFrameBufferList(HarfangOpenXREyeFrameBufferList this_, size_t size); +extern void HarfangPushBackOpenXREyeFrameBufferList(HarfangOpenXREyeFrameBufferList this_, HarfangOpenXREyeFrameBuffer v); +extern size_t HarfangSizeOpenXREyeFrameBufferList(HarfangOpenXREyeFrameBufferList this_); +extern HarfangOpenXREyeFrameBuffer HarfangAtOpenXREyeFrameBufferList(HarfangOpenXREyeFrameBufferList this_, size_t idx); +extern HarfangIntList HarfangOpenXRFrameInfoGetIdFbs(HarfangOpenXRFrameInfo h); +extern void HarfangOpenXRFrameInfoSetIdFbs(HarfangOpenXRFrameInfo h, HarfangIntList v); +extern void HarfangOpenXRFrameInfoFree(HarfangOpenXRFrameInfo); +extern bool HarfangSRanipalEyeStateGetPupilDiameterValid(HarfangSRanipalEyeState h); +extern void HarfangSRanipalEyeStateSetPupilDiameterValid(HarfangSRanipalEyeState h, bool v); +extern HarfangVec3 HarfangSRanipalEyeStateGetGazeOriginMm(HarfangSRanipalEyeState h); +extern void HarfangSRanipalEyeStateSetGazeOriginMm(HarfangSRanipalEyeState h, HarfangVec3 v); +extern HarfangVec3 HarfangSRanipalEyeStateGetGazeDirectionNormalized(HarfangSRanipalEyeState h); +extern void HarfangSRanipalEyeStateSetGazeDirectionNormalized(HarfangSRanipalEyeState h, HarfangVec3 v); +extern float HarfangSRanipalEyeStateGetPupilDiameterMm(HarfangSRanipalEyeState h); +extern void HarfangSRanipalEyeStateSetPupilDiameterMm(HarfangSRanipalEyeState h, float v); +extern float HarfangSRanipalEyeStateGetEyeOpenness(HarfangSRanipalEyeState h); +extern void HarfangSRanipalEyeStateSetEyeOpenness(HarfangSRanipalEyeState h, float v); +extern void HarfangSRanipalEyeStateFree(HarfangSRanipalEyeState); +extern HarfangSRanipalEyeState HarfangSRanipalStateGetRightEye(HarfangSRanipalState h); +extern void HarfangSRanipalStateSetRightEye(HarfangSRanipalState h, HarfangSRanipalEyeState v); +extern HarfangSRanipalEyeState HarfangSRanipalStateGetLeftEye(HarfangSRanipalState h); +extern void HarfangSRanipalStateSetLeftEye(HarfangSRanipalState h, HarfangSRanipalEyeState v); +extern void HarfangSRanipalStateFree(HarfangSRanipalState); +extern HarfangVec3 HarfangVertexGetPos(HarfangVertex h); +extern void HarfangVertexSetPos(HarfangVertex h, HarfangVec3 v); +extern HarfangVec3 HarfangVertexGetNormal(HarfangVertex h); +extern void HarfangVertexSetNormal(HarfangVertex h, HarfangVec3 v); +extern HarfangVec3 HarfangVertexGetTangent(HarfangVertex h); +extern void HarfangVertexSetTangent(HarfangVertex h, HarfangVec3 v); +extern HarfangVec3 HarfangVertexGetBinormal(HarfangVertex h); +extern void HarfangVertexSetBinormal(HarfangVertex h, HarfangVec3 v); +extern HarfangVec2 HarfangVertexGetUv0(HarfangVertex h); +extern void HarfangVertexSetUv0(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv1(HarfangVertex h); +extern void HarfangVertexSetUv1(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv2(HarfangVertex h); +extern void HarfangVertexSetUv2(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv3(HarfangVertex h); +extern void HarfangVertexSetUv3(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv4(HarfangVertex h); +extern void HarfangVertexSetUv4(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv5(HarfangVertex h); +extern void HarfangVertexSetUv5(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv6(HarfangVertex h); +extern void HarfangVertexSetUv6(HarfangVertex h, HarfangVec2 v); +extern HarfangVec2 HarfangVertexGetUv7(HarfangVertex h); +extern void HarfangVertexSetUv7(HarfangVertex h, HarfangVec2 v); +extern HarfangColor HarfangVertexGetColor0(HarfangVertex h); +extern void HarfangVertexSetColor0(HarfangVertex h, HarfangColor v); +extern HarfangColor HarfangVertexGetColor1(HarfangVertex h); +extern void HarfangVertexSetColor1(HarfangVertex h, HarfangColor v); +extern HarfangColor HarfangVertexGetColor2(HarfangVertex h); +extern void HarfangVertexSetColor2(HarfangVertex h, HarfangColor v); +extern HarfangColor HarfangVertexGetColor3(HarfangVertex h); +extern void HarfangVertexSetColor3(HarfangVertex h, HarfangColor v); +extern HarfangVertex HarfangConstructorVertex(); +extern void HarfangVertexFree(HarfangVertex); +extern HarfangModelBuilder HarfangConstructorModelBuilder(); +extern void HarfangModelBuilderFree(HarfangModelBuilder); +extern uint32_t HarfangAddVertexModelBuilder(HarfangModelBuilder this_, const HarfangVertex vtx); +extern void HarfangAddTriangleModelBuilder(HarfangModelBuilder this_, uint32_t a, uint32_t b, uint32_t c); +extern void HarfangAddQuadModelBuilder(HarfangModelBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t d); +extern void HarfangAddPolygonModelBuilder(HarfangModelBuilder this_, const HarfangUint32TList idxs); +extern size_t HarfangGetCurrentListIndexCountModelBuilder(HarfangModelBuilder this_); +extern void HarfangEndListModelBuilder(HarfangModelBuilder this_, uint16_t material); +extern void HarfangClearModelBuilder(HarfangModelBuilder this_); +extern HarfangModel HarfangMakeModelModelBuilder(HarfangModelBuilder this_, const HarfangVertexLayout decl); +extern void HarfangGeometryFree(HarfangGeometry); +extern HarfangGeometryBuilder HarfangConstructorGeometryBuilder(); +extern void HarfangGeometryBuilderFree(HarfangGeometryBuilder); +extern void HarfangAddVertexGeometryBuilder(HarfangGeometryBuilder this_, HarfangVertex vtx); +extern void HarfangAddPolygonGeometryBuilder(HarfangGeometryBuilder this_, const HarfangUint32TList idxs, uint16_t material); +extern void HarfangAddPolygonGeometryBuilderWithSliceOfIdxs( + HarfangGeometryBuilder this_, size_t SliceOfidxsToCSize, uint32_t *SliceOfidxsToCBuf, uint16_t material); +extern void HarfangAddTriangleGeometryBuilder(HarfangGeometryBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t material); +extern void HarfangAddQuadGeometryBuilder(HarfangGeometryBuilder this_, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t material); +extern HarfangGeometry HarfangMakeGeometryBuilder(HarfangGeometryBuilder this_); +extern void HarfangClearGeometryBuilder(HarfangGeometryBuilder this_); +extern void HarfangIsoSurfaceFree(HarfangIsoSurface); +extern void HarfangBloomFree(HarfangBloom); +extern void HarfangSAOFree(HarfangSAO); +extern void HarfangProfilerFrameFree(HarfangProfilerFrame); +extern void HarfangIVideoStreamerFree(HarfangIVideoStreamer); +extern int HarfangStartupIVideoStreamer(HarfangIVideoStreamer this_); +extern void HarfangShutdownIVideoStreamer(HarfangIVideoStreamer this_); +extern intptr_t HarfangOpenIVideoStreamer(HarfangIVideoStreamer this_, const char *name); +extern int HarfangPlayIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int HarfangPauseIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int HarfangCloseIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int HarfangSeekIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h, int64_t t); +extern int64_t HarfangGetDurationIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int64_t HarfangGetTimeStampIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int HarfangIsEndedIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h); +extern int HarfangGetFrameIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h, intptr_t *ptr, int *width, int *height, int *pitch, int *format); +extern int HarfangFreeFrameIVideoStreamer(HarfangIVideoStreamer this_, intptr_t h, int frame); +extern HarfangVoidPointer HarfangIntToVoidPointer(intptr_t ptr); +extern void HarfangSetLogLevel(int log_level); +extern void HarfangSetLogDetailed(bool is_detailed); +extern void HarfangLog(const char *msg); +extern void HarfangLogWithDetails(const char *msg, const char *details); +extern void HarfangWarn(const char *msg); +extern void HarfangWarnWithDetails(const char *msg, const char *details); +extern void HarfangError(const char *msg); +extern void HarfangErrorWithDetails(const char *msg, const char *details); +extern void HarfangDebug(const char *msg); +extern void HarfangDebugWithDetails(const char *msg, const char *details); +extern float HarfangTimeToSecF(int64_t t); +extern float HarfangTimeToMsF(int64_t t); +extern float HarfangTimeToUsF(int64_t t); +extern int64_t HarfangTimeToDay(int64_t t); +extern int64_t HarfangTimeToHour(int64_t t); +extern int64_t HarfangTimeToMin(int64_t t); +extern int64_t HarfangTimeToSec(int64_t t); +extern int64_t HarfangTimeToMs(int64_t t); +extern int64_t HarfangTimeToUs(int64_t t); +extern int64_t HarfangTimeToNs(int64_t t); +extern int64_t HarfangTimeFromSecF(float sec); +extern int64_t HarfangTimeFromMsF(float ms); +extern int64_t HarfangTimeFromUsF(float us); +extern int64_t HarfangTimeFromDay(int64_t day); +extern int64_t HarfangTimeFromHour(int64_t hour); +extern int64_t HarfangTimeFromMin(int64_t min); +extern int64_t HarfangTimeFromSec(int64_t sec); +extern int64_t HarfangTimeFromMs(int64_t ms); +extern int64_t HarfangTimeFromUs(int64_t us); +extern int64_t HarfangTimeFromNs(int64_t ns); +extern int64_t HarfangTimeNow(); +extern const char *HarfangTimeToString(int64_t t); +extern void HarfangResetClock(); +extern int64_t HarfangTickClock(); +extern int64_t HarfangGetClock(); +extern int64_t HarfangGetClockDt(); +extern void HarfangSkipClock(); +extern HarfangFile HarfangOpen(const char *path); +extern HarfangFile HarfangOpenText(const char *path); +extern HarfangFile HarfangOpenWrite(const char *path); +extern HarfangFile HarfangOpenWriteText(const char *path); +extern HarfangFile HarfangOpenTemp(const char *template_path); +extern bool HarfangClose(HarfangFile file); +extern bool HarfangIsValid(HarfangFile file); +extern bool HarfangIsValidWithT(const HarfangTexture t); +extern bool HarfangIsValidWithFb(const HarfangFrameBuffer fb); +extern bool HarfangIsValidWithPipeline(const HarfangForwardPipelineAAA pipeline); +extern bool HarfangIsValidWithStreamer(HarfangIVideoStreamer streamer); +extern bool HarfangIsEOF(HarfangFile file); +extern size_t HarfangGetSize(HarfangFile file); +extern HarfangVec2 HarfangGetSizeWithRect(const HarfangRect rect); +extern HarfangIVec2 HarfangGetSizeWithIntRectRect(const HarfangIntRect rect); +extern bool HarfangSeek(HarfangFile file, int64_t offset, int mode); +extern size_t HarfangTell(HarfangFile file); +extern void HarfangRewind(HarfangFile file); +extern bool HarfangIsFile(const char *path); +extern bool HarfangUnlink(const char *path); +extern uint8_t HarfangReadUInt8(HarfangFile file); +extern uint16_t HarfangReadUInt16(HarfangFile file); +extern uint32_t HarfangReadUInt32(HarfangFile file); +extern float HarfangReadFloat(HarfangFile file); +extern bool HarfangWriteUInt8(HarfangFile file, uint8_t value); +extern bool HarfangWriteUInt16(HarfangFile file, uint16_t value); +extern bool HarfangWriteUInt32(HarfangFile file, uint32_t value); +extern bool HarfangWriteFloat(HarfangFile file, float value); +extern const char *HarfangReadString(HarfangFile file); +extern bool HarfangWriteString(HarfangFile file, const char *value); +extern bool HarfangCopyFile(const char *src, const char *dst); +extern const char *HarfangFileToString(const char *path); +extern bool HarfangStringToFile(const char *path, const char *value); +extern bool HarfangLoadDataFromFile(const char *path, HarfangData data); +extern bool HarfangSaveDataToFile(const char *path, const HarfangData data); +extern HarfangDirEntryList HarfangListDir(const char *path, int type); +extern HarfangDirEntryList HarfangListDirRecursive(const char *path, int type); +extern bool HarfangMkDir(const char *path); +extern bool HarfangMkDirWithPermissions(const char *path, int permissions); +extern bool HarfangRmDir(const char *path); +extern bool HarfangMkTree(const char *path); +extern bool HarfangMkTreeWithPermissions(const char *path, int permissions); +extern bool HarfangRmTree(const char *path); +extern bool HarfangExists(const char *path); +extern bool HarfangIsDir(const char *path); +extern bool HarfangCopyDir(const char *src, const char *dst); +extern bool HarfangCopyDirRecursive(const char *src, const char *dst); +extern bool HarfangIsPathAbsolute(const char *path); +extern const char *HarfangPathToDisplay(const char *path); +extern const char *HarfangNormalizePath(const char *path); +extern const char *HarfangFactorizePath(const char *path); +extern const char *HarfangCleanPath(const char *path); +extern const char *HarfangCutFilePath(const char *path); +extern const char *HarfangCutFileName(const char *path); +extern const char *HarfangCutFileExtension(const char *path); +extern const char *HarfangGetFilePath(const char *path); +extern const char *HarfangGetFileName(const char *path); +extern const char *HarfangGetFileExtension(const char *path); +extern bool HarfangHasFileExtension(const char *path); +extern bool HarfangPathStartsWith(const char *path, const char *with); +extern const char *HarfangPathStripPrefix(const char *path, const char *prefix); +extern const char *HarfangPathStripSuffix(const char *path, const char *suffix); +extern const char *HarfangPathJoin(const HarfangStringList elements); +extern const char *HarfangSwapFileExtension(const char *path, const char *ext); +extern const char *HarfangGetCurrentWorkingDirectory(); +extern const char *HarfangGetUserFolder(); +extern bool HarfangAddAssetsFolder(const char *path); +extern void HarfangRemoveAssetsFolder(const char *path); +extern bool HarfangAddAssetsPackage(const char *path); +extern void HarfangRemoveAssetsPackage(const char *path); +extern bool HarfangIsAssetFile(const char *name); +extern float HarfangLinearInterpolate(float y0, float y1, float t); +extern float HarfangCosineInterpolate(float y0, float y1, float t); +extern float HarfangCubicInterpolate(float y0, float y1, float y2, float y3, float t); +extern HarfangVec3 HarfangCubicInterpolateWithV0V1V2V3(const HarfangVec3 v0, const HarfangVec3 v1, const HarfangVec3 v2, const HarfangVec3 v3, float t); +extern float HarfangHermiteInterpolate(float y0, float y1, float y2, float y3, float t, float tension, float bias); +extern uint8_t HarfangReverseRotationOrder(uint8_t rotation_order); +extern float HarfangGetArea(const HarfangMinMax minmax); +extern HarfangVec3 HarfangGetCenter(const HarfangMinMax minmax); +extern void HarfangComputeMinMaxBoundingSphere(const HarfangMinMax minmax, HarfangVec3 origin, float *radius); +extern bool HarfangOverlap(const HarfangMinMax minmax_a, const HarfangMinMax minmax_b); +extern bool HarfangOverlapWithAxis(const HarfangMinMax minmax_a, const HarfangMinMax minmax_b, uint8_t axis); +extern bool HarfangContains(const HarfangMinMax minmax, const HarfangVec3 position); +extern HarfangMinMax HarfangUnion(const HarfangMinMax minmax_a, const HarfangMinMax minmax_b); +extern HarfangMinMax HarfangUnionWithMinmaxPosition(const HarfangMinMax minmax, const HarfangVec3 position); +extern bool HarfangIntersectRay(const HarfangMinMax minmax, const HarfangVec3 origin, const HarfangVec3 direction, float *t_min, float *t_max); +extern bool HarfangClassifyLine( + const HarfangMinMax minmax, const HarfangVec3 position, const HarfangVec3 direction, HarfangVec3 intersection, HarfangVec3 normal); +extern bool HarfangClassifySegment(const HarfangMinMax minmax, const HarfangVec3 p0, const HarfangVec3 p1, HarfangVec3 intersection, HarfangVec3 normal); +extern HarfangMinMax HarfangMinMaxFromPositionSize(const HarfangVec3 position, const HarfangVec3 size); +extern HarfangVec2 HarfangMin(const HarfangVec2 a, const HarfangVec2 b); +extern HarfangIVec2 HarfangMinWithAB(const HarfangIVec2 a, const HarfangIVec2 b); +extern HarfangVec3 HarfangMinWithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b); +extern float HarfangMinWithFloatAFloatB(float a, float b); +extern int HarfangMinWithIntAIntB(int a, int b); +extern HarfangVec2 HarfangMax(const HarfangVec2 a, const HarfangVec2 b); +extern HarfangIVec2 HarfangMaxWithAB(const HarfangIVec2 a, const HarfangIVec2 b); +extern HarfangVec3 HarfangMaxWithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b); +extern float HarfangMaxWithFloatAFloatB(float a, float b); +extern int HarfangMaxWithIntAIntB(int a, int b); +extern float HarfangLen2(const HarfangVec2 v); +extern int HarfangLen2WithV(const HarfangIVec2 v); +extern float HarfangLen2WithQ(const HarfangQuaternion q); +extern float HarfangLen2WithVec3V(const HarfangVec3 v); +extern float HarfangLen(const HarfangVec2 v); +extern int HarfangLenWithV(const HarfangIVec2 v); +extern float HarfangLenWithQ(const HarfangQuaternion q); +extern float HarfangLenWithVec3V(const HarfangVec3 v); +extern float HarfangDot(const HarfangVec2 a, const HarfangVec2 b); +extern int HarfangDotWithAB(const HarfangIVec2 a, const HarfangIVec2 b); +extern float HarfangDotWithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b); +extern HarfangVec2 HarfangNormalize(const HarfangVec2 v); +extern HarfangIVec2 HarfangNormalizeWithV(const HarfangIVec2 v); +extern HarfangVec4 HarfangNormalizeWithVec4V(const HarfangVec4 v); +extern HarfangQuaternion HarfangNormalizeWithQ(const HarfangQuaternion q); +extern HarfangMat3 HarfangNormalizeWithM(const HarfangMat3 m); +extern HarfangVec3 HarfangNormalizeWithVec3V(const HarfangVec3 v); +extern HarfangVec2 HarfangReverse(const HarfangVec2 a); +extern HarfangIVec2 HarfangReverseWithA(const HarfangIVec2 a); +extern HarfangVec3 HarfangReverseWithV(const HarfangVec3 v); +extern float HarfangDist2(const HarfangVec2 a, const HarfangVec2 b); +extern int HarfangDist2WithAB(const HarfangIVec2 a, const HarfangIVec2 b); +extern float HarfangDist2WithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b); +extern float HarfangDist(const HarfangVec2 a, const HarfangVec2 b); +extern int HarfangDistWithAB(const HarfangIVec2 a, const HarfangIVec2 b); +extern float HarfangDistWithQuaternionAQuaternionB(const HarfangQuaternion a, const HarfangQuaternion b); +extern float HarfangDistWithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b); +extern HarfangVec4 HarfangAbs(const HarfangVec4 v); +extern HarfangVec3 HarfangAbsWithV(const HarfangVec3 v); +extern float HarfangAbsWithFloatV(float v); +extern int HarfangAbsWithIntV(int v); +extern HarfangVec4 HarfangRandomVec4(float min, float max); +extern HarfangVec4 HarfangRandomVec4WithMinMax(const HarfangVec4 min, const HarfangVec4 max); +extern HarfangQuaternion HarfangInverse(const HarfangQuaternion q); +extern bool HarfangInverseWithMI(const HarfangMat3 m, HarfangMat3 I); +extern bool HarfangInverseWithMat4MMat4I(const HarfangMat4 m, HarfangMat4 I); +extern HarfangMat44 HarfangInverseWithMResult(const HarfangMat44 m, bool *result); +extern HarfangVec3 HarfangInverseWithV(const HarfangVec3 v); +extern HarfangQuaternion HarfangSlerp(const HarfangQuaternion a, const HarfangQuaternion b, float t); +extern HarfangQuaternion HarfangQuaternionFromEulerWithXYZ(float x, float y, float z); +extern HarfangQuaternion HarfangQuaternionFromEulerWithXYZRotationOrder(float x, float y, float z, uint8_t rotation_order); +extern HarfangQuaternion HarfangQuaternionFromEuler(HarfangVec3 euler); +extern HarfangQuaternion HarfangQuaternionFromEulerWithRotationOrder(HarfangVec3 euler, uint8_t rotation_order); +extern HarfangQuaternion HarfangQuaternionLookAt(const HarfangVec3 at); +extern HarfangQuaternion HarfangQuaternionFromMatrix3(const HarfangMat3 m); +extern HarfangQuaternion HarfangQuaternionFromAxisAngle(float angle, const HarfangVec3 axis); +extern HarfangMat3 HarfangToMatrix3(const HarfangQuaternion q); +extern HarfangVec3 HarfangToEuler(const HarfangQuaternion q); +extern HarfangVec3 HarfangToEulerWithRotationOrder(const HarfangQuaternion q, uint8_t rotation_order); +extern HarfangVec3 HarfangToEulerWithM(const HarfangMat3 m); +extern HarfangVec3 HarfangToEulerWithMRotationOrder(const HarfangMat3 m, uint8_t rotation_order); +extern float HarfangDet(const HarfangMat3 m); +extern HarfangMat3 HarfangTranspose(const HarfangMat3 m); +extern HarfangVec3 HarfangGetRow(const HarfangMat3 m, uint32_t n); +extern HarfangVec4 HarfangGetRowWithMN(const HarfangMat4 m, unsigned int n); +extern HarfangVec4 HarfangGetRowWithMIdx(const HarfangMat44 m, uint32_t idx); +extern HarfangVec3 HarfangGetColumn(const HarfangMat3 m, uint32_t n); +extern HarfangVec3 HarfangGetColumnWithMN(const HarfangMat4 m, unsigned int n); +extern HarfangVec4 HarfangGetColumnWithMIdx(const HarfangMat44 m, uint32_t idx); +extern void HarfangSetRow(HarfangMat3 m, uint32_t n, const HarfangVec3 row); +extern void HarfangSetRowWithMNV(const HarfangMat4 m, unsigned int n, const HarfangVec4 v); +extern void HarfangSetRowWithMIdxV(const HarfangMat44 m, uint32_t idx, const HarfangVec4 v); +extern void HarfangSetColumn(HarfangMat3 m, uint32_t n, const HarfangVec3 column); +extern void HarfangSetColumnWithMNV(const HarfangMat4 m, unsigned int n, const HarfangVec3 v); +extern void HarfangSetColumnWithMIdxV(const HarfangMat44 m, uint32_t idx, const HarfangVec4 v); +extern HarfangVec3 HarfangGetX(const HarfangMat3 m); +extern HarfangVec3 HarfangGetXWithM(const HarfangMat4 m); +extern float HarfangGetXWithRect(const HarfangRect rect); +extern int HarfangGetXWithIntRectRect(const HarfangIntRect rect); +extern HarfangVec3 HarfangGetY(const HarfangMat3 m); +extern HarfangVec3 HarfangGetYWithM(const HarfangMat4 m); +extern float HarfangGetYWithRect(const HarfangRect rect); +extern int HarfangGetYWithIntRectRect(const HarfangIntRect rect); +extern HarfangVec3 HarfangGetZ(const HarfangMat3 m); +extern HarfangVec3 HarfangGetZWithM(const HarfangMat4 m); +extern HarfangVec3 HarfangGetTranslation(const HarfangMat3 m); +extern HarfangVec3 HarfangGetTranslationWithM(const HarfangMat4 m); +extern HarfangVec3 HarfangGetScale(const HarfangMat3 m); +extern HarfangVec3 HarfangGetScaleWithM(const HarfangMat4 m); +extern void HarfangSetX(HarfangMat3 m, const HarfangVec3 X); +extern void HarfangSetXWithM(const HarfangMat4 m, const HarfangVec3 X); +extern void HarfangSetXWithRectX(HarfangRect rect, float x); +extern void HarfangSetXWithIntRectRectIntX(HarfangIntRect rect, int x); +extern void HarfangSetY(HarfangMat3 m, const HarfangVec3 Y); +extern void HarfangSetYWithM(const HarfangMat4 m, const HarfangVec3 Y); +extern void HarfangSetYWithRectY(HarfangRect rect, float y); +extern void HarfangSetYWithIntRectRectIntY(HarfangIntRect rect, int y); +extern void HarfangSetZ(HarfangMat3 m, const HarfangVec3 Z); +extern void HarfangSetZWithM(const HarfangMat4 m, const HarfangVec3 Z); +extern void HarfangSetTranslation(HarfangMat3 m, const HarfangVec3 T); +extern void HarfangSetTranslationWithT(HarfangMat3 m, const HarfangVec2 T); +extern void HarfangSetTranslationWithM(const HarfangMat4 m, const HarfangVec3 T); +extern void HarfangSetScale(HarfangMat3 m, const HarfangVec3 S); +extern void HarfangSetScaleWithMScale(const HarfangMat4 m, const HarfangVec3 scale); +extern void HarfangSetAxises(HarfangMat3 m, const HarfangVec3 X, const HarfangVec3 Y, const HarfangVec3 Z); +extern HarfangMat3 HarfangOrthonormalize(const HarfangMat3 m); +extern HarfangMat4 HarfangOrthonormalizeWithM(const HarfangMat4 m); +extern HarfangMat3 HarfangVectorMat3(const HarfangVec3 V); +extern HarfangMat3 HarfangTranslationMat3(const HarfangVec2 T); +extern HarfangMat3 HarfangTranslationMat3WithT(const HarfangVec3 T); +extern HarfangMat3 HarfangScaleMat3(const HarfangVec2 S); +extern HarfangMat3 HarfangScaleMat3WithS(const HarfangVec3 S); +extern HarfangMat3 HarfangCrossProductMat3(const HarfangVec3 V); +extern HarfangMat3 HarfangRotationMatX(float angle); +extern HarfangMat3 HarfangRotationMatY(float angle); +extern HarfangMat3 HarfangRotationMatZ(float angle); +extern HarfangMat3 HarfangRotationMat2D(float angle, const HarfangVec2 pivot); +extern HarfangMat3 HarfangRotationMat3WithXYZ(float x, float y, float z); +extern HarfangMat3 HarfangRotationMat3WithXYZRotationOrder(float x, float y, float z, uint8_t rotation_order); +extern HarfangMat3 HarfangRotationMat3(const HarfangVec3 euler); +extern HarfangMat3 HarfangRotationMat3WithRotationOrder(const HarfangVec3 euler, uint8_t rotation_order); +extern HarfangMat3 HarfangMat3LookAt(const HarfangVec3 front); +extern HarfangMat3 HarfangMat3LookAtWithUp(const HarfangVec3 front, const HarfangVec3 up); +extern HarfangMat3 HarfangRotationMatXZY(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatZYX(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatXYZ(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatZXY(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatYZX(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatYXZ(float x, float y, float z); +extern HarfangMat3 HarfangRotationMatXY(float x, float y); +extern HarfangVec3 HarfangGetT(const HarfangMat4 m); +extern HarfangVec3 HarfangGetR(const HarfangMat4 m); +extern HarfangVec3 HarfangGetRWithRotationOrder(const HarfangMat4 m, uint8_t rotation_order); +extern HarfangVec3 HarfangGetRotation(const HarfangMat4 m); +extern HarfangVec3 HarfangGetRotationWithRotationOrder(const HarfangMat4 m, uint8_t rotation_order); +extern HarfangMat3 HarfangGetRMatrix(const HarfangMat4 m); +extern HarfangMat3 HarfangGetRotationMatrix(const HarfangMat4 m); +extern HarfangVec3 HarfangGetS(const HarfangMat4 m); +extern void HarfangSetT(const HarfangMat4 m, const HarfangVec3 T); +extern void HarfangSetS(const HarfangMat4 m, const HarfangVec3 scale); +extern HarfangMat4 HarfangInverseFast(const HarfangMat4 m); +extern HarfangMat4 HarfangLerpAsOrthonormalBase(const HarfangMat4 from, const HarfangMat4 to, float k); +extern HarfangMat4 HarfangLerpAsOrthonormalBaseWithFast(const HarfangMat4 from, const HarfangMat4 to, float k, bool fast); +extern void HarfangDecompose(const HarfangMat4 m, HarfangVec3 position, HarfangVec3 rotation, HarfangVec3 scale); +extern void HarfangDecomposeWithRotationOrder(const HarfangMat4 m, HarfangVec3 position, HarfangVec3 rotation, HarfangVec3 scale, uint8_t rotation_order); +extern HarfangMat4 HarfangMat4LookAt(const HarfangVec3 position, const HarfangVec3 at); +extern HarfangMat4 HarfangMat4LookAtWithScale(const HarfangVec3 position, const HarfangVec3 at, const HarfangVec3 scale); +extern HarfangMat4 HarfangMat4LookAtUp(const HarfangVec3 position, const HarfangVec3 at, const HarfangVec3 up); +extern HarfangMat4 HarfangMat4LookAtUpWithScale(const HarfangVec3 position, const HarfangVec3 at, const HarfangVec3 up, const HarfangVec3 scale); +extern HarfangMat4 HarfangMat4LookToward(const HarfangVec3 position, const HarfangVec3 direction); +extern HarfangMat4 HarfangMat4LookTowardWithScale(const HarfangVec3 position, const HarfangVec3 direction, const HarfangVec3 scale); +extern HarfangMat4 HarfangMat4LookTowardUp(const HarfangVec3 position, const HarfangVec3 direction, const HarfangVec3 up); +extern HarfangMat4 HarfangMat4LookTowardUpWithScale(const HarfangVec3 position, const HarfangVec3 direction, const HarfangVec3 up, const HarfangVec3 scale); +extern HarfangMat4 HarfangTranslationMat4(const HarfangVec3 t); +extern HarfangMat4 HarfangRotationMat4(const HarfangVec3 euler); +extern HarfangMat4 HarfangRotationMat4WithOrder(const HarfangVec3 euler, uint8_t order); +extern HarfangMat4 HarfangScaleMat4(const HarfangVec3 scale); +extern HarfangMat4 HarfangScaleMat4WithScale(float scale); +extern HarfangMat4 HarfangTransformationMat4(const HarfangVec3 pos, const HarfangVec3 rot); +extern HarfangMat4 HarfangTransformationMat4WithScale(const HarfangVec3 pos, const HarfangVec3 rot, const HarfangVec3 scale); +extern HarfangMat4 HarfangTransformationMat4WithRot(const HarfangVec3 pos, const HarfangMat3 rot); +extern HarfangMat4 HarfangTransformationMat4WithRotScale(const HarfangVec3 pos, const HarfangMat3 rot, const HarfangVec3 scale); +extern HarfangVec3 HarfangMakeVec3(const HarfangVec4 v); +extern HarfangVec3 HarfangRandomVec3(float min, float max); +extern HarfangVec3 HarfangRandomVec3WithMinMax(const HarfangVec3 min, const HarfangVec3 max); +extern HarfangVec3 HarfangBaseToEuler(const HarfangVec3 z); +extern HarfangVec3 HarfangBaseToEulerWithY(const HarfangVec3 z, const HarfangVec3 y); +extern HarfangVec3 HarfangCross(const HarfangVec3 a, const HarfangVec3 b); +extern HarfangVec3 HarfangClamp(const HarfangVec3 v, float min, float max); +extern HarfangVec3 HarfangClampWithMinMax(const HarfangVec3 v, const HarfangVec3 min, const HarfangVec3 max); +extern float HarfangClampWithV(float v, float min, float max); +extern int HarfangClampWithVMinMax(int v, int min, int max); +extern HarfangColor HarfangClampWithColor(const HarfangColor color, float min, float max); +extern HarfangColor HarfangClampWithColorMinMax(const HarfangColor color, const HarfangColor min, const HarfangColor max); +extern HarfangVec3 HarfangClampLen(const HarfangVec3 v, float min, float max); +extern HarfangVec3 HarfangSign(const HarfangVec3 v); +extern HarfangVec3 HarfangReflect(const HarfangVec3 v, const HarfangVec3 n); +extern HarfangVec3 HarfangRefract(const HarfangVec3 v, const HarfangVec3 n); +extern HarfangVec3 HarfangRefractWithKIn(const HarfangVec3 v, const HarfangVec3 n, float k_in); +extern HarfangVec3 HarfangRefractWithKInKOut(const HarfangVec3 v, const HarfangVec3 n, float k_in, float k_out); +extern HarfangVec3 HarfangFloor(const HarfangVec3 v); +extern HarfangVec3 HarfangCeil(const HarfangVec3 v); +extern HarfangVec3 HarfangFaceForward(const HarfangVec3 v, const HarfangVec3 d); +extern HarfangVec3 HarfangDeg3(float x, float y, float z); +extern HarfangVec3 HarfangRad3(float x, float y, float z); +extern HarfangVec3 HarfangVec3I(int x, int y, int z); +extern HarfangVec4 HarfangVec4I(int x, int y, int z); +extern HarfangVec4 HarfangVec4IWithW(int x, int y, int z, int w); +extern float HarfangGetWidth(const HarfangRect rect); +extern int HarfangGetWidthWithRect(const HarfangIntRect rect); +extern float HarfangGetHeight(const HarfangRect rect); +extern int HarfangGetHeightWithRect(const HarfangIntRect rect); +extern void HarfangSetWidth(HarfangRect rect, float width); +extern void HarfangSetWidthWithRectWidth(HarfangIntRect rect, int width); +extern void HarfangSetHeight(HarfangRect rect, float height); +extern void HarfangSetHeightWithRectHeight(HarfangIntRect rect, int height); +extern bool HarfangInside(const HarfangRect rect, HarfangIVec2 v); +extern bool HarfangInsideWithV(const HarfangRect rect, HarfangVec2 v); +extern bool HarfangInsideWithVec3V(const HarfangRect rect, HarfangVec3 v); +extern bool HarfangInsideWithVec4V(const HarfangRect rect, HarfangVec4 v); +extern bool HarfangInsideWithRect(const HarfangIntRect rect, HarfangIVec2 v); +extern bool HarfangInsideWithRectV(const HarfangIntRect rect, HarfangVec2 v); +extern bool HarfangInsideWithIntRectRectVec3V(const HarfangIntRect rect, HarfangVec3 v); +extern bool HarfangInsideWithIntRectRectVec4V(const HarfangIntRect rect, HarfangVec4 v); +extern bool HarfangFitsInside(const HarfangRect a, const HarfangRect b); +extern bool HarfangFitsInsideWithAB(const HarfangIntRect a, const HarfangIntRect b); +extern bool HarfangIntersects(const HarfangRect a, const HarfangRect b); +extern bool HarfangIntersectsWithAB(const HarfangIntRect a, const HarfangIntRect b); +extern HarfangRect HarfangIntersection(const HarfangRect a, const HarfangRect b); +extern HarfangIntRect HarfangIntersectionWithAB(const HarfangIntRect a, const HarfangIntRect b); +extern HarfangRect HarfangGrow(const HarfangRect rect, float border); +extern HarfangIntRect HarfangGrowWithRectBorder(const HarfangIntRect rect, int border); +extern HarfangRect HarfangOffset(const HarfangRect rect, float x, float y); +extern HarfangIntRect HarfangOffsetWithRectXY(const HarfangIntRect rect, int x, int y); +extern HarfangRect HarfangCrop(const HarfangRect rect, float left, float top, float right, float bottom); +extern HarfangIntRect HarfangCropWithRectLeftTopRightBottom(const HarfangIntRect rect, int left, int top, int right, int bottom); +extern HarfangRect HarfangMakeRectFromWidthHeight(float x, float y, float w, float h); +extern HarfangIntRect HarfangMakeRectFromWidthHeightWithXYWH(int x, int y, int w, int h); +extern HarfangRect HarfangToFloatRect(const HarfangIntRect rect); +extern HarfangIntRect HarfangToIntRect(const HarfangRect rect); +extern HarfangVec4 HarfangMakePlane(const HarfangVec3 p, const HarfangVec3 n); +extern HarfangVec4 HarfangMakePlaneWithM(const HarfangVec3 p, const HarfangVec3 n, const HarfangMat4 m); +extern float HarfangDistanceToPlane(const HarfangVec4 plane, const HarfangVec3 p); +extern float HarfangWrap(float v, float start, float end); +extern int HarfangWrapWithVStartEnd(int v, int start, int end); +extern int HarfangLerp(int a, int b, float t); +extern float HarfangLerpWithAB(float a, float b, float t); +extern HarfangVec3 HarfangLerpWithVec3AVec3B(const HarfangVec3 a, const HarfangVec3 b, float t); +extern HarfangVec4 HarfangLerpWithVec4AVec4B(const HarfangVec4 a, const HarfangVec4 b, float t); +extern float HarfangQuantize(float v, float q); +extern bool HarfangIsFinite(float v); +extern float HarfangDeg(float degrees); +extern float HarfangRad(float radians); +extern float HarfangDegreeToRadian(float degrees); +extern float HarfangRadianToDegree(float radians); +extern float HarfangSec(float seconds); +extern float HarfangMs(float milliseconds); +extern float HarfangKm(float km); +extern float HarfangMtr(float m); +extern float HarfangCm(float cm); +extern float HarfangMm(float mm); +extern float HarfangInch(float inch); +extern void HarfangSeed(uint32_t seed); +extern uint32_t HarfangRand(); +extern uint32_t HarfangRandWithRange(uint32_t range); +extern float HarfangFRand(); +extern float HarfangFRandWithRange(float range); +extern float HarfangFRRand(); +extern float HarfangFRRandWithRangeStart(float range_start); +extern float HarfangFRRandWithRangeStartRangeEnd(float range_start, float range_end); +extern float HarfangZoomFactorToFov(float zoom_factor); +extern float HarfangFovToZoomFactor(float fov); +extern HarfangMat44 HarfangComputeOrthographicProjectionMatrix(float znear, float zfar, float size, const HarfangVec2 aspect_ratio); +extern HarfangMat44 HarfangComputeOrthographicProjectionMatrixWithOffset( + float znear, float zfar, float size, const HarfangVec2 aspect_ratio, const HarfangVec2 offset); +extern HarfangMat44 HarfangComputePerspectiveProjectionMatrix(float znear, float zfar, float zoom_factor, const HarfangVec2 aspect_ratio); +extern HarfangMat44 HarfangComputePerspectiveProjectionMatrixWithOffset( + float znear, float zfar, float zoom_factor, const HarfangVec2 aspect_ratio, const HarfangVec2 offset); +extern HarfangVec2 HarfangComputeAspectRatioX(float width, float height); +extern HarfangVec2 HarfangComputeAspectRatioY(float width, float height); +extern HarfangMat44 HarfangCompute2DProjectionMatrix(float znear, float zfar, float res_x, float res_y, bool y_up); +extern float HarfangExtractZoomFactorFromProjectionMatrix(const HarfangMat44 m, const HarfangVec2 aspect_ratio); +extern void HarfangExtractZRangeFromPerspectiveProjectionMatrix(const HarfangMat44 m, float *znear, float *zfar); +extern void HarfangExtractZRangeFromOrthographicProjectionMatrix(const HarfangMat44 m, float *znear, float *zfar); +extern void HarfangExtractZRangeFromProjectionMatrix(const HarfangMat44 m, float *znear, float *zfar); +extern bool HarfangProjectToClipSpace(const HarfangMat44 proj, const HarfangVec3 view, HarfangVec3 clip); +extern bool HarfangProjectOrthoToClipSpace(const HarfangMat44 proj, const HarfangVec3 view, HarfangVec3 clip); +extern bool HarfangUnprojectFromClipSpace(const HarfangMat44 inv_proj, const HarfangVec3 clip, HarfangVec3 view); +extern bool HarfangUnprojectOrthoFromClipSpace(const HarfangMat44 inv_proj, const HarfangVec3 clip, HarfangVec3 view); +extern HarfangVec3 HarfangClipSpaceToScreenSpace(const HarfangVec3 clip, const HarfangVec2 resolution); +extern HarfangVec3 HarfangScreenSpaceToClipSpace(const HarfangVec3 screen, const HarfangVec2 resolution); +extern bool HarfangProjectToScreenSpace(const HarfangMat44 proj, const HarfangVec3 view, const HarfangVec2 resolution, HarfangVec3 screen); +extern bool HarfangProjectOrthoToScreenSpace(const HarfangMat44 proj, const HarfangVec3 view, const HarfangVec2 resolution, HarfangVec3 screen); +extern bool HarfangUnprojectFromScreenSpace(const HarfangMat44 inv_proj, const HarfangVec3 screen, const HarfangVec2 resolution, HarfangVec3 view); +extern bool HarfangUnprojectOrthoFromScreenSpace(const HarfangMat44 inv_proj, const HarfangVec3 screen, const HarfangVec2 resolution, HarfangVec3 view); +extern float HarfangProjectZToClipSpace(float z, const HarfangMat44 proj); +extern HarfangFrustum HarfangMakeFrustum(const HarfangMat44 projection); +extern HarfangFrustum HarfangMakeFrustumWithMtx(const HarfangMat44 projection, const HarfangMat4 mtx); +extern HarfangFrustum HarfangTransformFrustum(const HarfangFrustum frustum, const HarfangMat4 mtx); +extern uint8_t HarfangTestVisibilityWithCountPoints(const HarfangFrustum frustum, uint32_t count, const HarfangVec3 points); +extern uint8_t HarfangTestVisibilityWithCountPointsDistance(const HarfangFrustum frustum, uint32_t count, const HarfangVec3 points, float distance); +extern uint8_t HarfangTestVisibilityWithOriginRadius(const HarfangFrustum frustum, const HarfangVec3 origin, float radius); +extern uint8_t HarfangTestVisibility(const HarfangFrustum frustum, const HarfangMinMax minmax); +extern void HarfangWindowSystemInit(); +extern void HarfangWindowSystemShutdown(); +extern HarfangMonitorList HarfangGetMonitors(); +extern HarfangIntRect HarfangGetMonitorRect(const HarfangMonitor monitor); +extern bool HarfangIsPrimaryMonitor(const HarfangMonitor monitor); +extern bool HarfangIsMonitorConnected(const HarfangMonitor monitor); +extern const char *HarfangGetMonitorName(const HarfangMonitor monitor); +extern HarfangIVec2 HarfangGetMonitorSizeMM(const HarfangMonitor monitor); +extern bool HarfangGetMonitorModes(const HarfangMonitor monitor, HarfangMonitorModeList modes); +extern HarfangWindow HarfangNewWindow(int width, int height); +extern HarfangWindow HarfangNewWindowWithBpp(int width, int height, int bpp); +extern HarfangWindow HarfangNewWindowWithBppVisibility(int width, int height, int bpp, int visibility); +extern HarfangWindow HarfangNewWindowWithTitleWidthHeight(const char *title, int width, int height); +extern HarfangWindow HarfangNewWindowWithTitleWidthHeightBpp(const char *title, int width, int height, int bpp); +extern HarfangWindow HarfangNewWindowWithTitleWidthHeightBppVisibility(const char *title, int width, int height, int bpp, int visibility); +extern HarfangWindow HarfangNewFullscreenWindow(const HarfangMonitor monitor, int mode_index); +extern HarfangWindow HarfangNewFullscreenWindowWithRotation(const HarfangMonitor monitor, int mode_index, uint8_t rotation); +extern HarfangWindow HarfangNewFullscreenWindowWithTitleMonitorModeIndex(const char *title, const HarfangMonitor monitor, int mode_index); +extern HarfangWindow HarfangNewFullscreenWindowWithTitleMonitorModeIndexRotation( + const char *title, const HarfangMonitor monitor, int mode_index, uint8_t rotation); +extern HarfangWindow HarfangNewWindowFrom(HarfangVoidPointer handle); +extern HarfangVoidPointer HarfangGetWindowHandle(const HarfangWindow window); +extern bool HarfangUpdateWindow(const HarfangWindow window); +extern bool HarfangDestroyWindow(const HarfangWindow window); +extern bool HarfangGetWindowClientSize(const HarfangWindow window, int *width, int *height); +extern bool HarfangSetWindowClientSize(HarfangWindow window, int width, int height); +extern HarfangVec2 HarfangGetWindowContentScale(const HarfangWindow window); +extern bool HarfangGetWindowTitle(const HarfangWindow window, const char **title); +extern bool HarfangSetWindowTitle(HarfangWindow window, const char *title); +extern bool HarfangWindowHasFocus(const HarfangWindow window); +extern HarfangWindow HarfangGetWindowInFocus(); +extern HarfangIVec2 HarfangGetWindowPos(const HarfangWindow window); +extern bool HarfangSetWindowPos(HarfangWindow window, const HarfangIVec2 position); +extern bool HarfangIsWindowOpen(const HarfangWindow window); +extern void HarfangShowCursor(); +extern void HarfangHideCursor(); +extern void HarfangDisableCursor(); +extern float HarfangColorToGrayscale(const HarfangColor color); +extern uint32_t HarfangColorToRGBA32(const HarfangColor color); +extern HarfangColor HarfangColorFromRGBA32(uint32_t rgba32); +extern uint32_t HarfangColorToABGR32(const HarfangColor color); +extern HarfangColor HarfangColorFromABGR32(uint32_t rgba32); +extern uint32_t HarfangARGB32ToRGBA32(uint32_t argb); +extern uint32_t HarfangRGBA32(uint8_t r, uint8_t g, uint8_t b); +extern uint32_t HarfangRGBA32WithA(uint8_t r, uint8_t g, uint8_t b, uint8_t a); +extern uint32_t HarfangARGB32(uint8_t r, uint8_t g, uint8_t b); +extern uint32_t HarfangARGB32WithA(uint8_t r, uint8_t g, uint8_t b, uint8_t a); +extern HarfangColor HarfangChromaScale(const HarfangColor color, float k); +extern HarfangColor HarfangAlphaScale(const HarfangColor color, float k); +extern HarfangColor HarfangColorFromVector3(const HarfangVec3 v); +extern HarfangColor HarfangColorFromVector4(const HarfangVec4 v); +extern HarfangColor HarfangColorI(int r, int g, int b); +extern HarfangColor HarfangColorIWithA(int r, int g, int b, int a); +extern HarfangColor HarfangToHLS(const HarfangColor color); +extern HarfangColor HarfangFromHLS(const HarfangColor color); +extern HarfangColor HarfangSetSaturation(const HarfangColor color, float saturation); +extern bool HarfangLoadJPG(HarfangPicture pict, const char *path); +extern bool HarfangLoadPNG(HarfangPicture pict, const char *path); +extern bool HarfangLoadGIF(HarfangPicture pict, const char *path); +extern bool HarfangLoadPSD(HarfangPicture pict, const char *path); +extern bool HarfangLoadTGA(HarfangPicture pict, const char *path); +extern bool HarfangLoadBMP(HarfangPicture pict, const char *path); +extern bool HarfangLoadPicture(HarfangPicture pict, const char *path); +extern bool HarfangSavePNG(HarfangPicture pict, const char *path); +extern bool HarfangSaveTGA(HarfangPicture pict, const char *path); +extern bool HarfangSaveBMP(HarfangPicture pict, const char *path); +extern bool HarfangRenderInit(HarfangWindow window); +extern bool HarfangRenderInitWithType(HarfangWindow window, int type); +extern HarfangWindow HarfangRenderInitWithWidthHeightResetFlags(int width, int height, uint32_t reset_flags); +extern HarfangWindow HarfangRenderInitWithWidthHeightResetFlagsFormat(int width, int height, uint32_t reset_flags, int format); +extern HarfangWindow HarfangRenderInitWithWidthHeightResetFlagsFormatDebugFlags(int width, int height, uint32_t reset_flags, int format, uint32_t debug_flags); +extern HarfangWindow HarfangRenderInitWithWidthHeightType(int width, int height, int type); +extern HarfangWindow HarfangRenderInitWithWidthHeightTypeResetFlags(int width, int height, int type, uint32_t reset_flags); +extern HarfangWindow HarfangRenderInitWithWidthHeightTypeResetFlagsFormat(int width, int height, int type, uint32_t reset_flags, int format); +extern HarfangWindow HarfangRenderInitWithWidthHeightTypeResetFlagsFormatDebugFlags( int width, int height, int type, uint32_t reset_flags, int format, uint32_t debug_flags); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightResetFlags(const char *window_title, int width, int height, uint32_t reset_flags); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightResetFlagsFormat(const char *window_title, int width, int height, uint32_t reset_flags, int format); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightResetFlagsFormatDebugFlags( +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightResetFlags(const char *window_title, int width, int height, uint32_t reset_flags); +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightResetFlagsFormat( + const char *window_title, int width, int height, uint32_t reset_flags, int format); +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightResetFlagsFormatDebugFlags( const char *window_title, int width, int height, uint32_t reset_flags, int format, uint32_t debug_flags); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightType(const char *window_title, int width, int height, int type); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightTypeResetFlags(const char *window_title, int width, int height, int type, uint32_t reset_flags); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormat( +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightType(const char *window_title, int width, int height, int type); +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlags(const char *window_title, int width, int height, int type, uint32_t reset_flags); +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormat( const char *window_title, int width, int height, int type, uint32_t reset_flags, int format); -extern WrapWindow WrapRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags( +extern HarfangWindow HarfangRenderInitWithWindowTitleWidthHeightTypeResetFlagsFormatDebugFlags( const char *window_title, int width, int height, int type, uint32_t reset_flags, int format, uint32_t debug_flags); -extern void WrapRenderShutdown(); -extern bool WrapRenderResetToWindow(WrapWindow win, int *width, int *height); -extern bool WrapRenderResetToWindowWithResetFlags(WrapWindow win, int *width, int *height, uint32_t reset_flags); -extern void WrapRenderReset(uint32_t width, uint32_t height); -extern void WrapRenderResetWithFlags(uint32_t width, uint32_t height, uint32_t flags); -extern void WrapRenderResetWithFlagsFormat(uint32_t width, uint32_t height, uint32_t flags, int format); -extern void WrapSetRenderDebug(uint32_t flags); -extern void WrapSetViewClear(uint16_t view_id, uint16_t flags); -extern void WrapSetViewClearWithRgba(uint16_t view_id, uint16_t flags, uint32_t rgba); -extern void WrapSetViewClearWithRgbaDepth(uint16_t view_id, uint16_t flags, uint32_t rgba, float depth); -extern void WrapSetViewClearWithRgbaDepthStencil(uint16_t view_id, uint16_t flags, uint32_t rgba, float depth, uint8_t stencil); -extern void WrapSetViewClearWithCol(uint16_t view_id, uint16_t flags, const WrapColor col); -extern void WrapSetViewClearWithColDepth(uint16_t view_id, uint16_t flags, const WrapColor col, float depth); -extern void WrapSetViewClearWithColDepthStencil(uint16_t view_id, uint16_t flags, const WrapColor col, float depth, uint8_t stencil); -extern void WrapSetViewRect(uint16_t view_id, uint16_t x, uint16_t y, uint16_t w, uint16_t h); -extern void WrapSetViewFrameBuffer(uint16_t view_id, WrapFrameBufferHandle handle); -extern void WrapSetViewMode(uint16_t view_id, int mode); -extern void WrapTouch(uint16_t view_id); -extern uint32_t WrapFrame(); -extern void WrapSetViewTransform(uint16_t view_id, const WrapMat4 view, const WrapMat44 proj); -extern void WrapSetView2D(uint16_t id, int x, int y, int res_x, int res_y); -extern void WrapSetView2DWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar); -extern void WrapSetView2DWithZnearZfarFlagsColorDepthStencil( - uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar, uint16_t flags, const WrapColor color, float depth, uint8_t stencil); -extern void WrapSetView2DWithZnearZfarFlagsColorDepthStencilYUp( - uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar, uint16_t flags, const WrapColor color, float depth, uint8_t stencil, bool y_up); -extern void WrapSetViewPerspective(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world); -extern void WrapSetViewPerspectiveWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, float znear, float zfar); -extern void WrapSetViewPerspectiveWithZnearZfarZoomFactor( - uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, float znear, float zfar, float zoom_factor); -extern void WrapSetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, - float znear, float zfar, float zoom_factor, uint16_t flags, const WrapColor color, float depth, uint8_t stencil); -extern void WrapSetViewOrthographic(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world); -extern void WrapSetViewOrthographicWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, float znear, float zfar); -extern void WrapSetViewOrthographicWithZnearZfarSize( - uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, float znear, float zfar, float size); -extern void WrapSetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil(uint16_t id, int x, int y, int res_x, int res_y, const WrapMat4 world, float znear, - float zfar, float size, uint16_t flags, const WrapColor color, float depth, uint8_t stencil); -extern WrapVertexLayout WrapVertexLayoutPosFloatNormFloat(); -extern WrapVertexLayout WrapVertexLayoutPosFloatNormUInt8(); -extern WrapVertexLayout WrapVertexLayoutPosFloatColorFloat(); -extern WrapVertexLayout WrapVertexLayoutPosFloatColorUInt8(); -extern WrapVertexLayout WrapVertexLayoutPosFloatTexCoord0UInt8(); -extern WrapVertexLayout WrapVertexLayoutPosFloatNormUInt8TexCoord0UInt8(); -extern WrapProgramHandle WrapLoadProgramFromFile(const char *path); -extern WrapProgramHandle WrapLoadProgramFromFileWithVertexShaderPathFragmentShaderPath(const char *vertex_shader_path, const char *fragment_shader_path); -extern WrapProgramHandle WrapLoadProgramFromAssets(const char *name); -extern WrapProgramHandle WrapLoadProgramFromAssetsWithVertexShaderNameFragmentShaderName(const char *vertex_shader_name, const char *fragment_shader_name); -extern void WrapDestroyProgram(WrapProgramHandle h); -extern uint64_t WrapLoadTextureFlagsFromFile(const char *path); -extern uint64_t WrapLoadTextureFlagsFromAssets(const char *name); -extern WrapTexture WrapCreateTexture(int width, int height, const char *name, uint64_t flags); -extern WrapTexture WrapCreateTextureWithFormat(int width, int height, const char *name, uint64_t flags, int format); -extern WrapTexture WrapCreateTextureFromPicture(const WrapPicture pic, const char *name, uint64_t flags); -extern WrapTexture WrapCreateTextureFromPictureWithFormat(const WrapPicture pic, const char *name, uint64_t flags, int format); -extern void WrapUpdateTextureFromPicture(WrapTexture tex, const WrapPicture pic); -extern WrapTexture WrapLoadTextureFromFile(const char *path, uint64_t flags, WrapTextureInfo info); -extern WrapTextureRef WrapLoadTextureFromFileWithFlagsResources(const char *path, uint32_t flags, WrapPipelineResources resources); -extern WrapTexture WrapLoadTextureFromAssets(const char *path, uint64_t flags, WrapTextureInfo info); -extern WrapTextureRef WrapLoadTextureFromAssetsWithFlagsResources(const char *path, uint32_t flags, WrapPipelineResources resources); -extern void WrapDestroyTexture(const WrapTexture tex); -extern size_t WrapProcessTextureLoadQueue(WrapPipelineResources res); -extern size_t WrapProcessTextureLoadQueueWithTBudget(WrapPipelineResources res, int64_t t_budget); -extern size_t WrapProcessModelLoadQueue(WrapPipelineResources res); -extern size_t WrapProcessModelLoadQueueWithTBudget(WrapPipelineResources res, int64_t t_budget); -extern size_t WrapProcessLoadQueues(WrapPipelineResources res); -extern size_t WrapProcessLoadQueuesWithTBudget(WrapPipelineResources res, int64_t t_budget); -extern uint32_t WrapCaptureTexture(const WrapPipelineResources resources, const WrapTextureRef tex, WrapPicture pic); -extern WrapUniformSetValue WrapMakeUniformSetValue(const char *name, float v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithV(const char *name, const WrapVec2 v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithVec3V(const char *name, const WrapVec3 v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithVec4V(const char *name, const WrapVec4 v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithMat3V(const char *name, const WrapMat3 v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithMat4V(const char *name, const WrapMat4 v); -extern WrapUniformSetValue WrapMakeUniformSetValueWithMat44V(const char *name, const WrapMat44 v); -extern WrapUniformSetTexture WrapMakeUniformSetTexture(const char *name, const WrapTexture texture, uint8_t stage); -extern WrapPipelineProgram WrapLoadPipelineProgramFromFile(const char *path, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapPipelineProgram WrapLoadPipelineProgramFromAssets(const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapPipelineProgramRef WrapLoadPipelineProgramRefFromFile(const char *path, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapPipelineProgramRef WrapLoadPipelineProgramRefFromAssets(const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapViewState WrapComputeOrthographicViewState(const WrapMat4 world, float size, float znear, float zfar, const WrapVec2 aspect_ratio); -extern WrapViewState WrapComputePerspectiveViewState(const WrapMat4 world, float fov, float znear, float zfar, const WrapVec2 aspect_ratio); -extern void WrapSetMaterialProgram(WrapMaterial mat, WrapPipelineProgramRef program); -extern void WrapSetMaterialValue(WrapMaterial mat, const char *name, float v); -extern void WrapSetMaterialValueWithV(WrapMaterial mat, const char *name, const WrapVec2 v); -extern void WrapSetMaterialValueWithVec3V(WrapMaterial mat, const char *name, const WrapVec3 v); -extern void WrapSetMaterialValueWithVec4V(WrapMaterial mat, const char *name, const WrapVec4 v); -extern void WrapSetMaterialValueWithM(WrapMaterial mat, const char *name, const WrapMat3 m); -extern void WrapSetMaterialValueWithMat4M(WrapMaterial mat, const char *name, const WrapMat4 m); -extern void WrapSetMaterialValueWithMat44M(WrapMaterial mat, const char *name, const WrapMat44 m); -extern void WrapSetMaterialTexture(WrapMaterial mat, const char *name, WrapTextureRef texture, uint8_t stage); -extern void WrapSetMaterialTextureRef(WrapMaterial mat, const char *name, WrapTextureRef texture); -extern WrapTextureRef WrapGetMaterialTexture(WrapMaterial mat, const char *name); -extern WrapStringList WrapGetMaterialTextures(WrapMaterial mat); -extern WrapStringList WrapGetMaterialValues(WrapMaterial mat); -extern int WrapGetMaterialFaceCulling(const WrapMaterial mat); -extern void WrapSetMaterialFaceCulling(WrapMaterial mat, int culling); -extern int WrapGetMaterialDepthTest(const WrapMaterial mat); -extern void WrapSetMaterialDepthTest(WrapMaterial mat, int test); -extern int WrapGetMaterialBlendMode(const WrapMaterial mat); -extern void WrapSetMaterialBlendMode(WrapMaterial mat, int mode); -extern void WrapGetMaterialWriteRGBA(const WrapMaterial mat, bool *write_r, bool *write_g, bool *write_b, bool *write_a); -extern void WrapSetMaterialWriteRGBA(WrapMaterial mat, bool write_r, bool write_g, bool write_b, bool write_a); -extern bool WrapGetMaterialNormalMapInWorldSpace(const WrapMaterial mat); -extern void WrapSetMaterialNormalMapInWorldSpace(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialWriteZ(const WrapMaterial mat); -extern void WrapSetMaterialWriteZ(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialDiffuseUsesUV1(const WrapMaterial mat); -extern void WrapSetMaterialDiffuseUsesUV1(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialSpecularUsesUV1(const WrapMaterial mat); -extern void WrapSetMaterialSpecularUsesUV1(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialAmbientUsesUV1(const WrapMaterial mat); -extern void WrapSetMaterialAmbientUsesUV1(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialSkinning(const WrapMaterial mat); -extern void WrapSetMaterialSkinning(WrapMaterial mat, bool enable); -extern bool WrapGetMaterialAlphaCut(const WrapMaterial mat); -extern void WrapSetMaterialAlphaCut(WrapMaterial mat, bool enable); -extern WrapMaterial WrapCreateMaterial(WrapPipelineProgramRef prg); -extern WrapMaterial WrapCreateMaterialWithValueNameValue(WrapPipelineProgramRef prg, const char *value_name, const WrapVec4 value); -extern WrapMaterial WrapCreateMaterialWithValueName0Value0ValueName1Value1( - WrapPipelineProgramRef prg, const char *value_name_0, const WrapVec4 value_0, const char *value_name_1, const WrapVec4 value_1); -extern WrapRenderState WrapComputeRenderState(int blend); -extern WrapRenderState WrapComputeRenderStateWithDepthTest(int blend, int depth_test); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCulling(int blend, int depth_test, int culling); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCullingWriteZ(int blend, int depth_test, int culling, bool write_z); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCullingWriteZWriteR(int blend, int depth_test, int culling, bool write_z, bool write_r); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteG( +extern void HarfangRenderShutdown(); +extern bool HarfangRenderResetToWindow(HarfangWindow win, int *width, int *height); +extern bool HarfangRenderResetToWindowWithResetFlags(HarfangWindow win, int *width, int *height, uint32_t reset_flags); +extern void HarfangRenderReset(uint32_t width, uint32_t height); +extern void HarfangRenderResetWithFlags(uint32_t width, uint32_t height, uint32_t flags); +extern void HarfangRenderResetWithFlagsFormat(uint32_t width, uint32_t height, uint32_t flags, int format); +extern void HarfangSetRenderDebug(uint32_t flags); +extern void HarfangSetViewClear(uint16_t view_id, uint16_t flags); +extern void HarfangSetViewClearWithRgba(uint16_t view_id, uint16_t flags, uint32_t rgba); +extern void HarfangSetViewClearWithRgbaDepth(uint16_t view_id, uint16_t flags, uint32_t rgba, float depth); +extern void HarfangSetViewClearWithRgbaDepthStencil(uint16_t view_id, uint16_t flags, uint32_t rgba, float depth, uint8_t stencil); +extern void HarfangSetViewClearWithCol(uint16_t view_id, uint16_t flags, const HarfangColor col); +extern void HarfangSetViewClearWithColDepth(uint16_t view_id, uint16_t flags, const HarfangColor col, float depth); +extern void HarfangSetViewClearWithColDepthStencil(uint16_t view_id, uint16_t flags, const HarfangColor col, float depth, uint8_t stencil); +extern void HarfangSetViewRect(uint16_t view_id, uint16_t x, uint16_t y, uint16_t w, uint16_t h); +extern void HarfangSetViewFrameBuffer(uint16_t view_id, HarfangFrameBufferHandle handle); +extern void HarfangSetViewMode(uint16_t view_id, int mode); +extern void HarfangTouch(uint16_t view_id); +extern uint32_t HarfangFrame(); +extern void HarfangSetViewTransform(uint16_t view_id, const HarfangMat4 view, const HarfangMat44 proj); +extern void HarfangSetView2D(uint16_t id, int x, int y, int res_x, int res_y); +extern void HarfangSetView2DWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar); +extern void HarfangSetView2DWithZnearZfarFlagsColorDepthStencil( + uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar, uint16_t flags, const HarfangColor color, float depth, uint8_t stencil); +extern void HarfangSetView2DWithZnearZfarFlagsColorDepthStencilYUp(uint16_t id, int x, int y, int res_x, int res_y, float znear, float zfar, uint16_t flags, + const HarfangColor color, float depth, uint8_t stencil, bool y_up); +extern void HarfangSetViewPerspective(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world); +extern void HarfangSetViewPerspectiveWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, float znear, float zfar); +extern void HarfangSetViewPerspectiveWithZnearZfarZoomFactor( + uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, float znear, float zfar, float zoom_factor); +extern void HarfangSetViewPerspectiveWithZnearZfarZoomFactorFlagsColorDepthStencil(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, + float znear, float zfar, float zoom_factor, uint16_t flags, const HarfangColor color, float depth, uint8_t stencil); +extern void HarfangSetViewOrthographic(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world); +extern void HarfangSetViewOrthographicWithZnearZfar(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, float znear, float zfar); +extern void HarfangSetViewOrthographicWithZnearZfarSize( + uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, float znear, float zfar, float size); +extern void HarfangSetViewOrthographicWithZnearZfarSizeFlagsColorDepthStencil(uint16_t id, int x, int y, int res_x, int res_y, const HarfangMat4 world, + float znear, float zfar, float size, uint16_t flags, const HarfangColor color, float depth, uint8_t stencil); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatNormFloat(); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatNormUInt8(); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatColorFloat(); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatColorUInt8(); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatTexCoord0UInt8(); +extern HarfangVertexLayout HarfangVertexLayoutPosFloatNormUInt8TexCoord0UInt8(); +extern HarfangProgramHandle HarfangLoadProgramFromFile(const char *path); +extern HarfangProgramHandle HarfangLoadProgramFromFileWithVertexShaderPathFragmentShaderPath(const char *vertex_shader_path, const char *fragment_shader_path); +extern HarfangProgramHandle HarfangLoadProgramFromAssets(const char *name); +extern HarfangProgramHandle HarfangLoadProgramFromAssetsWithVertexShaderNameFragmentShaderName( + const char *vertex_shader_name, const char *fragment_shader_name); +extern void HarfangDestroyProgram(HarfangProgramHandle h); +extern uint64_t HarfangLoadTextureFlagsFromFile(const char *path); +extern uint64_t HarfangLoadTextureFlagsFromAssets(const char *name); +extern HarfangTexture HarfangCreateTexture(int width, int height, const char *name, uint64_t flags); +extern HarfangTexture HarfangCreateTextureWithFormat(int width, int height, const char *name, uint64_t flags, int format); +extern HarfangTexture HarfangCreateTextureFromPicture(const HarfangPicture pic, const char *name, uint64_t flags); +extern HarfangTexture HarfangCreateTextureFromPictureWithFormat(const HarfangPicture pic, const char *name, uint64_t flags, int format); +extern void HarfangUpdateTextureFromPicture(HarfangTexture tex, const HarfangPicture pic); +extern HarfangTexture HarfangLoadTextureFromFile(const char *path, uint64_t flags, HarfangTextureInfo info); +extern HarfangTextureRef HarfangLoadTextureFromFileWithFlagsResources(const char *path, uint32_t flags, HarfangPipelineResources resources); +extern HarfangTexture HarfangLoadTextureFromAssets(const char *path, uint64_t flags, HarfangTextureInfo info); +extern HarfangTextureRef HarfangLoadTextureFromAssetsWithFlagsResources(const char *path, uint32_t flags, HarfangPipelineResources resources); +extern void HarfangDestroyTexture(const HarfangTexture tex); +extern size_t HarfangProcessTextureLoadQueue(HarfangPipelineResources res); +extern size_t HarfangProcessTextureLoadQueueWithTBudget(HarfangPipelineResources res, int64_t t_budget); +extern size_t HarfangProcessModelLoadQueue(HarfangPipelineResources res); +extern size_t HarfangProcessModelLoadQueueWithTBudget(HarfangPipelineResources res, int64_t t_budget); +extern size_t HarfangProcessLoadQueues(HarfangPipelineResources res); +extern size_t HarfangProcessLoadQueuesWithTBudget(HarfangPipelineResources res, int64_t t_budget); +extern uint32_t HarfangCaptureTexture(const HarfangPipelineResources resources, const HarfangTextureRef tex, HarfangPicture pic); +extern HarfangUniformSetValue HarfangMakeUniformSetValue(const char *name, float v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithV(const char *name, const HarfangVec2 v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithVec3V(const char *name, const HarfangVec3 v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithVec4V(const char *name, const HarfangVec4 v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithMat3V(const char *name, const HarfangMat3 v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithMat4V(const char *name, const HarfangMat4 v); +extern HarfangUniformSetValue HarfangMakeUniformSetValueWithMat44V(const char *name, const HarfangMat44 v); +extern HarfangUniformSetTexture HarfangMakeUniformSetTexture(const char *name, const HarfangTexture texture, uint8_t stage); +extern HarfangPipelineProgram HarfangLoadPipelineProgramFromFile(const char *path, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangPipelineProgram HarfangLoadPipelineProgramFromAssets(const char *name, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangPipelineProgramRef HarfangLoadPipelineProgramRefFromFile( + const char *path, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangPipelineProgramRef HarfangLoadPipelineProgramRefFromAssets( + const char *name, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangViewState HarfangComputeOrthographicViewState(const HarfangMat4 world, float size, float znear, float zfar, const HarfangVec2 aspect_ratio); +extern HarfangViewState HarfangComputePerspectiveViewState(const HarfangMat4 world, float fov, float znear, float zfar, const HarfangVec2 aspect_ratio); +extern void HarfangSetMaterialProgram(HarfangMaterial mat, HarfangPipelineProgramRef program); +extern void HarfangSetMaterialValue(HarfangMaterial mat, const char *name, float v); +extern void HarfangSetMaterialValueWithV(HarfangMaterial mat, const char *name, const HarfangVec2 v); +extern void HarfangSetMaterialValueWithVec3V(HarfangMaterial mat, const char *name, const HarfangVec3 v); +extern void HarfangSetMaterialValueWithVec4V(HarfangMaterial mat, const char *name, const HarfangVec4 v); +extern void HarfangSetMaterialValueWithM(HarfangMaterial mat, const char *name, const HarfangMat3 m); +extern void HarfangSetMaterialValueWithMat4M(HarfangMaterial mat, const char *name, const HarfangMat4 m); +extern void HarfangSetMaterialValueWithMat44M(HarfangMaterial mat, const char *name, const HarfangMat44 m); +extern void HarfangSetMaterialTexture(HarfangMaterial mat, const char *name, HarfangTextureRef texture, uint8_t stage); +extern void HarfangSetMaterialTextureRef(HarfangMaterial mat, const char *name, HarfangTextureRef texture); +extern HarfangTextureRef HarfangGetMaterialTexture(HarfangMaterial mat, const char *name); +extern HarfangStringList HarfangGetMaterialTextures(HarfangMaterial mat); +extern HarfangStringList HarfangGetMaterialValues(HarfangMaterial mat); +extern int HarfangGetMaterialFaceCulling(const HarfangMaterial mat); +extern void HarfangSetMaterialFaceCulling(HarfangMaterial mat, int culling); +extern int HarfangGetMaterialDepthTest(const HarfangMaterial mat); +extern void HarfangSetMaterialDepthTest(HarfangMaterial mat, int test); +extern int HarfangGetMaterialBlendMode(const HarfangMaterial mat); +extern void HarfangSetMaterialBlendMode(HarfangMaterial mat, int mode); +extern void HarfangGetMaterialWriteRGBA(const HarfangMaterial mat, bool *write_r, bool *write_g, bool *write_b, bool *write_a); +extern void HarfangSetMaterialWriteRGBA(HarfangMaterial mat, bool write_r, bool write_g, bool write_b, bool write_a); +extern bool HarfangGetMaterialNormalMapInWorldSpace(const HarfangMaterial mat); +extern void HarfangSetMaterialNormalMapInWorldSpace(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialWriteZ(const HarfangMaterial mat); +extern void HarfangSetMaterialWriteZ(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialDiffuseUsesUV1(const HarfangMaterial mat); +extern void HarfangSetMaterialDiffuseUsesUV1(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialSpecularUsesUV1(const HarfangMaterial mat); +extern void HarfangSetMaterialSpecularUsesUV1(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialAmbientUsesUV1(const HarfangMaterial mat); +extern void HarfangSetMaterialAmbientUsesUV1(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialSkinning(const HarfangMaterial mat); +extern void HarfangSetMaterialSkinning(HarfangMaterial mat, bool enable); +extern bool HarfangGetMaterialAlphaCut(const HarfangMaterial mat); +extern void HarfangSetMaterialAlphaCut(HarfangMaterial mat, bool enable); +extern HarfangMaterial HarfangCreateMaterial(HarfangPipelineProgramRef prg); +extern HarfangMaterial HarfangCreateMaterialWithValueNameValue(HarfangPipelineProgramRef prg, const char *value_name, const HarfangVec4 value); +extern HarfangMaterial HarfangCreateMaterialWithValueName0Value0ValueName1Value1( + HarfangPipelineProgramRef prg, const char *value_name_0, const HarfangVec4 value_0, const char *value_name_1, const HarfangVec4 value_1); +extern HarfangRenderState HarfangComputeRenderState(int blend); +extern HarfangRenderState HarfangComputeRenderStateWithDepthTest(int blend, int depth_test); +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCulling(int blend, int depth_test, int culling); +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCullingWriteZ(int blend, int depth_test, int culling, bool write_z); +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCullingWriteZWriteR(int blend, int depth_test, int culling, bool write_z, bool write_r); +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteG( int blend, int depth_test, int culling, bool write_z, bool write_r, bool write_g); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteB( +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteB( int blend, int depth_test, int culling, bool write_z, bool write_r, bool write_g, bool write_b); -extern WrapRenderState WrapComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA( +extern HarfangRenderState HarfangComputeRenderStateWithDepthTestCullingWriteZWriteRWriteGWriteBWriteA( int blend, int depth_test, int culling, bool write_z, bool write_r, bool write_g, bool write_b, bool write_a); -extern WrapRenderState WrapComputeRenderStateWithWriteZ(int blend, bool write_z); -extern WrapRenderState WrapComputeRenderStateWithWriteZWriteR(int blend, bool write_z, bool write_r); -extern WrapRenderState WrapComputeRenderStateWithWriteZWriteRWriteG(int blend, bool write_z, bool write_r, bool write_g); -extern WrapRenderState WrapComputeRenderStateWithWriteZWriteRWriteGWriteB(int blend, bool write_z, bool write_r, bool write_g, bool write_b); -extern WrapRenderState WrapComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA( +extern HarfangRenderState HarfangComputeRenderStateWithWriteZ(int blend, bool write_z); +extern HarfangRenderState HarfangComputeRenderStateWithWriteZWriteR(int blend, bool write_z, bool write_r); +extern HarfangRenderState HarfangComputeRenderStateWithWriteZWriteRWriteG(int blend, bool write_z, bool write_r, bool write_g); +extern HarfangRenderState HarfangComputeRenderStateWithWriteZWriteRWriteGWriteB(int blend, bool write_z, bool write_r, bool write_g, bool write_b); +extern HarfangRenderState HarfangComputeRenderStateWithWriteZWriteRWriteGWriteBWriteA( int blend, bool write_z, bool write_r, bool write_g, bool write_b, bool write_a); -extern uint32_t WrapComputeSortKey(float view_depth); -extern uint32_t WrapComputeSortKeyFromWorld(const WrapVec3 T, const WrapMat4 view); -extern uint32_t WrapComputeSortKeyFromWorldWithModel(const WrapVec3 T, const WrapMat4 view, const WrapMat4 model); -extern WrapModel WrapLoadModelFromFile(const char *path); -extern WrapModel WrapLoadModelFromAssets(const char *name); -extern WrapModel WrapCreateCubeModel(const WrapVertexLayout decl, float x, float y, float z); -extern WrapModel WrapCreateSphereModel(const WrapVertexLayout decl, float radius, int subdiv_x, int subdiv_y); -extern WrapModel WrapCreatePlaneModel(const WrapVertexLayout decl, float width, float length, int subdiv_x, int subdiv_z); -extern WrapModel WrapCreateCylinderModel(const WrapVertexLayout decl, float radius, float height, int subdiv_x); -extern WrapModel WrapCreateConeModel(const WrapVertexLayout decl, float radius, float height, int subdiv_x); -extern WrapModel WrapCreateCapsuleModel(const WrapVertexLayout decl, float radius, float height, int subdiv_x, int subdiv_y); -extern void WrapDrawModel(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, const WrapMat4 matrix); -extern void WrapDrawModelWithRenderState(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, const WrapMat4 matrix, WrapRenderState render_state); -extern void WrapDrawModelWithRenderStateDepth(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, const WrapMat4 matrix, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawModelWithMatrices(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapMat4List matrices); -extern void WrapDrawModelWithMatricesRenderState(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapMat4List matrices, WrapRenderState render_state); -extern void WrapDrawModelWithMatricesRenderStateDepth(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapMat4List matrices, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawModelWithSliceOfValuesSliceOfTextures(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, const WrapMat4 matrix); -extern void WrapDrawModelWithSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, const WrapMat4 matrix, - WrapRenderState render_state); -extern void WrapDrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - const WrapMat4 matrix, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - size_t SliceOfmatricesToCSize, WrapMat4 *SliceOfmatricesToCBuf); -extern void WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - size_t SliceOfmatricesToCSize, WrapMat4 *SliceOfmatricesToCBuf, WrapRenderState render_state); -extern void WrapDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth(uint16_t view_id, const WrapModel mdl, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - size_t SliceOfmatricesToCSize, WrapMat4 *SliceOfmatricesToCBuf, WrapRenderState render_state, uint32_t depth); -extern void WrapUpdateMaterialPipelineProgramVariant(WrapMaterial mat, const WrapPipelineResources resources); -extern void WrapCreateMissingMaterialProgramValuesFromFile(WrapMaterial mat, const WrapPipelineResources resources); -extern void WrapCreateMissingMaterialProgramValuesFromAssets(WrapMaterial mat, const WrapPipelineResources resources); -extern WrapFrameBuffer WrapCreateFrameBuffer(const WrapTexture color, const WrapTexture depth, const char *name); -extern WrapFrameBuffer WrapCreateFrameBufferWithColorFormatDepthFormatAaName(int color_format, int depth_format, int aa, const char *name); -extern WrapFrameBuffer WrapCreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName( - int width, int height, int color_format, int depth_format, int aa, const char *name); -extern WrapTexture WrapGetColorTexture(WrapFrameBuffer frameBuffer); -extern WrapTexture WrapGetDepthTexture(WrapFrameBuffer frameBuffer); -extern void WrapGetTextures(WrapFrameBuffer framebuffer, WrapTexture color, WrapTexture depth); -extern void WrapDestroyFrameBuffer(WrapFrameBuffer frameBuffer); -extern void WrapSetTransform(const WrapMat4 mtx); -extern void WrapDrawLines(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg); -extern void WrapDrawLinesWithRenderState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, WrapRenderState render_state); -extern void WrapDrawLinesWithRenderStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawLinesWithValuesTextures( - uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, const WrapUniformSetValueList values, const WrapUniformSetTextureList textures); -extern void WrapDrawLinesWithValuesTexturesRenderState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapRenderState render_state); -extern void WrapDrawLinesWithValuesTexturesRenderStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawLinesWithIdxVtxPrgValuesTextures(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures); -extern void WrapDrawLinesWithIdxVtxPrgValuesTexturesRenderState(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState render_state); -extern void WrapDrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawLinesWithSliceOfValuesSliceOfTextures(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawLinesWithSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - WrapRenderState render_state); -extern void WrapDrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - WrapRenderState render_state, uint32_t depth); -extern void WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, - const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, - WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, - const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, - WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState render_state); -extern void WrapDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, size_t SliceOfidxToCSize, - uint16_t *SliceOfidxToCBuf, const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, - size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState render_state, uint32_t depth); -extern void WrapDrawTriangles(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg); -extern void WrapDrawTrianglesWithState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, WrapRenderState state); -extern void WrapDrawTrianglesWithStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, WrapRenderState state, uint32_t depth); -extern void WrapDrawTrianglesWithValuesTextures( - uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, const WrapUniformSetValueList values, const WrapUniformSetTextureList textures); -extern void WrapDrawTrianglesWithValuesTexturesState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapRenderState state); -extern void WrapDrawTrianglesWithValuesTexturesStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapRenderState state, uint32_t depth); -extern void WrapDrawTrianglesWithIdxVtxPrgValuesTextures(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures); -extern void WrapDrawTrianglesWithIdxVtxPrgValuesTexturesState(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState state); -extern void WrapDrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth(uint16_t view_id, const WrapUint16TList idx, const WrapVertices vtx, WrapProgramHandle prg, - const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState state, uint32_t depth); -extern void WrapDrawTrianglesWithSliceOfValuesSliceOfTextures(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawTrianglesWithSliceOfValuesSliceOfTexturesState(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state); -extern void WrapDrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const WrapVertices vtx, WrapProgramHandle prg, - size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, - WrapRenderState state, uint32_t depth); -extern void WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, - const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, - WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, - const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, - WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state); -extern void WrapDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, - const WrapVertices vtx, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, - WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state, uint32_t depth); -extern void WrapDrawSprites( - uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, const WrapVec2 size, WrapProgramHandle prg); -extern void WrapDrawSpritesWithState(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, const WrapVec2 size, - WrapProgramHandle prg, WrapRenderState state); -extern void WrapDrawSpritesWithStateDepth(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, const WrapVec2 size, - WrapProgramHandle prg, WrapRenderState state, uint32_t depth); -extern void WrapDrawSpritesWithValuesTextures(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, - const WrapVec2 size, WrapProgramHandle prg, const WrapUniformSetValueList values, const WrapUniformSetTextureList textures); -extern void WrapDrawSpritesWithValuesTexturesState(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, - const WrapVec2 size, WrapProgramHandle prg, const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState state); -extern void WrapDrawSpritesWithValuesTexturesStateDepth(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, const WrapVec3List pos, - const WrapVec2 size, WrapProgramHandle prg, const WrapUniformSetValueList values, const WrapUniformSetTextureList textures, WrapRenderState state, - uint32_t depth); -extern void WrapDrawSpritesWithSliceOfPos(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, size_t SliceOfposToCSize, - WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg); -extern void WrapDrawSpritesWithSliceOfPosState(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, size_t SliceOfposToCSize, - WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg, WrapRenderState state); -extern void WrapDrawSpritesWithSliceOfPosStateDepth(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, size_t SliceOfposToCSize, - WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg, WrapRenderState state, uint32_t depth); -extern void WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, - size_t SliceOfposToCSize, WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, - size_t SliceOfposToCSize, WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state); -extern void WrapDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const WrapMat3 inv_view_R, WrapVertexLayout vtx_layout, - size_t SliceOfposToCSize, WrapVec3 *SliceOfposToCBuf, const WrapVec2 size, WrapProgramHandle prg, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state, +extern uint32_t HarfangComputeSortKey(float view_depth); +extern uint32_t HarfangComputeSortKeyFromWorld(const HarfangVec3 T, const HarfangMat4 view); +extern uint32_t HarfangComputeSortKeyFromWorldWithModel(const HarfangVec3 T, const HarfangMat4 view, const HarfangMat4 model); +extern HarfangModel HarfangLoadModelFromFile(const char *path); +extern HarfangModel HarfangLoadModelFromAssets(const char *name); +extern HarfangModel HarfangCreateCubeModel(const HarfangVertexLayout decl, float x, float y, float z); +extern HarfangModel HarfangCreateSphereModel(const HarfangVertexLayout decl, float radius, int subdiv_x, int subdiv_y); +extern HarfangModel HarfangCreatePlaneModel(const HarfangVertexLayout decl, float width, float length, int subdiv_x, int subdiv_z); +extern HarfangModel HarfangCreateCylinderModel(const HarfangVertexLayout decl, float radius, float height, int subdiv_x); +extern HarfangModel HarfangCreateConeModel(const HarfangVertexLayout decl, float radius, float height, int subdiv_x); +extern HarfangModel HarfangCreateCapsuleModel(const HarfangVertexLayout decl, float radius, float height, int subdiv_x, int subdiv_y); +extern void HarfangDrawModel(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, const HarfangMat4 matrix); +extern void HarfangDrawModelWithRenderState(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, const HarfangMat4 matrix, HarfangRenderState render_state); +extern void HarfangDrawModelWithRenderStateDepth(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, const HarfangMat4 matrix, HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawModelWithMatrices(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, HarfangMat4List matrices); +extern void HarfangDrawModelWithMatricesRenderState(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, HarfangMat4List matrices, HarfangRenderState render_state); +extern void HarfangDrawModelWithMatricesRenderStateDepth(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangMat4List matrices, HarfangRenderState render_state, uint32_t depth); -extern const WrapPipelineInfo WrapGetForwardPipelineInfo(); -extern WrapForwardPipeline WrapCreateForwardPipeline(); -extern WrapForwardPipeline WrapCreateForwardPipelineWithShadowMapResolution(int shadow_map_resolution); -extern WrapForwardPipeline WrapCreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(int shadow_map_resolution, bool spot_16bit_shadow_map); -extern void WrapDestroyForwardPipeline(WrapForwardPipeline pipeline); -extern WrapForwardPipelineLight WrapMakeForwardPipelinePointLight(const WrapMat4 world, const WrapColor diffuse, const WrapColor specular); -extern WrapForwardPipelineLight WrapMakeForwardPipelinePointLightWithRadius( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius); -extern WrapForwardPipelineLight WrapMakeForwardPipelinePointLightWithRadiusPriority( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float priority); -extern WrapForwardPipelineLight WrapMakeForwardPipelinePointLightWithRadiusPriorityShadowType( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float priority, int shadow_type); -extern WrapForwardPipelineLight WrapMakeForwardPipelinePointLightWithRadiusPriorityShadowTypeShadowBias( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float priority, int shadow_type, float shadow_bias); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLight(const WrapMat4 world, const WrapColor diffuse, const WrapColor specular); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadius( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadiusInnerAngle( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float inner_angle); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAngle( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float inner_angle, float outer_angle); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriority( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, float radius, float inner_angle, float outer_angle, float priority); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowType(const WrapMat4 world, const WrapColor diffuse, - const WrapColor specular, float radius, float inner_angle, float outer_angle, float priority, int shadow_type); -extern WrapForwardPipelineLight WrapMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTypeShadowBias(const WrapMat4 world, - const WrapColor diffuse, const WrapColor specular, float radius, float inner_angle, float outer_angle, float priority, int shadow_type, float shadow_bias); -extern WrapForwardPipelineLight WrapMakeForwardPipelineLinearLight(const WrapMat4 world, const WrapColor diffuse, const WrapColor specular); -extern WrapForwardPipelineLight WrapMakeForwardPipelineLinearLightWithPssmSplit( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, const WrapVec4 pssm_split); -extern WrapForwardPipelineLight WrapMakeForwardPipelineLinearLightWithPssmSplitPriority( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, const WrapVec4 pssm_split, float priority); -extern WrapForwardPipelineLight WrapMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowType( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, const WrapVec4 pssm_split, float priority, int shadow_type); -extern WrapForwardPipelineLight WrapMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias( - const WrapMat4 world, const WrapColor diffuse, const WrapColor specular, const WrapVec4 pssm_split, float priority, int shadow_type, float shadow_bias); -extern WrapForwardPipelineLights WrapPrepareForwardPipelineLights(const WrapForwardPipelineLightList lights); -extern WrapForwardPipelineLights WrapPrepareForwardPipelineLightsWithSliceOfLights(size_t SliceOflightsToCSize, WrapForwardPipelineLight *SliceOflightsToCBuf); -extern WrapFont WrapLoadFontFromFile(const char *path); -extern WrapFont WrapLoadFontFromFileWithSize(const char *path, float size); -extern WrapFont WrapLoadFontFromFileWithSizeResolution(const char *path, float size, uint16_t resolution); -extern WrapFont WrapLoadFontFromFileWithSizeResolutionPadding(const char *path, float size, uint16_t resolution, int padding); -extern WrapFont WrapLoadFontFromFileWithSizeResolutionPaddingGlyphs(const char *path, float size, uint16_t resolution, int padding, const char *glyphs); -extern WrapFont WrapLoadFontFromAssets(const char *name); -extern WrapFont WrapLoadFontFromAssetsWithSize(const char *name, float size); -extern WrapFont WrapLoadFontFromAssetsWithSizeResolution(const char *name, float size, uint16_t resolution); -extern WrapFont WrapLoadFontFromAssetsWithSizeResolutionPadding(const char *name, float size, uint16_t resolution, int padding); -extern WrapFont WrapLoadFontFromAssetsWithSizeResolutionPaddingGlyphs(const char *name, float size, uint16_t resolution, int padding, const char *glyphs); -extern void WrapDrawText( - uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx); -extern void WrapDrawTextWithPos(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, const char *page_uniform, uint8_t page_stage, - const WrapMat4 mtx, WrapVec3 pos); -extern void WrapDrawTextWithPosHalignValign(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, const char *page_uniform, - uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign); -extern void WrapDrawTextWithPosHalignValignValuesTextures(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, - const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures); -extern void WrapDrawTextWithPosHalignValignValuesTexturesState(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, - const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapRenderState state); -extern void WrapDrawTextWithPosHalignValignValuesTexturesStateDepth(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, - const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, const WrapUniformSetValueList values, - const WrapUniformSetTextureList textures, WrapRenderState state, uint32_t depth); -extern void WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTextures(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, - const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf); -extern void WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState(uint16_t view_id, const WrapFont font, const char *text, WrapProgramHandle prg, - const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state); -extern void WrapDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const WrapFont font, const char *text, - WrapProgramHandle prg, const char *page_uniform, uint8_t page_stage, const WrapMat4 mtx, WrapVec3 pos, int halign, int valign, size_t SliceOfvaluesToCSize, - WrapUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, WrapUniformSetTexture *SliceOftexturesToCBuf, WrapRenderState state, +extern void HarfangDrawModelWithSliceOfValuesSliceOfTextures(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, + HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, const HarfangMat4 matrix); +extern void HarfangDrawModelWithSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + const HarfangMat4 matrix, HarfangRenderState render_state); +extern void HarfangDrawModelWithSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + const HarfangMat4 matrix, HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatrices(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + size_t SliceOfmatricesToCSize, HarfangMat4 *SliceOfmatricesToCBuf); +extern void HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderState(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + size_t SliceOfmatricesToCSize, HarfangMat4 *SliceOfmatricesToCBuf, HarfangRenderState render_state); +extern void HarfangDrawModelWithSliceOfValuesSliceOfTexturesSliceOfMatricesRenderStateDepth(uint16_t view_id, const HarfangModel mdl, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + size_t SliceOfmatricesToCSize, HarfangMat4 *SliceOfmatricesToCBuf, HarfangRenderState render_state, uint32_t depth); +extern void HarfangUpdateMaterialPipelineProgramVariant(HarfangMaterial mat, const HarfangPipelineResources resources); +extern void HarfangCreateMissingMaterialProgramValuesFromFile(HarfangMaterial mat, const HarfangPipelineResources resources); +extern void HarfangCreateMissingMaterialProgramValuesFromAssets(HarfangMaterial mat, const HarfangPipelineResources resources); +extern HarfangFrameBuffer HarfangCreateFrameBuffer(const HarfangTexture color, const HarfangTexture depth, const char *name); +extern HarfangFrameBuffer HarfangCreateFrameBufferWithColorFormatDepthFormatAaName(int color_format, int depth_format, int aa, const char *name); +extern HarfangFrameBuffer HarfangCreateFrameBufferWithWidthHeightColorFormatDepthFormatAaName( + int width, int height, int color_format, int depth_format, int aa, const char *name); +extern HarfangTexture HarfangGetColorTexture(HarfangFrameBuffer frameBuffer); +extern HarfangTexture HarfangGetDepthTexture(HarfangFrameBuffer frameBuffer); +extern void HarfangGetTextures(HarfangFrameBuffer framebuffer, HarfangTexture color, HarfangTexture depth); +extern void HarfangDestroyFrameBuffer(HarfangFrameBuffer frameBuffer); +extern void HarfangSetTransform(const HarfangMat4 mtx); +extern void HarfangDrawLines(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg); +extern void HarfangDrawLinesWithRenderState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, HarfangRenderState render_state); +extern void HarfangDrawLinesWithRenderStateDepth( + uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawLinesWithValuesTextures(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures); +extern void HarfangDrawLinesWithValuesTexturesRenderState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState render_state); +extern void HarfangDrawLinesWithValuesTexturesRenderStateDepth(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawLinesWithIdxVtxPrgValuesTextures(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures); +extern void HarfangDrawLinesWithIdxVtxPrgValuesTexturesRenderState(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, + HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState render_state); +extern void HarfangDrawLinesWithIdxVtxPrgValuesTexturesRenderStateDepth(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, + HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState render_state, uint32_t depth); -extern WrapRect WrapComputeTextRect(const WrapFont font, const char *text); -extern WrapRect WrapComputeTextRectWithXpos(const WrapFont font, const char *text, float xpos); -extern WrapRect WrapComputeTextRectWithXposYpos(const WrapFont font, const char *text, float xpos, float ypos); -extern float WrapComputeTextHeight(const WrapFont font, const char *text); -extern WrapJSON WrapLoadJsonFromFile(const char *path); -extern WrapJSON WrapLoadJsonFromAssets(const char *name); -extern bool WrapSaveJsonToFile(const WrapJSON js, const char *path); -extern bool WrapGetJsonString(const WrapJSON js, const char *key, const char **value); -extern bool WrapGetJsonBool(const WrapJSON js, const char *key, bool *value); -extern bool WrapGetJsonInt(const WrapJSON js, const char *key, int *value); -extern bool WrapGetJsonFloat(const WrapJSON js, const char *key, float *value); -extern void WrapSetJsonValue(WrapJSON js, const char *key, const char *value); -extern void WrapSetJsonValueWithValue(WrapJSON js, const char *key, bool value); -extern void WrapSetJsonValueWithIntValue(WrapJSON js, const char *key, int value); -extern void WrapSetJsonValueWithFloatValue(WrapJSON js, const char *key, float value); -extern WrapNode WrapCreateSceneRootNode(WrapScene scene, const char *name, const WrapMat4 mtx); -extern WrapNode WrapCreateCamera(WrapScene scene, const WrapMat4 mtx, float znear, float zfar); -extern WrapNode WrapCreateCameraWithFov(WrapScene scene, const WrapMat4 mtx, float znear, float zfar, float fov); -extern WrapNode WrapCreateOrthographicCamera(WrapScene scene, const WrapMat4 mtx, float znear, float zfar); -extern WrapNode WrapCreateOrthographicCameraWithSize(WrapScene scene, const WrapMat4 mtx, float znear, float zfar, float size); -extern WrapNode WrapCreatePointLight(WrapScene scene, const WrapMat4 mtx, float radius); -extern WrapNode WrapCreatePointLightWithDiffuse(WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse); -extern WrapNode WrapCreatePointLightWithDiffuseSpecular(WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, const WrapColor specular); -extern WrapNode WrapCreatePointLightWithDiffuseSpecularPriority( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapNode WrapCreatePointLightWithDiffuseSpecularPriorityShadowType( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapNode WrapCreatePointLightWithDiffuseSpecularPriorityShadowTypeShadowBias( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensity( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, float diffuse_intensity); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensitySpecular( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity( - WrapScene scene, const WrapMat4 mtx, float radius, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(WrapScene scene, const WrapMat4 mtx, float radius, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(WrapScene scene, const WrapMat4 mtx, float radius, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type); -extern WrapNode WrapCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(WrapScene scene, const WrapMat4 mtx, - float radius, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type, +extern void HarfangDrawLinesWithSliceOfValuesSliceOfTextures(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, + HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawLinesWithSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState render_state); +extern void HarfangDrawLinesWithSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, + const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderState(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, + const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, HarfangRenderState render_state); +extern void HarfangDrawLinesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesRenderStateDepth(uint16_t view_id, size_t SliceOfidxToCSize, + uint16_t *SliceOfidxToCBuf, const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, HarfangRenderState render_state, uint32_t depth); +extern void HarfangDrawTriangles(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg); +extern void HarfangDrawTrianglesWithState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, HarfangRenderState state); +extern void HarfangDrawTrianglesWithStateDepth(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawTrianglesWithValuesTextures(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures); +extern void HarfangDrawTrianglesWithValuesTexturesState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState state); +extern void HarfangDrawTrianglesWithValuesTexturesStateDepth(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawTrianglesWithIdxVtxPrgValuesTextures(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, HarfangProgramHandle prg, + const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures); +extern void HarfangDrawTrianglesWithIdxVtxPrgValuesTexturesState(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, + HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState state); +extern void HarfangDrawTrianglesWithIdxVtxPrgValuesTexturesStateDepth(uint16_t view_id, const HarfangUint16TList idx, const HarfangVertices vtx, + HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawTrianglesWithSliceOfValuesSliceOfTextures(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawTrianglesWithSliceOfValuesSliceOfTexturesState(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState state); +extern void HarfangDrawTrianglesWithSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const HarfangVertices vtx, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState state, uint32_t depth); +extern void HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTextures(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, + const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesState(uint16_t view_id, size_t SliceOfidxToCSize, uint16_t *SliceOfidxToCBuf, + const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, HarfangRenderState state); +extern void HarfangDrawTrianglesWithSliceOfIdxVtxPrgSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, size_t SliceOfidxToCSize, + uint16_t *SliceOfidxToCBuf, const HarfangVertices vtx, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, + size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawSprites(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, const HarfangVec3List pos, + const HarfangVec2 size, HarfangProgramHandle prg); +extern void HarfangDrawSpritesWithState(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, const HarfangVec3List pos, + const HarfangVec2 size, HarfangProgramHandle prg, HarfangRenderState state); +extern void HarfangDrawSpritesWithStateDepth(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, const HarfangVec3List pos, + const HarfangVec2 size, HarfangProgramHandle prg, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawSpritesWithValuesTextures(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, const HarfangVec3List pos, + const HarfangVec2 size, HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures); +extern void HarfangDrawSpritesWithValuesTexturesState(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, const HarfangVec3List pos, + const HarfangVec2 size, HarfangProgramHandle prg, const HarfangUniformSetValueList values, const HarfangUniformSetTextureList textures, + HarfangRenderState state); +extern void HarfangDrawSpritesWithValuesTexturesStateDepth(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, + const HarfangVec3List pos, const HarfangVec2 size, HarfangProgramHandle prg, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawSpritesWithSliceOfPos(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, size_t SliceOfposToCSize, + HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg); +extern void HarfangDrawSpritesWithSliceOfPosState(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, size_t SliceOfposToCSize, + HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg, HarfangRenderState state); +extern void HarfangDrawSpritesWithSliceOfPosStateDepth(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, size_t SliceOfposToCSize, + HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTextures(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, + size_t SliceOfposToCSize, HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, + HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesState(uint16_t view_id, const HarfangMat3 inv_view_R, HarfangVertexLayout vtx_layout, + size_t SliceOfposToCSize, HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg, size_t SliceOfvaluesToCSize, + HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, HarfangRenderState state); +extern void HarfangDrawSpritesWithSliceOfPosSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const HarfangMat3 inv_view_R, + HarfangVertexLayout vtx_layout, size_t SliceOfposToCSize, HarfangVec3 *SliceOfposToCBuf, const HarfangVec2 size, HarfangProgramHandle prg, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState state, uint32_t depth); +extern const HarfangPipelineInfo HarfangGetForwardPipelineInfo(); +extern HarfangForwardPipeline HarfangCreateForwardPipeline(); +extern HarfangForwardPipeline HarfangCreateForwardPipelineWithShadowMapResolution(int shadow_map_resolution); +extern HarfangForwardPipeline HarfangCreateForwardPipelineWithShadowMapResolutionSpot16bitShadowMap(int shadow_map_resolution, bool spot_16bit_shadow_map); +extern void HarfangDestroyForwardPipeline(HarfangForwardPipeline pipeline); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelinePointLight(const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelinePointLightWithRadius( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelinePointLightWithRadiusPriority( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float priority); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelinePointLightWithRadiusPriorityShadowType( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float priority, int shadow_type); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelinePointLightWithRadiusPriorityShadowTypeShadowBias( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float priority, int shadow_type, float shadow_bias); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLight(const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadius( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngle( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float inner_angle); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAngle( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float inner_angle, float outer_angle); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriority( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, float radius, float inner_angle, float outer_angle, float priority); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowType(const HarfangMat4 world, + const HarfangColor diffuse, const HarfangColor specular, float radius, float inner_angle, float outer_angle, float priority, int shadow_type); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineSpotLightWithRadiusInnerAngleOuterAnglePriorityShadowTypeShadowBias(const HarfangMat4 world, + const HarfangColor diffuse, const HarfangColor specular, float radius, float inner_angle, float outer_angle, float priority, int shadow_type, float shadow_bias); -extern WrapNode WrapCreateSpotLight(WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle); -extern WrapNode WrapCreateSpotLightWithDiffuse( - WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle, const WrapColor diffuse); -extern WrapNode WrapCreateSpotLightWithDiffuseSpecular( - WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, const WrapColor specular); -extern WrapNode WrapCreateSpotLightWithDiffuseSpecularPriority( - WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapNode WrapCreateSpotLightWithDiffuseSpecularPriorityShadowType(WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, - float outer_angle, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapNode WrapCreateSpotLightWithDiffuseSpecularPriorityShadowTypeShadowBias(WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, - float outer_angle, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type, float shadow_bias); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensity( - WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle, const WrapColor diffuse, float diffuse_intensity); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecular(WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, float outer_angle, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(WrapScene scene, const WrapMat4 mtx, float radius, float inner_angle, - float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(WrapScene scene, const WrapMat4 mtx, float radius, - float inner_angle, float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(WrapScene scene, const WrapMat4 mtx, float radius, - float inner_angle, float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, - int shadow_type); -extern WrapNode WrapCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(WrapScene scene, const WrapMat4 mtx, - float radius, float inner_angle, float outer_angle, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineLinearLight(const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineLinearLightWithPssmSplit( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, const HarfangVec4 pssm_split); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineLinearLightWithPssmSplitPriority( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, const HarfangVec4 pssm_split, float priority); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowType( + const HarfangMat4 world, const HarfangColor diffuse, const HarfangColor specular, const HarfangVec4 pssm_split, float priority, int shadow_type); +extern HarfangForwardPipelineLight HarfangMakeForwardPipelineLinearLightWithPssmSplitPriorityShadowTypeShadowBias(const HarfangMat4 world, + const HarfangColor diffuse, const HarfangColor specular, const HarfangVec4 pssm_split, float priority, int shadow_type, float shadow_bias); +extern HarfangForwardPipelineLights HarfangPrepareForwardPipelineLights(const HarfangForwardPipelineLightList lights); +extern HarfangForwardPipelineLights HarfangPrepareForwardPipelineLightsWithSliceOfLights( + size_t SliceOflightsToCSize, HarfangForwardPipelineLight *SliceOflightsToCBuf); +extern HarfangFont HarfangLoadFontFromFile(const char *path); +extern HarfangFont HarfangLoadFontFromFileWithSize(const char *path, float size); +extern HarfangFont HarfangLoadFontFromFileWithSizeResolution(const char *path, float size, uint16_t resolution); +extern HarfangFont HarfangLoadFontFromFileWithSizeResolutionPadding(const char *path, float size, uint16_t resolution, int padding); +extern HarfangFont HarfangLoadFontFromFileWithSizeResolutionPaddingGlyphs(const char *path, float size, uint16_t resolution, int padding, const char *glyphs); +extern HarfangFont HarfangLoadFontFromAssets(const char *name); +extern HarfangFont HarfangLoadFontFromAssetsWithSize(const char *name, float size); +extern HarfangFont HarfangLoadFontFromAssetsWithSizeResolution(const char *name, float size, uint16_t resolution); +extern HarfangFont HarfangLoadFontFromAssetsWithSizeResolutionPadding(const char *name, float size, uint16_t resolution, int padding); +extern HarfangFont HarfangLoadFontFromAssetsWithSizeResolutionPaddingGlyphs(const char *name, float size, uint16_t resolution, int padding, const char *glyphs); +extern void HarfangDrawText( + uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx); +extern void HarfangDrawTextWithPos(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, const char *page_uniform, + uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos); +extern void HarfangDrawTextWithPosHalignValign(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, const char *page_uniform, + uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign); +extern void HarfangDrawTextWithPosHalignValignValuesTextures(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, + const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures); +extern void HarfangDrawTextWithPosHalignValignValuesTexturesState(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, + const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, HarfangRenderState state); +extern void HarfangDrawTextWithPosHalignValignValuesTexturesStateDepth(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, + const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, const HarfangUniformSetValueList values, + const HarfangUniformSetTextureList textures, HarfangRenderState state, uint32_t depth); +extern void HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTextures(uint16_t view_id, const HarfangFont font, const char *text, HarfangProgramHandle prg, + const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, size_t SliceOfvaluesToCSize, + HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf); +extern void HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesState(uint16_t view_id, const HarfangFont font, const char *text, + HarfangProgramHandle prg, const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState state); +extern void HarfangDrawTextWithPosHalignValignSliceOfValuesSliceOfTexturesStateDepth(uint16_t view_id, const HarfangFont font, const char *text, + HarfangProgramHandle prg, const char *page_uniform, uint8_t page_stage, const HarfangMat4 mtx, HarfangVec3 pos, int halign, int valign, + size_t SliceOfvaluesToCSize, HarfangUniformSetValue *SliceOfvaluesToCBuf, size_t SliceOftexturesToCSize, HarfangUniformSetTexture *SliceOftexturesToCBuf, + HarfangRenderState state, uint32_t depth); +extern HarfangRect HarfangComputeTextRect(const HarfangFont font, const char *text); +extern HarfangRect HarfangComputeTextRectWithXpos(const HarfangFont font, const char *text, float xpos); +extern HarfangRect HarfangComputeTextRectWithXposYpos(const HarfangFont font, const char *text, float xpos, float ypos); +extern float HarfangComputeTextHeight(const HarfangFont font, const char *text); +extern HarfangJSON HarfangLoadJsonFromFile(const char *path); +extern HarfangJSON HarfangLoadJsonFromAssets(const char *name); +extern bool HarfangSaveJsonToFile(const HarfangJSON js, const char *path); +extern bool HarfangGetJsonString(const HarfangJSON js, const char *key, const char **value); +extern bool HarfangGetJsonBool(const HarfangJSON js, const char *key, bool *value); +extern bool HarfangGetJsonInt(const HarfangJSON js, const char *key, int *value); +extern bool HarfangGetJsonFloat(const HarfangJSON js, const char *key, float *value); +extern void HarfangSetJsonValue(HarfangJSON js, const char *key, const char *value); +extern void HarfangSetJsonValueWithValue(HarfangJSON js, const char *key, bool value); +extern void HarfangSetJsonValueWithIntValue(HarfangJSON js, const char *key, int value); +extern void HarfangSetJsonValueWithFloatValue(HarfangJSON js, const char *key, float value); +extern HarfangNode HarfangCreateSceneRootNode(HarfangScene scene, const char *name, const HarfangMat4 mtx); +extern HarfangNode HarfangCreateCamera(HarfangScene scene, const HarfangMat4 mtx, float znear, float zfar); +extern HarfangNode HarfangCreateCameraWithFov(HarfangScene scene, const HarfangMat4 mtx, float znear, float zfar, float fov); +extern HarfangNode HarfangCreateOrthographicCamera(HarfangScene scene, const HarfangMat4 mtx, float znear, float zfar); +extern HarfangNode HarfangCreateOrthographicCameraWithSize(HarfangScene scene, const HarfangMat4 mtx, float znear, float zfar, float size); +extern HarfangNode HarfangCreatePointLight(HarfangScene scene, const HarfangMat4 mtx, float radius); +extern HarfangNode HarfangCreatePointLightWithDiffuse(HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse); +extern HarfangNode HarfangCreatePointLightWithDiffuseSpecular( + HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangNode HarfangCreatePointLightWithDiffuseSpecularPriority( + HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangNode HarfangCreatePointLightWithDiffuseSpecularPriorityShadowType( + HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangNode HarfangCreatePointLightWithDiffuseSpecularPriorityShadowTypeShadowBias(HarfangScene scene, const HarfangMat4 mtx, float radius, + const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensity( + HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse, float diffuse_intensity); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecular( + HarfangScene scene, const HarfangMat4 mtx, float radius, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(HarfangScene scene, const HarfangMat4 mtx, float radius, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(HarfangScene scene, const HarfangMat4 mtx, float radius, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene scene, const HarfangMat4 mtx, + float radius, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type); +extern HarfangNode HarfangCreatePointLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(HarfangScene scene, + const HarfangMat4 mtx, float radius, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type, float shadow_bias); -extern WrapNode WrapCreateLinearLight(WrapScene scene, const WrapMat4 mtx); -extern WrapNode WrapCreateLinearLightWithDiffuse(WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse); -extern WrapNode WrapCreateLinearLightWithDiffuseSpecular(WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, const WrapColor specular); -extern WrapNode WrapCreateLinearLightWithDiffuseSpecularPriority( - WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, const WrapColor specular, float priority); -extern WrapNode WrapCreateLinearLightWithDiffuseSpecularPriorityShadowType( - WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, const WrapColor specular, float priority, int shadow_type); -extern WrapNode WrapCreateLinearLightWithDiffuseSpecularPriorityShadowTypeShadowBiasPssmSplit(WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, - const WrapColor specular, float priority, int shadow_type, float shadow_bias, const WrapVec4 pssm_split); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensity(WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, float diffuse_intensity); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecular( - WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity( - WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority( - WrapScene scene, const WrapMat4 mtx, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(WrapScene scene, const WrapMat4 mtx, - const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type); -extern WrapNode WrapCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(WrapScene scene, - const WrapMat4 mtx, const WrapColor diffuse, float diffuse_intensity, const WrapColor specular, float specular_intensity, float priority, int shadow_type, - float shadow_bias, const WrapVec4 pssm_split); -extern WrapNode WrapCreateObject(WrapScene scene, const WrapMat4 mtx, const WrapModelRef model, const WrapMaterialList materials); -extern WrapNode WrapCreateObjectWithSliceOfMaterials( - WrapScene scene, const WrapMat4 mtx, const WrapModelRef model, size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf); -extern WrapNode WrapCreateInstanceFromFile( - WrapScene scene, const WrapMat4 mtx, const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline, bool *success); -extern WrapNode WrapCreateInstanceFromFileWithFlags( - WrapScene scene, const WrapMat4 mtx, const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline, bool *success, uint32_t flags); -extern WrapNode WrapCreateInstanceFromAssets( - WrapScene scene, const WrapMat4 mtx, const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline, bool *success); -extern WrapNode WrapCreateInstanceFromAssetsWithFlags( - WrapScene scene, const WrapMat4 mtx, const char *name, WrapPipelineResources resources, const WrapPipelineInfo pipeline, bool *success, uint32_t flags); -extern WrapNode WrapCreateScript(WrapScene scene); -extern WrapNode WrapCreateScriptWithPath(WrapScene scene, const char *path); -extern WrapNode WrapCreatePhysicSphere(WrapScene scene, float radius, const WrapMat4 mtx, const WrapModelRef model_ref, WrapMaterialList materials); -extern WrapNode WrapCreatePhysicSphereWithMass( - WrapScene scene, float radius, const WrapMat4 mtx, const WrapModelRef model_ref, WrapMaterialList materials, float mass); -extern WrapNode WrapCreatePhysicSphereWithSliceOfMaterials( - WrapScene scene, float radius, const WrapMat4 mtx, const WrapModelRef model_ref, size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf); -extern WrapNode WrapCreatePhysicSphereWithSliceOfMaterialsMass(WrapScene scene, float radius, const WrapMat4 mtx, const WrapModelRef model_ref, - size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf, float mass); -extern WrapNode WrapCreatePhysicCube(WrapScene scene, const WrapVec3 size, const WrapMat4 mtx, const WrapModelRef model_ref, WrapMaterialList materials); -extern WrapNode WrapCreatePhysicCubeWithMass( - WrapScene scene, const WrapVec3 size, const WrapMat4 mtx, const WrapModelRef model_ref, WrapMaterialList materials, float mass); -extern WrapNode WrapCreatePhysicCubeWithSliceOfMaterials(WrapScene scene, const WrapVec3 size, const WrapMat4 mtx, const WrapModelRef model_ref, - size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf); -extern WrapNode WrapCreatePhysicCubeWithSliceOfMaterialsMass(WrapScene scene, const WrapVec3 size, const WrapMat4 mtx, const WrapModelRef model_ref, - size_t SliceOfmaterialsToCSize, WrapMaterial *SliceOfmaterialsToCBuf, float mass); -extern bool WrapSaveSceneJsonToFile(const char *path, const WrapScene scene, const WrapPipelineResources resources); -extern bool WrapSaveSceneJsonToFileWithFlags(const char *path, const WrapScene scene, const WrapPipelineResources resources, uint32_t flags); -extern bool WrapSaveSceneBinaryToFile(const char *path, const WrapScene scene, const WrapPipelineResources resources); -extern bool WrapSaveSceneBinaryToFileWithFlags(const char *path, const WrapScene scene, const WrapPipelineResources resources, uint32_t flags); -extern bool WrapSaveSceneBinaryToData(WrapData data, const WrapScene scene, const WrapPipelineResources resources); -extern bool WrapSaveSceneBinaryToDataWithFlags(WrapData data, const WrapScene scene, const WrapPipelineResources resources, uint32_t flags); -extern bool WrapLoadSceneBinaryFromFile(const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneBinaryFromFileWithFlags( - const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneBinaryFromAssets(const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneBinaryFromAssetsWithFlags( - const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneJsonFromFile(const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneJsonFromFileWithFlags( - const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneJsonFromAssets(const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneJsonFromAssetsWithFlags( - const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneBinaryFromDataAndFile( - const WrapData data, const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneBinaryFromDataAndFileWithFlags( - const WrapData data, const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneBinaryFromDataAndAssets( - const WrapData data, const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneBinaryFromDataAndAssetsWithFlags( - const WrapData data, const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneFromFile(const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneFromFileWithFlags(const char *path, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern bool WrapLoadSceneFromAssets(const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern bool WrapLoadSceneFromAssetsWithFlags( - const char *name, WrapScene scene, WrapPipelineResources resources, const WrapPipelineInfo pipeline, uint32_t flags); -extern WrapNodeList WrapDuplicateNodesFromFile(WrapScene scene, const WrapNodeList nodes, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNodeList WrapDuplicateNodesFromAssets(WrapScene scene, const WrapNodeList nodes, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNodeList WrapDuplicateNodesAndChildrenFromFile( - WrapScene scene, const WrapNodeList nodes, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNodeList WrapDuplicateNodesAndChildrenFromAssets( - WrapScene scene, const WrapNodeList nodes, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNode WrapDuplicateNodeFromFile(WrapScene scene, WrapNode node, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNode WrapDuplicateNodeFromAssets(WrapScene scene, WrapNode node, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNodeList WrapDuplicateNodeAndChildrenFromFile(WrapScene scene, WrapNode node, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapNodeList WrapDuplicateNodeAndChildrenFromAssets(WrapScene scene, WrapNode node, WrapPipelineResources resources, const WrapPipelineInfo pipeline); -extern WrapForwardPipelineFog WrapGetSceneForwardPipelineFog(const WrapScene scene); -extern WrapForwardPipelineLightList WrapGetSceneForwardPipelineLights(const WrapScene scene); -extern uint16_t WrapGetSceneForwardPipelinePassViewId(const WrapSceneForwardPipelinePassViewId views, int pass); -extern void WrapPrepareSceneForwardPipelineCommonRenderData(uint16_t *view_id, const WrapScene scene, WrapSceneForwardPipelineRenderData render_data, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, WrapSceneForwardPipelinePassViewId views); -extern void WrapPrepareSceneForwardPipelineCommonRenderDataWithDebugName(uint16_t *view_id, const WrapScene scene, - WrapSceneForwardPipelineRenderData render_data, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, - WrapSceneForwardPipelinePassViewId views, const char *debug_name); -extern void WrapPrepareSceneForwardPipelineViewDependentRenderData(uint16_t *view_id, const WrapViewState view_state, const WrapScene scene, - WrapSceneForwardPipelineRenderData render_data, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, - WrapSceneForwardPipelinePassViewId views); -extern void WrapPrepareSceneForwardPipelineViewDependentRenderDataWithDebugName(uint16_t *view_id, const WrapViewState view_state, const WrapScene scene, - WrapSceneForwardPipelineRenderData render_data, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, - WrapSceneForwardPipelinePassViewId views, const char *debug_name); -extern void WrapSubmitSceneToForwardPipeline(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, const WrapPipelineResources resources, - const WrapSceneForwardPipelinePassViewId views); -extern void WrapSubmitSceneToForwardPipelineWithFrameBuffer(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, const WrapPipelineResources resources, - const WrapSceneForwardPipelinePassViewId views, WrapFrameBufferHandle frame_buffer); -extern void WrapSubmitSceneToForwardPipelineWithFrameBufferDebugName(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, - const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, WrapFrameBufferHandle frame_buffer, const char *debug_name); -extern void WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrame(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, - const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, const WrapForwardPipelineAAA aaa, - const WrapForwardPipelineAAAConfig aaa_config, int frame); -extern void WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, - const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, const WrapForwardPipelineAAA aaa, - const WrapForwardPipelineAAAConfig aaa_config, int frame, WrapFrameBufferHandle frame_buffer); -extern void WrapSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapSceneForwardPipelineRenderData render_data, - const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, const WrapForwardPipelineAAA aaa, - const WrapForwardPipelineAAAConfig aaa_config, int frame, WrapFrameBufferHandle frame_buffer, const char *debug_name); -extern void WrapSubmitSceneToPipeline(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views); -extern void WrapSubmitSceneToPipelineWithFb(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, WrapFrameBufferHandle fb); -extern void WrapSubmitSceneToPipelineWithFbDebugName(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, WrapFrameBufferHandle fb, - const char *debug_name); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontal(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, bool fov_axis_is_horizontal, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontalFb(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, bool fov_axis_is_horizontal, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, WrapFrameBufferHandle fb); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontalFbDebugName(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - bool fov_axis_is_horizontal, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, - WrapFrameBufferHandle fb, const char *debug_name); -extern void WrapSubmitSceneToPipelineWithAaaAaaConfigFrame(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, const WrapViewState view_state, - const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, WrapForwardPipelineAAA aaa, - const WrapForwardPipelineAAAConfig aaa_config, int frame); -extern void WrapSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, - WrapForwardPipelineAAA aaa, const WrapForwardPipelineAAAConfig aaa_config, int frame, WrapFrameBufferHandle frame_buffer); -extern void WrapSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - const WrapViewState view_state, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, - WrapForwardPipelineAAA aaa, const WrapForwardPipelineAAAConfig aaa_config, int frame, WrapFrameBufferHandle frame_buffer, const char *debug_name); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrame(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - bool fov_axis_is_horizontal, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, - WrapForwardPipelineAAA aaa, const WrapForwardPipelineAAAConfig aaa_config, int frame); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const WrapScene scene, const WrapIntRect rect, - bool fov_axis_is_horizontal, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, const WrapSceneForwardPipelinePassViewId views, - WrapForwardPipelineAAA aaa, const WrapForwardPipelineAAAConfig aaa_config, int frame, WrapFrameBufferHandle frame_buffer); -extern void WrapSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const WrapScene scene, - const WrapIntRect rect, bool fov_axis_is_horizontal, const WrapForwardPipeline pipeline, const WrapPipelineResources resources, - const WrapSceneForwardPipelinePassViewId views, WrapForwardPipelineAAA aaa, const WrapForwardPipelineAAAConfig aaa_config, int frame, - WrapFrameBufferHandle frame_buffer, const char *debug_name); -extern bool WrapLoadForwardPipelineAAAConfigFromFile(const char *path, WrapForwardPipelineAAAConfig config); -extern bool WrapLoadForwardPipelineAAAConfigFromAssets(const char *path, WrapForwardPipelineAAAConfig config); -extern bool WrapSaveForwardPipelineAAAConfigToFile(const char *path, const WrapForwardPipelineAAAConfig config); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromFile(const char *path, const WrapForwardPipelineAAAConfig config); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromFileWithSsgiRatio(const char *path, const WrapForwardPipelineAAAConfig config, int ssgi_ratio); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromFileWithSsgiRatioSsrRatio( - const char *path, const WrapForwardPipelineAAAConfig config, int ssgi_ratio, int ssr_ratio); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromAssets(const char *path, const WrapForwardPipelineAAAConfig config); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromAssetsWithSsgiRatio(const char *path, const WrapForwardPipelineAAAConfig config, int ssgi_ratio); -extern WrapForwardPipelineAAA WrapCreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio( - const char *path, const WrapForwardPipelineAAAConfig config, int ssgi_ratio, int ssr_ratio); -extern void WrapDestroyForwardPipelineAAA(WrapForwardPipelineAAA pipeline); -extern void WrapDebugSceneExplorer(WrapScene scene, const char *name); -extern WrapNodeList WrapGetNodesInContact(const WrapScene scene, const WrapNode with, const WrapNodePairContacts node_pair_contacts); -extern WrapContactList WrapGetNodePairContacts(const WrapNode first, const WrapNode second, const WrapNodePairContacts node_pair_contacts); -extern void WrapSceneSyncToSystemsFromFile(WrapScene scene, WrapSceneLuaVM vm); -extern void WrapSceneSyncToSystemsFromFileWithPhysics(WrapScene scene, WrapSceneBullet3Physics physics); -extern void WrapSceneSyncToSystemsFromFileWithPhysicsVm(WrapScene scene, WrapSceneBullet3Physics physics, WrapSceneLuaVM vm); -extern void WrapSceneSyncToSystemsFromAssets(WrapScene scene, WrapSceneLuaVM vm); -extern void WrapSceneSyncToSystemsFromAssetsWithPhysics(WrapScene scene, WrapSceneBullet3Physics physics); -extern void WrapSceneSyncToSystemsFromAssetsWithPhysicsVm(WrapScene scene, WrapSceneBullet3Physics physics, WrapSceneLuaVM vm); -extern void WrapSceneUpdateSystems(WrapScene scene, WrapSceneClocks clocks, int64_t dt); -extern void WrapSceneUpdateSystemsWithVm(WrapScene scene, WrapSceneClocks clocks, int64_t dt, WrapSceneLuaVM vm); -extern void WrapSceneUpdateSystemsWithPhysicsStepMaxPhysicsStep( - WrapScene scene, WrapSceneClocks clocks, int64_t dt, WrapSceneBullet3Physics physics, int64_t step, int max_physics_step); -extern void WrapSceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm( - WrapScene scene, WrapSceneClocks clocks, int64_t dt, WrapSceneBullet3Physics physics, int64_t step, int max_physics_step, WrapSceneLuaVM vm); -extern void WrapSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep( - WrapScene scene, WrapSceneClocks clocks, int64_t dt, WrapSceneBullet3Physics physics, WrapNodePairContacts contacts, int64_t step, int max_physics_step); -extern void WrapSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm(WrapScene scene, WrapSceneClocks clocks, int64_t dt, WrapSceneBullet3Physics physics, - WrapNodePairContacts contacts, int64_t step, int max_physics_step, WrapSceneLuaVM vm); -extern size_t WrapSceneGarbageCollectSystems(WrapScene scene); -extern size_t WrapSceneGarbageCollectSystemsWithVm(WrapScene scene, WrapSceneLuaVM vm); -extern size_t WrapSceneGarbageCollectSystemsWithPhysics(WrapScene scene, WrapSceneBullet3Physics physics); -extern size_t WrapSceneGarbageCollectSystemsWithPhysicsVm(WrapScene scene, WrapSceneBullet3Physics physics, WrapSceneLuaVM vm); -extern void WrapSceneClearSystems(WrapScene scene); -extern void WrapSceneClearSystemsWithVm(WrapScene scene, WrapSceneLuaVM vm); -extern void WrapSceneClearSystemsWithPhysics(WrapScene scene, WrapSceneBullet3Physics physics); -extern void WrapSceneClearSystemsWithPhysicsVm(WrapScene scene, WrapSceneBullet3Physics physics, WrapSceneLuaVM vm); -extern void WrapInputInit(); -extern void WrapInputShutdown(); -extern WrapMouseState WrapReadMouse(); -extern WrapMouseState WrapReadMouseWithName(const char *name); -extern WrapStringList WrapGetMouseNames(); -extern WrapKeyboardState WrapReadKeyboard(); -extern WrapKeyboardState WrapReadKeyboardWithName(const char *name); -extern const char *WrapGetKeyName(int key); -extern const char *WrapGetKeyNameWithName(int key, const char *name); -extern WrapStringList WrapGetKeyboardNames(); -extern WrapGamepadState WrapReadGamepad(); -extern WrapGamepadState WrapReadGamepadWithName(const char *name); -extern WrapStringList WrapGetGamepadNames(); -extern WrapJoystickState WrapReadJoystick(); -extern WrapJoystickState WrapReadJoystickWithName(const char *name); -extern WrapStringList WrapGetJoystickNames(); -extern WrapStringList WrapGetJoystickDeviceNames(); -extern WrapVRControllerState WrapReadVRController(); -extern WrapVRControllerState WrapReadVRControllerWithName(const char *name); -extern void WrapSendVRControllerHapticPulse(int64_t duration); -extern void WrapSendVRControllerHapticPulseWithName(int64_t duration, const char *name); -extern WrapStringList WrapGetVRControllerNames(); -extern WrapVRGenericTrackerState WrapReadVRGenericTracker(); -extern WrapVRGenericTrackerState WrapReadVRGenericTrackerWithName(const char *name); -extern WrapStringList WrapGetVRGenericTrackerNames(); -extern void WrapImGuiNewFrame(); -extern void WrapImGuiRender(); -extern bool WrapImGuiBegin(const char *name); -extern bool WrapImGuiBeginWithOpenFlags(const char *name, bool *open, int flags); -extern void WrapImGuiEnd(); -extern bool WrapImGuiBeginChild(const char *id); -extern bool WrapImGuiBeginChildWithSize(const char *id, const WrapVec2 size); -extern bool WrapImGuiBeginChildWithSizeBorder(const char *id, const WrapVec2 size, bool border); -extern bool WrapImGuiBeginChildWithSizeBorderFlags(const char *id, const WrapVec2 size, bool border, int flags); -extern void WrapImGuiEndChild(); -extern WrapVec2 WrapImGuiGetContentRegionMax(); -extern WrapVec2 WrapImGuiGetContentRegionAvail(); -extern float WrapImGuiGetContentRegionAvailWidth(); -extern WrapVec2 WrapImGuiGetWindowContentRegionMin(); -extern WrapVec2 WrapImGuiGetWindowContentRegionMax(); -extern float WrapImGuiGetWindowContentRegionWidth(); -extern WrapImDrawList WrapImGuiGetWindowDrawList(); -extern WrapVec2 WrapImGuiGetWindowPos(); -extern WrapVec2 WrapImGuiGetWindowSize(); -extern float WrapImGuiGetWindowWidth(); -extern float WrapImGuiGetWindowHeight(); -extern bool WrapImGuiIsWindowCollapsed(); -extern void WrapImGuiSetWindowFontScale(float scale); -extern void WrapImGuiSetNextWindowPos(const WrapVec2 pos); -extern void WrapImGuiSetNextWindowPosWithCondition(const WrapVec2 pos, int condition); -extern void WrapImGuiSetNextWindowPosCenter(); -extern void WrapImGuiSetNextWindowPosCenterWithCondition(int condition); -extern void WrapImGuiSetNextWindowSize(const WrapVec2 size); -extern void WrapImGuiSetNextWindowSizeWithCondition(const WrapVec2 size, int condition); -extern void WrapImGuiSetNextWindowSizeConstraints(const WrapVec2 size_min, const WrapVec2 size_max); -extern void WrapImGuiSetNextWindowContentSize(const WrapVec2 size); -extern void WrapImGuiSetNextWindowContentWidth(float width); -extern void WrapImGuiSetNextWindowCollapsed(bool collapsed, int condition); -extern void WrapImGuiSetNextWindowFocus(); -extern void WrapImGuiSetWindowPos(const char *name, const WrapVec2 pos); -extern void WrapImGuiSetWindowPosWithCondition(const char *name, const WrapVec2 pos, int condition); -extern void WrapImGuiSetWindowSize(const char *name, const WrapVec2 size); -extern void WrapImGuiSetWindowSizeWithCondition(const char *name, const WrapVec2 size, int condition); -extern void WrapImGuiSetWindowCollapsed(const char *name, bool collapsed); -extern void WrapImGuiSetWindowCollapsedWithCondition(const char *name, bool collapsed, int condition); -extern void WrapImGuiSetWindowFocus(const char *name); -extern float WrapImGuiGetScrollX(); -extern float WrapImGuiGetScrollY(); -extern float WrapImGuiGetScrollMaxX(); -extern float WrapImGuiGetScrollMaxY(); -extern void WrapImGuiSetScrollX(float scroll_x); -extern void WrapImGuiSetScrollY(float scroll_y); -extern void WrapImGuiSetScrollHereY(); -extern void WrapImGuiSetScrollHereYWithCenterYRatio(float center_y_ratio); -extern void WrapImGuiSetScrollFromPosY(float pos_y); -extern void WrapImGuiSetScrollFromPosYWithCenterYRatio(float pos_y, float center_y_ratio); -extern void WrapImGuiSetKeyboardFocusHere(); -extern void WrapImGuiSetKeyboardFocusHereWithOffset(int offset); -extern void WrapImGuiPushFont(WrapImFont font); -extern void WrapImGuiPopFont(); -extern void WrapImGuiPushStyleColor(int idx, const WrapColor color); -extern void WrapImGuiPopStyleColor(); -extern void WrapImGuiPopStyleColorWithCount(int count); -extern void WrapImGuiPushStyleVar(int idx, float value); -extern void WrapImGuiPushStyleVarWithValue(int idx, const WrapVec2 value); -extern void WrapImGuiPopStyleVar(); -extern void WrapImGuiPopStyleVarWithCount(int count); -extern WrapImFont WrapImGuiGetFont(); -extern float WrapImGuiGetFontSize(); -extern WrapVec2 WrapImGuiGetFontTexUvWhitePixel(); -extern uint32_t WrapImGuiGetColorU32(int idx); -extern uint32_t WrapImGuiGetColorU32WithAlphaMultiplier(int idx, float alpha_multiplier); -extern uint32_t WrapImGuiGetColorU32WithColor(const WrapColor color); -extern void WrapImGuiPushItemWidth(float item_width); -extern void WrapImGuiPopItemWidth(); -extern float WrapImGuiCalcItemWidth(); -extern void WrapImGuiPushTextWrapPos(); -extern void WrapImGuiPushTextWrapPosWithWrapPosX(float wrap_pos_x); -extern void WrapImGuiPopTextWrapPos(); -extern void WrapImGuiPushAllowKeyboardFocus(bool v); -extern void WrapImGuiPopAllowKeyboardFocus(); -extern void WrapImGuiPushButtonRepeat(bool repeat); -extern void WrapImGuiPopButtonRepeat(); -extern void WrapImGuiSeparator(); -extern void WrapImGuiSameLine(); -extern void WrapImGuiSameLineWithPosX(float pos_x); -extern void WrapImGuiSameLineWithPosXSpacingW(float pos_x, float spacing_w); -extern void WrapImGuiNewLine(); -extern void WrapImGuiSpacing(); -extern void WrapImGuiDummy(const WrapVec2 size); -extern void WrapImGuiIndent(); -extern void WrapImGuiIndentWithWidth(float width); -extern void WrapImGuiUnindent(); -extern void WrapImGuiUnindentWithWidth(float width); -extern void WrapImGuiBeginGroup(); -extern void WrapImGuiEndGroup(); -extern WrapVec2 WrapImGuiGetCursorPos(); -extern float WrapImGuiGetCursorPosX(); -extern float WrapImGuiGetCursorPosY(); -extern void WrapImGuiSetCursorPos(const WrapVec2 local_pos); -extern void WrapImGuiSetCursorPosX(float x); -extern void WrapImGuiSetCursorPosY(float y); -extern WrapVec2 WrapImGuiGetCursorStartPos(); -extern WrapVec2 WrapImGuiGetCursorScreenPos(); -extern void WrapImGuiSetCursorScreenPos(const WrapVec2 pos); -extern void WrapImGuiAlignTextToFramePadding(); -extern float WrapImGuiGetTextLineHeight(); -extern float WrapImGuiGetTextLineHeightWithSpacing(); -extern float WrapImGuiGetFrameHeightWithSpacing(); -extern void WrapImGuiColumns(); -extern void WrapImGuiColumnsWithCount(int count); -extern void WrapImGuiColumnsWithCountId(int count, const char *id); -extern void WrapImGuiColumnsWithCountIdWithBorder(int count, const char *id, bool with_border); -extern void WrapImGuiNextColumn(); -extern int WrapImGuiGetColumnIndex(); -extern float WrapImGuiGetColumnOffset(); -extern float WrapImGuiGetColumnOffsetWithColumnIndex(int column_index); -extern void WrapImGuiSetColumnOffset(int column_index, float offset_x); -extern float WrapImGuiGetColumnWidth(); -extern float WrapImGuiGetColumnWidthWithColumnIndex(int column_index); -extern void WrapImGuiSetColumnWidth(int column_index, float width); -extern int WrapImGuiGetColumnsCount(); -extern void WrapImGuiPushID(const char *id); -extern void WrapImGuiPushIDWithId(int id); -extern void WrapImGuiPopID(); -extern unsigned int WrapImGuiGetID(const char *id); -extern void WrapImGuiText(const char *text); -extern void WrapImGuiTextColored(const WrapColor color, const char *text); -extern void WrapImGuiTextDisabled(const char *text); -extern void WrapImGuiTextWrapped(const char *text); -extern void WrapImGuiTextUnformatted(const char *text); -extern void WrapImGuiLabelText(const char *label, const char *text); -extern void WrapImGuiBullet(); -extern void WrapImGuiBulletText(const char *label); -extern bool WrapImGuiButton(const char *label); -extern bool WrapImGuiButtonWithSize(const char *label, const WrapVec2 size); -extern bool WrapImGuiSmallButton(const char *label); -extern bool WrapImGuiInvisibleButton(const char *text, const WrapVec2 size); -extern void WrapImGuiImage(const WrapTexture tex, const WrapVec2 size); -extern void WrapImGuiImageWithUv0(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0); -extern void WrapImGuiImageWithUv0Uv1(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1); -extern void WrapImGuiImageWithUv0Uv1TintCol(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1, const WrapColor tint_col); -extern void WrapImGuiImageWithUv0Uv1TintColBorderCol( - const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1, const WrapColor tint_col, const WrapColor border_col); -extern bool WrapImGuiImageButton(const WrapTexture tex, const WrapVec2 size); -extern bool WrapImGuiImageButtonWithUv0(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0); -extern bool WrapImGuiImageButtonWithUv0Uv1(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1); -extern bool WrapImGuiImageButtonWithUv0Uv1FramePadding(const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1, int frame_padding); -extern bool WrapImGuiImageButtonWithUv0Uv1FramePaddingBgCol( - const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1, int frame_padding, const WrapColor bg_col); -extern bool WrapImGuiImageButtonWithUv0Uv1FramePaddingBgColTintCol( - const WrapTexture tex, const WrapVec2 size, const WrapVec2 uv0, const WrapVec2 uv1, int frame_padding, const WrapColor bg_col, const WrapColor tint_col); -extern bool WrapImGuiInputText(const char *label, const char *text, size_t max_size, const char **out); -extern bool WrapImGuiInputTextWithFlags(const char *label, const char *text, size_t max_size, const char **out, int flags); -extern bool WrapImGuiCheckbox(const char *label, bool *value); -extern bool WrapImGuiRadioButton(const char *label, bool active); -extern bool WrapImGuiRadioButtonWithVVButton(const char *label, int *v, int v_button); -extern bool WrapImGuiBeginCombo(const char *label, const char *preview_value); -extern bool WrapImGuiBeginComboWithFlags(const char *label, const char *preview_value, int flags); -extern void WrapImGuiEndCombo(); -extern bool WrapImGuiCombo(const char *label, int *current_item, const WrapStringList items); -extern bool WrapImGuiComboWithHeightInItems(const char *label, int *current_item, const WrapStringList items, int height_in_items); -extern bool WrapImGuiComboWithSliceOfItems(const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf); -extern bool WrapImGuiComboWithSliceOfItemsHeightInItems( +extern HarfangNode HarfangCreateSpotLight(HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, float outer_angle); +extern HarfangNode HarfangCreateSpotLightWithDiffuse( + HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse); +extern HarfangNode HarfangCreateSpotLightWithDiffuseSpecular( + HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangNode HarfangCreateSpotLightWithDiffuseSpecularPriority(HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, + float outer_angle, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangNode HarfangCreateSpotLightWithDiffuseSpecularPriorityShadowType(HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, + float outer_angle, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangNode HarfangCreateSpotLightWithDiffuseSpecularPriorityShadowTypeShadowBias(HarfangScene scene, const HarfangMat4 mtx, float radius, + float inner_angle, float outer_angle, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensity( + HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecular(HarfangScene scene, const HarfangMat4 mtx, float radius, float inner_angle, + float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity(HarfangScene scene, const HarfangMat4 mtx, float radius, + float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(HarfangScene scene, const HarfangMat4 mtx, float radius, + float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, + float priority); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene scene, const HarfangMat4 mtx, + float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, + float specular_intensity, float priority, int shadow_type); +extern HarfangNode HarfangCreateSpotLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBias(HarfangScene scene, + const HarfangMat4 mtx, float radius, float inner_angle, float outer_angle, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, + float specular_intensity, float priority, int shadow_type, float shadow_bias); +extern HarfangNode HarfangCreateLinearLight(HarfangScene scene, const HarfangMat4 mtx); +extern HarfangNode HarfangCreateLinearLightWithDiffuse(HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse); +extern HarfangNode HarfangCreateLinearLightWithDiffuseSpecular( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, const HarfangColor specular); +extern HarfangNode HarfangCreateLinearLightWithDiffuseSpecularPriority( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, const HarfangColor specular, float priority); +extern HarfangNode HarfangCreateLinearLightWithDiffuseSpecularPriorityShadowType( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type); +extern HarfangNode HarfangCreateLinearLightWithDiffuseSpecularPriorityShadowTypeShadowBiasPssmSplit(HarfangScene scene, const HarfangMat4 mtx, + const HarfangColor diffuse, const HarfangColor specular, float priority, int shadow_type, float shadow_bias, const HarfangVec4 pssm_split); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensity( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, float diffuse_intensity); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecular( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensity( + HarfangScene scene, const HarfangMat4 mtx, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriority(HarfangScene scene, const HarfangMat4 mtx, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowType(HarfangScene scene, const HarfangMat4 mtx, + const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, int shadow_type); +extern HarfangNode HarfangCreateLinearLightWithDiffuseDiffuseIntensitySpecularSpecularIntensityPriorityShadowTypeShadowBiasPssmSplit(HarfangScene scene, + const HarfangMat4 mtx, const HarfangColor diffuse, float diffuse_intensity, const HarfangColor specular, float specular_intensity, float priority, + int shadow_type, float shadow_bias, const HarfangVec4 pssm_split); +extern HarfangNode HarfangCreateObject(HarfangScene scene, const HarfangMat4 mtx, const HarfangModelRef model, const HarfangMaterialList materials); +extern HarfangNode HarfangCreateObjectWithSliceOfMaterials( + HarfangScene scene, const HarfangMat4 mtx, const HarfangModelRef model, size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf); +extern HarfangNode HarfangCreateInstanceFromFile( + HarfangScene scene, const HarfangMat4 mtx, const char *name, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, bool *success); +extern HarfangNode HarfangCreateInstanceFromFileWithFlags(HarfangScene scene, const HarfangMat4 mtx, const char *name, HarfangPipelineResources resources, + const HarfangPipelineInfo pipeline, bool *success, uint32_t flags); +extern HarfangNode HarfangCreateInstanceFromAssets( + HarfangScene scene, const HarfangMat4 mtx, const char *name, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, bool *success); +extern HarfangNode HarfangCreateInstanceFromAssetsWithFlags(HarfangScene scene, const HarfangMat4 mtx, const char *name, HarfangPipelineResources resources, + const HarfangPipelineInfo pipeline, bool *success, uint32_t flags); +extern HarfangNode HarfangCreateScript(HarfangScene scene); +extern HarfangNode HarfangCreateScriptWithPath(HarfangScene scene, const char *path); +extern HarfangNode HarfangCreatePhysicSphere( + HarfangScene scene, float radius, const HarfangMat4 mtx, const HarfangModelRef model_ref, HarfangMaterialList materials); +extern HarfangNode HarfangCreatePhysicSphereWithMass( + HarfangScene scene, float radius, const HarfangMat4 mtx, const HarfangModelRef model_ref, HarfangMaterialList materials, float mass); +extern HarfangNode HarfangCreatePhysicSphereWithSliceOfMaterials(HarfangScene scene, float radius, const HarfangMat4 mtx, const HarfangModelRef model_ref, + size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf); +extern HarfangNode HarfangCreatePhysicSphereWithSliceOfMaterialsMass(HarfangScene scene, float radius, const HarfangMat4 mtx, const HarfangModelRef model_ref, + size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf, float mass); +extern HarfangNode HarfangCreatePhysicCube( + HarfangScene scene, const HarfangVec3 size, const HarfangMat4 mtx, const HarfangModelRef model_ref, HarfangMaterialList materials); +extern HarfangNode HarfangCreatePhysicCubeWithMass( + HarfangScene scene, const HarfangVec3 size, const HarfangMat4 mtx, const HarfangModelRef model_ref, HarfangMaterialList materials, float mass); +extern HarfangNode HarfangCreatePhysicCubeWithSliceOfMaterials(HarfangScene scene, const HarfangVec3 size, const HarfangMat4 mtx, + const HarfangModelRef model_ref, size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf); +extern HarfangNode HarfangCreatePhysicCubeWithSliceOfMaterialsMass(HarfangScene scene, const HarfangVec3 size, const HarfangMat4 mtx, + const HarfangModelRef model_ref, size_t SliceOfmaterialsToCSize, HarfangMaterial *SliceOfmaterialsToCBuf, float mass); +extern bool HarfangSaveSceneJsonToFile(const char *path, const HarfangScene scene, const HarfangPipelineResources resources); +extern bool HarfangSaveSceneJsonToFileWithFlags(const char *path, const HarfangScene scene, const HarfangPipelineResources resources, uint32_t flags); +extern bool HarfangSaveSceneBinaryToFile(const char *path, const HarfangScene scene, const HarfangPipelineResources resources); +extern bool HarfangSaveSceneBinaryToFileWithFlags(const char *path, const HarfangScene scene, const HarfangPipelineResources resources, uint32_t flags); +extern bool HarfangSaveSceneBinaryToData(HarfangData data, const HarfangScene scene, const HarfangPipelineResources resources); +extern bool HarfangSaveSceneBinaryToDataWithFlags(HarfangData data, const HarfangScene scene, const HarfangPipelineResources resources, uint32_t flags); +extern bool HarfangLoadSceneBinaryFromFile(const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneBinaryFromFileWithFlags( + const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneBinaryFromAssets(const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneBinaryFromAssetsWithFlags( + const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneJsonFromFile(const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneJsonFromFileWithFlags( + const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneJsonFromAssets(const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneJsonFromAssetsWithFlags( + const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneBinaryFromDataAndFile( + const HarfangData data, const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneBinaryFromDataAndFileWithFlags( + const HarfangData data, const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneBinaryFromDataAndAssets( + const HarfangData data, const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneBinaryFromDataAndAssetsWithFlags( + const HarfangData data, const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneFromFile(const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneFromFileWithFlags( + const char *path, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern bool HarfangLoadSceneFromAssets(const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern bool HarfangLoadSceneFromAssetsWithFlags( + const char *name, HarfangScene scene, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline, uint32_t flags); +extern HarfangNodeList HarfangDuplicateNodesFromFile( + HarfangScene scene, const HarfangNodeList nodes, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNodeList HarfangDuplicateNodesFromAssets( + HarfangScene scene, const HarfangNodeList nodes, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNodeList HarfangDuplicateNodesAndChildrenFromFile( + HarfangScene scene, const HarfangNodeList nodes, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNodeList HarfangDuplicateNodesAndChildrenFromAssets( + HarfangScene scene, const HarfangNodeList nodes, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNode HarfangDuplicateNodeFromFile(HarfangScene scene, HarfangNode node, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNode HarfangDuplicateNodeFromAssets(HarfangScene scene, HarfangNode node, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNodeList HarfangDuplicateNodeAndChildrenFromFile( + HarfangScene scene, HarfangNode node, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangNodeList HarfangDuplicateNodeAndChildrenFromAssets( + HarfangScene scene, HarfangNode node, HarfangPipelineResources resources, const HarfangPipelineInfo pipeline); +extern HarfangForwardPipelineFog HarfangGetSceneForwardPipelineFog(const HarfangScene scene); +extern HarfangForwardPipelineLightList HarfangGetSceneForwardPipelineLights(const HarfangScene scene); +extern uint16_t HarfangGetSceneForwardPipelinePassViewId(const HarfangSceneForwardPipelinePassViewId views, int pass); +extern void HarfangPrepareSceneForwardPipelineCommonRenderData(uint16_t *view_id, const HarfangScene scene, HarfangSceneForwardPipelineRenderData render_data, + const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, HarfangSceneForwardPipelinePassViewId views); +extern void HarfangPrepareSceneForwardPipelineCommonRenderDataWithDebugName(uint16_t *view_id, const HarfangScene scene, + HarfangSceneForwardPipelineRenderData render_data, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + HarfangSceneForwardPipelinePassViewId views, const char *debug_name); +extern void HarfangPrepareSceneForwardPipelineViewDependentRenderData(uint16_t *view_id, const HarfangViewState view_state, const HarfangScene scene, + HarfangSceneForwardPipelineRenderData render_data, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + HarfangSceneForwardPipelinePassViewId views); +extern void HarfangPrepareSceneForwardPipelineViewDependentRenderDataWithDebugName(uint16_t *view_id, const HarfangViewState view_state, + const HarfangScene scene, HarfangSceneForwardPipelineRenderData render_data, const HarfangForwardPipeline pipeline, + const HarfangPipelineResources resources, HarfangSceneForwardPipelinePassViewId views, const char *debug_name); +extern void HarfangSubmitSceneToForwardPipeline(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, const HarfangViewState view_state, + const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views); +extern void HarfangSubmitSceneToForwardPipelineWithFrameBuffer(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, + const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, HarfangFrameBufferHandle frame_buffer); +extern void HarfangSubmitSceneToForwardPipelineWithFrameBufferDebugName(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, + const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, HarfangFrameBufferHandle frame_buffer, const char *debug_name); +extern void HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrame(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, + const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, const HarfangForwardPipelineAAA aaa, + const HarfangForwardPipelineAAAConfig aaa_config, int frame); +extern void HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, + const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, const HarfangForwardPipelineAAA aaa, + const HarfangForwardPipelineAAAConfig aaa_config, int frame, HarfangFrameBufferHandle frame_buffer); +extern void HarfangSubmitSceneToForwardPipelineWithAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangSceneForwardPipelineRenderData render_data, + const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, const HarfangForwardPipelineAAA aaa, + const HarfangForwardPipelineAAAConfig aaa_config, int frame, HarfangFrameBufferHandle frame_buffer, const char *debug_name); +extern void HarfangSubmitSceneToPipeline(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, const HarfangViewState view_state, + const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views); +extern void HarfangSubmitSceneToPipelineWithFb(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, const HarfangViewState view_state, + const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, const HarfangSceneForwardPipelinePassViewId views, + HarfangFrameBufferHandle fb); +extern void HarfangSubmitSceneToPipelineWithFbDebugName(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangFrameBufferHandle fb, const char *debug_name); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontal(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalFb(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangFrameBufferHandle fb); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalFbDebugName(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangFrameBufferHandle fb, const char *debug_name); +extern void HarfangSubmitSceneToPipelineWithAaaAaaConfigFrame(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame); +extern void HarfangSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame, + HarfangFrameBufferHandle frame_buffer); +extern void HarfangSubmitSceneToPipelineWithAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + const HarfangViewState view_state, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame, + HarfangFrameBufferHandle frame_buffer, const char *debug_name); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrame(uint16_t *view_id, const HarfangScene scene, const HarfangIntRect rect, + bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBuffer(uint16_t *view_id, const HarfangScene scene, + const HarfangIntRect rect, bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame, + HarfangFrameBufferHandle frame_buffer); +extern void HarfangSubmitSceneToPipelineWithFovAxisIsHorizontalAaaAaaConfigFrameFrameBufferDebugName(uint16_t *view_id, const HarfangScene scene, + const HarfangIntRect rect, bool fov_axis_is_horizontal, const HarfangForwardPipeline pipeline, const HarfangPipelineResources resources, + const HarfangSceneForwardPipelinePassViewId views, HarfangForwardPipelineAAA aaa, const HarfangForwardPipelineAAAConfig aaa_config, int frame, + HarfangFrameBufferHandle frame_buffer, const char *debug_name); +extern bool HarfangLoadForwardPipelineAAAConfigFromFile(const char *path, HarfangForwardPipelineAAAConfig config); +extern bool HarfangLoadForwardPipelineAAAConfigFromAssets(const char *path, HarfangForwardPipelineAAAConfig config); +extern bool HarfangSaveForwardPipelineAAAConfigToFile(const char *path, const HarfangForwardPipelineAAAConfig config); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromFile(const char *path, const HarfangForwardPipelineAAAConfig config); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromFileWithSsgiRatio( + const char *path, const HarfangForwardPipelineAAAConfig config, int ssgi_ratio); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromFileWithSsgiRatioSsrRatio( + const char *path, const HarfangForwardPipelineAAAConfig config, int ssgi_ratio, int ssr_ratio); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromAssets(const char *path, const HarfangForwardPipelineAAAConfig config); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromAssetsWithSsgiRatio( + const char *path, const HarfangForwardPipelineAAAConfig config, int ssgi_ratio); +extern HarfangForwardPipelineAAA HarfangCreateForwardPipelineAAAFromAssetsWithSsgiRatioSsrRatio( + const char *path, const HarfangForwardPipelineAAAConfig config, int ssgi_ratio, int ssr_ratio); +extern void HarfangDestroyForwardPipelineAAA(HarfangForwardPipelineAAA pipeline); +extern void HarfangDebugSceneExplorer(HarfangScene scene, const char *name); +extern HarfangNodeList HarfangGetNodesInContact(const HarfangScene scene, const HarfangNode with, const HarfangNodePairContacts node_pair_contacts); +extern HarfangContactList HarfangGetNodePairContacts(const HarfangNode first, const HarfangNode second, const HarfangNodePairContacts node_pair_contacts); +extern void HarfangSceneSyncToSystemsFromFile(HarfangScene scene, HarfangSceneLuaVM vm); +extern void HarfangSceneSyncToSystemsFromFileWithPhysics(HarfangScene scene, HarfangSceneBullet3Physics physics); +extern void HarfangSceneSyncToSystemsFromFileWithPhysicsVm(HarfangScene scene, HarfangSceneBullet3Physics physics, HarfangSceneLuaVM vm); +extern void HarfangSceneSyncToSystemsFromAssets(HarfangScene scene, HarfangSceneLuaVM vm); +extern void HarfangSceneSyncToSystemsFromAssetsWithPhysics(HarfangScene scene, HarfangSceneBullet3Physics physics); +extern void HarfangSceneSyncToSystemsFromAssetsWithPhysicsVm(HarfangScene scene, HarfangSceneBullet3Physics physics, HarfangSceneLuaVM vm); +extern void HarfangSceneUpdateSystems(HarfangScene scene, HarfangSceneClocks clocks, int64_t dt); +extern void HarfangSceneUpdateSystemsWithVm(HarfangScene scene, HarfangSceneClocks clocks, int64_t dt, HarfangSceneLuaVM vm); +extern void HarfangSceneUpdateSystemsWithPhysicsStepMaxPhysicsStep( + HarfangScene scene, HarfangSceneClocks clocks, int64_t dt, HarfangSceneBullet3Physics physics, int64_t step, int max_physics_step); +extern void HarfangSceneUpdateSystemsWithPhysicsStepMaxPhysicsStepVm( + HarfangScene scene, HarfangSceneClocks clocks, int64_t dt, HarfangSceneBullet3Physics physics, int64_t step, int max_physics_step, HarfangSceneLuaVM vm); +extern void HarfangSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStep(HarfangScene scene, HarfangSceneClocks clocks, int64_t dt, + HarfangSceneBullet3Physics physics, HarfangNodePairContacts contacts, int64_t step, int max_physics_step); +extern void HarfangSceneUpdateSystemsWithPhysicsContactsStepMaxPhysicsStepVm(HarfangScene scene, HarfangSceneClocks clocks, int64_t dt, + HarfangSceneBullet3Physics physics, HarfangNodePairContacts contacts, int64_t step, int max_physics_step, HarfangSceneLuaVM vm); +extern size_t HarfangSceneGarbageCollectSystems(HarfangScene scene); +extern size_t HarfangSceneGarbageCollectSystemsWithVm(HarfangScene scene, HarfangSceneLuaVM vm); +extern size_t HarfangSceneGarbageCollectSystemsWithPhysics(HarfangScene scene, HarfangSceneBullet3Physics physics); +extern size_t HarfangSceneGarbageCollectSystemsWithPhysicsVm(HarfangScene scene, HarfangSceneBullet3Physics physics, HarfangSceneLuaVM vm); +extern void HarfangSceneClearSystems(HarfangScene scene); +extern void HarfangSceneClearSystemsWithVm(HarfangScene scene, HarfangSceneLuaVM vm); +extern void HarfangSceneClearSystemsWithPhysics(HarfangScene scene, HarfangSceneBullet3Physics physics); +extern void HarfangSceneClearSystemsWithPhysicsVm(HarfangScene scene, HarfangSceneBullet3Physics physics, HarfangSceneLuaVM vm); +extern void HarfangInputInit(); +extern void HarfangInputShutdown(); +extern HarfangMouseState HarfangReadMouse(); +extern HarfangMouseState HarfangReadMouseWithName(const char *name); +extern HarfangStringList HarfangGetMouseNames(); +extern HarfangKeyboardState HarfangReadKeyboard(); +extern HarfangKeyboardState HarfangReadKeyboardWithName(const char *name); +extern const char *HarfangGetKeyName(int key); +extern const char *HarfangGetKeyNameWithName(int key, const char *name); +extern HarfangStringList HarfangGetKeyboardNames(); +extern HarfangGamepadState HarfangReadGamepad(); +extern HarfangGamepadState HarfangReadGamepadWithName(const char *name); +extern HarfangStringList HarfangGetGamepadNames(); +extern HarfangJoystickState HarfangReadJoystick(); +extern HarfangJoystickState HarfangReadJoystickWithName(const char *name); +extern HarfangStringList HarfangGetJoystickNames(); +extern HarfangStringList HarfangGetJoystickDeviceNames(); +extern HarfangVRControllerState HarfangReadVRController(); +extern HarfangVRControllerState HarfangReadVRControllerWithName(const char *name); +extern void HarfangSendVRControllerHapticPulse(int64_t duration); +extern void HarfangSendVRControllerHapticPulseWithName(int64_t duration, const char *name); +extern HarfangStringList HarfangGetVRControllerNames(); +extern HarfangVRGenericTrackerState HarfangReadVRGenericTracker(); +extern HarfangVRGenericTrackerState HarfangReadVRGenericTrackerWithName(const char *name); +extern HarfangStringList HarfangGetVRGenericTrackerNames(); +extern void HarfangImGuiNewFrame(); +extern void HarfangImGuiRender(); +extern bool HarfangImGuiBegin(const char *name); +extern bool HarfangImGuiBeginWithOpenFlags(const char *name, bool *open, int flags); +extern void HarfangImGuiEnd(); +extern bool HarfangImGuiBeginChild(const char *id); +extern bool HarfangImGuiBeginChildWithSize(const char *id, const HarfangVec2 size); +extern bool HarfangImGuiBeginChildWithSizeBorder(const char *id, const HarfangVec2 size, bool border); +extern bool HarfangImGuiBeginChildWithSizeBorderFlags(const char *id, const HarfangVec2 size, bool border, int flags); +extern void HarfangImGuiEndChild(); +extern HarfangVec2 HarfangImGuiGetContentRegionMax(); +extern HarfangVec2 HarfangImGuiGetContentRegionAvail(); +extern float HarfangImGuiGetContentRegionAvailWidth(); +extern HarfangVec2 HarfangImGuiGetWindowContentRegionMin(); +extern HarfangVec2 HarfangImGuiGetWindowContentRegionMax(); +extern float HarfangImGuiGetWindowContentRegionWidth(); +extern HarfangImDrawList HarfangImGuiGetWindowDrawList(); +extern HarfangVec2 HarfangImGuiGetWindowPos(); +extern HarfangVec2 HarfangImGuiGetWindowSize(); +extern float HarfangImGuiGetWindowWidth(); +extern float HarfangImGuiGetWindowHeight(); +extern bool HarfangImGuiIsWindowCollapsed(); +extern void HarfangImGuiSetWindowFontScale(float scale); +extern void HarfangImGuiSetNextWindowPos(const HarfangVec2 pos); +extern void HarfangImGuiSetNextWindowPosWithCondition(const HarfangVec2 pos, int condition); +extern void HarfangImGuiSetNextWindowPosCenter(); +extern void HarfangImGuiSetNextWindowPosCenterWithCondition(int condition); +extern void HarfangImGuiSetNextWindowSize(const HarfangVec2 size); +extern void HarfangImGuiSetNextWindowSizeWithCondition(const HarfangVec2 size, int condition); +extern void HarfangImGuiSetNextWindowSizeConstraints(const HarfangVec2 size_min, const HarfangVec2 size_max); +extern void HarfangImGuiSetNextWindowContentSize(const HarfangVec2 size); +extern void HarfangImGuiSetNextWindowContentWidth(float width); +extern void HarfangImGuiSetNextWindowCollapsed(bool collapsed, int condition); +extern void HarfangImGuiSetNextWindowFocus(); +extern void HarfangImGuiSetWindowPos(const char *name, const HarfangVec2 pos); +extern void HarfangImGuiSetWindowPosWithCondition(const char *name, const HarfangVec2 pos, int condition); +extern void HarfangImGuiSetWindowSize(const char *name, const HarfangVec2 size); +extern void HarfangImGuiSetWindowSizeWithCondition(const char *name, const HarfangVec2 size, int condition); +extern void HarfangImGuiSetWindowCollapsed(const char *name, bool collapsed); +extern void HarfangImGuiSetWindowCollapsedWithCondition(const char *name, bool collapsed, int condition); +extern void HarfangImGuiSetWindowFocus(const char *name); +extern float HarfangImGuiGetScrollX(); +extern float HarfangImGuiGetScrollY(); +extern float HarfangImGuiGetScrollMaxX(); +extern float HarfangImGuiGetScrollMaxY(); +extern void HarfangImGuiSetScrollX(float scroll_x); +extern void HarfangImGuiSetScrollY(float scroll_y); +extern void HarfangImGuiSetScrollHereY(); +extern void HarfangImGuiSetScrollHereYWithCenterYRatio(float center_y_ratio); +extern void HarfangImGuiSetScrollFromPosY(float pos_y); +extern void HarfangImGuiSetScrollFromPosYWithCenterYRatio(float pos_y, float center_y_ratio); +extern void HarfangImGuiSetKeyboardFocusHere(); +extern void HarfangImGuiSetKeyboardFocusHereWithOffset(int offset); +extern void HarfangImGuiPushFont(HarfangImFont font); +extern void HarfangImGuiPopFont(); +extern void HarfangImGuiPushStyleColor(int idx, const HarfangColor color); +extern void HarfangImGuiPopStyleColor(); +extern void HarfangImGuiPopStyleColorWithCount(int count); +extern void HarfangImGuiPushStyleVar(int idx, float value); +extern void HarfangImGuiPushStyleVarWithValue(int idx, const HarfangVec2 value); +extern void HarfangImGuiPopStyleVar(); +extern void HarfangImGuiPopStyleVarWithCount(int count); +extern HarfangImFont HarfangImGuiGetFont(); +extern float HarfangImGuiGetFontSize(); +extern HarfangVec2 HarfangImGuiGetFontTexUvWhitePixel(); +extern uint32_t HarfangImGuiGetColorU32(int idx); +extern uint32_t HarfangImGuiGetColorU32WithAlphaMultiplier(int idx, float alpha_multiplier); +extern uint32_t HarfangImGuiGetColorU32WithColor(const HarfangColor color); +extern void HarfangImGuiPushItemWidth(float item_width); +extern void HarfangImGuiPopItemWidth(); +extern float HarfangImGuiCalcItemWidth(); +extern void HarfangImGuiPushTextWrapPos(); +extern void HarfangImGuiPushTextWrapPosWithWrapPosX(float wrap_pos_x); +extern void HarfangImGuiPopTextWrapPos(); +extern void HarfangImGuiPushAllowKeyboardFocus(bool v); +extern void HarfangImGuiPopAllowKeyboardFocus(); +extern void HarfangImGuiPushButtonRepeat(bool repeat); +extern void HarfangImGuiPopButtonRepeat(); +extern void HarfangImGuiSeparator(); +extern void HarfangImGuiSameLine(); +extern void HarfangImGuiSameLineWithPosX(float pos_x); +extern void HarfangImGuiSameLineWithPosXSpacingW(float pos_x, float spacing_w); +extern void HarfangImGuiNewLine(); +extern void HarfangImGuiSpacing(); +extern void HarfangImGuiDummy(const HarfangVec2 size); +extern void HarfangImGuiIndent(); +extern void HarfangImGuiIndentWithWidth(float width); +extern void HarfangImGuiUnindent(); +extern void HarfangImGuiUnindentWithWidth(float width); +extern void HarfangImGuiBeginGroup(); +extern void HarfangImGuiEndGroup(); +extern HarfangVec2 HarfangImGuiGetCursorPos(); +extern float HarfangImGuiGetCursorPosX(); +extern float HarfangImGuiGetCursorPosY(); +extern void HarfangImGuiSetCursorPos(const HarfangVec2 local_pos); +extern void HarfangImGuiSetCursorPosX(float x); +extern void HarfangImGuiSetCursorPosY(float y); +extern HarfangVec2 HarfangImGuiGetCursorStartPos(); +extern HarfangVec2 HarfangImGuiGetCursorScreenPos(); +extern void HarfangImGuiSetCursorScreenPos(const HarfangVec2 pos); +extern void HarfangImGuiAlignTextToFramePadding(); +extern float HarfangImGuiGetTextLineHeight(); +extern float HarfangImGuiGetTextLineHeightWithSpacing(); +extern float HarfangImGuiGetFrameHeightWithSpacing(); +extern void HarfangImGuiColumns(); +extern void HarfangImGuiColumnsWithCount(int count); +extern void HarfangImGuiColumnsWithCountId(int count, const char *id); +extern void HarfangImGuiColumnsWithCountIdWithBorder(int count, const char *id, bool with_border); +extern void HarfangImGuiNextColumn(); +extern int HarfangImGuiGetColumnIndex(); +extern float HarfangImGuiGetColumnOffset(); +extern float HarfangImGuiGetColumnOffsetWithColumnIndex(int column_index); +extern void HarfangImGuiSetColumnOffset(int column_index, float offset_x); +extern float HarfangImGuiGetColumnWidth(); +extern float HarfangImGuiGetColumnWidthWithColumnIndex(int column_index); +extern void HarfangImGuiSetColumnWidth(int column_index, float width); +extern int HarfangImGuiGetColumnsCount(); +extern void HarfangImGuiPushID(const char *id); +extern void HarfangImGuiPushIDWithId(int id); +extern void HarfangImGuiPopID(); +extern unsigned int HarfangImGuiGetID(const char *id); +extern void HarfangImGuiText(const char *text); +extern void HarfangImGuiTextColored(const HarfangColor color, const char *text); +extern void HarfangImGuiTextDisabled(const char *text); +extern void HarfangImGuiTextWrapped(const char *text); +extern void HarfangImGuiTextUnformatted(const char *text); +extern void HarfangImGuiLabelText(const char *label, const char *text); +extern void HarfangImGuiBullet(); +extern void HarfangImGuiBulletText(const char *label); +extern bool HarfangImGuiButton(const char *label); +extern bool HarfangImGuiButtonWithSize(const char *label, const HarfangVec2 size); +extern bool HarfangImGuiSmallButton(const char *label); +extern bool HarfangImGuiInvisibleButton(const char *text, const HarfangVec2 size); +extern void HarfangImGuiImage(const HarfangTexture tex, const HarfangVec2 size); +extern void HarfangImGuiImageWithUv0(const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0); +extern void HarfangImGuiImageWithUv0Uv1(const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1); +extern void HarfangImGuiImageWithUv0Uv1TintCol( + const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1, const HarfangColor tint_col); +extern void HarfangImGuiImageWithUv0Uv1TintColBorderCol( + const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1, const HarfangColor tint_col, const HarfangColor border_col); +extern bool HarfangImGuiImageButton(const HarfangTexture tex, const HarfangVec2 size); +extern bool HarfangImGuiImageButtonWithUv0(const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0); +extern bool HarfangImGuiImageButtonWithUv0Uv1(const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1); +extern bool HarfangImGuiImageButtonWithUv0Uv1FramePadding( + const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1, int frame_padding); +extern bool HarfangImGuiImageButtonWithUv0Uv1FramePaddingBgCol( + const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, const HarfangVec2 uv1, int frame_padding, const HarfangColor bg_col); +extern bool HarfangImGuiImageButtonWithUv0Uv1FramePaddingBgColTintCol(const HarfangTexture tex, const HarfangVec2 size, const HarfangVec2 uv0, + const HarfangVec2 uv1, int frame_padding, const HarfangColor bg_col, const HarfangColor tint_col); +extern bool HarfangImGuiInputText(const char *label, const char *text, size_t max_size, const char **out); +extern bool HarfangImGuiInputTextWithFlags(const char *label, const char *text, size_t max_size, const char **out, int flags); +extern bool HarfangImGuiCheckbox(const char *label, bool *value); +extern bool HarfangImGuiRadioButton(const char *label, bool active); +extern bool HarfangImGuiRadioButtonWithVVButton(const char *label, int *v, int v_button); +extern bool HarfangImGuiBeginCombo(const char *label, const char *preview_value); +extern bool HarfangImGuiBeginComboWithFlags(const char *label, const char *preview_value, int flags); +extern void HarfangImGuiEndCombo(); +extern bool HarfangImGuiCombo(const char *label, int *current_item, const HarfangStringList items); +extern bool HarfangImGuiComboWithHeightInItems(const char *label, int *current_item, const HarfangStringList items, int height_in_items); +extern bool HarfangImGuiComboWithSliceOfItems(const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf); +extern bool HarfangImGuiComboWithSliceOfItemsHeightInItems( const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf, int height_in_items); -extern bool WrapImGuiColorButton(const char *id, WrapColor color); -extern bool WrapImGuiColorButtonWithFlags(const char *id, WrapColor color, int flags); -extern bool WrapImGuiColorButtonWithFlagsSize(const char *id, WrapColor color, int flags, const WrapVec2 size); -extern bool WrapImGuiColorEdit(const char *label, WrapColor color); -extern bool WrapImGuiColorEditWithFlags(const char *label, WrapColor color, int flags); -extern void WrapImGuiProgressBar(float fraction); -extern void WrapImGuiProgressBarWithSize(float fraction, const WrapVec2 size); -extern void WrapImGuiProgressBarWithSizeOverlay(float fraction, const WrapVec2 size, const char *overlay); -extern bool WrapImGuiDragFloat(const char *label, float *v); -extern bool WrapImGuiDragFloatWithVSpeed(const char *label, float *v, float v_speed); -extern bool WrapImGuiDragFloatWithVSpeedVMinVMax(const char *label, float *v, float v_speed, float v_min, float v_max); -extern bool WrapImGuiDragVec2(const char *label, WrapVec2 v); -extern bool WrapImGuiDragVec2WithVSpeed(const char *label, WrapVec2 v, float v_speed); -extern bool WrapImGuiDragVec2WithVSpeedVMinVMax(const char *label, WrapVec2 v, float v_speed, float v_min, float v_max); -extern bool WrapImGuiDragVec3(const char *label, WrapVec3 v); -extern bool WrapImGuiDragVec3WithVSpeed(const char *label, WrapVec3 v, float v_speed); -extern bool WrapImGuiDragVec3WithVSpeedVMinVMax(const char *label, WrapVec3 v, float v_speed, float v_min, float v_max); -extern bool WrapImGuiDragVec4(const char *label, WrapVec4 v); -extern bool WrapImGuiDragVec4WithVSpeed(const char *label, WrapVec4 v, float v_speed); -extern bool WrapImGuiDragVec4WithVSpeedVMinVMax(const char *label, WrapVec4 v, float v_speed, float v_min, float v_max); -extern bool WrapImGuiDragIntVec2(const char *label, WrapIVec2 v); -extern bool WrapImGuiDragIntVec2WithVSpeed(const char *label, WrapIVec2 v, float v_speed); -extern bool WrapImGuiDragIntVec2WithVSpeedVMinVMax(const char *label, WrapIVec2 v, float v_speed, int v_min, int v_max); -extern bool WrapImGuiInputInt(const char *label, int *v); -extern bool WrapImGuiInputIntWithStepStepFast(const char *label, int *v, int step, int step_fast); -extern bool WrapImGuiInputIntWithStepStepFastFlags(const char *label, int *v, int step, int step_fast, int flags); -extern bool WrapImGuiInputFloat(const char *label, float *v); -extern bool WrapImGuiInputFloatWithStepStepFast(const char *label, float *v, float step, float step_fast); -extern bool WrapImGuiInputFloatWithStepStepFastDecimalPrecision(const char *label, float *v, float step, float step_fast, int decimal_precision); -extern bool WrapImGuiInputFloatWithStepStepFastDecimalPrecisionFlags( +extern bool HarfangImGuiColorButton(const char *id, HarfangColor color); +extern bool HarfangImGuiColorButtonWithFlags(const char *id, HarfangColor color, int flags); +extern bool HarfangImGuiColorButtonWithFlagsSize(const char *id, HarfangColor color, int flags, const HarfangVec2 size); +extern bool HarfangImGuiColorEdit(const char *label, HarfangColor color); +extern bool HarfangImGuiColorEditWithFlags(const char *label, HarfangColor color, int flags); +extern void HarfangImGuiProgressBar(float fraction); +extern void HarfangImGuiProgressBarWithSize(float fraction, const HarfangVec2 size); +extern void HarfangImGuiProgressBarWithSizeOverlay(float fraction, const HarfangVec2 size, const char *overlay); +extern bool HarfangImGuiDragFloat(const char *label, float *v); +extern bool HarfangImGuiDragFloatWithVSpeed(const char *label, float *v, float v_speed); +extern bool HarfangImGuiDragFloatWithVSpeedVMinVMax(const char *label, float *v, float v_speed, float v_min, float v_max); +extern bool HarfangImGuiDragVec2(const char *label, HarfangVec2 v); +extern bool HarfangImGuiDragVec2WithVSpeed(const char *label, HarfangVec2 v, float v_speed); +extern bool HarfangImGuiDragVec2WithVSpeedVMinVMax(const char *label, HarfangVec2 v, float v_speed, float v_min, float v_max); +extern bool HarfangImGuiDragVec3(const char *label, HarfangVec3 v); +extern bool HarfangImGuiDragVec3WithVSpeed(const char *label, HarfangVec3 v, float v_speed); +extern bool HarfangImGuiDragVec3WithVSpeedVMinVMax(const char *label, HarfangVec3 v, float v_speed, float v_min, float v_max); +extern bool HarfangImGuiDragVec4(const char *label, HarfangVec4 v); +extern bool HarfangImGuiDragVec4WithVSpeed(const char *label, HarfangVec4 v, float v_speed); +extern bool HarfangImGuiDragVec4WithVSpeedVMinVMax(const char *label, HarfangVec4 v, float v_speed, float v_min, float v_max); +extern bool HarfangImGuiDragIntVec2(const char *label, HarfangIVec2 v); +extern bool HarfangImGuiDragIntVec2WithVSpeed(const char *label, HarfangIVec2 v, float v_speed); +extern bool HarfangImGuiDragIntVec2WithVSpeedVMinVMax(const char *label, HarfangIVec2 v, float v_speed, int v_min, int v_max); +extern bool HarfangImGuiInputInt(const char *label, int *v); +extern bool HarfangImGuiInputIntWithStepStepFast(const char *label, int *v, int step, int step_fast); +extern bool HarfangImGuiInputIntWithStepStepFastFlags(const char *label, int *v, int step, int step_fast, int flags); +extern bool HarfangImGuiInputFloat(const char *label, float *v); +extern bool HarfangImGuiInputFloatWithStepStepFast(const char *label, float *v, float step, float step_fast); +extern bool HarfangImGuiInputFloatWithStepStepFastDecimalPrecision(const char *label, float *v, float step, float step_fast, int decimal_precision); +extern bool HarfangImGuiInputFloatWithStepStepFastDecimalPrecisionFlags( const char *label, float *v, float step, float step_fast, int decimal_precision, int flags); -extern bool WrapImGuiInputVec2(const char *label, WrapVec2 v); -extern bool WrapImGuiInputVec2WithDecimalPrecision(const char *label, WrapVec2 v, int decimal_precision); -extern bool WrapImGuiInputVec2WithDecimalPrecisionFlags(const char *label, WrapVec2 v, int decimal_precision, int flags); -extern bool WrapImGuiInputVec3(const char *label, WrapVec3 v); -extern bool WrapImGuiInputVec3WithDecimalPrecision(const char *label, WrapVec3 v, int decimal_precision); -extern bool WrapImGuiInputVec3WithDecimalPrecisionFlags(const char *label, WrapVec3 v, int decimal_precision, int flags); -extern bool WrapImGuiInputVec4(const char *label, WrapVec4 v); -extern bool WrapImGuiInputVec4WithDecimalPrecision(const char *label, WrapVec4 v, int decimal_precision); -extern bool WrapImGuiInputVec4WithDecimalPrecisionFlags(const char *label, WrapVec4 v, int decimal_precision, int flags); -extern bool WrapImGuiInputIntVec2(const char *label, WrapIVec2 v); -extern bool WrapImGuiInputIntVec2WithFlags(const char *label, WrapIVec2 v, int flags); -extern bool WrapImGuiSliderInt(const char *label, int *v, int v_min, int v_max); -extern bool WrapImGuiSliderIntWithFormat(const char *label, int *v, int v_min, int v_max, const char *format); -extern bool WrapImGuiSliderIntVec2(const char *label, WrapIVec2 v, int v_min, int v_max); -extern bool WrapImGuiSliderIntVec2WithFormat(const char *label, WrapIVec2 v, int v_min, int v_max, const char *format); -extern bool WrapImGuiSliderFloat(const char *label, float *v, float v_min, float v_max); -extern bool WrapImGuiSliderFloatWithFormat(const char *label, float *v, float v_min, float v_max, const char *format); -extern bool WrapImGuiSliderVec2(const char *label, WrapVec2 v, float v_min, float v_max); -extern bool WrapImGuiSliderVec2WithFormat(const char *label, WrapVec2 v, float v_min, float v_max, const char *format); -extern bool WrapImGuiSliderVec3(const char *label, WrapVec3 v, float v_min, float v_max); -extern bool WrapImGuiSliderVec3WithFormat(const char *label, WrapVec3 v, float v_min, float v_max, const char *format); -extern bool WrapImGuiSliderVec4(const char *label, WrapVec4 v, float v_min, float v_max); -extern bool WrapImGuiSliderVec4WithFormat(const char *label, WrapVec4 v, float v_min, float v_max, const char *format); -extern bool WrapImGuiTreeNode(const char *label); -extern bool WrapImGuiTreeNodeEx(const char *label, int flags); -extern void WrapImGuiTreePush(const char *id); -extern void WrapImGuiTreePop(); -extern float WrapImGuiGetTreeNodeToLabelSpacing(); -extern void WrapImGuiSetNextItemOpen(bool is_open); -extern void WrapImGuiSetNextItemOpenWithCondition(bool is_open, int condition); -extern bool WrapImGuiCollapsingHeader(const char *label); -extern bool WrapImGuiCollapsingHeaderWithFlags(const char *label, int flags); -extern bool WrapImGuiCollapsingHeaderWithPOpen(const char *label, bool *p_open); -extern bool WrapImGuiCollapsingHeaderWithPOpenFlags(const char *label, bool *p_open, int flags); -extern bool WrapImGuiSelectable(const char *label); -extern bool WrapImGuiSelectableWithSelected(const char *label, bool selected); -extern bool WrapImGuiSelectableWithSelectedFlags(const char *label, bool selected, int flags); -extern bool WrapImGuiSelectableWithSelectedFlagsSize(const char *label, bool selected, int flags, const WrapVec2 size); -extern bool WrapImGuiListBox(const char *label, int *current_item, const WrapStringList items); -extern bool WrapImGuiListBoxWithHeightInItems(const char *label, int *current_item, const WrapStringList items, int height_in_items); -extern bool WrapImGuiListBoxWithSliceOfItems(const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf); -extern bool WrapImGuiListBoxWithSliceOfItemsHeightInItems( +extern bool HarfangImGuiInputVec2(const char *label, HarfangVec2 v); +extern bool HarfangImGuiInputVec2WithDecimalPrecision(const char *label, HarfangVec2 v, int decimal_precision); +extern bool HarfangImGuiInputVec2WithDecimalPrecisionFlags(const char *label, HarfangVec2 v, int decimal_precision, int flags); +extern bool HarfangImGuiInputVec3(const char *label, HarfangVec3 v); +extern bool HarfangImGuiInputVec3WithDecimalPrecision(const char *label, HarfangVec3 v, int decimal_precision); +extern bool HarfangImGuiInputVec3WithDecimalPrecisionFlags(const char *label, HarfangVec3 v, int decimal_precision, int flags); +extern bool HarfangImGuiInputVec4(const char *label, HarfangVec4 v); +extern bool HarfangImGuiInputVec4WithDecimalPrecision(const char *label, HarfangVec4 v, int decimal_precision); +extern bool HarfangImGuiInputVec4WithDecimalPrecisionFlags(const char *label, HarfangVec4 v, int decimal_precision, int flags); +extern bool HarfangImGuiInputIntVec2(const char *label, HarfangIVec2 v); +extern bool HarfangImGuiInputIntVec2WithFlags(const char *label, HarfangIVec2 v, int flags); +extern bool HarfangImGuiSliderInt(const char *label, int *v, int v_min, int v_max); +extern bool HarfangImGuiSliderIntWithFormat(const char *label, int *v, int v_min, int v_max, const char *format); +extern bool HarfangImGuiSliderIntVec2(const char *label, HarfangIVec2 v, int v_min, int v_max); +extern bool HarfangImGuiSliderIntVec2WithFormat(const char *label, HarfangIVec2 v, int v_min, int v_max, const char *format); +extern bool HarfangImGuiSliderFloat(const char *label, float *v, float v_min, float v_max); +extern bool HarfangImGuiSliderFloatWithFormat(const char *label, float *v, float v_min, float v_max, const char *format); +extern bool HarfangImGuiSliderVec2(const char *label, HarfangVec2 v, float v_min, float v_max); +extern bool HarfangImGuiSliderVec2WithFormat(const char *label, HarfangVec2 v, float v_min, float v_max, const char *format); +extern bool HarfangImGuiSliderVec3(const char *label, HarfangVec3 v, float v_min, float v_max); +extern bool HarfangImGuiSliderVec3WithFormat(const char *label, HarfangVec3 v, float v_min, float v_max, const char *format); +extern bool HarfangImGuiSliderVec4(const char *label, HarfangVec4 v, float v_min, float v_max); +extern bool HarfangImGuiSliderVec4WithFormat(const char *label, HarfangVec4 v, float v_min, float v_max, const char *format); +extern bool HarfangImGuiTreeNode(const char *label); +extern bool HarfangImGuiTreeNodeEx(const char *label, int flags); +extern void HarfangImGuiTreePush(const char *id); +extern void HarfangImGuiTreePop(); +extern float HarfangImGuiGetTreeNodeToLabelSpacing(); +extern void HarfangImGuiSetNextItemOpen(bool is_open); +extern void HarfangImGuiSetNextItemOpenWithCondition(bool is_open, int condition); +extern bool HarfangImGuiCollapsingHeader(const char *label); +extern bool HarfangImGuiCollapsingHeaderWithFlags(const char *label, int flags); +extern bool HarfangImGuiCollapsingHeaderWithPOpen(const char *label, bool *p_open); +extern bool HarfangImGuiCollapsingHeaderWithPOpenFlags(const char *label, bool *p_open, int flags); +extern bool HarfangImGuiSelectable(const char *label); +extern bool HarfangImGuiSelectableWithSelected(const char *label, bool selected); +extern bool HarfangImGuiSelectableWithSelectedFlags(const char *label, bool selected, int flags); +extern bool HarfangImGuiSelectableWithSelectedFlagsSize(const char *label, bool selected, int flags, const HarfangVec2 size); +extern bool HarfangImGuiListBox(const char *label, int *current_item, const HarfangStringList items); +extern bool HarfangImGuiListBoxWithHeightInItems(const char *label, int *current_item, const HarfangStringList items, int height_in_items); +extern bool HarfangImGuiListBoxWithSliceOfItems(const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf); +extern bool HarfangImGuiListBoxWithSliceOfItemsHeightInItems( const char *label, int *current_item, size_t SliceOfitemsToCSize, const char **SliceOfitemsToCBuf, int height_in_items); -extern void WrapImGuiSetTooltip(const char *text); -extern void WrapImGuiBeginTooltip(); -extern void WrapImGuiEndTooltip(); -extern bool WrapImGuiBeginMainMenuBar(); -extern void WrapImGuiEndMainMenuBar(); -extern bool WrapImGuiBeginMenuBar(); -extern void WrapImGuiEndMenuBar(); -extern bool WrapImGuiBeginMenu(const char *label); -extern bool WrapImGuiBeginMenuWithEnabled(const char *label, bool enabled); -extern void WrapImGuiEndMenu(); -extern bool WrapImGuiMenuItem(const char *label); -extern bool WrapImGuiMenuItemWithShortcut(const char *label, const char *shortcut); -extern bool WrapImGuiMenuItemWithShortcutSelected(const char *label, const char *shortcut, bool selected); -extern bool WrapImGuiMenuItemWithShortcutSelectedEnabled(const char *label, const char *shortcut, bool selected, bool enabled); -extern void WrapImGuiOpenPopup(const char *id); -extern bool WrapImGuiBeginPopup(const char *id); -extern bool WrapImGuiBeginPopupModal(const char *name); -extern bool WrapImGuiBeginPopupModalWithOpen(const char *name, bool *open); -extern bool WrapImGuiBeginPopupModalWithOpenFlags(const char *name, bool *open, int flags); -extern bool WrapImGuiBeginPopupContextItem(const char *id); -extern bool WrapImGuiBeginPopupContextItemWithMouseButton(const char *id, int mouse_button); -extern bool WrapImGuiBeginPopupContextWindow(); -extern bool WrapImGuiBeginPopupContextWindowWithId(const char *id); -extern bool WrapImGuiBeginPopupContextWindowWithIdFlags(const char *id, int flags); -extern bool WrapImGuiBeginPopupContextVoid(); -extern bool WrapImGuiBeginPopupContextVoidWithId(const char *id); -extern bool WrapImGuiBeginPopupContextVoidWithIdMouseButton(const char *id, int mouse_button); -extern void WrapImGuiEndPopup(); -extern void WrapImGuiCloseCurrentPopup(); -extern void WrapImGuiPushClipRect(const WrapVec2 clip_rect_min, const WrapVec2 clip_rect_max, bool intersect_with_current_clip_rect); -extern void WrapImGuiPopClipRect(); -extern bool WrapImGuiIsItemHovered(); -extern bool WrapImGuiIsItemHoveredWithFlags(int flags); -extern bool WrapImGuiIsItemActive(); -extern bool WrapImGuiIsItemClicked(); -extern bool WrapImGuiIsItemClickedWithMouseButton(int mouse_button); -extern bool WrapImGuiIsItemVisible(); -extern bool WrapImGuiIsAnyItemHovered(); -extern bool WrapImGuiIsAnyItemActive(); -extern WrapVec2 WrapImGuiGetItemRectMin(); -extern WrapVec2 WrapImGuiGetItemRectMax(); -extern WrapVec2 WrapImGuiGetItemRectSize(); -extern void WrapImGuiSetItemAllowOverlap(); -extern void WrapImGuiSetItemDefaultFocus(); -extern bool WrapImGuiIsWindowHovered(); -extern bool WrapImGuiIsWindowHoveredWithFlags(int flags); -extern bool WrapImGuiIsWindowFocused(); -extern bool WrapImGuiIsWindowFocusedWithFlags(int flags); -extern bool WrapImGuiIsRectVisible(const WrapVec2 size); -extern bool WrapImGuiIsRectVisibleWithRectMinRectMax(const WrapVec2 rect_min, const WrapVec2 rect_max); -extern float WrapImGuiGetTime(); -extern int WrapImGuiGetFrameCount(); -extern WrapVec2 WrapImGuiCalcTextSize(const char *text); -extern WrapVec2 WrapImGuiCalcTextSizeWithHideTextAfterDoubleDash(const char *text, bool hide_text_after_double_dash); -extern WrapVec2 WrapImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(const char *text, bool hide_text_after_double_dash, float wrap_width); -extern bool WrapImGuiIsKeyDown(int key_index); -extern bool WrapImGuiIsKeyPressed(int key_index); -extern bool WrapImGuiIsKeyPressedWithRepeat(int key_index, bool repeat); -extern bool WrapImGuiIsKeyReleased(int key_index); -extern bool WrapImGuiIsMouseDown(int button); -extern bool WrapImGuiIsMouseClicked(int button); -extern bool WrapImGuiIsMouseClickedWithRepeat(int button, bool repeat); -extern bool WrapImGuiIsMouseDoubleClicked(int button); -extern bool WrapImGuiIsMouseReleased(int button); -extern bool WrapImGuiIsMouseHoveringRect(const WrapVec2 rect_min, const WrapVec2 rect_max); -extern bool WrapImGuiIsMouseHoveringRectWithClip(const WrapVec2 rect_min, const WrapVec2 rect_max, bool clip); -extern bool WrapImGuiIsMouseDragging(int button); -extern bool WrapImGuiIsMouseDraggingWithLockThreshold(int button, float lock_threshold); -extern WrapVec2 WrapImGuiGetMousePos(); -extern WrapVec2 WrapImGuiGetMousePosOnOpeningCurrentPopup(); -extern WrapVec2 WrapImGuiGetMouseDragDelta(); -extern WrapVec2 WrapImGuiGetMouseDragDeltaWithButton(int button); -extern WrapVec2 WrapImGuiGetMouseDragDeltaWithButtonLockThreshold(int button, float lock_threshold); -extern void WrapImGuiResetMouseDragDelta(); -extern void WrapImGuiResetMouseDragDeltaWithButton(int button); -extern void WrapImGuiCaptureKeyboardFromApp(bool capture); -extern void WrapImGuiCaptureMouseFromApp(bool capture); -extern bool WrapImGuiWantCaptureMouse(); -extern void WrapImGuiMouseDrawCursor(const bool draw_cursor); -extern void WrapImGuiInit(float font_size, WrapProgramHandle imgui_program, WrapProgramHandle imgui_image_program); -extern WrapDearImguiContext WrapImGuiInitContext(float font_size, WrapProgramHandle imgui_program, WrapProgramHandle imgui_image_program); -extern void WrapImGuiShutdown(); -extern void WrapImGuiBeginFrame(int width, int height, int64_t dt_clock, const WrapMouseState mouse, const WrapKeyboardState keyboard); -extern void WrapImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard( - WrapDearImguiContext ctx, int width, int height, int64_t dt_clock, const WrapMouseState mouse, const WrapKeyboardState keyboard); -extern void WrapImGuiEndFrameWithCtx(const WrapDearImguiContext ctx); -extern void WrapImGuiEndFrameWithCtxViewId(const WrapDearImguiContext ctx, uint16_t view_id); -extern void WrapImGuiEndFrame(); -extern void WrapImGuiEndFrameWithViewId(uint16_t view_id); -extern void WrapImGuiClearInputBuffer(); -extern bool WrapOpenFolderDialog(const char *title, const char **folder_name); -extern bool WrapOpenFolderDialogWithInitialDir(const char *title, const char **folder_name, const char *initial_dir); -extern bool WrapOpenFileDialog(const char *title, const WrapFileFilterList filters, const char **file); -extern bool WrapOpenFileDialogWithInitialDir(const char *title, const WrapFileFilterList filters, const char **file, const char *initial_dir); -extern bool WrapSaveFileDialog(const char *title, const WrapFileFilterList filters, const char **file); -extern bool WrapSaveFileDialogWithInitialDir(const char *title, const WrapFileFilterList filters, const char **file, const char *initial_dir); -extern void WrapFpsControllerWithKeyUpKeyDownKeyLeftKeyRightBtnDxDyPosRotSpeedDtT( - bool key_up, bool key_down, bool key_left, bool key_right, bool btn, float dx, float dy, WrapVec3 pos, WrapVec3 rot, float speed, int64_t dt_t); -extern void WrapFpsController(const WrapKeyboard keyboard, const WrapMouse mouse, WrapVec3 pos, WrapVec3 rot, float speed, int64_t dt); -extern void WrapSleep(int64_t duration); -extern bool WrapAudioInit(); -extern void WrapAudioShutdown(); -extern int WrapLoadWAVSoundFile(const char *path); -extern int WrapLoadWAVSoundAsset(const char *name); -extern int WrapLoadOGGSoundFile(const char *path); -extern int WrapLoadOGGSoundAsset(const char *name); -extern void WrapUnloadSound(int snd); -extern void WrapSetListener(const WrapMat4 world, const WrapVec3 velocity); -extern int WrapPlayStereo(int snd, const WrapStereoSourceState state); -extern int WrapPlaySpatialized(int snd, const WrapSpatializedSourceState state); -extern int WrapStreamWAVFileStereo(const char *path, const WrapStereoSourceState state); -extern int WrapStreamWAVAssetStereo(const char *name, const WrapStereoSourceState state); -extern int WrapStreamWAVFileSpatialized(const char *path, const WrapSpatializedSourceState state); -extern int WrapStreamWAVAssetSpatialized(const char *name, const WrapSpatializedSourceState state); -extern int WrapStreamOGGFileStereo(const char *path, const WrapStereoSourceState state); -extern int WrapStreamOGGAssetStereo(const char *name, const WrapStereoSourceState state); -extern int WrapStreamOGGFileSpatialized(const char *path, const WrapSpatializedSourceState state); -extern int WrapStreamOGGAssetSpatialized(const char *name, const WrapSpatializedSourceState state); -extern int64_t WrapGetSourceDuration(int source); -extern int64_t WrapGetSourceTimecode(int source); -extern bool WrapSetSourceTimecode(int source, int64_t t); -extern void WrapSetSourceVolume(int source, float volume); -extern void WrapSetSourcePanning(int source, float panning); -extern void WrapSetSourceRepeat(int source, int repeat); -extern void WrapSetSourceTransform(int source, const WrapMat4 world, const WrapVec3 velocity); -extern int WrapGetSourceState(int source); -extern void WrapPauseSource(int source); -extern void WrapStopSource(int source); -extern void WrapStopAllSources(); -extern bool WrapOpenVRInit(); -extern void WrapOpenVRShutdown(); -extern WrapOpenVREyeFrameBuffer WrapOpenVRCreateEyeFrameBuffer(); -extern WrapOpenVREyeFrameBuffer WrapOpenVRCreateEyeFrameBufferWithAa(int aa); -extern void WrapOpenVRDestroyEyeFrameBuffer(WrapOpenVREyeFrameBuffer eye_fb); -extern WrapOpenVRState WrapOpenVRGetState(const WrapMat4 body, float znear, float zfar); -extern void WrapOpenVRStateToViewState(const WrapOpenVRState state, WrapViewState left, WrapViewState right); -extern void WrapOpenVRSubmitFrame(const WrapOpenVREyeFrameBuffer left, const WrapOpenVREyeFrameBuffer right); -extern void WrapOpenVRPostPresentHandoff(); -extern WrapTexture WrapOpenVRGetColorTexture(const WrapOpenVREyeFrameBuffer eye); -extern WrapTexture WrapOpenVRGetDepthTexture(const WrapOpenVREyeFrameBuffer eye); -extern WrapIVec2 WrapOpenVRGetFrameBufferSize(); -extern bool WrapSRanipalInit(); -extern void WrapSRanipalShutdown(); -extern void WrapSRanipalLaunchEyeCalibration(); -extern bool WrapSRanipalIsViveProEye(); -extern WrapSRanipalState WrapSRanipalGetState(); -extern WrapVertex WrapMakeVertex(const WrapVec3 pos); -extern WrapVertex WrapMakeVertexWithNrm(const WrapVec3 pos, const WrapVec3 nrm); -extern WrapVertex WrapMakeVertexWithNrmUv0(const WrapVec3 pos, const WrapVec3 nrm, const WrapVec2 uv0); -extern WrapVertex WrapMakeVertexWithNrmUv0Color0(const WrapVec3 pos, const WrapVec3 nrm, const WrapVec2 uv0, const WrapColor color0); -extern bool WrapSaveGeometryToFile(const char *path, const WrapGeometry geo); -extern WrapIsoSurface WrapNewIsoSurface(int width, int height, int depth); -extern void WrapIsoSurfaceSphere(WrapIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius); -extern void WrapIsoSurfaceSphereWithValue(WrapIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius, float value); -extern void WrapIsoSurfaceSphereWithValueExponent( - WrapIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius, float value, float exponent); -extern WrapIsoSurface WrapGaussianBlurIsoSurface(const WrapIsoSurface surface, int width, int height, int depth); -extern bool WrapIsoSurfaceToModel(WrapModelBuilder builder, const WrapIsoSurface surface, int width, int height, int depth); -extern bool WrapIsoSurfaceToModelWithMaterial(WrapModelBuilder builder, const WrapIsoSurface surface, int width, int height, int depth, uint16_t material); -extern bool WrapIsoSurfaceToModelWithMaterialIsolevel( - WrapModelBuilder builder, const WrapIsoSurface surface, int width, int height, int depth, uint16_t material, float isolevel); -extern bool WrapIsoSurfaceToModelWithMaterialIsolevelScaleXScaleYScaleZ(WrapModelBuilder builder, const WrapIsoSurface surface, int width, int height, +extern void HarfangImGuiSetTooltip(const char *text); +extern void HarfangImGuiBeginTooltip(); +extern void HarfangImGuiEndTooltip(); +extern bool HarfangImGuiBeginMainMenuBar(); +extern void HarfangImGuiEndMainMenuBar(); +extern bool HarfangImGuiBeginMenuBar(); +extern void HarfangImGuiEndMenuBar(); +extern bool HarfangImGuiBeginMenu(const char *label); +extern bool HarfangImGuiBeginMenuWithEnabled(const char *label, bool enabled); +extern void HarfangImGuiEndMenu(); +extern bool HarfangImGuiMenuItem(const char *label); +extern bool HarfangImGuiMenuItemWithShortcut(const char *label, const char *shortcut); +extern bool HarfangImGuiMenuItemWithShortcutSelected(const char *label, const char *shortcut, bool selected); +extern bool HarfangImGuiMenuItemWithShortcutSelectedEnabled(const char *label, const char *shortcut, bool selected, bool enabled); +extern void HarfangImGuiOpenPopup(const char *id); +extern bool HarfangImGuiBeginPopup(const char *id); +extern bool HarfangImGuiBeginPopupModal(const char *name); +extern bool HarfangImGuiBeginPopupModalWithOpen(const char *name, bool *open); +extern bool HarfangImGuiBeginPopupModalWithOpenFlags(const char *name, bool *open, int flags); +extern bool HarfangImGuiBeginPopupContextItem(const char *id); +extern bool HarfangImGuiBeginPopupContextItemWithMouseButton(const char *id, int mouse_button); +extern bool HarfangImGuiBeginPopupContextWindow(); +extern bool HarfangImGuiBeginPopupContextWindowWithId(const char *id); +extern bool HarfangImGuiBeginPopupContextWindowWithIdFlags(const char *id, int flags); +extern bool HarfangImGuiBeginPopupContextVoid(); +extern bool HarfangImGuiBeginPopupContextVoidWithId(const char *id); +extern bool HarfangImGuiBeginPopupContextVoidWithIdMouseButton(const char *id, int mouse_button); +extern void HarfangImGuiEndPopup(); +extern void HarfangImGuiCloseCurrentPopup(); +extern void HarfangImGuiPushClipRect(const HarfangVec2 clip_rect_min, const HarfangVec2 clip_rect_max, bool intersect_with_current_clip_rect); +extern void HarfangImGuiPopClipRect(); +extern bool HarfangImGuiIsItemHovered(); +extern bool HarfangImGuiIsItemHoveredWithFlags(int flags); +extern bool HarfangImGuiIsItemActive(); +extern bool HarfangImGuiIsItemClicked(); +extern bool HarfangImGuiIsItemClickedWithMouseButton(int mouse_button); +extern bool HarfangImGuiIsItemVisible(); +extern bool HarfangImGuiIsAnyItemHovered(); +extern bool HarfangImGuiIsAnyItemActive(); +extern HarfangVec2 HarfangImGuiGetItemRectMin(); +extern HarfangVec2 HarfangImGuiGetItemRectMax(); +extern HarfangVec2 HarfangImGuiGetItemRectSize(); +extern void HarfangImGuiSetItemAllowOverlap(); +extern void HarfangImGuiSetItemDefaultFocus(); +extern bool HarfangImGuiIsWindowHovered(); +extern bool HarfangImGuiIsWindowHoveredWithFlags(int flags); +extern bool HarfangImGuiIsWindowFocused(); +extern bool HarfangImGuiIsWindowFocusedWithFlags(int flags); +extern bool HarfangImGuiIsRectVisible(const HarfangVec2 size); +extern bool HarfangImGuiIsRectVisibleWithRectMinRectMax(const HarfangVec2 rect_min, const HarfangVec2 rect_max); +extern float HarfangImGuiGetTime(); +extern int HarfangImGuiGetFrameCount(); +extern HarfangVec2 HarfangImGuiCalcTextSize(const char *text); +extern HarfangVec2 HarfangImGuiCalcTextSizeWithHideTextAfterDoubleDash(const char *text, bool hide_text_after_double_dash); +extern HarfangVec2 HarfangImGuiCalcTextSizeWithHideTextAfterDoubleDashWrapWidth(const char *text, bool hide_text_after_double_dash, float wrap_width); +extern bool HarfangImGuiIsKeyDown(int key_index); +extern bool HarfangImGuiIsKeyPressed(int key_index); +extern bool HarfangImGuiIsKeyPressedWithRepeat(int key_index, bool repeat); +extern bool HarfangImGuiIsKeyReleased(int key_index); +extern bool HarfangImGuiIsMouseDown(int button); +extern bool HarfangImGuiIsMouseClicked(int button); +extern bool HarfangImGuiIsMouseClickedWithRepeat(int button, bool repeat); +extern bool HarfangImGuiIsMouseDoubleClicked(int button); +extern bool HarfangImGuiIsMouseReleased(int button); +extern bool HarfangImGuiIsMouseHoveringRect(const HarfangVec2 rect_min, const HarfangVec2 rect_max); +extern bool HarfangImGuiIsMouseHoveringRectWithClip(const HarfangVec2 rect_min, const HarfangVec2 rect_max, bool clip); +extern bool HarfangImGuiIsMouseDragging(int button); +extern bool HarfangImGuiIsMouseDraggingWithLockThreshold(int button, float lock_threshold); +extern HarfangVec2 HarfangImGuiGetMousePos(); +extern HarfangVec2 HarfangImGuiGetMousePosOnOpeningCurrentPopup(); +extern HarfangVec2 HarfangImGuiGetMouseDragDelta(); +extern HarfangVec2 HarfangImGuiGetMouseDragDeltaWithButton(int button); +extern HarfangVec2 HarfangImGuiGetMouseDragDeltaWithButtonLockThreshold(int button, float lock_threshold); +extern void HarfangImGuiResetMouseDragDelta(); +extern void HarfangImGuiResetMouseDragDeltaWithButton(int button); +extern void HarfangImGuiCaptureKeyboardFromApp(bool capture); +extern void HarfangImGuiCaptureMouseFromApp(bool capture); +extern bool HarfangImGuiWantCaptureMouse(); +extern void HarfangImGuiMouseDrawCursor(const bool draw_cursor); +extern void HarfangImGuiInit(float font_size, HarfangProgramHandle imgui_program, HarfangProgramHandle imgui_image_program); +extern HarfangDearImguiContext HarfangImGuiInitContext(float font_size, HarfangProgramHandle imgui_program, HarfangProgramHandle imgui_image_program); +extern void HarfangImGuiShutdown(); +extern void HarfangImGuiBeginFrame(int width, int height, int64_t dt_clock, const HarfangMouseState mouse, const HarfangKeyboardState keyboard); +extern void HarfangImGuiBeginFrameWithCtxWidthHeightDtClockMouseKeyboard( + HarfangDearImguiContext ctx, int width, int height, int64_t dt_clock, const HarfangMouseState mouse, const HarfangKeyboardState keyboard); +extern void HarfangImGuiEndFrameWithCtx(const HarfangDearImguiContext ctx); +extern void HarfangImGuiEndFrameWithCtxViewId(const HarfangDearImguiContext ctx, uint16_t view_id); +extern void HarfangImGuiEndFrame(); +extern void HarfangImGuiEndFrameWithViewId(uint16_t view_id); +extern void HarfangImGuiClearInputBuffer(); +extern bool HarfangOpenFolderDialog(const char *title, const char **folder_name); +extern bool HarfangOpenFolderDialogWithInitialDir(const char *title, const char **folder_name, const char *initial_dir); +extern bool HarfangOpenFileDialog(const char *title, const HarfangFileFilterList filters, const char **file); +extern bool HarfangOpenFileDialogWithInitialDir(const char *title, const HarfangFileFilterList filters, const char **file, const char *initial_dir); +extern bool HarfangSaveFileDialog(const char *title, const HarfangFileFilterList filters, const char **file); +extern bool HarfangSaveFileDialogWithInitialDir(const char *title, const HarfangFileFilterList filters, const char **file, const char *initial_dir); +extern void HarfangFpsControllerWithKeyUpKeyDownKeyLeftKeyRightBtnDxDyPosRotSpeedDtT( + bool key_up, bool key_down, bool key_left, bool key_right, bool btn, float dx, float dy, HarfangVec3 pos, HarfangVec3 rot, float speed, int64_t dt_t); +extern void HarfangFpsController(const HarfangKeyboard keyboard, const HarfangMouse mouse, HarfangVec3 pos, HarfangVec3 rot, float speed, int64_t dt); +extern void HarfangSleep(int64_t duration); +extern bool HarfangAudioInit(); +extern void HarfangAudioShutdown(); +extern int HarfangLoadWAVSoundFile(const char *path); +extern int HarfangLoadWAVSoundAsset(const char *name); +extern int HarfangLoadOGGSoundFile(const char *path); +extern int HarfangLoadOGGSoundAsset(const char *name); +extern void HarfangUnloadSound(int snd); +extern void HarfangSetListener(const HarfangMat4 world, const HarfangVec3 velocity); +extern int HarfangPlayStereo(int snd, const HarfangStereoSourceState state); +extern int HarfangPlaySpatialized(int snd, const HarfangSpatializedSourceState state); +extern int HarfangStreamWAVFileStereo(const char *path, const HarfangStereoSourceState state); +extern int HarfangStreamWAVAssetStereo(const char *name, const HarfangStereoSourceState state); +extern int HarfangStreamWAVFileSpatialized(const char *path, const HarfangSpatializedSourceState state); +extern int HarfangStreamWAVAssetSpatialized(const char *name, const HarfangSpatializedSourceState state); +extern int HarfangStreamOGGFileStereo(const char *path, const HarfangStereoSourceState state); +extern int HarfangStreamOGGAssetStereo(const char *name, const HarfangStereoSourceState state); +extern int HarfangStreamOGGFileSpatialized(const char *path, const HarfangSpatializedSourceState state); +extern int HarfangStreamOGGAssetSpatialized(const char *name, const HarfangSpatializedSourceState state); +extern int64_t HarfangGetSourceDuration(int source); +extern int64_t HarfangGetSourceTimecode(int source); +extern bool HarfangSetSourceTimecode(int source, int64_t t); +extern void HarfangSetSourceVolume(int source, float volume); +extern void HarfangSetSourcePanning(int source, float panning); +extern void HarfangSetSourceRepeat(int source, int repeat); +extern void HarfangSetSourceTransform(int source, const HarfangMat4 world, const HarfangVec3 velocity); +extern int HarfangGetSourceState(int source); +extern void HarfangPauseSource(int source); +extern void HarfangStopSource(int source); +extern void HarfangStopAllSources(); +extern bool HarfangOpenVRInit(); +extern void HarfangOpenVRShutdown(); +extern HarfangOpenVREyeFrameBuffer HarfangOpenVRCreateEyeFrameBuffer(); +extern HarfangOpenVREyeFrameBuffer HarfangOpenVRCreateEyeFrameBufferWithAa(int aa); +extern void HarfangOpenVRDestroyEyeFrameBuffer(HarfangOpenVREyeFrameBuffer eye_fb); +extern HarfangOpenVRState HarfangOpenVRGetState(const HarfangMat4 body, float znear, float zfar); +extern void HarfangOpenVRStateToViewState(const HarfangOpenVRState state, HarfangViewState left, HarfangViewState right); +extern void HarfangOpenVRSubmitFrame(const HarfangOpenVREyeFrameBuffer left, const HarfangOpenVREyeFrameBuffer right); +extern void HarfangOpenVRPostPresentHandoff(); +extern HarfangTexture HarfangOpenVRGetColorTexture(const HarfangOpenVREyeFrameBuffer eye); +extern HarfangTexture HarfangOpenVRGetDepthTexture(const HarfangOpenVREyeFrameBuffer eye); +extern HarfangIVec2 HarfangOpenVRGetFrameBufferSize(); +extern bool HarfangOpenVRIsHMDMounted(); +extern bool HarfangOpenXRInit(); +extern bool HarfangOpenXRInitWithExtensionsFlagsEnable(uint16_t ExtensionsFlagsEnable); +extern void HarfangOpenXRShutdown(); +extern HarfangOpenXREyeFrameBufferList HarfangOpenXRCreateEyeFrameBuffer(); +extern HarfangOpenXREyeFrameBufferList HarfangOpenXRCreateEyeFrameBufferWithAa(int aa); +extern void HarfangOpenXRDestroyEyeFrameBuffer(HarfangOpenXREyeFrameBuffer eye_fb); +extern const char *HarfangOpenXRGetInstanceInfo(); +extern bool HarfangOpenXRGetEyeGaze(HarfangMat4 eye_gaze); +extern bool HarfangOpenXRGetHeadPose(HarfangMat4 head_pose); +extern HarfangOpenXRFrameInfo HarfangOpenXRSubmitSceneToForwardPipeline(const HarfangMat4 cam_offset, + HarfangFunctionReturningVoidTakingMat4Ptr update_controllers, + HarfangFunctionReturningUint16TTakingRectOfIntPtrViewStatePtrUint16TPtrFrameBufferHandlePtr draw_scene, uint16_t *view_id, float z_near, float z_far); +extern void HarfangOpenXRFinishSubmitFrameBuffer(const HarfangOpenXRFrameInfo frameInfo); +extern HarfangTexture HarfangOpenXRGetColorTexture(const HarfangOpenXREyeFrameBuffer eye); +extern HarfangTexture HarfangOpenXRGetDepthTexture(const HarfangOpenXREyeFrameBuffer eye); +extern HarfangTexture HarfangOpenXRGetColorTextureFromId(const HarfangOpenXREyeFrameBufferList eyes, const HarfangOpenXRFrameInfo frame_info, const int index); +extern HarfangTexture HarfangOpenXRGetDepthTextureFromId(const HarfangOpenXREyeFrameBufferList eyes, const HarfangOpenXRFrameInfo frame_info, const int index); +extern bool HarfangIsHandJointActive(int hand); +extern HarfangMat4 HarfangGetHandJointPose(int hand, int handJoint); +extern float HarfangGetHandJointRadius(int hand, int handJoint); +extern HarfangVec3 HarfangGetHandJointLinearVelocity(int hand, int handJoint); +extern HarfangVec3 HarfangGetHandJointAngularVelocity(int hand, int handJoint); +extern bool HarfangSRanipalInit(); +extern void HarfangSRanipalShutdown(); +extern void HarfangSRanipalLaunchEyeCalibration(); +extern bool HarfangSRanipalIsViveProEye(); +extern HarfangSRanipalState HarfangSRanipalGetState(); +extern HarfangVertex HarfangMakeVertex(const HarfangVec3 pos); +extern HarfangVertex HarfangMakeVertexWithNrm(const HarfangVec3 pos, const HarfangVec3 nrm); +extern HarfangVertex HarfangMakeVertexWithNrmUv0(const HarfangVec3 pos, const HarfangVec3 nrm, const HarfangVec2 uv0); +extern HarfangVertex HarfangMakeVertexWithNrmUv0Color0(const HarfangVec3 pos, const HarfangVec3 nrm, const HarfangVec2 uv0, const HarfangColor color0); +extern bool HarfangSaveGeometryToFile(const char *path, const HarfangGeometry geo); +extern HarfangIsoSurface HarfangNewIsoSurface(int width, int height, int depth); +extern void HarfangIsoSurfaceSphere(HarfangIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius); +extern void HarfangIsoSurfaceSphereWithValue(HarfangIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius, float value); +extern void HarfangIsoSurfaceSphereWithValueExponent( + HarfangIsoSurface surface, int width, int height, int depth, float x, float y, float z, float radius, float value, float exponent); +extern HarfangIsoSurface HarfangGaussianBlurIsoSurface(const HarfangIsoSurface surface, int width, int height, int depth); +extern bool HarfangIsoSurfaceToModel(HarfangModelBuilder builder, const HarfangIsoSurface surface, int width, int height, int depth); +extern bool HarfangIsoSurfaceToModelWithMaterial( + HarfangModelBuilder builder, const HarfangIsoSurface surface, int width, int height, int depth, uint16_t material); +extern bool HarfangIsoSurfaceToModelWithMaterialIsolevel( + HarfangModelBuilder builder, const HarfangIsoSurface surface, int width, int height, int depth, uint16_t material, float isolevel); +extern bool HarfangIsoSurfaceToModelWithMaterialIsolevelScaleXScaleYScaleZ(HarfangModelBuilder builder, const HarfangIsoSurface surface, int width, int height, int depth, uint16_t material, float isolevel, float scale_x, float scale_y, float scale_z); -extern WrapBloom WrapCreateBloomFromFile(const char *path, int ratio); -extern WrapBloom WrapCreateBloomFromAssets(const char *path, int ratio); -extern void WrapDestroyBloom(WrapBloom bloom); -extern void WrapApplyBloom(uint16_t *view_id, const WrapIntRect rect, const WrapTexture input, WrapFrameBufferHandle output, WrapBloom bloom, float threshold, - float smoothness, float intensity); -extern WrapSAO WrapCreateSAOFromFile(const char *path, int ratio); -extern WrapSAO WrapCreateSAOFromAssets(const char *path, int ratio); -extern void WrapDestroySAO(WrapSAO sao); -extern void WrapComputeSAO(uint16_t *view_id, const WrapIntRect rect, const WrapTexture attr0, const WrapTexture attr1, const WrapTexture noise, - WrapFrameBufferHandle output, const WrapSAO sao, const WrapMat44 projection, float bias, float radius, int sample_count, float sharpness); -extern size_t WrapBeginProfilerSection(const char *name); -extern size_t WrapBeginProfilerSectionWithSectionDetails(const char *name, const char *section_details); -extern void WrapEndProfilerSection(size_t section_idx); -extern WrapProfilerFrame WrapEndProfilerFrame(); -extern WrapProfilerFrame WrapCaptureProfilerFrame(); -extern void WrapPrintProfilerFrame(const WrapProfilerFrame profiler_frame); -extern WrapIVideoStreamer WrapMakeVideoStreamer(const char *module_path); -extern bool WrapUpdateTexture(WrapIVideoStreamer streamer, intptr_t *handle, WrapTexture texture, WrapIVec2 size, int *format); -extern bool WrapUpdateTextureWithDestroy(WrapIVideoStreamer streamer, intptr_t *handle, WrapTexture texture, WrapIVec2 size, int *format, bool destroy); -extern WrapPipeline WrapCastForwardPipelineToPipeline(WrapForwardPipeline o); -extern WrapForwardPipeline WrapCastPipelineToForwardPipeline(WrapPipeline o); -extern uint32_t WrapGetRFNone(); -extern uint32_t WrapGetRFMSAA2X(); -extern uint32_t WrapGetRFMSAA4X(); -extern uint32_t WrapGetRFMSAA8X(); -extern uint32_t WrapGetRFMSAA16X(); -extern uint32_t WrapGetRFVSync(); -extern uint32_t WrapGetRFMaxAnisotropy(); -extern uint32_t WrapGetRFCapture(); -extern uint32_t WrapGetRFFlushAfterRender(); -extern uint32_t WrapGetRFFlipAfterRender(); -extern uint32_t WrapGetRFSRGBBackBuffer(); -extern uint32_t WrapGetRFHDR10(); -extern uint32_t WrapGetRFHiDPI(); -extern uint32_t WrapGetRFDepthClamp(); -extern uint32_t WrapGetRFSuspend(); -extern uint32_t WrapGetDFIFH(); -extern uint32_t WrapGetDFProfiler(); -extern uint32_t WrapGetDFStats(); -extern uint32_t WrapGetDFText(); -extern uint32_t WrapGetDFWireframe(); -extern WrapFrameBufferHandle WrapGetInvalidFrameBufferHandle(); -extern uint16_t WrapGetCFNone(); -extern uint16_t WrapGetCFColor(); -extern uint16_t WrapGetCFDepth(); -extern uint16_t WrapGetCFStencil(); -extern uint16_t WrapGetCFDiscardColor0(); -extern uint16_t WrapGetCFDiscardColor1(); -extern uint16_t WrapGetCFDiscardColor2(); -extern uint16_t WrapGetCFDiscardColor3(); -extern uint16_t WrapGetCFDiscardColor4(); -extern uint16_t WrapGetCFDiscardColor5(); -extern uint16_t WrapGetCFDiscardColor6(); -extern uint16_t WrapGetCFDiscardColor7(); -extern uint16_t WrapGetCFDiscardDepth(); -extern uint16_t WrapGetCFDiscardStencil(); -extern uint16_t WrapGetCFDiscardColorAll(); -extern uint16_t WrapGetCFDiscardAll(); -extern uint64_t WrapGetTFUMirror(); -extern uint64_t WrapGetTFUClamp(); -extern uint64_t WrapGetTFUBorder(); -extern uint64_t WrapGetTFVMirror(); -extern uint64_t WrapGetTFVClamp(); -extern uint64_t WrapGetTFVBorder(); -extern uint64_t WrapGetTFWMirror(); -extern uint64_t WrapGetTFWClamp(); -extern uint64_t WrapGetTFWBorder(); -extern uint64_t WrapGetTFSamplerMinPoint(); -extern uint64_t WrapGetTFSamplerMinAnisotropic(); -extern uint64_t WrapGetTFSamplerMagPoint(); -extern uint64_t WrapGetTFSamplerMagAnisotropic(); -extern uint64_t WrapGetTFBlitDestination(); -extern uint64_t WrapGetTFReadBack(); -extern uint64_t WrapGetTFRenderTarget(); -extern WrapModelRef WrapGetInvalidModelRef(); -extern WrapTextureRef WrapGetInvalidTextureRef(); -extern WrapMaterialRef WrapGetInvalidMaterialRef(); -extern WrapPipelineProgramRef WrapGetInvalidPipelineProgramRef(); -extern WrapSceneAnimRef WrapGetInvalidSceneAnimRef(); -extern int64_t WrapGetUnspecifiedAnimTime(); -extern WrapNode WrapGetNullNode(); -extern uint32_t WrapGetLSSFNodes(); -extern uint32_t WrapGetLSSFScene(); -extern uint32_t WrapGetLSSFAnims(); -extern uint32_t WrapGetLSSFKeyValues(); -extern uint32_t WrapGetLSSFPhysics(); -extern uint32_t WrapGetLSSFScripts(); -extern uint32_t WrapGetLSSFAll(); -extern uint32_t WrapGetLSSFQueueTextureLoads(); -extern uint32_t WrapGetLSSFFreezeMatrixToTransformOnSave(); -extern uint32_t WrapGetLSSFQueueModelLoads(); -extern uint32_t WrapGetLSSFDoNotChangeCurrentCameraIfValid(); -extern WrapSignalReturningVoidTakingConstCharPtr WrapGetOnTextInput(); -extern int WrapGetInvalidAudioStreamRef(); -extern int WrapGetSNDInvalid(); -extern int WrapGetSRCInvalid(); +extern HarfangBloom HarfangCreateBloomFromFile(const char *path, int ratio); +extern HarfangBloom HarfangCreateBloomFromAssets(const char *path, int ratio); +extern void HarfangDestroyBloom(HarfangBloom bloom); +extern void HarfangApplyBloom(uint16_t *view_id, const HarfangIntRect rect, const HarfangTexture input, HarfangFrameBufferHandle output, HarfangBloom bloom, + float threshold, float smoothness, float intensity); +extern HarfangSAO HarfangCreateSAOFromFile(const char *path, int ratio); +extern HarfangSAO HarfangCreateSAOFromAssets(const char *path, int ratio); +extern void HarfangDestroySAO(HarfangSAO sao); +extern void HarfangComputeSAO(uint16_t *view_id, const HarfangIntRect rect, const HarfangTexture attr0, const HarfangTexture attr1, const HarfangTexture noise, + HarfangFrameBufferHandle output, const HarfangSAO sao, const HarfangMat44 projection, float bias, float radius, int sample_count, float sharpness); +extern size_t HarfangBeginProfilerSection(const char *name); +extern size_t HarfangBeginProfilerSectionWithSectionDetails(const char *name, const char *section_details); +extern void HarfangEndProfilerSection(size_t section_idx); +extern HarfangProfilerFrame HarfangEndProfilerFrame(); +extern HarfangProfilerFrame HarfangCaptureProfilerFrame(); +extern void HarfangPrintProfilerFrame(const HarfangProfilerFrame profiler_frame); +extern HarfangIVideoStreamer HarfangMakeVideoStreamer(const char *module_path); +extern bool HarfangUpdateTexture(HarfangIVideoStreamer streamer, intptr_t *handle, HarfangTexture texture, HarfangIVec2 size, int *format); +extern bool HarfangUpdateTextureWithDestroy( + HarfangIVideoStreamer streamer, intptr_t *handle, HarfangTexture texture, HarfangIVec2 size, int *format, bool destroy); +extern HarfangPipeline HarfangCastForwardPipelineToPipeline(HarfangForwardPipeline o); +extern HarfangForwardPipeline HarfangCastPipelineToForwardPipeline(HarfangPipeline o); +extern uint32_t HarfangGetRFNone(); +extern uint32_t HarfangGetRFMSAA2X(); +extern uint32_t HarfangGetRFMSAA4X(); +extern uint32_t HarfangGetRFMSAA8X(); +extern uint32_t HarfangGetRFMSAA16X(); +extern uint32_t HarfangGetRFVSync(); +extern uint32_t HarfangGetRFMaxAnisotropy(); +extern uint32_t HarfangGetRFCapture(); +extern uint32_t HarfangGetRFFlushAfterRender(); +extern uint32_t HarfangGetRFFlipAfterRender(); +extern uint32_t HarfangGetRFSRGBBackBuffer(); +extern uint32_t HarfangGetRFHDR10(); +extern uint32_t HarfangGetRFHiDPI(); +extern uint32_t HarfangGetRFDepthClamp(); +extern uint32_t HarfangGetRFSuspend(); +extern uint32_t HarfangGetDFIFH(); +extern uint32_t HarfangGetDFProfiler(); +extern uint32_t HarfangGetDFStats(); +extern uint32_t HarfangGetDFText(); +extern uint32_t HarfangGetDFWireframe(); +extern HarfangFrameBufferHandle HarfangGetInvalidFrameBufferHandle(); +extern uint16_t HarfangGetCFNone(); +extern uint16_t HarfangGetCFColor(); +extern uint16_t HarfangGetCFDepth(); +extern uint16_t HarfangGetCFStencil(); +extern uint16_t HarfangGetCFDiscardColor0(); +extern uint16_t HarfangGetCFDiscardColor1(); +extern uint16_t HarfangGetCFDiscardColor2(); +extern uint16_t HarfangGetCFDiscardColor3(); +extern uint16_t HarfangGetCFDiscardColor4(); +extern uint16_t HarfangGetCFDiscardColor5(); +extern uint16_t HarfangGetCFDiscardColor6(); +extern uint16_t HarfangGetCFDiscardColor7(); +extern uint16_t HarfangGetCFDiscardDepth(); +extern uint16_t HarfangGetCFDiscardStencil(); +extern uint16_t HarfangGetCFDiscardColorAll(); +extern uint16_t HarfangGetCFDiscardAll(); +extern uint64_t HarfangGetTFUMirror(); +extern uint64_t HarfangGetTFUClamp(); +extern uint64_t HarfangGetTFUBorder(); +extern uint64_t HarfangGetTFVMirror(); +extern uint64_t HarfangGetTFVClamp(); +extern uint64_t HarfangGetTFVBorder(); +extern uint64_t HarfangGetTFWMirror(); +extern uint64_t HarfangGetTFWClamp(); +extern uint64_t HarfangGetTFWBorder(); +extern uint64_t HarfangGetTFSamplerMinPoint(); +extern uint64_t HarfangGetTFSamplerMinAnisotropic(); +extern uint64_t HarfangGetTFSamplerMagPoint(); +extern uint64_t HarfangGetTFSamplerMagAnisotropic(); +extern uint64_t HarfangGetTFBlitDestination(); +extern uint64_t HarfangGetTFReadBack(); +extern uint64_t HarfangGetTFRenderTarget(); +extern HarfangModelRef HarfangGetInvalidModelRef(); +extern HarfangTextureRef HarfangGetInvalidTextureRef(); +extern HarfangMaterialRef HarfangGetInvalidMaterialRef(); +extern HarfangPipelineProgramRef HarfangGetInvalidPipelineProgramRef(); +extern HarfangSceneAnimRef HarfangGetInvalidSceneAnimRef(); +extern int64_t HarfangGetUnspecifiedAnimTime(); +extern HarfangNode HarfangGetNullNode(); +extern uint32_t HarfangGetLSSFNodes(); +extern uint32_t HarfangGetLSSFScene(); +extern uint32_t HarfangGetLSSFAnims(); +extern uint32_t HarfangGetLSSFKeyValues(); +extern uint32_t HarfangGetLSSFPhysics(); +extern uint32_t HarfangGetLSSFScripts(); +extern uint32_t HarfangGetLSSFAll(); +extern uint32_t HarfangGetLSSFQueueTextureLoads(); +extern uint32_t HarfangGetLSSFFreezeMatrixToTransformOnSave(); +extern uint32_t HarfangGetLSSFQueueModelLoads(); +extern uint32_t HarfangGetLSSFDoNotChangeCurrentCameraIfValid(); +extern HarfangSignalReturningVoidTakingConstCharPtr HarfangGetOnTextInput(); +extern int HarfangGetInvalidAudioStreamRef(); +extern int HarfangGetSNDInvalid(); +extern int HarfangGetSRCInvalid(); #ifdef __cplusplus } #endif