gltf/draco/types

Source   Edit  

Types

DracoAttribute = object
  kind*: DracoAttributeKind
  dataType*: DracoDataType
  componentType*: ComponentType
  numComponents*: int
  normalized*: bool
  byteStride*: int
  uniqueId*: int
  values*: string
  intValues*: seq[int32]
  pointMap*: seq[int]
  identityMap*: bool
Source   Edit  
DracoAttributeData = object
  name*: string
  componentType*: ComponentType
  componentCount*: int
  data*: string
Source   Edit  
DracoAttributeKind = enum
  InvalidAttribute = -1, PositionAttribute = 0, NormalAttribute = 1,
  ColorAttribute = 2, TexCoordAttribute = 3, GenericAttribute = 4
Source   Edit  
DracoDataType = enum
  InvalidType = 0, Int8Type = 1, Uint8Type = 2, Int16Type = 3, Uint16Type = 4,
  Int32Type = 5, Uint32Type = 6, Int64Type = 7, Uint64Type = 8, Float32Type = 9,
  Float64Type = 10, BoolType = 11
Source   Edit  
DracoDecodeAttribute = object
  name*: string
  id*: int
  componentType*: ComponentType
Source   Edit  
DracoDecodeResult = object
  pointCount*: int
  faceCount*: int
  indices*: seq[uint32]
  attributes*: seq[DracoAttributeData]
Source   Edit  
DracoError = object of GltfError
Source   Edit  
DracoMesh = object
  pointCount*: int
  faceCount*: int
  faces*: seq[uint32]
  attributes*: seq[DracoAttribute]
Source   Edit  

Procs

proc componentType(dataType: DracoDataType): ComponentType {.
    ...raises: [DracoError], tags: [], forbids: [].}
Converts a Draco data type to a glTF component type. Source   Edit  
proc dataTypeLength(dataType: DracoDataType): int {....raises: [], tags: [],
    forbids: [].}
Returns the byte size for one Draco scalar value. Source   Edit