Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EditorState Struct Reference

#include <EditorState.hpp>

Public Member Functions

bool HasScene () const
 
FImportedSceneScene ()
 
FImportedScene const & Scene () const
 
void OpenSceneFile (StringView path, Allocator *scratchAlloc=GLOBAL_ALLOC)
 

Public Attributes

FSceneGPUResources resources
 
Optional< FAnimationRuntimeanimation
 
Optional< MemoryMappedFilesceneFile
 
Optional< FImportedScenescene
 
String currentSavePath
 
FUUID selectedInstance {}
 
FUUID selectedMaterial {}
 
FUUID selectedLight {}
 
bool scrollSelectedLightToTop = false
 
float selectedLightHighlightStart = -1.0f
 
bool openSelectionContextMenu = false
 
bool applySelectionDoubleClickAction = false
 
RenderOutputState renderTask
 
GizmoState gizmo
 
CameraApertureState aperture
 
EditorViewportState viewport
 
RendererConfig rendererConfig
 
ERendererMode rendererMode = ERendererMode::ProgressivePT
 
int viewLUTSdrIndex = Postprocess::GetDefaultViewLUTIndex(Postprocess::ViewLUTDomain::SDR)
 
int viewLUTHdrIndex = Postprocess::GetDefaultViewLUTIndex(Postprocess::ViewLUTDomain::HDR)
 
String viewLUTSdrExternalPath
 
String viewLUTHdrExternalPath
 
TextureHandle viewLUTSdrHandle {}
 
TextureHandle viewLUTHdrHandle {}
 
int matcapIndex {}
 
String matcapExternalPath
 
TextureHandle matcapHandle {}
 
RendererUBO shaderGlobals
 
ResourceHandle postprocessOutput
 
PostprocessUBO postprocessGlobals
 
FArcballCamera camera
 
bool showImGui = false
 
FEditorState state = FEInitEnter
 
bool cameraUpdated = true
 
float renderResolutionScale = 1.0f
 
bool rasterGTAO = true
 
GTAOConfig rasterGTAOConfig {}
 

Member Function Documentation

◆ HasScene()

bool EditorState::HasScene ( ) const
inline

◆ OpenSceneFile()

void EditorState::OpenSceneFile ( StringView  path,
Allocator scratchAlloc = GLOBAL_ALLOC 
)
inline

◆ Scene() [1/2]

FImportedScene & EditorState::Scene ( )
inline

◆ Scene() [2/2]

FImportedScene const & EditorState::Scene ( ) const
inline

Member Data Documentation

◆ animation

Optional<FAnimationRuntime> EditorState::animation

◆ aperture

CameraApertureState EditorState::aperture

◆ applySelectionDoubleClickAction

bool EditorState::applySelectionDoubleClickAction = false

◆ camera

FArcballCamera EditorState::camera
Initial value:
{
.center = float3{0, 0, 0},
.radius = 1.0f,
.zNear = 1e-1f,
.fovY = radians(60.f),
}
vec3 float3
Definition Math.hpp:26

◆ cameraUpdated

bool EditorState::cameraUpdated = true

◆ currentSavePath

String EditorState::currentSavePath

◆ gizmo

GizmoState EditorState::gizmo

◆ matcapExternalPath

String EditorState::matcapExternalPath

◆ matcapHandle

TextureHandle EditorState::matcapHandle {}

◆ matcapIndex

int EditorState::matcapIndex {}

◆ openSelectionContextMenu

bool EditorState::openSelectionContextMenu = false

◆ postprocessGlobals

PostprocessUBO EditorState::postprocessGlobals

◆ postprocessOutput

ResourceHandle EditorState::postprocessOutput

◆ rasterGTAO

bool EditorState::rasterGTAO = true

◆ rasterGTAOConfig

GTAOConfig EditorState::rasterGTAOConfig {}

◆ rendererConfig

RendererConfig EditorState::rendererConfig

◆ rendererMode

ERendererMode EditorState::rendererMode = ERendererMode::ProgressivePT

◆ renderResolutionScale

float EditorState::renderResolutionScale = 1.0f

◆ renderTask

RenderOutputState EditorState::renderTask

◆ resources

FSceneGPUResources EditorState::resources

◆ scene

Optional<FImportedScene> EditorState::scene

◆ sceneFile

Optional<MemoryMappedFile> EditorState::sceneFile

◆ scrollSelectedLightToTop

bool EditorState::scrollSelectedLightToTop = false

◆ selectedInstance

FUUID EditorState::selectedInstance {}

◆ selectedLight

FUUID EditorState::selectedLight {}

◆ selectedLightHighlightStart

float EditorState::selectedLightHighlightStart = -1.0f

◆ selectedMaterial

FUUID EditorState::selectedMaterial {}

◆ shaderGlobals

RendererUBO EditorState::shaderGlobals

◆ showImGui

bool EditorState::showImGui = false

◆ state

FEditorState EditorState::state = FEInitEnter

◆ viewLUTHdrExternalPath

String EditorState::viewLUTHdrExternalPath

◆ viewLUTHdrHandle

TextureHandle EditorState::viewLUTHdrHandle {}

◆ viewLUTHdrIndex

◆ viewLUTSdrExternalPath

String EditorState::viewLUTSdrExternalPath

◆ viewLUTSdrHandle

TextureHandle EditorState::viewLUTSdrHandle {}

◆ viewLUTSdrIndex

◆ viewport

EditorViewportState EditorState::viewport

The documentation for this struct was generated from the following file: