util

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

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

Go to latest
Published: Apr 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FRAMERATE_FRAGMENT = `#version 150
precision mediump float;
uniform vec4 v_Color;
out vec4 v_FragData;
void main() {
  v_FragData = v_Color;
}` + "\x00"
View Source
const FRAMERATE_VERTEX = `#version 150
in vec2 v_Position;
uniform mat4 m_ModelView;
uniform mat4 m_Projection;
void main() {
  gl_Position = m_Projection * m_ModelView * vec4(v_Position, 0.0, 1.0);
}` + "\x00"

Variables

This section is empty.

Functions

This section is empty.

Types

type Framerate

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

func NewFramerateRenderer

func NewFramerateRenderer() (r *Framerate, err error)

func (*Framerate) Bind

func (r *Framerate) Bind()

func (*Framerate) Delete

func (r *Framerate) Delete()

func (*Framerate) Render

func (r *Framerate) Render(camera *core.Camera) (err error)

func (*Framerate) Unbind

func (r *Framerate) Unbind()

Jump to

Keyboard shortcuts

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