texture

package
v0.0.0-...-d1ed616 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2016 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package texture provides a texture management system for Kaori

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean()

Clean frees every loaded texture

func Draw

func Draw(renderer *sdl.Renderer, id string, x, y, width, height int32, angle float64, flip sdl.RendererFlip)

Draw draws the loaded texture

func DrawFrame

func DrawFrame(renderer *sdl.Renderer, id string, x, y, width, height, currentRow, currentFrame, spacing, margin int32, angle float64, flip sdl.RendererFlip)

DrawFrame draws a part of the loaded texture A Frame is simply a cropped section of the texture by the width and height provided

func Free

func Free(id string)

Free frees the texture from memory

func Load

func Load(renderer *sdl.Renderer, fileName, id string) error

Load loads the image into a Texture

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL