Ocular Engine
ResourceDefaults.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_RESOURCES_RESOURCE_DEFAULTS__H__
19 #define __H__OCULAR_RESOURCES_RESOURCE_DEFAULTS__H__
20 
21 #include "Resource.hpp"
22 #include "ResourceType.hpp"
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Core
37  {
39  {
40  public:
41 
44 
45  void initialize();
46 
47  Resource* getEmptyResource(ResourceType type);
48  Resource* getMissingResource(ResourceType type);
49 
50  protected:
51 
52  void initializeTextureDefaults();
53  void initializeMeshDefaults();
54  void initializeMaterialDefaults();
55  void initializeShaderDefaults();
56  void initializeShaderProgramDefaults();
57  void initializeDataDefaults();
58 
59  private:
60 
61  Resource* m_TextureEmpty;
62  Resource* m_TextureMissing;
63 
64  Resource* m_MeshEmpty;
65  Resource* m_MeshMissing;
66 
67  Resource* m_MaterialEmpty;
68  Resource* m_MaterialMissing;
69 
70  Resource* m_ShaderEmpty;
71  Resource* m_ShaderMissing;
72 
73  Resource* m_ShaderProgramEmpty;
74  Resource* m_ShaderProgramMissing;
75 
76  Resource* m_DataEmpty;
77  Resource* m_DataMissing;
78  };
79  }
83 }
88 //------------------------------------------------------------------------------------------
89 
90 #endif
Definition: ResourceDefaults.hpp:38
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: Resource.hpp:46