cutego/quick/qsggeometrynode.go

70 lines
1.6 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package quick
//#include "qsggeometrynode.h"
import "C"
import (
"unsafe"
)
type QSGGeometryNode struct {
QSGBasicGeometryNode
}
2015-11-09 20:23:42 +03:00
type QSGGeometryNode_ITF interface {
QSGBasicGeometryNode_ITF
QSGGeometryNode_PTR() *QSGGeometryNode
2015-10-24 18:18:24 +03:00
}
2015-11-09 20:23:42 +03:00
func PointerFromQSGGeometryNode(ptr QSGGeometryNode_ITF) unsafe.Pointer {
2015-10-24 18:18:24 +03:00
if ptr != nil {
2015-11-09 20:23:42 +03:00
return ptr.QSGGeometryNode_PTR().Pointer()
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func NewQSGGeometryNodeFromPointer(ptr unsafe.Pointer) *QSGGeometryNode {
2015-10-24 18:18:24 +03:00
var n = new(QSGGeometryNode)
n.SetPointer(ptr)
return n
}
2015-11-09 20:23:42 +03:00
func (ptr *QSGGeometryNode) QSGGeometryNode_PTR() *QSGGeometryNode {
2015-10-24 18:18:24 +03:00
return ptr
}
func NewQSGGeometryNode() *QSGGeometryNode {
2015-11-09 20:23:42 +03:00
return NewQSGGeometryNodeFromPointer(C.QSGGeometryNode_NewQSGGeometryNode())
2015-10-24 18:18:24 +03:00
}
func (ptr *QSGGeometryNode) Material() *QSGMaterial {
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return NewQSGMaterialFromPointer(C.QSGGeometryNode_Material(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return nil
}
func (ptr *QSGGeometryNode) OpaqueMaterial() *QSGMaterial {
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return NewQSGMaterialFromPointer(C.QSGGeometryNode_OpaqueMaterial(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func (ptr *QSGGeometryNode) SetMaterial(material QSGMaterial_ITF) {
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QSGGeometryNode_SetMaterial(ptr.Pointer(), PointerFromQSGMaterial(material))
2015-10-24 18:18:24 +03:00
}
}
2015-11-09 20:23:42 +03:00
func (ptr *QSGGeometryNode) SetOpaqueMaterial(material QSGMaterial_ITF) {
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QSGGeometryNode_SetOpaqueMaterial(ptr.Pointer(), PointerFromQSGMaterial(material))
2015-10-24 18:18:24 +03:00
}
}
func (ptr *QSGGeometryNode) DestroyQSGGeometryNode() {
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QSGGeometryNode_DestroyQSGGeometryNode(ptr.Pointer())
2015-10-24 18:18:24 +03:00
}
}