Documentation ¶
Index ¶
- func FixImage(img image.Image) *image.RGBA
- func LoadImage(file string) (*image.RGBA, error)
- type Attrib
- type Buffer
- type BufferAccessFrequencyEnum
- type BufferAccessNatureEnum
- type BufferOption
- type Program
- type Texture
- type TextureFilterEnum
- type TextureOption
- type TextureWrapEnum
- type Uniform
- type VAO
- type VAOOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func NewBuffer ¶
func NewBuffer(idata interface{}, opts ...BufferOption) (*Buffer, error)
type BufferAccessFrequencyEnum ¶
type BufferAccessFrequencyEnum int
const ( STATIC BufferAccessFrequencyEnum = iota STREAM DYNAMIC )
type BufferAccessNatureEnum ¶
type BufferAccessNatureEnum int
const ( DRAW BufferAccessNatureEnum = iota * 8 READ COPY )
type BufferOption ¶
type BufferOption func(opt *bufferOption)
func BufferAccessFrequency ¶
func BufferAccessFrequency(e BufferAccessFrequencyEnum) BufferOption
func BufferAccessNature ¶
func BufferAccessNature(e BufferAccessNatureEnum) BufferOption
func BufferElementArray ¶
func BufferElementArray() BufferOption
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
func NewTexture ¶
func NewTexture(img *image.RGBA, opts ...TextureOption) (*Texture, error)
type TextureFilterEnum ¶
type TextureFilterEnum uint32
const ( NEAREST TextureFilterEnum = gl.NEAREST LINEAR TextureFilterEnum = gl.LINEAR )
type TextureOption ¶
type TextureOption func(opt *textureOption)
func TextureFilter ¶
func TextureFilter(min, mag TextureFilterEnum) TextureOption
func TextureWrap ¶
func TextureWrap(wrap_s, wrap_t TextureWrapEnum) TextureOption
type TextureWrapEnum ¶
type TextureWrapEnum uint32
const ( CLAMP_TO_EDGE TextureWrapEnum = gl.CLAMP_TO_EDGE REPEAT TextureWrapEnum = gl.REPEAT MIRRORED_REPEAT TextureWrapEnum = gl.MIRRORED_REPEAT )
type Uniform ¶
type Uniform struct {
// contains filtered or unexported fields
}
func (Uniform) SetSampler ¶
Click to show internal directories.
Click to hide internal directories.