editor

package
v0.0.0-...-1bec051 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

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

func NewEditor

func NewEditor(ecsM *ecs.ECSManager) *Editor

func (*Editor) Render

func (e *Editor) Render()

func (*Editor) Update

func (e *Editor) Update(dt float64)

type EditorManager

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

func NewEditorManager

func NewEditorManager(ecsM *ecs.ECSManager, p int) *EditorManager

func (*EditorManager) GetPriority

func (em *EditorManager) GetPriority() int

func (*EditorManager) Render

func (em *EditorManager) Render()

func (*EditorManager) ToggleVisibility

func (em *EditorManager) ToggleVisibility()

func (*EditorManager) Update

func (em *EditorManager) Update(dt float64)

type PerformanceMonitor

type PerformanceMonitor struct {
	LayoutPosition         raylib.Vector2
	PerformanceMonitorData PerformanceMonitorData
	// contains filtered or unexported fields
}

func NewPerformanceMonitor

func NewPerformanceMonitor(ecsM *ecs.ECSManager) *PerformanceMonitor

func (*PerformanceMonitor) Render

func (pm *PerformanceMonitor) Render()

func (*PerformanceMonitor) SetPosition

func (pm *PerformanceMonitor) SetPosition(position raylib.Vector2)

func (*PerformanceMonitor) Update

func (pm *PerformanceMonitor) Update()

type PerformanceMonitorData

type PerformanceMonitorData struct {
	FPS int32

	// Historical data
	FPSHistory            [historySize]int32
	UpdateDurationHistory [historySize]time.Duration
	RenderDurationHistory [historySize]time.Duration
	TotalDurationHistory  [historySize]time.Duration
	// contains filtered or unexported fields
}

type WorldInspector

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

func NewWorldInspector

func NewWorldInspector(ecsM *ecs.ECSManager) *WorldInspector

func (*WorldInspector) Render

func (wi *WorldInspector) Render()

func (*WorldInspector) SetPosition

func (wi *WorldInspector) SetPosition(position raylib.Vector2)

func (*WorldInspector) Update

func (wi *WorldInspector) Update()

Jump to

Keyboard shortcuts

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