3d, gesturelayer, index, naviframe, transit, fileselector, frame, glview, layout...
[framework/uifw/elementary.git] / src / lib / elm_glview.h
index 1af86d3..497257c 100644 (file)
@@ -1,12 +1,6 @@
 /**
  * @defgroup GLView GLView
  *
-<<<<<<< HEAD
- * A simple GLView widget that allows GL rendering.
- *
- * Signals that you can add callbacks for are:
- *
-=======
  * A GLView widget allows for simple GL rendering in elementary environment.
  * GLView hides all the complicated evas_gl details so that the user only
  * has to deal with registering a few callback functions for rendering
@@ -345,7 +339,6 @@ ELM_MAIN()
 
 /**
  * @addtogroup GLView
->>>>>>> remotes/origin/upstream
  * @{
  */
 
@@ -353,17 +346,6 @@ typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
 
 typedef enum _Elm_GLView_Mode
 {
-<<<<<<< HEAD
-   ELM_GLVIEW_NONE    = 0,
-   ELM_GLVIEW_ALPHA   = (1<<1),
-   ELM_GLVIEW_DEPTH   = (1<<2),
-   ELM_GLVIEW_STENCIL = (1<<3),
-   ELM_GLVIEW_DIRECT  = (1<<4)
-} Elm_GLView_Mode;
-
-/**
- * Defines a policy for the glview resizing.
-=======
    ELM_GLVIEW_NONE    = 0,       
    ELM_GLVIEW_ALPHA   = (1<<1), /**< Alpha channel enabled rendering mode */
    ELM_GLVIEW_DEPTH   = (1<<2), /**< Depth buffer enabled rendering mode */
@@ -380,22 +362,12 @@ typedef enum _Elm_GLView_Mode
  * new size.  ELM_GLVIEW_RESIZE_POLICY_SCALE will instead keep the
  * current surface but only display the result at the desired size
  * scaled.
->>>>>>> remotes/origin/upstream
  *
  * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
  */
 typedef enum
 {
    ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1, /**< Resize the internal surface along with the image */
-<<<<<<< HEAD
-   ELM_GLVIEW_RESIZE_POLICY_SCALE = 2 /**< Only reize the internal image and not the surface */
-} Elm_GLView_Resize_Policy;
-
-typedef enum
-{
-   ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1, /**< Render only when there is a need for redrawing */
-   ELM_GLVIEW_RENDER_POLICY_ALWAYS = 2 /**< Render always even when it is not visible */
-=======
    ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2  /**< Only resize the internal image and not the surface */
 } Elm_GLView_Resize_Policy;
 
@@ -413,7 +385,6 @@ typedef enum
 {
    ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1, /**< Render only when there is a need for redrawing */
    ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2  /**< Render always even when it is not visible */
->>>>>>> remotes/origin/upstream
 } Elm_GLView_Render_Policy;
 
 /**
@@ -430,33 +401,19 @@ EAPI Evas_Object *elm_glview_add(Evas_Object *parent);
  * Sets the size of the glview
  *
  * @param obj The glview object
-<<<<<<< HEAD
- * @param width width of the glview object
- * @param height height of the glview object
- *
- * @ingroup GLView
- */
-EAPI void         elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height);
-=======
  * @param w width of the glview object
  * @param h height of the glview object
  *
  * @ingroup GLView
  */
 EAPI void         elm_glview_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
->>>>>>> remotes/origin/upstream
 
 /**
  * Gets the size of the glview.
  *
  * @param obj The glview object
-<<<<<<< HEAD
- * @param width width of the glview object
- * @param height height of the glview object
-=======
  * @param w width of the glview object
  * @param h height of the glview object
->>>>>>> remotes/origin/upstream
  *
  * Note that this function returns the actual image size of the
  * glview.  This means that when the scale policy is set to
@@ -465,11 +422,7 @@ EAPI void         elm_glview_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord
  *
  * @ingroup GLView
  */
-<<<<<<< HEAD
-EAPI void         elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
-=======
 EAPI void         elm_glview_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
