Documentation ¶
Index ¶
- Constants
- func NextPowerOf2Int32(x int32) int32
- type Framebuffer
- func (f *Framebuffer) Dispose(c *opengl.Context)
- func (f *Framebuffer) DrawTexture(c *opengl.Context, t *Texture, vertices []int16, geo, clr Matrix, ...) error
- func (f *Framebuffer) Fill(c *opengl.Context, clr color.Color) error
- func (f *Framebuffer) Pixels(c *opengl.Context) ([]uint8, error)
- func (f *Framebuffer) ReplacePixels(c *opengl.Context, t *Texture, p []uint8) error
- func (f *Framebuffer) Size() (width, height int)
- type Matrix
- type Texture
Constants ¶
View Source
const MaxQuads = indicesNum / 6
Variables ¶
This section is empty.
Functions ¶
func NextPowerOf2Int32 ¶ added in v1.3.0
Types ¶
type Framebuffer ¶
type Framebuffer struct {
// contains filtered or unexported fields
}
func NewFramebufferFromTexture ¶
func NewFramebufferFromTexture(c *opengl.Context, texture *Texture) (*Framebuffer, error)
func NewZeroFramebuffer ¶
func NewZeroFramebuffer(c *opengl.Context, width, height int) (*Framebuffer, error)
func (*Framebuffer) Dispose ¶
func (f *Framebuffer) Dispose(c *opengl.Context)
func (*Framebuffer) DrawTexture ¶
func (f *Framebuffer) DrawTexture(c *opengl.Context, t *Texture, vertices []int16, geo, clr Matrix, mode opengl.CompositeMode) error
func (*Framebuffer) ReplacePixels ¶ added in v1.3.0
func (*Framebuffer) Size ¶
func (f *Framebuffer) Size() (width, height int)
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
func NewTexture ¶
func NewTextureFromImage ¶
Click to show internal directories.
Click to hide internal directories.