Versions in this module Expand all Collapse all v1 v1.0.1 Oct 9, 2023 Changes in this version + const DstAlpha + const One + const OneMinusDstAlpha + const OneMinusSrcAlpha + const SrcAlpha + const Zero + func BlendFunc(src, dst BlendFactor) + func Bounds(x, y, w, h int) + func Clear(r, g, b, a float32) + func Init() + type Attr struct + Name string + Type AttrType + type AttrFormat []Attr + func (af AttrFormat) Size() int + type AttrType int + const Float + const Int + const Mat2 + const Mat23 + const Mat24 + const Mat3 + const Mat32 + const Mat34 + const Mat4 + const Mat42 + const Mat43 + const Vec2 + const Vec3 + const Vec4 + func (at AttrType) Size() int + type BeginEnder interface + Begin func() + End func() + type BlendFactor int + type Frame struct + func NewFrame(width, height int, smooth bool) *Frame + func (f *Frame) Begin() + func (f *Frame) Blit(dst *Frame, sx0, sy0, sx1, sy1, dx0, dy0, dx1, dy1 int) + func (f *Frame) End() + func (f *Frame) ID() uint32 + func (f *Frame) Texture() *Texture + type Shader struct + func NewShader(vertexFmt, uniformFmt AttrFormat, vertexShader, fragmentShader string) (*Shader, error) + func (s *Shader) Begin() + func (s *Shader) End() + func (s *Shader) ID() uint32 + func (s *Shader) SetUniformAttr(uniform int, value interface{}) (ok bool) + func (s *Shader) UniformFormat() AttrFormat + func (s *Shader) VertexFormat() AttrFormat + type Texture struct + func NewTexture(width, height int, smooth bool, pixels []uint8) *Texture + func (t *Texture) Begin() + func (t *Texture) End() + func (t *Texture) Height() int + func (t *Texture) ID() uint32 + func (t *Texture) Pixels(x, y, w, h int) []uint8 + func (t *Texture) SetPixels(x, y, w, h int, pixels []uint8) + func (t *Texture) SetSmooth(smooth bool) + func (t *Texture) Smooth() bool + func (t *Texture) Width() int + type VertexSlice struct + func MakeVertexSlice(shader *Shader, len, cap int) *VertexSlice + func (vs *VertexSlice) Begin() + func (vs *VertexSlice) Cap() int + func (vs *VertexSlice) Draw() + func (vs *VertexSlice) End() + func (vs *VertexSlice) Len() int + func (vs *VertexSlice) SetLen(len int) + func (vs *VertexSlice) SetVertexData(data []float32) + func (vs *VertexSlice) Slice(i, j int) *VertexSlice + func (vs *VertexSlice) Stride() int + func (vs *VertexSlice) VertexData() []float32 + func (vs *VertexSlice) VertexFormat() AttrFormat Other modules containing this package github.com/gopxl/glhf/v2