Foundation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
ModelViewer::Scene Class Reference

#include <Scene.hpp>

Classes

struct  Params
 

Public Member Functions

 Scene (GPUScene *scene, Allocator *allocator)
 
void CommitParams ()
 
VirtualAllocation GetParamsAllocationRawOffset () const
 
SceneHandle PushMesh (MeshScratchBuffers const &data)
 
MeshAllocation constQueryMesh (SceneHandle handle)
 
void FreeMesh (SceneHandle handle)
 
Span< InstanceMapInstances ()
 
void UnmapInstances ()
 

Public Attributes

float mTime {}
 
uint32_t mInstanceCount {0}
 
Camera mCamera {}
 
Camera mCullingCamera {}
 
Grid mGrid {}
 

Private Attributes

AllocatormAllocator
 
GPUScenemGPUScene
 
Pool< SceneHandle, MeshAllocationmMeshes
 
VirtualAllocation mSceneParamsAllocation
 

Constructor & Destructor Documentation

◆ Scene()

ModelViewer::Scene::Scene ( GPUScene scene,
Allocator allocator 
)

Member Function Documentation

◆ CommitParams()

void ModelViewer::Scene::CommitParams ( )

◆ FreeMesh()

void ModelViewer::Scene::FreeMesh ( SceneHandle  handle)

◆ GetParamsAllocationRawOffset()

VirtualAllocation ModelViewer::Scene::GetParamsAllocationRawOffset ( ) const

◆ MapInstances()

Span< Instance > ModelViewer::Scene::MapInstances ( )

◆ PushMesh()

SceneHandle ModelViewer::Scene::PushMesh ( MeshScratchBuffers const data)

◆ QueryMesh()

MeshAllocation const & ModelViewer::Scene::QueryMesh ( SceneHandle  handle)

◆ UnmapInstances()

void ModelViewer::Scene::UnmapInstances ( )

Member Data Documentation

◆ mAllocator

Allocator* ModelViewer::Scene::mAllocator
private

◆ mCamera

Camera ModelViewer::Scene::mCamera {}

◆ mCullingCamera

Camera ModelViewer::Scene::mCullingCamera {}

◆ mGPUScene

GPUScene* ModelViewer::Scene::mGPUScene
private

◆ mGrid

Grid ModelViewer::Scene::mGrid {}

◆ mInstanceCount

uint32_t ModelViewer::Scene::mInstanceCount {0}

◆ mMeshes

Pool<SceneHandle, MeshAllocation> ModelViewer::Scene::mMeshes
private

◆ mSceneParamsAllocation

VirtualAllocation ModelViewer::Scene::mSceneParamsAllocation
private

◆ mTime

float ModelViewer::Scene::mTime {}

The documentation for this class was generated from the following files: