|
Blender V5.3
|
#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) |
| #define API | ( | 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.
Definition at line 23 of file draco_bridge/intern/common.h.
| enum ComponentType : size_t |
| Enumerator | |
|---|---|
| Byte | |
| UnsignedByte | |
| Short | |
| UnsignedShort | |
| UnsignedInt | |
| Float | |
Definition at line 26 of file draco_bridge/intern/common.h.
| size_t getAttributeStride | ( | size_t | componentType, |
| char * | dataType ) |
Definition at line 56 of file draco_bridge/intern/common.cpp.
References getAttributeStride(), getComponentByteLength(), and getNumberOfComponents().
Referenced by decoderReadAttribute(), encoderSetAttribute(), and getAttributeStride().
| size_t getComponentByteLength | ( | size_t | componentType | ) |
Definition at line 36 of file draco_bridge/intern/common.cpp.
References Byte, Float, getComponentByteLength(), Short, UnsignedByte, UnsignedInt, and UnsignedShort.
Referenced by getAttributeStride(), and getComponentByteLength().
| size_t getNumberOfComponents | ( | char * | dataType | ) |
Definition at line 9 of file draco_bridge/intern/common.cpp.
References getNumberOfComponents().
Referenced by encoderSetAttribute(), getAttributeStride(), and getNumberOfComponents().