MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / update

Method update

physx/samples/samplebase/RenderMaterial.cpp:134–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void RenderMaterial::update(SampleRenderer::Renderer& renderer)
135{
136 const RendererMaterial::Variable* var = mRenderMaterialInstance->findVariable("windowWidth", RendererMaterial::VARIABLE_FLOAT);
137 if(var)
138 {
139 PxU32 tmpWindowWidth, tmpWindowHeight;
140 renderer.getWindowSize(tmpWindowWidth, tmpWindowHeight);
141
142 const PxReal windowWidth = PxReal(tmpWindowWidth);
143 mRenderMaterialInstance->writeData(*var, &windowWidth);
144 }
145
146}
147
148void RenderMaterial::setParticleSize(const PxReal particleSize)
149{

Callers 8

onTickPostRenderMethod · 0.45
baseTickPreRenderMethod · 0.45
switchSampleMethod · 0.45
mainContinueFunction · 0.45
PhysXSample.cppFile · 0.45
onTickPostRenderMethod · 0.45
initRenderObjectsMethod · 0.45

Calls 3

findVariableMethod · 0.80
getWindowSizeMethod · 0.45
writeDataMethod · 0.45

Tested by

no test coverage detected