Documentation ¶
Index ¶
- func LoadGray(filename string) (*image.Gray, error)
- type CubeMap
- type ITexture
- type Texture
- func (texture *Texture) Bind() error
- func (texture *Texture) GenerateMipMap(lodBias float32)
- func (texture *Texture) GetID() uint32
- func (texture *Texture) GetTarget() uint32
- func (texture *Texture) GetType() Type
- func (texture *Texture) GetUnit() *Unit
- func (texture *Texture) SetWrapMode(mode WrapMode)
- func (texture *Texture) Unbind()
- type Texture2D
- type Type
- type Unit
- type UnitManager
- type WrapMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CubeMap ¶
type CubeMap struct {
Texture
}
func NewCubeMapFromRGBAs ¶
func (*CubeMap) UnmarshalYAML ¶
type Texture2D ¶
type Texture2D struct {
Texture
}
func NewTextureFromRGBA ¶
func (*Texture2D) UnmarshalYAML ¶
type UnitManager ¶
type UnitManager []*Unit
type WrapMode ¶
type WrapMode int32
const ( Repeat WrapMode = gl.REPEAT MirroredRepeat WrapMode = gl.MIRRORED_REPEAT ClampToEdge WrapMode = gl.CLAMP_TO_EDGE ClampToBorder WrapMode = gl.CLAMP_TO_BORDER )
Click to show internal directories.
Click to hide internal directories.