Visualization Library v1.0.3

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::ObjLoader Class Reference

Loads a Wavefront OBJ file. More...

#include <ioOBJ.hpp>

List of all members.

Public Member Functions

const std::vector< fvec4 > & vertexArray () const
const std::vector< fvec3 > & normalArray () const
const std::vector< fvec3 > & texCoordsArray () const
const std::map< std::string,
ref< ObjMaterial > > & 
materials () const
const std::vector< ref
< ObjMesh > > & 
meshes () const
std::vector< fvec4 > & vertexArray ()
std::vector< fvec3 > & normalArray ()
std::vector< fvec3 > & texCoordsArray ()
std::map< std::string, ref
< ObjMaterial > > & 
materials ()
std::vector< ref< ObjMesh > > & meshes ()
ref< ResourceDatabaseloadOBJ (VirtualFile *file)
 Loads a Wavefront OBJ file.
void loadObjMaterials (VirtualFile *file, std::vector< ObjMaterial > &materials)
 Loads a Wavefront MTL file.

Protected Attributes

std::vector< fvec4mCoords
std::vector< fvec3mNormals
std::vector< fvec3mTexCoords
std::map< std::string, ref
< ObjMaterial > > 
mMaterials
std::vector< ref< ObjMesh > > mMeshes

Detailed Description

Loads a Wavefront OBJ file.

Definition at line 341 of file ioOBJ.hpp.


Member Function Documentation

const std::vector<fvec4>& vl::ObjLoader::vertexArray (  ) const [inline]

Definition at line 344 of file ioOBJ.hpp.

References mCoords.

const std::vector<fvec3>& vl::ObjLoader::normalArray (  ) const [inline]

Definition at line 345 of file ioOBJ.hpp.

References mNormals.

const std::vector<fvec3>& vl::ObjLoader::texCoordsArray (  ) const [inline]

Definition at line 346 of file ioOBJ.hpp.

References mTexCoords.

const std::map< std::string, ref<ObjMaterial> >& vl::ObjLoader::materials (  ) const [inline]

Definition at line 347 of file ioOBJ.hpp.

References mMaterials.

const std::vector< ref<ObjMesh> >& vl::ObjLoader::meshes (  ) const [inline]

Definition at line 348 of file ioOBJ.hpp.

References mMeshes.

std::vector<fvec4>& vl::ObjLoader::vertexArray (  ) [inline]

Definition at line 350 of file ioOBJ.hpp.

References mCoords.

std::vector<fvec3>& vl::ObjLoader::normalArray (  ) [inline]

Definition at line 351 of file ioOBJ.hpp.

References mNormals.

std::vector<fvec3>& vl::ObjLoader::texCoordsArray (  ) [inline]

Definition at line 352 of file ioOBJ.hpp.

References mTexCoords.

std::map< std::string, ref<ObjMaterial> >& vl::ObjLoader::materials (  ) [inline]

Definition at line 353 of file ioOBJ.hpp.

References mMaterials.

std::vector< ref<ObjMesh> >& vl::ObjLoader::meshes (  ) [inline]

Definition at line 354 of file ioOBJ.hpp.

References mMeshes.

ref< ResourceDatabase > ObjLoader::loadOBJ ( VirtualFile file )
void ObjLoader::loadObjMaterials ( VirtualFile file,
std::vector< ObjMaterial > &  materials 
)

Member Data Documentation

std::vector<fvec4> vl::ObjLoader::mCoords [protected]

Definition at line 366 of file ioOBJ.hpp.

Referenced by loadOBJ(), and vertexArray().

std::vector<fvec3> vl::ObjLoader::mNormals [protected]

Definition at line 367 of file ioOBJ.hpp.

Referenced by loadOBJ(), and normalArray().

std::vector<fvec3> vl::ObjLoader::mTexCoords [protected]

Definition at line 368 of file ioOBJ.hpp.

Referenced by loadOBJ(), and texCoordsArray().

std::map< std::string, ref<ObjMaterial> > vl::ObjLoader::mMaterials [protected]

Definition at line 369 of file ioOBJ.hpp.

Referenced by loadOBJ(), and materials().

std::vector< ref<ObjMesh> > vl::ObjLoader::mMeshes [protected]

Definition at line 370 of file ioOBJ.hpp.

Referenced by loadOBJ(), and meshes().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.