Documentation ¶
Index ¶
Constants ¶
View Source
const ( SizeOfFloat = 4 TEX_COORD_MAX = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferByte ¶
type BufferByte struct {
// contains filtered or unexported fields
}
func NewBufferByte ¶
func NewBufferByte(data []byte) *BufferByte
func (*BufferByte) Data ¶
func (b *BufferByte) Data() []byte
func (*BufferByte) Len ¶
func (b *BufferByte) Len() int
type BufferFloat ¶
type BufferFloat struct {
// contains filtered or unexported fields
}
func NewBufferFloat ¶
func NewBufferFloat(data []float32) *BufferFloat
func (*BufferFloat) Data ¶
func (b *BufferFloat) Data() []float32
func (*BufferFloat) Len ¶
func (b *BufferFloat) Len() int
type Cube ¶
type Cube struct { Vertices *BufferFloat Program Program // contains filtered or unexported fields }
func (*Cube) AttachTexture ¶
func (*Cube) AttachTextureFromBuffer ¶
func (*Cube) AttachTextureFromFile ¶
type FragmentShader ¶
type FragmentShader string
func (FragmentShader) Compile ¶
func (s FragmentShader) Compile() uint32
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
FIXME - it could be of type uint32
func (*Program) GetAttribute ¶
func (*Program) GetUniform ¶
type VertexShader ¶
type VertexShader string
func (VertexShader) Compile ¶
func (s VertexShader) Compile() uint32
Click to show internal directories.
Click to hide internal directories.