render

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TextureIDForBitmapTexture

func TextureIDForBitmapTexture(key resource.Key) imgui.TextureID

TextureIDForBitmapTexture returns a texture ID that identifies a bitmap texture.

func TextureImage added in v0.5.0

func TextureImage(label string, cache *graphics.TextureCache, key resource.Key, size imgui.Vec2)

TextureImage renders an image centered and fitted within the given size.

func TextureSelector added in v0.4.0

func TextureSelector(label string, width float32, guiScale float32,
	count int, selectedIndex int, cache *graphics.TextureCache, keyResolver func(int) resource.Key,
	tooltipText func(int) string,
	changeCallback func(int))

TextureSelector renders a horizontal list of game textures, with selection capability.

Types

type Context

type Context struct {
	OpenGL opengl.OpenGL

	ViewMatrix       *mgl.Mat4
	ProjectionMatrix mgl.Mat4
}

Context provides current render properties.

Jump to

Keyboard shortcuts

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