32 #if !defined(Load3DS_INCLUDE_ONCE) 33 #define Load3DS_INCLUDE_ONCE 95 A3DSTexture(): mUScale(1), mVScale(1), mUOffset(1), mVOffset(1), mRotation(0),
96 mOpt_tile(true), mOpt_decal(false), mOpt_mirror(false), mOpt_negative(false),
97 mOpt_summed_area(false), mOpt_use_alpha(false), mOpt_one_channel_tint(false),
98 mOpt_ignore_alpha(false), mOpt_rgb_tint(false) {}
101 float mUScale,
mVScale, mUOffset, mVOffset, mRotation;
119 A3DSMaterial(): mShininess(0), mShininessStrength(0), mTransparency(0), mDoubleSided(false) {}
136 A3DSTriFace(): mA(0), mB(0), mC(0), mFlags(0), mSmoothingGroup(0), mMaterialIndex(-1) {}
162 if (mPos.x() != other.
mPos.
x())
163 return mPos.x() < other.
mPos.
x();
165 if (mPos.y() != other.
mPos.
y())
166 return mPos.y() < other.
mPos.
y();
168 if (mPos.z() != other.
mPos.
z())
169 return mPos.z() < other.
mPos.
z();
171 if (mUV.s() != other.
mUV.
s())
172 return mUV.s() < other.
mUV.
s();
174 if (mUV.t() != other.
mUV.
t())
175 return mUV.t() < other.
mUV.
t();
210 fvec3 readColByte3();
211 fvec3 readColFloat3();
213 float readWordPercent();
214 float readFloatPercent();
217 void read_3D_EDITOR_CHUNK();
218 fvec3 readColChunk();
219 float readPercentChunk();
220 void read_MATERIAL_BLOCK();
222 void read_OBJECT_BLOCK();
223 void read_TRIANGULAR_MESH();
std::vector< unsigned short > mMappedFace
std::vector< A3DSMaterial > mMaterials
const T_Scalar & t() const
The A3DSMaterialFaceMapping class represents the material/face mapping in a 3DS file.
An abstract class representing a file.
const T_Scalar & s() const
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
const T_Scalar & z() const
std::vector< A3DSMaterialFaceMapping > mMatFaceMap
The A3DSLoader class loads an Autodesk 3DS file and generates a vector of A3DSObject and A3DSMaterial...
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
The A3DSMaterial class represents a material in a 3DS file.
Visualization Library main namespace.
std::vector< A3DSTriFace > mFaceList
ref< ResourceDatabase > loadResource(const String &path) const
The A3DSObject class represents an object in a 3DS file.
unsigned int mSmoothingGroup
bool mOpt_one_channel_tint
ref< ResourceDatabase > loadResource(VirtualFile *file) const
bool writeResource(VirtualFile *, ResourceDatabase *) const
Not supported yet.
bool writeResource(const String &, ResourceDatabase *) const
Not supported yet.
const T_Scalar & y() const
std::vector< A3DSVertex > mVertices
std::vector< A3DSObject > mObjects
#define VLGRAPHICS_EXPORT
bool operator<(const A3DSVertex &other) const
const T_Scalar & x() const
The ref<> class is used to reference-count an Object.
The A3DSTexture class represents a texture in a 3DS file.
The ResourceLoadWriter class is an abstract class used to implement read/write support for one or mor...
unsigned int mSmoothingGroup
The A3DSVertex class represents a vertex in a 3DS file.
VLGRAPHICS_EXPORT ref< ResourceDatabase > load3DS(VirtualFile *file)
The A3DSTriFace class represents a triangle in a 3DS file.
The ResourceDatabase class contains and manipulates a set of resources.
The LoadWriter3DS class is a ResourceLoadWriter capable of reading 3DS files.