3ds Max C++ API Reference
Loading...
Searching...
No Matches
MeshRenderHelper.h File Reference
#include "../maxapi.h"
#include "../object.h"

Functions

template<class MeshType>
void MeshRenderHelper (MeshType &mesh, GraphicsWindow *pGW, Material *mtls, int flags, ViewExp *pVpt, int compFlags, int numMat=1)

Function Documentation

◆ MeshRenderHelper()

template<class MeshType>
void MeshRenderHelper ( MeshType & mesh,
GraphicsWindow * pGW,
Material * mtls,
int flags,
ViewExp * pVpt,
int compFlags,
int numMat = 1 )
inline
27{
28 const bool useRect = (flags & USE_DAMAGE_RECT);
29 Rect damageRect = (useRect && pVpt) ? pVpt->GetDammageRect() : Rect();
30 mesh.render(pGW, mtls, useRect ? &damageRect : nullptr, compFlags, numMat);
31}
virtual Rect GetDammageRect()=0
#define USE_DAMAGE_RECT
If this flag is set, only the damaged area needs to be displayed.
Definition object.h:500