X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fprimitive%2Fprimitive-visual.h;h=abf4a18b37d4ea99078d197f99496d5010ad1f9a;hb=refs%2Fchanges%2F99%2F80299%2F18;hp=ecee880da5ccb1929f8dfb52b16bfb33eebf13c6;hpb=cc0aefb3259c6fe818d9949ebf768843cc01e6fd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/primitive/primitive-visual.h b/dali-toolkit/internal/visuals/primitive/primitive-visual.h index ecee880..abf4a18 100644 --- a/dali-toolkit/internal/visuals/primitive/primitive-visual.h +++ b/dali-toolkit/internal/visuals/primitive/primitive-visual.h @@ -46,7 +46,8 @@ // INTERNAL INCLUDES -#include +#include +#include namespace Dali { @@ -60,6 +61,8 @@ namespace Internal /** * The visual which renders a simple 3D shape to the control's quad * + * Primitives are created with clockwise winding and back-face culling by default. + * * The following properties are required to create a PrimitiveRender * * | %Property Name | Type | @@ -89,7 +92,7 @@ namespace Internal * |-----------------|-------------|-----------------------------------------| * | lightPosition | VECTOR3 | The position (on stage) of the light | */ -class PrimitiveVisual: public Visual +class PrimitiveVisual: public Visual::Base { public: @@ -141,17 +144,6 @@ protected: private: - enum PrimitiveType - { - SPHERE, - CONE, - CONICAL_FRUSTRUM, - CYLINDER, - CUBE, - OCTAHEDRON, - BEVELLED_CUBE - }; - //Simple struct to store the position and normal of a single vertex. struct Vertex { @@ -319,7 +311,6 @@ private: Shader mShader; Geometry mGeometry; - std::string mShape; //Shape to render, as string. Vector4 mColor; //Color of shape. Vector3 mObjectDimensions; //Dimensions of shape, scaled to be between 0.0 and 1.0. @@ -340,7 +331,7 @@ private: int mSlices; ///< Number of slices to use when creating certain objects. int mStacks; ///< Number of stacks to use when creating certain objects. - PrimitiveType mPrimitiveType; //Shape to render, as enum. + Toolkit::PrimitiveVisual::Shape::Type mPrimitiveType; //Shape to render, as enum. }; } // namespace Internal