/**
* @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
/**
* @addtogroup GLView
->>>>>>> remotes/origin/upstream
* @{
*/
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 */
* 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;
{
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;
/**
* 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
*
* @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
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
* 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);
* @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
*/
* @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
*/
* @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
*/
* @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
*/
* @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);
/**
* 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.
*