mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
get max dynamic verts in script
you can now get the max dynamic vertices in script.
This commit is contained in:
parent
5cfcb0cd45
commit
df2ca75b13
1 changed files with 8 additions and 0 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
#include "console/compiler.h"
|
#include "console/compiler.h"
|
||||||
#include "platform/platformInput.h"
|
#include "platform/platformInput.h"
|
||||||
#include "core/util/journal/journal.h"
|
#include "core/util/journal/journal.h"
|
||||||
|
#include "gfx/gfxEnums.h"
|
||||||
#include "core/util/uuid.h"
|
#include "core/util/uuid.h"
|
||||||
|
|
||||||
#ifdef TORQUE_DEMO_PURCHASE
|
#ifdef TORQUE_DEMO_PURCHASE
|
||||||
|
|
@ -3065,3 +3066,10 @@ DefineEngineFunction( isToolBuild, bool, (),,
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DefineEngineFunction( getMaxDynamicVerts, S32, (),,
|
||||||
|
"Get max number of allowable dynamic vertices in a single vertex buffer.\n\n"
|
||||||
|
"@return the max number of allowable dynamic vertices in a single vertex buffer" )
|
||||||
|
{
|
||||||
|
return MAX_DYNAMIC_VERTS / 2;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue