renderer

package
v0.0.0-...-23544e4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindMaterial

func BindMaterial(m *material.Material)

func BindMesh

func BindMesh(mesh *mesh.Mesh)

func DrawMesh

func DrawMesh(mesh *mesh.Mesh)

func SetCamera

func SetCamera(c *camera.Camera)

func SetModel

func SetModel(m *glm.Mat4x4)

func SetRenderer

func SetRenderer(renderer Renderer)

func SetViewport

func SetViewport(viewport *glm.RectI)

func UnbindMaterial

func UnbindMaterial(m *material.Material)

func UseMaterial

func UseMaterial(mi *material.Instance)

Types

type Renderer

type Renderer interface {
	SetViewport(viewport *glm.RectI)

	SetCamera(c *camera.Camera)
	SetModel(m *glm.Mat4x4)

	BindMaterial(m *material.Material)
	UnbindMaterial(m *material.Material)
	UseMaterial(mi *material.Instance)

	BindMesh(mesh *mesh.Mesh)
	UnbindMesh(mesh *mesh.Mesh)
	DrawMesh(mesh *mesh.Mesh)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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