Documentation
¶
Overview ¶
GLTFBufferView is a data structure representing a glTF bufferView that would be found in the "bufferViews" array. A buffer is a blob of binary data. A buffer view is a slice of a buffer that can be used to identify and extract data from the buffer.
Most custom uses of buffers only need to use the Buffer, ByteLength, and ByteOffset. The ByteStride and Indices properties are for more advanced use cases such as interleaved mesh data encoded for the GPU.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsGLTFBufferView() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Buffer() int
- func (self Instance) ByteLength() int
- func (self Instance) ByteOffset() int
- func (self Instance) ByteStride() int
- func (self Instance) ID() ID
- func (self Instance) Indices() bool
- func (self Instance) SetBuffer(value int)
- func (self Instance) SetByteLength(value int)
- func (self Instance) SetByteOffset(value int)
- func (self Instance) SetByteStride(value int)
- func (self Instance) SetIndices(value bool)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetVertexAttributes(value bool)
- func (self Instance) VertexAttributes() bool
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsGLTFBufferView ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.GLTFBufferView
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsGLTFBufferView ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) Buffer ¶
The index of the buffer this buffer view is referencing. If -1, this buffer view is not referencing any buffer.
func (Instance) ByteLength ¶
The length, in bytes, of this buffer view. If 0, this buffer view is empty.
func (Instance) ByteOffset ¶
The offset, in bytes, from the start of the buffer to the start of this buffer view.
func (Instance) ByteStride ¶
The stride, in bytes, between interleaved data. If -1, this buffer view is not interleaved.
func (Instance) Indices ¶
true if the GLTFBufferView's OpenGL GPU buffer type is an ELEMENT_ARRAY_BUFFER used for vertex indices (integer constant 34963). false if the buffer type is any other value. See Buffers, BufferViews, and Accessors for possible values. This property is set on import and used on export.
func (Instance) SetByteLength ¶
SetByteLength sets the property returned by [GetByteLength].
func (Instance) SetByteOffset ¶
SetByteOffset sets the property returned by [GetByteOffset].
func (Instance) SetByteStride ¶
SetByteStride sets the property returned by [GetByteStride].
func (Instance) SetIndices ¶
SetIndices sets the property returned by [GetIndices].
func (Instance) SetVertexAttributes ¶
SetVertexAttributes sets the property returned by [GetVertexAttributes].
func (Instance) VertexAttributes ¶
true if the GLTFBufferView's OpenGL GPU buffer type is an ARRAY_BUFFER used for vertex attributes (integer constant 34962). false if the buffer type is any other value. See Buffers, BufferViews, and Accessors for possible values. This property is set on import and used on export.