Documentation ¶
Index ¶
Constants ¶
View Source
const ( VertexPosition = VBOAttributeType(iota) VertexColor VertexTexCoord NumVertexAttributes )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶
func NewProgram() *Program
func (*Program) GetAttribLocation ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func InitOpenGL ¶
func InitOpenGL() *State
type VBO ¶
type VBO struct {
// contains filtered or unexported fields
}
func NewVBO ¶
func NewVBO(buffers [NumVertexAttributes][]float32) *VBO
func (*VBO) AddAttribute ¶
func (vbo *VBO) AddAttribute(t VBOAttributeType) *VBO
type VBOAttribute ¶
type VBOAttribute struct { Type VBOAttributeType Name string NumElements int32 ByteOffset uint32 ElementType uint32 }
type VBOAttributeType ¶
type VBOAttributeType int
Click to show internal directories.
Click to hide internal directories.