50 const vector<uint8_t>*
data;
89 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 24) +
90 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 16) +
91 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 8) +
92 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 0);
103 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 24) +
104 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 16) +
105 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 8) +
106 ((
static_cast< int32_t
>(
readByte()) & 0xFF) << 0);
107 float* floatValue = (
float*)&value;
122 for (
auto i = 0; i < l; i++) {
123 s+=
static_cast< char >(
readByte());
136 if (length !=
data.size()) {
139 for (
auto i = 0; i <
data.size(); i++) {
151 if (length !=
data.size()) {
154 for (
auto i = 0; i <
data.size(); i++) {
166 if (length !=
data.size()) {
169 for (
auto i = 0; i <
data.size(); i++) {
181 if (length !=
data.size()) {
184 for (
auto i = 0; i <
data.size(); i++) {
196 if (length !=
data.size()) {
199 for (
auto i = 0; i <
data.size(); i++) {
212 for (
auto i = 0; i < f.size(); i++) {
242 static Model*
read(
const string& pathName,
const string& fileName);
252 static Model*
read(
const vector<uint8_t>& data,
const string& pathName =
string(),
const string& fileName =
string());
261 static const string getTexturePath(
const string& modelPathName,
const string& texturePathName,
const string& textureFileName);
static void readEmbeddedTextures(TMReaderInputStream *is, map< string, Texture * > &embeddedTextures)
Read material.
static Material * readMaterial(const string &pathName, TMReaderInputStream *is, const map< string, Texture * > &embeddedTextures, const array< uint8_t, 3 > &version)
Read material.
static void readSubNodes(TMReaderInputStream *is, Model *model, Node *parentNode, map< string, Node * > &subNodes)
Read sub nodes.
static Joint readSkinningJoint(TMReaderInputStream *is)
Read skinning joint.
static const string getTexturePath(const string &modelPathName, const string &texturePathName, const string &textureFileName)
Get texture path.
static const vector< Vector3 > readVertices(TMReaderInputStream *is)
Read vertices from input stream.
static Model * read(const string &pathName, const string &fileName)
TDME model format reader.
static Animation * readAnimation(TMReaderInputStream *is, Node *g)
Read animation from input stream into node.
static void readFacesEntities(TMReaderInputStream *is, Node *g)
Read faces entities from input stream.
static void readAnimationSetup(TMReaderInputStream *is, Model *model, const array< uint8_t, 3 > &version)
Read animation setup.
static void readSkinning(TMReaderInputStream *is, Node *g)
Read skinning from input stream.
static bool readIndices(TMReaderInputStream *is, array< int32_t, 3 > *indices)
Read indices from input stream.
static JointWeight readSkinningJointWeight(TMReaderInputStream *is)
Read skinning joint weight.
static const vector< TextureCoordinate > readTextureCoordinates(TMReaderInputStream *is)
Read texture coordinates from input stream.
static Node * readNode(TMReaderInputStream *is, Model *model, Node *parentNode)
Write node to output stream.
Representation of a 3d model.
Class representing texture UV coordinates data.