types.h 1.19 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#ifndef _TYPES_H_
#define _TYPES_H_

#include <GL/glew.h>
#include <QGLViewer/qglviewer.h>

#include <QHash>
#include <QString>

class Plugin;
class Scene;
namespace CGoGN { class GenericMap; }

#define PluginHash QHash<QString, Plugin*>
#define SceneHash QHash<QString, Scene*>

/**
 * \def MapHash
 *
 * Preprocessor macro for simplifying the type "QHash<QString, GenericMap*>" into GLViewerHash, within the code
 *
 */
//#define MapHash QHash<QString,CGoGN::GenericMap*>

/**
 * \def VBOHash
 * \brief Preprocessor macro for simplifying the type "QHash<QString, Utils::VBO*>" into GLViewerHash, within the code
 */
#define VBOHash QHash<QString, CGoGN::Utils::VBO*>
/**
 * \def ShaderHash
 * \brief Preprocessor macro for simplifying the type "QHash<QString, Utils::GLSLShader*>" into GLViewerHash, within the code
 */
#define ShaderHash QHash<QString, CGoGN::Utils::GLSLShader*>
/**
 * \def ShaderHash
 * \brief Preprocessor macro for simplifying the type "QHash<QString, Algo::Render::GL2::Topo3Render*>" into GLViewerHash, within the code
 */
#define Topo3RenderHash QHash<QString, Algo::Render::GL2::Topo3Render*>

#define MapHash QHash<QString, MapHandler*>

namespace Qt{
	extern int UserRoleType;
}

#endif