Graphics/GeometryEnums.h File Reference

GeometryEnums.h File Reference
#include "Types.h"
#include "DataBridgeExport.h"

Namespaces

 MaxSDK
 
 MaxSDK::Graphics
 

Enumerations

enum  VertexFieldType {
  VertexFieldTypeUnknown, VertexFieldFloat1, VertexFieldFloat2, VertexFieldFloat3,
  VertexFieldFloat4, VertexFieldColor, VertexFieldTypeCount
}
 types available for vertex fields, e.g. More...
 
enum  VertexFieldUsage {
  VertexFieldUsageUnknown, VertexFieldUsagePosition, VertexFieldUsageNormal, VertexFieldUsageDiffuse,
  VertexFieldUsageSpecular, VertexFieldUsageTexcoord, VertexFieldUsageTangent, VertexFieldUsageBitangent,
  VertexFieldUsageCount
}
 Indicates the usage of a vertex field of a vertex buffer. More...
 
enum  MeshChannelCategory {
  MeshChannelUnknown, MeshChannelPosition, MeshChannelVertexNormal, MeshChannelTexcoord,
  MeshChannelVertexColor, MeshChannelTangent, MeshChannelBitangent, MeshChannelFaceMap,
  MeshChannelCategoryCount
}
 Indicates the data source of a vertex field of a mesh vertex buffer. More...
 
enum  IndexType { IndexTypeUnknown, IndexTypeShort, IndexTypeInt, IndexTypeCount }
 Buffers are composed of arrays of elements all of the same type. More...
 
enum  BufferUsageType {
  BufferUsageTypeNone, BufferUsageStatic, BufferUsageDynamic, BufferUsageMask = 0xf,
  BufferUsageStreamTexture = 0x10, BufferUsageTarget = 0x20, BufferUsageUnorderedAccess = 0x80, BufferUsageStructure = 0x100
}
 BufferUsageType Types for OGS buffer usage. More...
 

Functions

DataBridgeAPI size_t GetVertexStride (const VertexFieldType type)
 Get the vertex stride by a given vertex type, in bytes. More...
 
DataBridgeAPI size_t GetIndexStride (const IndexType type)
 Get the index stride by a given index type, in bytes. More...