testlib

package
v0.0.0-...-803bdaf Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FRAMES_PER_SECOND = 15
	GOPHER_PNG        = "gopher.png"
	TIMEOUT           = time.Second * 30
)

Variables

View Source
var (
	Width, Height int = 320, 480
)

Functions

func FragmentShader

func FragmentShader(s string) uint32

Create a fragment shader from a string and return its reference.

func Move

func Move(x1, y1, x2, y2 float32) error

func Program

func Program(fsh, vsh uint32) uint32

Create a program from vertex and fragment shaders.

func Screenshot

func Screenshot(window mandala.Window) image.Image

Screenshot takes a screenshot of the current window and return a RGBA image.Image.

func Tap

func Tap(x, y float32) error

func VertexShader

func VertexShader(s string) uint32

Create a vertex shader from a string and return its reference.

Types

type TestSuite

type TestSuite struct {
	prettytest.Suite
	// contains filtered or unexported fields
}

func NewTestSuite

func NewTestSuite() *TestSuite

func (*TestSuite) AfterAll

func (t *TestSuite) AfterAll()

func (*TestSuite) BeforeAll

func (t *TestSuite) BeforeAll()

func (*TestSuite) TestActionMove

func (t *TestSuite) TestActionMove()

func (*TestSuite) TestActionUpDown

func (t *TestSuite) TestActionUpDown()

func (*TestSuite) TestAudio

func (t *TestSuite) TestAudio()

func (*TestSuite) TestBasicCreationSequence

func (t *TestSuite) TestBasicCreationSequence()

func (*TestSuite) TestBasicExitSequence

func (t *TestSuite) TestBasicExitSequence()

func (*TestSuite) TestDraw

func (t *TestSuite) TestDraw()

func (*TestSuite) TestResourceManager

func (t *TestSuite) TestResourceManager()

Jump to

Keyboard shortcuts

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