Documentation ¶
Index ¶
- func GetColor(H, S, V, alpha float64) mgl32.Vec4
- func GetColorShifted(color mgl32.Vec4, hueOffset float64) mgl32.Vec4
- func GetColors(baseHue, hueShift float64, times int, alpha float64) []mgl32.Vec4
- func GetColorsSV(baseHue, hueShift float64, times int, S, V, alpha float64) []mgl32.Vec4
- func GetColorsSVT(baseHue, hueShift, tagShift float64, times, tag int, S, V, alpha float64) []mgl32.Vec4
- func GetNanoTime() int64
- func LoadImage(path string) (*image.NRGBA, error)
- func LoadTexture(path string) (*texture.TextureSingle, error)
- func LoadTextureToAtlas(atlas *texture.TextureAtlas, path string) (*texture.TextureRegion, error)
- func MakeScreenshot(win glfw.Window)
- func PathExists(path string) (bool, error)
- func ResetTime()
- func SortRankHighToLow(array []float64) (rank []int)
- func SortRankLowToHigh(array []float64) (rank []int)
- type FPSCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColorsSV ¶
func GetColorsSVT ¶
func GetNanoTime ¶
func GetNanoTime() int64
func LoadTexture ¶
func LoadTexture(path string) (*texture.TextureSingle, error)
func LoadTextureToAtlas ¶
func LoadTextureToAtlas(atlas *texture.TextureAtlas, path string) (*texture.TextureRegion, error)
func MakeScreenshot ¶
func PathExists ¶
Types ¶
type FPSCounter ¶
type FPSCounter struct { FPS float64 // contains filtered or unexported fields }
func NewFPSCounter ¶
func NewFPSCounter(samples int, log bool) *FPSCounter
func (*FPSCounter) GetFPS ¶
func (prof *FPSCounter) GetFPS() float64
func (*FPSCounter) PutSample ¶
func (prof *FPSCounter) PutSample(fps float64)
Click to show internal directories.
Click to hide internal directories.