bsp

package
v0.0.0-...-e8131eb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extrusion

type Extrusion struct {
	Top          float32
	Bottom       float32
	OuterTexture *graphics.Texture
	FaceTexture  *graphics.Texture
	InnerTexture *graphics.Texture
}

type Renderer

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

func NewRenderer

func NewRenderer(sceneRenderer *scene.Renderer) *Renderer

func (*Renderer) Clear

func (r *Renderer) Clear()

func (*Renderer) RenderBSP

func (r *Renderer) RenderBSP(wall *Wall, camera *scene.Camera)

type Wall

type Wall struct {
	LeftEdgeX  float32
	LeftEdgeZ  float32
	RightEdgeX float32
	RightEdgeZ float32
	Length     float32

	Ceiling *Extrusion
	Floor   *Extrusion

	FrontWall *Wall
	BackWall  *Wall
}

func (*Wall) HasCeilingExtrusion

func (w *Wall) HasCeilingExtrusion() bool

func (*Wall) HasFloorExtrusion

func (w *Wall) HasFloorExtrusion() bool

func (*Wall) IsContinuous

func (w *Wall) IsContinuous() bool

func (*Wall) IsFrontFacing

func (w *Wall) IsFrontFacing(camera *scene.Camera) bool

func (*Wall) IsSplit

func (w *Wall) IsSplit() bool

Jump to

Keyboard shortcuts

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