->>>>>>> remotes/origin/upstream
 
 /**
  * Gets the gl api struct for gl rendering
@@ -482,14 +435,6 @@ EAPI void         elm_glview_size_get(const Evas_Object *obj, Evas_Coord *w, Eva
 EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj);
 
 /**
-<<<<<<< HEAD
- * Set the mode of the GLView. Supports Three simple modes.
- *
- * @param obj The glview object
- * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
- * @return True if set properly.
- *
-=======
  * Set the mode of the GLView. Supports alpha, depth, stencil.
  *
  * @param obj The glview object
@@ -501,7 +446,6 @@ EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj);
  * to rendering to an offscreen buffer before it gets composited to the 
  * window.
  *
->>>>>>> remotes/origin/upstream
  * @ingroup GLView
  */
 EAPI Eina_Bool    elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode);
@@ -512,20 +456,11 @@ EAPI Eina_Bool    elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode);
  * @param obj The glview object.
  * @param policy The scaling policy.
  *
-<<<<<<< HEAD
- * By default, the resize policy is set to
- * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
- * destroys the previous surface and recreates the newly specified
- * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
- * however, glview only scales the image object and not the underlying
- * GL Surface.
-=======
  * By default, the resize policy is set to ELM_GLVIEW_RESIZE_POLICY_RECREATE.  
  * When resize is called it destroys the previous surface and recreates the 
  * newly specified size. If the policy is set to 
  * ELM_GLVIEW_RESIZE_POLICY_SCALE, however, glview only scales the image 
  * object and not the underlying GL Surface.
->>>>>>> remotes/origin/upstream
  *
  * @ingroup GLView
  */
@@ -537,20 +472,11 @@ EAPI Eina_Bool    elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resi
  * @param obj The glview object.
  * @param policy The render policy.
  *
-<<<<<<< HEAD
- * By default, the render policy is set to
- * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
- * that during the render loop, glview is only redrawn if it needs
- * to be redrawn. (i.e. When it is visible) If the policy is set to
- * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
- * whether it is visible/need redrawing or not.
-=======
  * By default, the render policy is set to ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.
  * This policy is set such that during the render loop, glview is only 
  * redrawn if it needs to be redrawn. (i.e. when it is visible) If the policy
  * is set to ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
  * whether it is visible or needs redrawing.
->>>>>>> remotes/origin/upstream
  *
  * @ingroup GLView
  */
@@ -562,14 +488,10 @@ EAPI Eina_Bool    elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Rend
  * @param obj The glview object.
  * @param func The init function to be registered.
  *
-<<<<<<< HEAD
- * The registered init function gets called once during the render loop.
-=======
  * The registered init function gets called once during the render loop. 
  * This function allows glview to hide all the rendering context/surface
  * details and have the user just call GL calls that they desire
  * for initialization GL calls.
->>>>>>> remotes/origin/upstream
  *
  * @ingroup GLView
  */
@@ -582,12 +504,9 @@ EAPI void         elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb
  * @param func The delete function to be registered.
  *
  * The registered del function gets called when GLView object is deleted.
-<<<<<<< HEAD
-=======
  * This function allows glview to hide all the rendering context/surface
  * details and have the user just call GL calls that they desire
  * when delete happens.
->>>>>>> remotes/origin/upstream
  *
  * @ingroup GLView
  */
@@ -599,14 +518,11 @@ EAPI void         elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb f
  * @param obj The glview object.
  * @param func The resize function to be registered.
  *
-<<<<<<< HEAD
-=======
  * The resize function gets called during the render loop. 
  * This function allows glview to hide all the rendering context/surface
  * details and have the user just call GL calls that they desire
  * when resize happens.
  *
->>>>>>> remotes/origin/upstream
  * @ingroup GLView
  */
 EAPI void         elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func);
@@ -614,13 +530,10 @@ EAPI void         elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_C
 /**
  * Set the render function that runs in the main loop.
  *
-<<<<<<< HEAD
-=======
  * The render function gets called in the main loop but whether it runs
  * depends on the rendering policy and whether elm_glview_changed_set() 
  * gets called.
  * 
->>>>>>> remotes/origin/upstream
  * @param obj The glview object.
  * @param func The render function to be registered.
  *