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
| /// \class KnSemanticFunctionManager
/// \brief Classe stockant les fonctions sémantiques utilisées pour les liens dynamiques des shaders. Les fonctions doivent être
/// enregistrées au préalables (certaines le sont automatiquement)
class KnSemanticFunctionManager : public KnSingleton<KnSemanticFunctionManager>
{
friend class KnSingleton<KnSemanticFunctionManager>;
typedef std::tr1::function<const FUCK JE VEUX DES TYPES & ()> SemanticFunction;
public:
// Retourne la fonction sémantique
void GetSemanticFunction
// Ajoute une fonction sémantique
void RegisterSemanticFunction (const std::string & name_, const SemanticFunction semanticFunction_);
// Supprime une fonction sémantique
void RemoveSemanticFunction (const std::string & name_);
private:
// Constructeur
KnSemanticFunctionManager ();
// Destructeur
~KnSemanticFunctionManager ();
private:
///< Tableau associatif associant la fonction sémantique à son nom
std::map<std::string, SemanticFunction> semanticFunctions;
}; |
Partager