MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Shutdown

Method Shutdown

SampleFramework12/v1.00/Graphics/Skybox.cpp:193–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void SkyCache::Shutdown()
194{
195 if(StateR != nullptr)
196 {
197 arhosekskymodelstate_free(StateR);
198 StateR = nullptr;
199 }
200
201 if(StateG != nullptr)
202 {
203 arhosekskymodelstate_free(StateG);
204 StateG = nullptr;
205 }
206
207 if(StateB != nullptr)
208 {
209 arhosekskymodelstate_free(StateB);
210 StateB = nullptr;
211 }
212
213 CubeMap.Shutdown();
214 Turbidity = 0.0f;
215 Albedo = 0.0f;
216 Elevation = 0.0f;
217 SunDirection = 0.0f;
218 SunRadiance = 0.0f;
219 SunIrradiance = 0.0f;
220 SH = SH9Color();
221}
222
223SkyCache::~SkyCache()
224{

Callers

nothing calls this directly

Calls 3

DestroyPSOsFunction · 0.85
ReleaseFunction · 0.85

Tested by

no test coverage detected