3ds Max C++ API Reference
Loading...
Searching...
No Matches
RenderItemHandle.h File Reference
#include "../containers/Array.h"
#include "../export.h"
#include "../geom/box3.h"
#include "SmartHandle.h"
#include "GeometryEnums.h"
#include "VertexBufferHandle.h"

Classes

struct  ConsolidationData
 This a structure that holds parameters used for render item consolidation. More...
 
class  RenderItemHandle
 This is the base wrapper class for all viewport render items. More...
 

Namespaces

namespace  MaxSDK
 
namespace  MaxSDK::Graphics
 
namespace  MaxSDK::Graphics::ViewportInstancing
 This API is about having a single INode in the scene, but having many geometries being instantiated at the GPU level in the viewport when the INode is drawn, e.g : a particles system.
 

Enumerations

enum  ZBiasPresets { ZBiasPresets_Default = -1 , ZBiasPresets_Shaded = 0 , ZBiasPresets_Wireframe = 1 , ZBiasPresets_Gizmo = 2 }
 
enum  RenderItemVisibilityGroup : int { RenderItemVisible_Unknown , RenderItemVisible_Shaded , RenderItemVisible_Wireframe , RenderItemVisible_Gizmo }
 This enum defines in what group a render item is visible. More...
 

Functions

GraphicsDriverAPI VertexBufferHandle GenerateInstanceData (Matrix3 *worldTransforms, size_t count)
 Generate the instance data from a Matrix3 array.
 
GraphicsDriverAPI VertexBufferHandle GenerateInstanceData (Point3 *UVs, Matrix3 *worldTransforms, size_t count)
 Generate the instance data from a texture coordinates array and a Matrix3 array.
 
GraphicsDriverAPI bool GenerateInstanceRenderItem (RenderItemHandle &hInstanceRenderItem, const RenderItemHandle &hTupleMeshHandle, const VertexBufferHandle &hInstanceData)
 Generate the instance render item from a tuple mesh and a Matrix3 array.
 
GraphicsDriverAPI bool GenerateInstanceRenderItem (RenderItemHandle &hInstanceRenderItem, const RenderItemHandle &hTupleMeshHandle, const ViewportInstancing::InstanceDisplayGeometry *pInstanceDisplayGeometry)
 Generate the instance render item from a tuple mesh which is a ViewportInstancing::InstanceDisplayGeometry class.