game

package
v0.0.0-...-b8cd253 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGL

func InitGL(w, h int) *glfw.Window

Types

type Application

type Application struct {
	Ctx *ctx.Context
	// contains filtered or unexported fields
}

func NewGame

func NewGame(w, h int) (game *Application, err error)

func (*Application) Camera

func (g *Application) Camera() types.ICamera

func (*Application) ChunkRenderer

func (g *Application) ChunkRenderer() types.IChunkRenderer

func (*Application) CurrentBlockid

func (g *Application) CurrentBlockid() Vec3

func (*Application) Init

func (g *Application) Init(ctx *ctx.Context) (err error)

func (*Application) LineRenderer

func (g *Application) LineRenderer() types.ILineRenderer

func (*Application) PlayerRenderer

func (g *Application) PlayerRenderer() types.IPlayerRenderer

func (*Application) ShouldClose

func (g *Application) ShouldClose() bool

func (*Application) Update

func (g *Application) Update()

func (*Application) Window

func (g *Application) Window() *glfw.Window

func (*Application) World

func (g *Application) World() types.IWorld

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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