Documentation ¶
Index ¶
- Constants
- Variables
- type Filter
- type Format
- type Pixmap
- func NewPixMap(width, height int) *Pixmap
- func NewPixMapC(width, height, components int) *Pixmap
- func NewPixmapFile(file *os.File) (*Pixmap, error)
- func NewPixmapFileString(path string) (*Pixmap, error)
- func NewPixmapFromBytes(bytes []byte) (*Pixmap, error)
- func NewPixmapReader(file io.ReadCloser, _size int64) (*Pixmap, error)
- type Texture
- type TextureAtlas
- type TextureMultiLayer
- func (texture *TextureMultiLayer) Bind(loc uint)
- func (texture *TextureMultiLayer) Dispose()
- func (texture *TextureMultiLayer) GenerateMipmaps()
- func (texture *TextureMultiLayer) GetHeight() int32
- func (texture *TextureMultiLayer) GetID() uint32
- func (texture *TextureMultiLayer) GetLayers() int32
- func (texture *TextureMultiLayer) GetLocation() uint
- func (texture *TextureMultiLayer) GetRegion() TextureRegion
- func (texture *TextureMultiLayer) GetWidth() int32
- func (texture *TextureMultiLayer) NewLayer()
- func (texture *TextureMultiLayer) SetData(x, y, width, height, layer int, data []uint8)
- func (texture *TextureMultiLayer) SetFiltering(min, mag Filter)
- func (texture *TextureMultiLayer) SetManualMipmapping(value bool)
- type TextureRegion
- type TextureSingle
- func (texture *TextureSingle) Bind(loc uint)
- func (texture *TextureSingle) Dispose()
- func (texture *TextureSingle) GetHeight() int32
- func (texture *TextureSingle) GetID() uint32
- func (texture *TextureSingle) GetLayers() int32
- func (texture *TextureSingle) GetLocation() uint
- func (texture *TextureSingle) GetRegion() TextureRegion
- func (texture *TextureSingle) GetWidth() int32
- func (texture *TextureSingle) SetData(x, y, width, height int, data []uint8)
- func (texture *TextureSingle) SetFiltering(min, mag Filter)
Constants ¶
View Source
const ( Red = Format(iota) Depth RGB BGR RGB32F RGBA BGRA RGBA32F )
Variables ¶
View Source
var Filtering = struct { Nearest, Linear, MipMap, MipMapNearestNearest, MipMapLinearNearest, MipMapNearestLinear, MipMapLinearLinear Filter }{gl.NEAREST, gl.LINEAR, gl.LINEAR_MIPMAP_LINEAR, gl.NEAREST_MIPMAP_NEAREST, gl.LINEAR_MIPMAP_NEAREST, gl.NEAREST_MIPMAP_LINEAR, gl.LINEAR_MIPMAP_LINEAR}
Functions ¶
This section is empty.
Types ¶
type Pixmap ¶
type Pixmap struct { RawPointer unsafe.Pointer Data []uint8 Width int Height int Components int // contains filtered or unexported fields }
func NewPixMapC ¶
func NewPixmapFileString ¶
func NewPixmapFromBytes ¶
func NewPixmapReader ¶
func NewPixmapReader(file io.ReadCloser, _size int64) (*Pixmap, error)
type TextureAtlas ¶
type TextureAtlas struct { *TextureMultiLayer // contains filtered or unexported fields }
func NewTextureAtlas ¶
func NewTextureAtlas(size, mipmaps int) *TextureAtlas
func NewTextureAtlasFormat ¶
func NewTextureAtlasFormat(size int, format Format, mipmaps int, layers int) *TextureAtlas
func (*TextureAtlas) AddTexture ¶
func (texture *TextureAtlas) AddTexture(name string, width, height int, data []uint8) *TextureRegion
func (*TextureAtlas) GetTexture ¶
func (texture *TextureAtlas) GetTexture(name string) *TextureRegion
func (*TextureAtlas) NewLayer ¶
func (texture *TextureAtlas) NewLayer()
type TextureMultiLayer ¶
type TextureMultiLayer struct {
// contains filtered or unexported fields
}
func NewTextureMultiLayer ¶
func NewTextureMultiLayer(width, height, mipmaps, layers int) *TextureMultiLayer
func NewTextureMultiLayerFormat ¶
func NewTextureMultiLayerFormat(width, height int, format Format, mipmaps int, layers int) *TextureMultiLayer
func (*TextureMultiLayer) Bind ¶
func (texture *TextureMultiLayer) Bind(loc uint)
func (*TextureMultiLayer) Dispose ¶
func (texture *TextureMultiLayer) Dispose()
func (*TextureMultiLayer) GenerateMipmaps ¶
func (texture *TextureMultiLayer) GenerateMipmaps()
func (*TextureMultiLayer) GetHeight ¶
func (texture *TextureMultiLayer) GetHeight() int32
func (*TextureMultiLayer) GetID ¶
func (texture *TextureMultiLayer) GetID() uint32
func (*TextureMultiLayer) GetLayers ¶
func (texture *TextureMultiLayer) GetLayers() int32
func (*TextureMultiLayer) GetLocation ¶
func (texture *TextureMultiLayer) GetLocation() uint
func (*TextureMultiLayer) GetRegion ¶
func (texture *TextureMultiLayer) GetRegion() TextureRegion
func (*TextureMultiLayer) GetWidth ¶
func (texture *TextureMultiLayer) GetWidth() int32
func (*TextureMultiLayer) NewLayer ¶
func (texture *TextureMultiLayer) NewLayer()
func (*TextureMultiLayer) SetData ¶
func (texture *TextureMultiLayer) SetData(x, y, width, height, layer int, data []uint8)
func (*TextureMultiLayer) SetFiltering ¶
func (texture *TextureMultiLayer) SetFiltering(min, mag Filter)
func (*TextureMultiLayer) SetManualMipmapping ¶
func (texture *TextureMultiLayer) SetManualMipmapping(value bool)
type TextureRegion ¶
type TextureSingle ¶
type TextureSingle struct {
// contains filtered or unexported fields
}
func LoadTextureSingle ¶
func LoadTextureSingle(img *image.RGBA, mipmaps int) *TextureSingle
func NewTextureSingle ¶
func NewTextureSingle(width, height, mipmaps int) *TextureSingle
func NewTextureSingleFormat ¶
func NewTextureSingleFormat(width, height int, format Format, mipmaps int) *TextureSingle
func (*TextureSingle) Bind ¶
func (texture *TextureSingle) Bind(loc uint)
func (*TextureSingle) Dispose ¶
func (texture *TextureSingle) Dispose()
func (*TextureSingle) GetHeight ¶
func (texture *TextureSingle) GetHeight() int32
func (*TextureSingle) GetID ¶
func (texture *TextureSingle) GetID() uint32
func (*TextureSingle) GetLayers ¶
func (texture *TextureSingle) GetLayers() int32
func (*TextureSingle) GetLocation ¶
func (texture *TextureSingle) GetLocation() uint
func (*TextureSingle) GetRegion ¶
func (texture *TextureSingle) GetRegion() TextureRegion
func (*TextureSingle) GetWidth ¶
func (texture *TextureSingle) GetWidth() int32
func (*TextureSingle) SetData ¶
func (texture *TextureSingle) SetData(x, y, width, height int, data []uint8)
func (*TextureSingle) SetFiltering ¶
func (texture *TextureSingle) SetFiltering(min, mag Filter)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.