Browse Source

define enum from string

Former-commit-id: cd9fc9c92bae8062898771d7cd17127360ab379e
Alec Jacobson (jalec 11 years ago
parent
commit
93eef89048
2 changed files with 2 additions and 6 deletions
  1. 1 1
      include/igl/ReAntTweakBar.cpp
  2. 1 5
      include/igl/ReAntTweakBar.h

+ 1 - 1
include/igl/ReAntTweakBar.cpp

@@ -35,7 +35,7 @@ IGL_INLINE TwType igl::ReTwDefineEnum(
   return type;
 }
 
-IGL_INLINE TwType igl::ReTwDefineEnum(
+IGL_INLINE TwType igl::ReTwDefineEnumFromString(
   const char * _Name,
   const char * _EnumString)
 {

+ 1 - 5
include/igl/ReAntTweakBar.h

@@ -31,10 +31,6 @@
 // Copyright Alec Jacobson, 2011
 //
 
-// Known bugs:
-//  TwDefineEnumFromString is not supported (use ReTwDefineEnum instead)
-//  Custom enums should not have spaces in their names
-
 // This allows the user to have a non-global, static installation of
 // AntTweakBar
 #ifdef STATIC_ANTTWEAKBAR
@@ -57,7 +53,7 @@ namespace igl
     const char *name, 
     const TwEnumVal *enumValues, 
     unsigned int nbValues);
-  TwType ReTwDefineEnum(const char * name,const char * enumString);
+  TwType ReTwDefineEnumFromString(const char * name,const char * enumString);
   
   struct ReTwRWItem
   {