5 #define Eegeo_INTERIOR_RESOURCE_COUNTERS_ACTIVE 0
7 #if Eegeo_INTERIOR_RESOURCE_COUNTERS_ACTIVE == 1
10 #define Eegeo_INTERIOR_RESOURCE_COUNTER_INCREMENT(x) do { ++(x); } while(0);
11 #define Eegeo_INTERIOR_RESOURCE_COUNTER_DECREMENT(x) do { --(x); Eegeo_ASSERT(x >= 0, "Reference count underflow for " #x " \n"); } while(0);
12 #define Eegeo_INTERIOR_RESOURCE_COUNTERS_REPORT Eegeo::Resources::Interiors::ResourceCounts::GetCounts()
13 #define Eegeo_INTERIOR_RESOURCE_COUNTERS_DUMP_REPORT Eegeo::Resources::Interiors::ResourceCounts::PrintReport();
15 #define Eegeo_INTERIOR_RESOURCE_COUNTER_INCREMENT(x) ;
16 #define Eegeo_INTERIOR_RESOURCE_COUNTER_DECREMENT(x) ;
17 #define Eegeo_INTERIOR_RESOURCE_COUNTERS_REPORT ""
18 #define Eegeo_INTERIOR_RESOURCE_COUNTERS_DUMP_REPORT ;
27 namespace ResourceCounts
29 #if Eegeo_INTERIOR_RESOURCE_COUNTERS_ACTIVE == 1
30 extern int InteriorTextures;
31 extern int MaterialDescriptors;
33 extern int DiffuseUntexturedMaterials;
34 extern int DiffuseTexturedMaterials;
35 extern int SpecularMaterials;
36 extern int CubeMappedMaterials;
37 extern int ChromeMaterials;
38 extern int ReflectionMaterials;
39 extern int StencilMirrorMaterials;
41 extern int InstanceRenderables;
42 extern int HighlightRenderables;
43 extern int FloorRenderables;
44 extern int StencilMirrorClearRenderables;
46 std::string GetCounts();