2008-05-05 12:36:31 +00:00
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
/**
|
|
|
|
* This program is distributed under the terms of the GNU Lesser General
|
|
|
|
* Public License (LGPL).
|
|
|
|
*
|
|
|
|
* ASSIMP Viewer Utility
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#if (!defined AV_RO_H_INCLUDED)
|
|
|
|
#define AV_RO_H_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
/** \brief Class to manage render options. One global instance
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
class RenderOptions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// enumerates different drawing modi. POINT is currently
|
|
|
|
// not supported and probably will never be.
|
|
|
|
enum DrawMode {NORMAL, WIREFRAME, POINT};
|
|
|
|
|
|
|
|
inline RenderOptions (void) :
|
|
|
|
bMultiSample (true),
|
|
|
|
bSuperSample (false),
|
|
|
|
bRenderMats (true),
|
|
|
|
bRenderNormals (false),
|
|
|
|
eDrawMode (NORMAL),
|
|
|
|
b3Lights (false),
|
|
|
|
bLightRotate (false),
|
|
|
|
bRotate (true),
|
|
|
|
bLowQuality (false),
|
2008-05-13 23:26:52 +00:00
|
|
|
bNoSpecular (false),
|
2009-02-11 20:56:05 +00:00
|
|
|
bStereoView (false),
|
|
|
|
bCulling (false),
|
2010-08-31 17:24:04 +00:00
|
|
|
bSkeleton (false),
|
|
|
|
bNoAlphaBlending(false)
|
|
|
|
|
|
|
|
{}
|
2008-05-05 12:36:31 +00:00
|
|
|
|
|
|
|
bool bMultiSample;
|
|
|
|
|
|
|
|
// SuperSampling has not yet been implemented
|
|
|
|
bool bSuperSample;
|
|
|
|
|
|
|
|
// Display the real material of the object
|
|
|
|
bool bRenderMats;
|
|
|
|
|
|
|
|
// Render the normals
|
|
|
|
bool bRenderNormals;
|
|
|
|
|
|
|
|
// Use 2 directional light sources
|
|
|
|
bool b3Lights;
|
|
|
|
|
|
|
|
// Automatically rotate the light source(s)
|
|
|
|
bool bLightRotate;
|
|
|
|
|
|
|
|
// Automatically rotate the asset around its origin
|
|
|
|
bool bRotate;
|
|
|
|
|
|
|
|
// use standard lambertian lighting
|
|
|
|
bool bLowQuality;
|
|
|
|
|
|
|
|
// disable specular lighting got all elements in the scene
|
|
|
|
bool bNoSpecular;
|
|
|
|
|
2008-05-13 23:26:52 +00:00
|
|
|
// enable stereo view
|
|
|
|
bool bStereoView;
|
|
|
|
|
2010-08-31 17:24:04 +00:00
|
|
|
bool bNoAlphaBlending;
|
|
|
|
|
2008-05-05 12:36:31 +00:00
|
|
|
// wireframe or solid rendering?
|
|
|
|
DrawMode eDrawMode;
|
2009-02-11 20:56:05 +00:00
|
|
|
|
|
|
|
bool bCulling,bSkeleton;
|
2008-05-05 12:36:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !! IG
|