3ds Max C++ API Reference
Loading...
Searching...
No Matches
Functions
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()
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
}
Rect
Box2 Rect
Definition:
box2.h:192
Box2
Definition:
box2.h:30
ViewExp::GetDammageRect
virtual Rect GetDammageRect()=0
USE_DAMAGE_RECT
#define USE_DAMAGE_RECT
If this flag is set, only the damaged area needs to be displayed.
Definition:
object.h:500
maxsdk
include
Rendering
MeshRenderHelper.h
Generated by
1.9.6