Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
type Camera ¶
func (*Camera) SetDefaults ¶
func (c *Camera) SetDefaults()
type Color ¶
type Color struct {
R, G, B, A uint8
}
var ( Black Color = BlackAlpha(255) White Color = WhiteAlpha(255) )
func BlackAlpha ¶
func WhiteAlpha ¶
type ErrShaderLink ¶
func (ErrShaderLink) Error ¶
func (err ErrShaderLink) Error() string
type RenderFlags ¶
type RenderFlags uint16
const ( // FlagNoDiscard prevents samples with an alpha channel below 50% from // being discarded. FlagNoDiscard RenderFlags = 1 << 0 // FlagBillboard makes the sprite orient itself towards the camera. FlagBillboard RenderFlags = 1 << 1 // FlagMTSDF causes the texture to be interpreted as a multi-channel // transparent signed distance field. FlagMTSDF RenderFlags = 1 << 2 // FlagType2 uses an alternate rendering path for the sprite. What this // actually means depends on other flags. Currently, the following flags // have defined alternate rendering paths: // // MTSDF: use the alpha channel to render a smooth border (as opposed // to the sharper main shape rendering) FlagType2 RenderFlags = 1 << 3 )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.