MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / renderMountedImage

Method renderMountedImage

Engine/source/T3D/shapeBase.cpp:2743–2757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2741}
2742
2743void ShapeBase::renderMountedImage( U32 imageSlot, TSRenderState &rstate, SceneRenderState *state )
2744{
2745 GFX->pushWorldMatrix();
2746
2747 MatrixF mat;
2748 getRenderImageTransform(imageSlot, &mat, rstate.getSceneState()->isShadowPass());
2749 GFX->setWorldMatrix( mat );
2750
2751 MountedImage& image = mMountedImageList[imageSlot];
2752 U32 imageShapeIndex = getImageShapeIndex(image);
2753 image.shapeInstance[imageShapeIndex]->animate();
2754 image.shapeInstance[imageShapeIndex]->render( rstate );
2755
2756 GFX->popWorldMatrix();
2757}
2758
2759void ShapeBase::_renderBoundingBox( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat )
2760{

Callers

nothing calls this directly

Calls 7

pushWorldMatrixMethod · 0.80
isShadowPassMethod · 0.80
getSceneStateMethod · 0.80
popWorldMatrixMethod · 0.80
setWorldMatrixMethod · 0.45
animateMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected