JavaScript binding for new mesh APIs
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / constants / constants-wrapper.cpp
index 1571273..162db9e 100644 (file)
 #include <dali/public-api/actors/image-actor.h>
 #include <dali/public-api/actors/blending.h>
 #include <dali/public-api/actors/camera-actor.h>
 #include <dali/public-api/actors/image-actor.h>
 #include <dali/public-api/actors/blending.h>
 #include <dali/public-api/actors/camera-actor.h>
+#include <dali/public-api/actors/sampling.h>
 #include <dali/public-api/render-tasks/render-task.h>
 #include <dali/public-api/common/loading-state.h>
 #include <dali/public-api/render-tasks/render-task.h>
 #include <dali/public-api/common/loading-state.h>
-
+#include <dali/devel-api/rendering/material.h>
+#include <dali/devel-api/rendering/geometry.h>
 
 namespace Dali
 {
 
 namespace Dali
 {
@@ -211,8 +213,46 @@ const IntegerPair EnumTable[] =
 
     {"IMAGE_ACTOR_STYLE_QUAD",                ImageActor::STYLE_QUAD},
     {"IMAGE_ACTOR_STYLE_NINE_PATCH",          ImageActor::STYLE_NINE_PATCH},
 
     {"IMAGE_ACTOR_STYLE_QUAD",                ImageActor::STYLE_QUAD},
     {"IMAGE_ACTOR_STYLE_NINE_PATCH",          ImageActor::STYLE_NINE_PATCH},
-    {"IMAGE_ACTOR_STYLE_NINE_PATCH_NO_CENTER",ImageActor::STYLE_NINE_PATCH_NO_CENTER }
-
+    {"IMAGE_ACTOR_STYLE_NINE_PATCH_NO_CENTER",ImageActor::STYLE_NINE_PATCH_NO_CENTER },
+
+    { "FILTER_MODE_NONE",                     FilterMode::NONE           },
+    { "FILTER_MODE_DEFAULT",                  FilterMode::DEFAULT        },
+    { "FILTER_MODE_NEAREST",                  FilterMode::NEAREST        },
+    { "FILTER_MODE_LINEAR",                   FilterMode::LINEAR         },
+
+    { "WRAP_MODE_DEFAULT",                    WrapMode::DEFAULT          },
+    { "WRAP_MODE_CLAMP_TO_EDGE",              WrapMode::CLAMP_TO_EDGE    },
+    { "WRAP_MODE_REPEAT",                     WrapMode::REPEAT           },
+    { "WRAP_MODE_MIRRORED_REPEAT",            WrapMode::MIRRORED_REPEAT  },
+
+    { "MATERIAL_NONE",                        Material::NONE                      },
+    { "MATERIAL_CULL_BACK",                   Material::CULL_BACK                 },
+    { "MATERIAL_CULL_FRONT",                  Material::CULL_FRONT                },
+    { "MATERIAL_CULL_BACK_AND_FRONT",         Material::CULL_BACK_AND_FRONT       },
+
+    { "GEOMETRY_POINTS",                      Geometry::POINTS          },
+    { "GEOMETRY_LINES",                       Geometry::LINES           },
+    { "GEOMETRY_LINE_LOOP",                   Geometry::LINE_LOOP       },
+    { "GEOMETRY_LINE_STRIP",                  Geometry::LINE_STRIP      },
+    { "GEOMETRY_TRIANGLES",                   Geometry::TRIANGLES       },
+    { "GEOMETRY_TRIANGLE_FAN",                Geometry::TRIANGLE_FAN    },
+    { "GEOMETRY_TRIANGLE_STRIP",              Geometry::TRIANGLE_STRIP  },
+
+    { "PROPERTY_NONE",                        Property::NONE           },
+    { "PROPERTY_BOOLEAN",                     Property::BOOLEAN        },
+    { "PROPERTY_FLOAT",                       Property::FLOAT          },
+    { "PROPERTY_INTEGER",                     Property::INTEGER        },
+    { "PROPERTY_VECTOR2",                     Property::VECTOR2        },
+    { "PROPERTY_VECTOR3",                     Property::VECTOR3        },
+    { "PROPERTY_VECTOR4",                     Property::VECTOR4        },
+    { "PROPERTY_MATRIX3",                     Property::MATRIX3        },
+    { "PROPERTY_MATRIX",                      Property::MATRIX         },
+    { "PROPERTY_RECTANGLE",                   Property::RECTANGLE      },
+    { "PROPERTY_ROTATION",                    Property::ROTATION       },
+    { "PROPERTY_STRING",                      Property::STRING         },
+    { "PROPERTY_ARRAY",                       Property::ARRAY          },
+    { "PROPERTY_MAP",                         Property::MAP            },
+    { "PROPERTY_INVALID_INDEX",               Property::INVALID_INDEX  },
 
 };
 const unsigned int EnumTableCount = sizeof(EnumTable)/sizeof(EnumTable[0]);
 
 };
 const unsigned int EnumTableCount = sizeof(EnumTable)/sizeof(EnumTable[0]);