Cogs.Core
Source
Resources
BasicBlueNoiseManager.h
1
#pragma once
2
3
#include "BlueNoise.h"
4
#include "ResourceManager.h"
5
#include "ResourceLoadInfo.h"
6
7
#include <string>
8
9
namespace
Cogs::Core
10
{
11
struct
BasicBlueNoiseLoadInfo
:
public
ResourceLoadInfoBase
12
{
13
};
14
class
BasicBlueNoiseManager
:
public
ResourceManager
<BlueNoise, BasicBlueNoiseLoadInfo>,
public
IBlueNoiseManager
15
{
16
public
:
17
BasicBlueNoiseManager
(
Context
* context);
18
~BasicBlueNoiseManager
();
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();
37
BlueNoiseHandle
blueNoise =
BlueNoiseHandle::NoHandle
;
38
39
};
40
}
Cogs::Core::BasicBlueNoiseManager
Definition:
BasicBlueNoiseManager.h:15
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::IBlueNoiseManager
Definition:
ResourceManager.h:46
Cogs::Core::ResourceManager
The generic resource manager provides a base implementation for specialized resource managers to buil...
Definition:
ResourceManager.h:76
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::Core::BasicBlueNoiseLoadInfo
Definition:
BasicBlueNoiseManager.h:12
Cogs::Core::ResourceHandle_t< BlueNoise >
Cogs::Core::ResourceHandle_t< BlueNoise >::NoHandle
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.
Definition:
ResourceHandle.h:193
Cogs::Core::ResourceLoadInfoBase
Definition:
ResourceLoadInfo.h:17
Generated by
1.9.6