Versions in this module Expand all Collapse all v0 v0.0.4 Dec 11, 2022 v0.0.3 Dec 11, 2022 v0.0.2 Dec 11, 2022 v0.0.1 Dec 11, 2022 Changes in this version + const Blend + const CullFace + const DepthBuffer + const DepthTest + const DynamicDraw + const ImageBuffer + const LayerSize + const Lines + const PointSize + const Points + const StaticDraw + const Triangles + func M4ToData(m *lin.M4, d []float32) []float32 + func SortDraws(frame []*Draw) + type Context interface + BindMap func(fbo, tid *uint32) error + BindMesh func(vao *uint32, vdata map[uint32]Data, fdata Data) error + BindShader func(vsh, fsh []string, uniforms map[string]int32, layouts map[string]uint32) (program uint32, err error) + BindTarget func(fbo, tid, db *uint32) error + BindTexture func(tid *uint32, img image.Image) error + Clear func() + Color func(r, g, b, a float32) + Enable func(attr uint32, enable bool) + Init func() (err error) + ReleaseMap func(fbo, tid uint32) + ReleaseMesh func(vao uint32) + ReleaseShader func(sid uint32) + ReleaseTarget func(fbo, tid, db uint32) + ReleaseTexture func(tid uint32) + Render func(d *Draw) + SetTextureMode func(tid uint32, clamp bool) + Viewport func(width int, height int) + func New() Context + type Data interface + Clone func() Data + Len func() int + Set func(data interface{}) + Size func() uint32 + func NewFaceData(usage uint32) Data + func NewInstancedData(lloc uint32) Data + func NewVertexData(lloc, span, usage uint32, normalize bool) Data + type Draw struct + Bucket uint64 + Depth bool + FaceCnt int32 + Fbo uint32 + Instances int32 + Mode int + NumPoses int + Poses []float32 + Scissor bool + Sh int32 + Shader uint32 + Shtex uint32 + Sw int32 + Sx int32 + Sy int32 + Tag uint32 + Texs []tex + UniformData map[int32][]float32 + Uniforms map[string]int32 + Vao uint32 + VertCnt int32 + func NewDraw() *Draw + func (d *Draw) Reset() + func (d *Draw) SetCounts(faces, verts int) + func (d *Draw) SetM4Data(ref int32, m *lin.M4) + func (d *Draw) SetPoses(poses []lin.M4) + func (d *Draw) SetRefs(shader, meshes uint32, mode int) + func (d *Draw) SetShadowmap(tid uint32) + func (d *Draw) SetTex(count, index, order int, tid uint32) + func (d *Draw) SetUniformData(ref int32, floats ...float32)