PeriDyno 0.8.2
Classes | Typedefs | Enumerations | Functions
ofbx Namespace Reference

Classes

struct  Allocator
 
struct  AnimationCurve
 
struct  AnimationCurveImpl
 
struct  AnimationCurveNode
 
struct  AnimationCurveNodeImpl
 
struct  AnimationLayer
 
struct  AnimationLayerImpl
 
struct  AnimationStack
 
struct  AnimationStackImpl
 
struct  BlendShape
 
struct  BlendShapeChannel
 
struct  BlendShapeChannelImpl
 
struct  BlendShapeImpl
 
struct  Cluster
 
struct  ClusterImpl
 
struct  Color
 
struct  Cursor
 
struct  DataView
 
struct  Element
 
struct  Error
 
struct  Geometry
 
struct  GeometryImpl
 
struct  GlobalSettings
 
struct  Header
 
struct  IElement
 
struct  IElementProperty
 
struct  IScene
 
struct  LimbNodeImpl
 
struct  Material
 
struct  MaterialImpl
 
struct  Matrix
 
struct  Mesh
 
struct  MeshImpl
 
struct  NodeAttribute
 
struct  NodeAttributeImpl
 
struct  NullImpl
 
struct  Object
 
struct  OptionalError
 
struct  ParseGeometryJob
 
struct  Pose
 
struct  PoseImpl
 
struct  Property
 
struct  Quat
 
struct  Root
 
struct  Scene
 
struct  Shape
 
struct  ShapeImpl
 
struct  Skin
 
struct  SkinImpl
 
struct  TakeInfo
 
struct  Temporaries
 
struct  Texture
 
struct  TextureImpl
 
struct  Vec2
 
struct  Vec3
 
struct  Vec4
 
struct  Video
 

Typedefs

typedef unsigned char u8
 
typedef unsigned short u16
 
typedef unsigned int u32
 
typedef long i64
 
typedef unsigned long u64
 
using JobFunction = void(*)(void *)
 
using JobProcessor = void(*)(JobFunction, void *, void *, u32, u32)
 

Enumerations

enum class  LoadFlags : u64 { TRIANGULATE = 1 << 0 , IGNORE_GEOMETRY = 1 << 1 , IGNORE_BLEND_SHAPES = 1 << 2 }
 
enum class  RotationOrder {
  EULER_XYZ , EULER_XZY , EULER_YZX , EULER_YXZ ,
  EULER_ZXY , EULER_ZYX , SPHERIC_XYZ
}
 
enum  UpVector { UpVector_AxisX = 0 , UpVector_AxisY = 1 , UpVector_AxisZ = 2 }
 
enum  CoordSystem { CoordSystem_RightHanded = 0 , CoordSystem_LeftHanded = 1 }
 
enum  FrameRate {
  FrameRate_DEFAULT = 0 , FrameRate_120 = 1 , FrameRate_100 = 2 , FrameRate_60 = 3 ,
  FrameRate_50 = 4 , FrameRate_48 = 5 , FrameRate_30 = 6 , FrameRate_30_DROP = 7 ,
  FrameRate_NTSC_DROP_FRAME = 8 , FrameRate_NTSC_FULL_FRAME = 9 , FrameRate_PAL = 10 , FrameRate_CINEMA = 11 ,
  FrameRate_1000 = 12 , FrameRate_CINEMA_ND = 13 , FrameRate_CUSTOM = 14
}
 

Functions

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 ElementfindChild (const Element &element, const char *id)
 
