Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct { VAOID uint32 //BufID is the ID of the VBO BufID uint32 //IndexBufID is the ID of the index/element buffer IndexBufID uint32 IndexBufCount int32 Stride int32 // contains filtered or unexported fields }
func (*Buffer) SetIndexBufData ¶ added in v0.0.3
type Element ¶ added in v0.0.3
type Element struct { Offset int ElementType }
Element represents an element that makes up a buffer (e.g. Vec3 at an offset of 12 bytes)
type ElementType ¶ added in v0.0.3
type ElementType int
ElementType is the type of an element thats makes up a buffer (e.g. Vec3)
const ( DataTypeUnknown ElementType = iota DataTypeUint32 DataTypeInt32 DataTypeFloat32 DataTypeVec2 DataTypeVec3 DataTypeVec4 )
func (ElementType) CompCount ¶ added in v0.0.3
func (dt ElementType) CompCount() int32
CompCount returns the number of components in the element (e.g. for Vec2 its 2)
func (ElementType) CompSize ¶ added in v0.0.3
func (dt ElementType) CompSize() int32
CompSize returns the size in bytes for one component of the type (e.g. for Vec2 its 4)
func (ElementType) GLType ¶ added in v0.0.3
func (dt ElementType) GLType() uint32
func (ElementType) Size ¶ added in v0.0.3
func (dt ElementType) Size() int32
Size returns the total size in bytes (e.g. for vec3 its 3*4=12 bytes)
Click to show internal directories.
Click to hide internal directories.