Documentation ¶
Index ¶
- func RGBA8(c color.Color) (uint8, uint8, uint8, uint8)
- type FlipMode
- type IFont
- type ITexture
- type Renderer
- func (o *Renderer) Clear()
- func (o *Renderer) ClearAll()
- func (o *Renderer) Copy(tex *Texture, x, y int)
- func (o *Renderer) CopyRegion(tex *Texture, src, dst image.Rectangle)
- func (o *Renderer) CopyRegionEx(tex *Texture, src, dst image.Rectangle, flip FlipMode)
- func (o *Renderer) Destroy() error
- func (o *Renderer) DrawLine(x1, y1, x2, y2 int)
- func (o *Renderer) DrawRect(x, y, w, h int)
- func (o *Renderer) DrawRect2i(rect image.Rectangle)
- func (o *Renderer) DrawText(x, y int, text string)
- func (o *Renderer) FillRect(x, y, w, h int)
- func (o *Renderer) FillRect2i(rect image.Rectangle)
- func (o *Renderer) ImageToTexture(img image.Image) (*Texture, error)
- func (o *Renderer) LoadTexture(path string) (*Texture, error)
- func (o *Renderer) Present()
- func (o *Renderer) Print(x, y int, text string)
- func (o *Renderer) ResetViewport()
- func (o *Renderer) SDLRenderer() *sdl.Renderer
- func (o *Renderer) SetColor(c color.Color)
- func (o *Renderer) SetDefaultFont(font font.Face)
- func (o *Renderer) SetOffset(offset image.Point)
- func (o *Renderer) SetScale(x, y float64)
- func (o *Renderer) SetTextColor(c color.Color)
- func (o *Renderer) SetViewport(rect image.Rectangle)
- func (o *Renderer) Size() (int, int)
- func (o *Renderer) UnloadTexture(tex *Texture)
- type Texture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer -
func (*Renderer) CopyRegion ¶
CopyRegion -
func (*Renderer) CopyRegionEx ¶
CopyRegionEx -
func (*Renderer) ImageToTexture ¶
ImageToTexture -
func (*Renderer) LoadTexture ¶
LoadTexture -
func (*Renderer) SetDefaultFont ¶
SetDefaultFont -
Click to show internal directories.
Click to hide internal directories.