|
static void | setTranslation (const Vec3 &t, Matrix *mtx) |
|
static Vec3 | operator- (const Vec3 &v) |
|
static Matrix | operator* (const Matrix &lhs, const Matrix &rhs) |
|
static Matrix | makeIdentity () |
|
static Matrix | rotationX (double angle) |
|
static Matrix | rotationY (double angle) |
|
static Matrix | rotationZ (double angle) |
|
static Matrix | getRotationMatrix (const Vec3 &euler, RotationOrder order) |
|
double | fbxTimeToSeconds (i64 value) |
|
i64 | secondsToFbxTime (double value) |
|
static Vec3 | operator* (const Vec3 &v, float f) |
|
static Vec3 | operator+ (const Vec3 &a, const Vec3 &b) |
|
template<int SIZE> |
static bool | copyString (char(&destination)[SIZE], const char *source) |
|
template<typename T > |
static bool | parseArrayRaw (const Property &property, T *out, int max_size) |
|
template<typename T > |
static bool | parseBinaryArray (const Property &property, std::vector< T > *out) |
|
static bool | parseDouble (Property &property, double *out) |
|
static const Element * | findChild (const Element &element, const char *id) |
|
static IElement * | resolveProperty (const Object &obj, const char *name) |
|
static int | resolveEnumProperty (const Object &object, const char *name, int default_value) |
|
static Vec3 | resolveVec3Property (const Object &object, const char *name, const Vec3 &default_value) |
|
static bool | decompress (const u8 *in, size_t in_size, u8 *out, size_t out_size) |
|
template<typename T > |
static OptionalError< T > | read (Cursor *cursor) |
|
static OptionalError< DataView > | readShortString (Cursor *cursor) |
|
static OptionalError< DataView > | readLongString (Cursor *cursor) |
|
static OptionalError< Property * > | readProperty (Cursor *cursor, Allocator &allocator) |
|
static OptionalError< u64 > | readElementOffset (Cursor *cursor, u16 version) |
|
static OptionalError< Element * > | readElement (Cursor *cursor, u32 version, Allocator &allocator) |
|
static bool | isEndLine (const Cursor &cursor) |
|
static void | skipInsignificantWhitespaces (Cursor *cursor) |
|
static void | skipLine (Cursor *cursor) |
|
static void | skipWhitespaces (Cursor *cursor) |
|
static bool | isTextTokenChar (char c) |
|
static DataView | readTextToken (Cursor *cursor) |
|
static OptionalError< Property * > | readTextProperty (Cursor *cursor, Allocator &allocator) |
|
static OptionalError< Element * > | readTextElement (Cursor *cursor, Allocator &allocator) |
|
static OptionalError< Element * > | tokenizeText (const u8 *data, size_t size, Allocator &allocator) |
|
static OptionalError< Element * > | tokenize (const u8 *data, size_t size, u32 &version, Allocator &allocator) |
|
static void | parseTemplates (const Element &root) |
|
void | parseVideo (Scene &scene, const Element &element, Allocator &allocator) |
|
struct OptionalError< Object * > | parseTexture (const Scene &scene, const Element &element, Allocator &allocator) |
|
struct OptionalError< Object * > | parsePose (const Scene &scene, const Element &element, Allocator &allocator) |
|
template<typename T > |
static OptionalError< Object * > | parse (const Scene &scene, const Element &element, Allocator &allocator) |
|
static OptionalError< Object * > | parseCluster (const Scene &scene, const Element &element, Allocator &allocator) |
|
static OptionalError< Object * > | parseNodeAttribute (const Scene &scene, const Element &element, Allocator &allocator) |
|
static OptionalError< Object * > | parseLimbNode (const Scene &scene, const Element &element, Allocator &allocator) |
|
static OptionalError< Object * > | parseMesh (const Scene &scene, const Element &element, Allocator &allocator) |
|
static OptionalError< Object * > | parseMaterial (const Scene &scene, const Element &element, Allocator &allocator) |
|
template<typename T > |
static bool | parseTextArrayRaw (const Property &property, T *out, int max_size) |
|
template<typename T > |
const char * | fromString (const char *str, const char *end, T *val) |
|
template<> |
const char * | fromString< int > (const char *str, const char *end, int *val) |
|
template<> |
const char * | fromString< u64 > (const char *str, const char *end, u64 *val) |
|
template<> |
const char * | fromString< i64 > (const char *str, const char *end, i64 *val) |
|
template<> |
const char * | fromString< double > (const char *str, const char *end, double *val) |
|
template<> |
const char * | fromString< float > (const char *str, const char *end, float *val) |
|
const char * | fromString (const char *str, const char *end, double *val, int count) |
|
template<> |
const char * | fromString< Vec2 > (const char *str, const char *end, Vec2 *val) |
|
template<> |
const char * | fromString< Vec3 > (const char *str, const char *end, Vec3 *val) |
|
template<> |
const char * | fromString< Vec4 > (const char *str, const char *end, Vec4 *val) |
|
template<> |
const char * | fromString< Matrix > (const char *str, const char *end, Matrix *val) |
|
template<typename T > |
static void | parseTextArray (const Property &property, std::vector< T > *out) |
|
template<typename T > |
static bool | parseDoubleVecData (Property &property, std::vector< T > *out_vec, std::vector< float > *tmp) |
|
template<typename T > |
static bool | parseVertexData (const Element &element, const char *name, const char *index_name, std::vector< T > *out, std::vector< int > *out_indices, GeometryImpl::VertexDataMapping *mapping, std::vector< float > *tmp) |
|
static int | decodeIndex (int idx) |
|
static int | codeIndex (int idx, bool last) |
|
template<typename T > |
static void | splat (std::vector< T > *out, GeometryImpl::VertexDataMapping mapping, const std::vector< T > &data, const std::vector< int > &indices, const std::vector< int > &original_indices) |
|
template<typename T > |
static void | remap (std::vector< T > *out, const std::vector< int > &map) |
|
static OptionalError< Object * > | parseAnimationCurve (const Scene &scene, const Element &element, Allocator &allocator) |
|
static int | getTriCountFromPoly (const std::vector< int > &indices, int *idx) |
|
static void | add (GeometryImpl::NewVertex &vtx, int index) |
|
static void | triangulate (const std::vector< int > &old_indices, std::vector< int > *to_old_vertices, std::vector< int > *to_old_indices) |
|
static void | buildGeometryVertexData (GeometryImpl *geom, const std::vector< Vec3 > &vertices, const std::vector< int > &original_indices, std::vector< int > &to_old_indices, bool triangulationEnabled) |
|
static OptionalError< Object * > | parseGeometryMaterials (GeometryImpl *geom, const Element &element, const std::vector< int > &original_indices) |
|
static OptionalError< Object * > | parseGeometryUVs (GeometryImpl *geom, const Element &element, const std::vector< int > &original_indices, const std::vector< int > &to_old_indices, Temporaries *tmp) |
|
static OptionalError< Object * > | parseGeometryTangents (GeometryImpl *geom, const Element &element, const std::vector< int > &original_indices, const std::vector< int > &to_old_indices, Temporaries *tmp) |
|
static OptionalError< Object * > | parseGeometryColors (GeometryImpl *geom, const Element &element, const std::vector< int > &original_indices, const std::vector< int > &to_old_indices, Temporaries *tmp) |
|
static OptionalError< Object * > | parseGeometryNormals (GeometryImpl *geom, const Element &element, const std::vector< int > &original_indices, const std::vector< int > &to_old_indices, Temporaries *tmp) |
|
static OptionalError< Object * > | parseGeometry (const Element &element, bool triangulate, GeometryImpl *geom) |
|
static bool | isString (const Property *prop) |
|
static bool | isLong (const Property *prop) |
|
static bool | parseConnections (const Element &root, Scene *scene) |
|
static bool | parseTakes (Scene *scene) |
|
static float | getFramerateFromTimeMode (FrameRate time_mode, float custom_frame_rate) |
|
static void | parseGlobalSettings (const Element &root, Scene *scene) |
|
void | sync_job_processor (JobFunction fn, void *, void *data, u32 size, u32 count) |
|
static bool | parseObjects (const Element &root, Scene *scene, u64 flags, Allocator &allocator, JobProcessor job_processor, void *job_user_ptr) |
|
IScene * | load (const u8 *data, int size, u64 flags, JobProcessor job_processor, void *job_user_ptr) |
|
const char * | getError () |
|