config

package
v0.0.0-...-5a5d905 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: GPL-3.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 Config

type Config struct {
	FullScreen              bool
	WindowWidth             int32
	WindowHeight            int32
	SidebarWidth            int32
	ViewportX               int32
	ViewportY               int32
	GameX                   int32
	GameY                   int32
	GameZ                   int32
	TargetFPS               int32
	IsResizable             bool
	ParticleNumber          int32
	ParticleRadius          float32
	ParticleMass            float32
	ParticleInitialSpacing  float32
	ShowVectors             bool
	ScaleFactor             float32
	ParticleElasticity      float32
	WallElasticity          float32
	ApplyGravity            bool
	Gravity                 float32
	ShowQuadtree            bool
	ShowTrail               bool
	ShouldBeProfiled        bool
	UseExperimentalQuadtree bool
	SetRandomRadius         bool
	RadiusMin               float32
	RadiusMax               float32
	SetRandomMass           bool
	MassMin                 float32
	MassMax                 float32
	SetRandomElasticity     bool
	ElasticityMin           float32
	ElasticityMax           float32
	ShowOverlay             bool
	SetRandomColor          bool
	ShowSpeedColor          bool
}

func ReadConfig

func ReadConfig(filepath string) (*Config, error)

func (*Config) UpdateWindowSettings

func (c *Config) UpdateWindowSettings()

Jump to

Keyboard shortcuts

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