Cogs.Core
BasicBlueNoiseManager.h
1#pragma once
2
3#include "BlueNoise.h"
4#include "ResourceManager.h"
5#include "ResourceLoadInfo.h"
6
7#include <string>
8
9namespace Cogs::Core
10{
12 {
13 };
14 class BasicBlueNoiseManager : public ResourceManager<BlueNoise, BasicBlueNoiseLoadInfo>, public IBlueNoiseManager
15 {
16 public:
19
20 void initialize() override;
21 void clear() override;
22
23 void enable() override
24 {
25 if (!enabled) {
26 handleEnable();
27 }
28 }
29
30 BlueNoiseHandle loadBlueNoise(const std::string & name, const ResourceId resourceId);
31
32 BlueNoiseHandle getBlueNoiseHandle(bool /*stable*/) override;
33
34 private:
35 bool enabled = false;
36 void handleEnable();
38
39 };
40}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
The generic resource manager provides a base implementation for specialized resource managers to buil...
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.