Blender V5.3
common.h File Reference
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Macros

#define API(returnType)

Enumerations

enum  ComponentType : size_t {
  Byte = 5120 , UnsignedByte = 5121 , Short = 5122 , UnsignedShort = 5123 ,
  UnsignedInt = 5125 , Float = 5126
}

Functions

size_t getNumberOfComponents (char *dataType)
size_t getComponentByteLength (size_t componentType)
size_t getAttributeStride (size_t componentType, char *dataType)

Macro Definition Documentation

◆ API

#define API ( returnType)
Value:
extern "C" returnType

Library for the Draco encoding/decoding feature inside the glTF-Blender-IO project.

The python script within glTF-Blender-IO uses the CTypes library to open the DLL, load function pointers add pass the raw data to the encoder.

Author
Jim Eckerlein ecker.nosp@m.lein.nosp@m.@ux3d.nosp@m..io
Date
2020-11-18

Definition at line 23 of file draco_bridge/intern/common.h.

Enumeration Type Documentation

◆ ComponentType

enum ComponentType : size_t
Enumerator
Byte 
UnsignedByte 
Short 
UnsignedShort 
UnsignedInt 
Float 

Definition at line 26 of file draco_bridge/intern/common.h.

Function Documentation

◆ getAttributeStride()

size_t getAttributeStride ( size_t componentType,
char * dataType )

◆ getComponentByteLength()

size_t getComponentByteLength ( size_t componentType)

◆ getNumberOfComponents()

size_t getNumberOfComponents ( char * dataType)