Click here to Skip to main content
15,879,348 members
Articles / Multimedia / OpenGL

Modified version of lib3ds reader of .3ds format

Rate me:
Please Sign up or sign in to vote.
4.78/5 (15 votes)
4 Oct 2012CPOL3 min read 42.5K   2.9K   23  
In this article I present version of lib3ds reader for C++ language
#ifndef LIB3DS_MATERIAL_H
#define LIB3DS_MATERIAL_H

#include "Lib3ds_atmosphere.h"

class Lib3ds_material: public Lib3ds_atmosphere
{
public:
    Lib3ds_material();

protected:

    void initialize_texture_map(Lib3dsTextureMap *map); // Function of reading of initialize texture map

    Lib3dsMaterial lib3ds_material_new(QString name = ""); // Function of creating of new material

    bool color_read(float rgb[3]); // Function of reading of color

    bool int_percentage_read(float *p); // Function of reading of percentage proportion

    bool texture_map_read(Lib3dsTextureMap *map); // Function of reading texture map

    bool lib3ds_material_read(Lib3dsMaterial *material); // Function of reading of material data

};

#endif // LIB3DS_MATERIAL_H

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions