render

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Frame      int
	Time       float32
	Delta      float32
	VP         mat4.T
	VPInv      mat4.T
	MVP        mat4.T
	Projection mat4.T
	View       mat4.T
	ViewInv    mat4.T
	Transform  mat4.T
	Position   vec3.T
	Forward    vec3.T
	Fov        float32
	Near       float32
	Far        float32
	Viewport   Screen
	Clear      color.T
}

Args holds the arguments used to perform a draw pass. Includes the various transformation matrices and position of the camera.

func (Args) Apply

func (d Args) Apply(t mat4.T) Args

Apply the effects of a transform

func (Args) Set

func (d Args) Set(t transform.T) Args

type Screen

type Screen struct {
	Width  int
	Height int
	Scale  float32
}

func (Screen) NormalizeCursor

func (s Screen) NormalizeCursor(cursor vec2.T) vec2.T

func (Screen) Size

func (s Screen) Size() vec2.T

Jump to

Keyboard shortcuts

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