|
Nebula
|
#include <vegetationcontext.h>
Inherits Graphics::GraphicsContext.
Classes | |
| struct | VegetationInstanceInfo |
Public Member Functions | |
| VegetationContext () | |
| constructor | |
| ~VegetationContext () | |
| destructor | |
| Public Member Functions inherited from Graphics::GraphicsContext | |
| GraphicsContext () | |
| constructor | |
| virtual | ~GraphicsContext () |
| destructor | |
Static Public Member Functions | |
| static void | Create () |
| create vegetation context | |
| static void | Discard () |
| discard vegetation context | |
| static void | Setup (const Graphics::GraphicsEntityId id) |
| Setup vegetation context. | |
| static uint | SetupMesh (const Graphics::GraphicsEntityId id, const VegetationMeshSetup &setup) |
| Setup a new mesh. | |
| static void | Invalidate (const Graphics::GraphicsEntityId id) |
| Invalidate terrain related resources. | |
| static void | ClearMeshes (const Graphics::GraphicsEntityId id) |
| forget the meshes, SetupMesh starts at index 0 again. What an editor does to set the plants up anew | |
| static void | UpdateViewResources (const Graphics::ViewId view, const Graphics::FrameContext &ctx) |
| update resources | |
Private Types | |
| enum | LoadedBits { Model , Material } |
| enum | { Vegetation_InstanceInfo , Vegetation_SlopeThreshold , Vegetation_HeightThreshold } |
| typedef Ids::IdAllocator< VegetationInstanceInfo, float, float > | VegetationAllocator |
Private Member Functions | |
| __DeclareContext () | |
Static Private Member Functions | |
| static Graphics::ContextEntityId | Alloc () |
| allocate a new slice for this context | |
| static void | Dealloc (Graphics::ContextEntityId id) |
| deallocate a slice | |
Static Private Attributes | |
| static VegetationAllocator | vegetationAllocator |
Additional Inherited Members | |
| Static Protected Member Functions inherited from Graphics::GraphicsContext | |
| static void | InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state) |
| static void | InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state) |
| template<class ID_ALLOCATOR> | |
| static void | InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state) |
|
private |
|
private |
|
private |
| Vegetation::VegetationContext::VegetationContext | ( | ) |
constructor
| Vegetation::VegetationContext::~VegetationContext | ( | ) |
destructor
|
private |
|
staticprivate |
allocate a new slice for this context
|
static |
forget the meshes, SetupMesh starts at index 0 again. What an editor does to set the plants up anew
The buffers stay, they are the instance's and not a mesh's.
|
static |
create vegetation context
|
staticprivate |
deallocate a slice
|
static |
discard vegetation context
|
static |
Invalidate terrain related resources.
|
static |
Setup vegetation context.
|
static |
Setup a new mesh.
|
static |
update resources
|
staticprivate |