static IElementresolveProperty (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< Tread (Cursor *cursor)
 
static OptionalError< DataViewreadShortString (Cursor *cursor)
 
static OptionalError< DataViewreadLongString (Cursor *cursor)
 
static OptionalError< Property * > readProperty (Cursor *cursor, Allocator &allocator)
 
static OptionalError< u64readElementOffset (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)
 
ISceneload (const u8 *data, int size, u64 flags, JobProcessor job_processor, void *job_user_ptr)
 
const char * getError ()
 

Typedef Documentation

◆ i64

typedef long ofbx::i64

Definition at line 15 of file ofbx.h.

◆ JobFunction

using ofbx::JobFunction = typedef void (*)(void*)

Definition at line 25 of file ofbx.h.

◆ JobProcessor

using ofbx::JobProcessor = typedef void (*)(JobFunction, void*, void*, u32, u32)

Definition at line 26 of file ofbx.h.

◆ u16

typedef unsigned short ofbx::u16

Definition at line 9 of file ofbx.h.

◆ u32

typedef unsigned int ofbx::u32

Definition at line 10 of file ofbx.h.

◆ u64

typedef unsigned long ofbx::u64

Definition at line 16 of file ofbx.h.

◆ u8

typedef unsigned char ofbx::u8

Definition at line 8 of file ofbx.h.

Enumeration Type Documentation

◆ CoordSystem

Enumerator
CoordSystem_RightHanded 
CoordSystem_LeftHanded 

Definition at line 464 of file ofbx.h.

◆ FrameRate

Enumerator
FrameRate_DEFAULT 
FrameRate_120 
FrameRate_100 
FrameRate_60 
FrameRate_50 
FrameRate_48 
FrameRate_30 
FrameRate_30_DROP 
FrameRate_NTSC_DROP_FRAME 
FrameRate_NTSC_FULL_FRAME 
FrameRate_PAL 
FrameRate_CINEMA 
FrameRate_1000 
FrameRate_CINEMA_ND 
FrameRate_CUSTOM 

Definition at line 472 of file ofbx.h.

◆ LoadFlags

enum class ofbx::LoadFlags : u64
strong
Enumerator
TRIANGULATE 
IGNORE_GEOMETRY 
IGNORE_BLEND_SHAPES 

Definition at line 28 of file ofbx.h.

◆ RotationOrder

enum class ofbx::RotationOrder
strong
Enumerator
EULER_XYZ 
EULER_XZY 
EULER_YZX 
EULER_YXZ 
EULER_ZXY 
EULER_ZYX 
SPHERIC_XYZ 

Definition at line 141 of file ofbx.h.

◆ UpVector

Enumerator
UpVector_AxisX 
UpVector_AxisY 
UpVector_AxisZ 

Definition at line 455 of file ofbx.h.

Function Documentation

◆ add()

static void ofbx::add ( GeometryImpl::NewVertex vtx,
int  index 
)
static

Definition at line 2460 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buildGeometryVertexData()

static void ofbx::buildGeometryVertexData ( GeometryImpl geom,
const std::vector< Vec3 > &  vertices,
const std::vector< int > &  original_indices,
std::vector< int > &  to_old_indices,
bool  triangulationEnabled 
)
static

Definition at line 2518 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ codeIndex()

static int ofbx::codeIndex ( int  idx,
bool  last 
)
static

Definition at line 2339 of file ofbx.cpp.

Here is the caller graph for this function:

◆ copyString()

template<int SIZE>
static bool ofbx::copyString ( char(&)  destination[SIZE],
const char *  source 
)
static

Definition at line 280 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decodeIndex()

static int ofbx::decodeIndex ( int  idx)
static

Definition at line 2333 of file ofbx.cpp.

Here is the caller graph for this function:

◆ decompress()

static bool ofbx::decompress ( const u8 in,
size_t  in_size,
u8 out,
size_t  out_size 
)
static

Definition at line 527 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fbxTimeToSeconds()

double ofbx::fbxTimeToSeconds ( i64  value)

Definition at line 256 of file ofbx.cpp.

Here is the caller graph for this function:

◆ findChild()

static const Element * ofbx::findChild ( const Element element,
const char *  id 
)
static

Definition at line 457 of file ofbx.cpp.

Here is the caller graph for this function:

◆ fromString() [1/2]

const char * ofbx::fromString ( const char *  str,
const char *  end,
double *  val,
int  count 
)

Definition at line 2128 of file ofbx.cpp.

◆ fromString() [2/2]

template<typename T >
const char * ofbx::fromString ( const char *  str,
const char *  end,
T val 
)
Here is the caller graph for this function:

◆ fromString< double >()

template<>
const char * ofbx::fromString< double > ( const char *  str,
const char *  end,
double *  val 
)

Definition at line 2108 of file ofbx.cpp.

Here is the caller graph for this function:

◆ fromString< float >()

template<>
const char * ofbx::fromString< float > ( const char *  str,
const char *  end,
float *  val 
)

Definition at line 2118 of file ofbx.cpp.

◆ fromString< i64 >()

template<>
const char * ofbx::fromString< i64 > ( const char *  str,
const char *  end,
i64 val 
)

Definition at line 2098 of file ofbx.cpp.

◆ fromString< int >()

template<>
const char * ofbx::fromString< int > ( const char *  str,
const char *  end,
int *  val 
)

Definition at line 2078 of file ofbx.cpp.

◆ fromString< Matrix >()

template<>
const char * ofbx::fromString< Matrix > ( const char *  str,
const char *  end,
Matrix val 
)

Definition at line 2162 of file ofbx.cpp.

Here is the call graph for this function:

◆ fromString< u64 >()

template<>
const char * ofbx::fromString< u64 > ( const char *  str,
const char *  end,
u64 val 
)

Definition at line 2088 of file ofbx.cpp.

◆ fromString< Vec2 >()

template<>
const char * ofbx::fromString< Vec2 > ( const char *  str,
const char *  end,
Vec2 val 
)

Definition at line 2144 of file ofbx.cpp.

Here is the call graph for this function:

◆ fromString< Vec3 >()

template<>
const char * ofbx::fromString< Vec3 > ( const char *  str,
const char *  end,
Vec3 val 
)

Definition at line 2150 of file ofbx.cpp.

Here is the call graph for this function:

◆ fromString< Vec4 >()

template<>
const char * ofbx::fromString< Vec4 > ( const char *  str,
const char *  end,
Vec4 val 
)

Definition at line 2156 of file ofbx.cpp.

Here is the call graph for this function:

◆ getError()

const char * ofbx::getError ( )

Definition at line 3637 of file ofbx.cpp.

◆ getFramerateFromTimeMode()

static float ofbx::getFramerateFromTimeMode ( FrameRate  time_mode,
float  custom_frame_rate 
)
static

Definition at line 2929 of file ofbx.cpp.

Here is the caller graph for this function:

◆ getRotationMatrix()

static Matrix ofbx::getRotationMatrix ( const Vec3 euler,
RotationOrder  order 
)
static

Definition at line 236 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTriCountFromPoly()

static int ofbx::getTriCountFromPoly ( const std::vector< int > &  indices,
int *  idx 
)
static

Definition at line 2447 of file ofbx.cpp.

Here is the caller graph for this function:

◆ isEndLine()

static bool ofbx::isEndLine ( const Cursor cursor)
static

Definition at line 716 of file ofbx.cpp.

Here is the caller graph for this function:

◆ isLong()

static bool ofbx::isLong ( const Property prop)
static

Definition at line 2809 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isString()

static bool ofbx::isString ( const Property prop)
static

Definition at line 2802 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTextTokenChar()

static bool ofbx::isTextTokenChar ( char  c)
static

Definition at line 752 of file ofbx.cpp.

Here is the caller graph for this function:

◆ load()

IScene * ofbx::load ( const u8 data,
int  size,
u64  flags,
JobProcessor  job_processor,
void *  job_user_ptr 
)

Definition at line 3597 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeIdentity()

static Matrix ofbx::makeIdentity ( )
static

Definition at line 188 of file ofbx.cpp.

Here is the caller graph for this function:

◆ operator*() [1/2]

static Matrix ofbx::operator* ( const Matrix lhs,
const Matrix rhs 
)
static

Definition at line 169 of file ofbx.cpp.

◆ operator*() [2/2]

static Vec3 ofbx::operator* ( const Vec3 v,
float  f 
)
static

Definition at line 268 of file ofbx.cpp.

◆ operator+()

static Vec3 ofbx::operator+ ( const Vec3 a,
const Vec3 b 
)
static

Definition at line 274 of file ofbx.cpp.

◆ operator-()

static Vec3 ofbx::operator- ( const Vec3 v)
static

Definition at line 163 of file ofbx.cpp.

◆ parse()

template<typename T >
static OptionalError< Object * > ofbx::parse ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1879 of file ofbx.cpp.

Here is the call graph for this function:

◆ parseAnimationCurve()

static OptionalError< Object * > ofbx::parseAnimationCurve ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 2416 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArrayRaw()

template<typename T >
static bool ofbx::parseArrayRaw ( const Property property,
T out,
int  max_size 
)
static

Definition at line 2034 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseBinaryArray()

template<typename T >
static bool ofbx::parseBinaryArray ( const Property property,
std::vector< T > *  out 
)
static

Definition at line 2195 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseCluster()

static OptionalError< Object * > ofbx::parseCluster ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1886 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseConnections()

static bool ofbx::parseConnections ( const Element root,
Scene scene 
)
static

Definition at line 2816 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseDouble()

static bool ofbx::parseDouble ( Property property,
double *  out 
)
static

Definition at line 2252 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseDoubleVecData()

template<typename T >
static bool ofbx::parseDoubleVecData ( Property property,
std::vector< T > *  out_vec,
std::vector< float > *  tmp 
)
static

Definition at line 2223 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometry()

static OptionalError< Object * > ofbx::parseGeometry ( const Element element,
bool  triangulate,
GeometryImpl geom 
)
static

Definition at line 2716 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometryColors()

static OptionalError< Object * > ofbx::parseGeometryColors ( GeometryImpl geom,
const Element element,
const std::vector< int > &  original_indices,
const std::vector< int > &  to_old_indices,
Temporaries tmp 
)
static

Definition at line 2670 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometryMaterials()

static OptionalError< Object * > ofbx::parseGeometryMaterials ( GeometryImpl geom,
const Element element,
const std::vector< int > &  original_indices 
)
static

Definition at line 2555 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometryNormals()

static OptionalError< Object * > ofbx::parseGeometryNormals ( GeometryImpl geom,
const Element element,
const std::vector< int > &  original_indices,
const std::vector< int > &  to_old_indices,
Temporaries tmp 
)
static

Definition at line 2693 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometryTangents()

static OptionalError< Object * > ofbx::parseGeometryTangents ( GeometryImpl geom,
const Element element,
const std::vector< int > &  original_indices,
const std::vector< int > &  to_old_indices,
Temporaries tmp 
)
static

Definition at line 2636 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGeometryUVs()

static OptionalError< Object * > ofbx::parseGeometryUVs ( GeometryImpl geom,
const Element element,
const std::vector< int > &  original_indices,
const std::vector< int > &  to_old_indices,
Temporaries tmp 
)
static

Definition at line 2598 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseGlobalSettings()

static void ofbx::parseGlobalSettings ( const Element root,
Scene scene 
)
static

Definition at line 2953 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseLimbNode()

static OptionalError< Object * > ofbx::parseLimbNode ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1924 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseMaterial()

static OptionalError< Object * > ofbx::parseMaterial ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1953 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseMesh()

static OptionalError< Object * > ofbx::parseMesh ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1939 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseNodeAttribute()

static OptionalError< Object * > ofbx::parseNodeAttribute ( const Scene scene,
const Element element,
Allocator allocator 
)
static

Definition at line 1912 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseObjects()

static bool ofbx::parseObjects ( const Element root,
Scene scene,
u64  flags,
Allocator allocator,
JobProcessor  job_processor,
void *  job_user_ptr 
)
static

Definition at line 3023 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parsePose()

struct OptionalError< Object * > ofbx::parsePose ( const Scene scene,
const Element element,
Allocator allocator 
)

Definition at line 1861 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTakes()

static bool ofbx::parseTakes ( Scene scene)
static

Definition at line 2866 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTemplates()

static void ofbx::parseTemplates ( const Element root)
static

Definition at line 995 of file ofbx.cpp.

Here is the call graph for this function:

◆ parseTextArray()

template<typename T >
static void ofbx::parseTextArray ( const Property property,
std::vector< T > *  out 
)
static

Definition at line 2168 of file ofbx.cpp.

Here is the caller graph for this function:

◆ parseTextArrayRaw()

template<typename T >
static bool ofbx::parseTextArrayRaw ( const Property property,
T out,
int  max_size 
)
static

Definition at line 2180 of file ofbx.cpp.

Here is the caller graph for this function:

◆ parseTexture()

struct OptionalError< Object * > ofbx::parseTexture ( const Scene scene,
const Element element,
Allocator allocator 
)

Definition at line 1837 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseVertexData()

template<typename T >
static bool ofbx::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

Definition at line 2278 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseVideo()

void ofbx::parseVideo ( Scene scene,
const Element element,
Allocator allocator 
)

Definition at line 1813 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

template<typename T >
static OptionalError< T > ofbx::read ( Cursor cursor)
static

Definition at line 545 of file ofbx.cpp.

◆ readElement()

static OptionalError< Element * > ofbx::readElement ( Cursor cursor,
u32  version,
Allocator allocator 
)
static

Definition at line 655 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readElementOffset()

static OptionalError< u64 > ofbx::readElementOffset ( Cursor cursor,
u16  version 
)
static

Definition at line 640 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readLongString()

static OptionalError< DataView > ofbx::readLongString ( Cursor cursor)
static

Definition at line 570 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readProperty()

static OptionalError< Property * > ofbx::readProperty ( Cursor cursor,
Allocator allocator 
)
static

Definition at line 586 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readShortString()

static OptionalError< DataView > ofbx::readShortString ( Cursor cursor)
static

Definition at line 554 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readTextElement()

static OptionalError< Element * > ofbx::readTextElement ( Cursor cursor,
Allocator allocator 
)
static

Definition at line 870 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readTextProperty()

static OptionalError< Property * > ofbx::readTextProperty ( Cursor cursor,
Allocator allocator 
)
static

Definition at line 771 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readTextToken()

static DataView ofbx::readTextToken ( Cursor cursor)
static

Definition at line 758 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remap()

template<typename T >
static void ofbx::remap ( std::vector< T > *  out,
const std::vector< int > &  map 
)
static

Definition at line 2402 of file ofbx.cpp.

Here is the caller graph for this function:

◆ resolveEnumProperty()

static int ofbx::resolveEnumProperty ( const Object object,
const char *  name,
int  default_value 
)
static

Definition at line 487 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveProperty()

static IElement * ofbx::resolveProperty ( const Object obj,
const char *  name 
)
static

Definition at line 469 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveVec3Property()

static Vec3 ofbx::resolveVec3Property ( const Object object,
const char *  name,
const Vec3 default_value 
)
static

Definition at line 498 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotationX()

static Matrix ofbx::rotationX ( double  angle)
static

Definition at line 194 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotationY()

static Matrix ofbx::rotationY ( double  angle)
static

Definition at line 208 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotationZ()

static Matrix ofbx::rotationZ ( double  angle)
static

Definition at line 222 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secondsToFbxTime()

i64 ofbx::secondsToFbxTime ( double  value)

Definition at line 262 of file ofbx.cpp.

Here is the caller graph for this function:

◆ setTranslation()

static void ofbx::setTranslation ( const Vec3 t,
Matrix mtx 
)
static

Definition at line 155 of file ofbx.cpp.

Here is the caller graph for this function:

◆ skipInsignificantWhitespaces()

static void ofbx::skipInsignificantWhitespaces ( Cursor cursor)
static

Definition at line 722 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ skipLine()

static void ofbx::skipLine ( Cursor cursor)
static

Definition at line 731 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ skipWhitespaces()

static void ofbx::skipWhitespaces ( Cursor cursor)
static

Definition at line 742 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ splat()

template<typename T >
static void ofbx::splat ( std::vector< T > *  out,
GeometryImpl::VertexDataMapping  mapping,
const std::vector< T > &  data,
const std::vector< int > &  indices,
const std::vector< int > &  original_indices 
)
static

Definition at line 2346 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sync_job_processor()

void ofbx::sync_job_processor ( JobFunction  fn,
void *  ,
void *  data,
u32  size,
u32  count 
)

Definition at line 3015 of file ofbx.cpp.

Here is the caller graph for this function:

◆ tokenize()

static OptionalError< Element * > ofbx::tokenize ( const u8 data,
size_t  size,
u32 version,
Allocator allocator 
)
static

Definition at line 963 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tokenizeText()

static OptionalError< Element * > ofbx::tokenizeText ( const u8 data,
size_t  size,
Allocator allocator 
)
static

Definition at line 925 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ triangulate()

static void ofbx::triangulate ( const std::vector< int > &  old_indices,
std::vector< int > *  to_old_vertices,
std::vector< int > *  to_old_indices 
)
static

Definition at line 2478 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: