render

package
v0.0.0-...-9f1eebf Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadShaders

func LoadShaders(vertexPath, fragmentPath string) (uint32, error)

LoadShaders compiles a vertex and fragment shader from an asset, creates a new OpenGL shader program, attaches the two shaders, and links the program.

func LoadTexture

func LoadTexture(img *image.RGBA, slot uint32) uint32

LoadTexture reads texture data from memory and uploads it to a GPU texture for use with OpenGL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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