Graphics

package
v0.0.0-...-48b4d52 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Graphics document

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseScene

type BaseScene struct {
	RootNode *Components.Node
	// contains filtered or unexported fields
}

BaseScene : object to contain nodes for rendering. TODO: implement more scene types from this base type

func New3DScene

func New3DScene() (BaseScene, error)

New3DScene : start a new simple 3D scene of orthographic orientation

func NewBasicScene

func NewBasicScene() (BaseScene, error)

NewBasicScene : start a new simple 2D scene of orthographic orientation

func (*BaseScene) Draw

func (s *BaseScene) Draw()

Draw : wrap the openGl draw method and report fps info

func (*BaseScene) SetFPS

func (s *BaseScene) SetFPS(fpsInputted int)

SetFPS forces the loop to delay such that the fps is the number inputted

func (*BaseScene) Start

func (s *BaseScene) Start()

Start : initiate a scene's continous animation. While the scene is running, draw it and update our nodes

type Camera

type Camera struct {
	X, Y, Z float32
}

Directories

Path Synopsis
Package Components ...
Package Components ...

Jump to

Keyboard shortcuts

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