Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
vl::A3DSLoader Class Reference

The A3DSLoader class loads an Autodesk 3DS file and generates a vector of A3DSObject and A3DSMaterial objects. More...

#include <io3DS.hpp>

Public Member Functions

 A3DSLoader ()
 
bool parse3DS (VirtualFile *file)
 

Public Attributes

std::vector< A3DSObjectmObjects
 
std::vector< A3DSMaterialmMaterials
 

Protected Member Functions

fvec3 readVec3 ()
 
fvec3 readColByte3 ()
 
fvec3 readColFloat3 ()
 
String readLine ()
 
float readWordPercent ()
 
float readFloatPercent ()
 
void readChunk ()
 
bool skipChunk ()
 
void read_3D_EDITOR_CHUNK ()
 
fvec3 readColChunk ()
 
float readPercentChunk ()
 
void read_MATERIAL_BLOCK ()
 
A3DSTexture readMapChunk ()
 
void read_OBJECT_BLOCK ()
 
void read_TRIANGULAR_MESH ()
 

Protected Attributes

VirtualFilemInputFile
 
unsigned short mChunkId
 
unsigned int mChunkLen
 
bool mCorrupted
 

Detailed Description

The A3DSLoader class loads an Autodesk 3DS file and generates a vector of A3DSObject and A3DSMaterial objects.

Definition at line 202 of file io3DS.hpp.

Constructor & Destructor Documentation

◆ A3DSLoader()

A3DSLoader::A3DSLoader ( )

Definition at line 105 of file io3DS.cpp.

Member Function Documentation

◆ parse3DS()

bool A3DSLoader::parse3DS ( VirtualFile file)

◆ read_3D_EDITOR_CHUNK()

void A3DSLoader::read_3D_EDITOR_CHUNK ( )
protected

◆ read_MATERIAL_BLOCK()

void A3DSLoader::read_MATERIAL_BLOCK ( )
protected

◆ read_OBJECT_BLOCK()

void A3DSLoader::read_OBJECT_BLOCK ( )
protected

◆ read_TRIANGULAR_MESH()

void A3DSLoader::read_TRIANGULAR_MESH ( )
protected

◆ readChunk()

void A3DSLoader::readChunk ( )
protected

◆ readColByte3()

fvec3 A3DSLoader::readColByte3 ( )
protected

◆ readColChunk()

fvec3 A3DSLoader::readColChunk ( )
protected

◆ readColFloat3()

fvec3 A3DSLoader::readColFloat3 ( )
protected

◆ readFloatPercent()

float A3DSLoader::readFloatPercent ( )
protected

Definition at line 153 of file io3DS.cpp.

References mInputFile, and vl::VirtualFile::readFloat().

Referenced by readPercentChunk().

◆ readLine()

String A3DSLoader::readLine ( )
protected

◆ readMapChunk()

A3DSTexture A3DSLoader::readMapChunk ( )
protected

◆ readPercentChunk()

float A3DSLoader::readPercentChunk ( )
protected

◆ readVec3()

fvec3 A3DSLoader::readVec3 ( )
protected

◆ readWordPercent()

float A3DSLoader::readWordPercent ( )
protected

Definition at line 148 of file io3DS.cpp.

References mInputFile, and vl::VirtualFile::readUInt16().

Referenced by readPercentChunk().

◆ skipChunk()

bool A3DSLoader::skipChunk ( )
protected

Member Data Documentation

◆ mChunkId

unsigned short vl::A3DSLoader::mChunkId
protected

◆ mChunkLen

unsigned int vl::A3DSLoader::mChunkLen
protected

◆ mCorrupted

bool vl::A3DSLoader::mCorrupted
protected

◆ mInputFile

VirtualFile* vl::A3DSLoader::mInputFile
protected

◆ mMaterials

std::vector<A3DSMaterial> vl::A3DSLoader::mMaterials

◆ mObjects

std::vector<A3DSObject> vl::A3DSLoader::mObjects

The documentation for this class was generated from the following files: