gfx

package
v0.0.0-...-672813e Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadShader

func LoadShader(vertexFilename, fragmentFilename string) (uint32, error)

func LoadTexture

func LoadTexture(file string) (uint32, error)

Types

type Mesh

type Mesh struct {
	// contains filtered or unexported fields
}

func (*Mesh) Quad

func (m *Mesh) Quad(a, b, c, d, e, f uint32)

NOTE: Quad function will use the last 4 vertices as reference to begin

func (*Mesh) Render

func (m *Mesh) Render()

func (*Mesh) Unload

func (m *Mesh) Unload()

func (*Mesh) Upload

func (m *Mesh) Upload()

func (*Mesh) Vertex

func (m *Mesh) Vertex(x, y, z, n1, n2, n3, u, v float32)

Jump to

Keyboard shortcuts

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