forked from enlightenment/efl
EvasGL: cleaning up unnecessary code.
Cleaning up unnecessary code.
This commit is contained in:
parent
1b802b0e3a
commit
9bb4c48691
|
@ -1869,38 +1869,6 @@ evgl_direct_info_clear()
|
|||
rsc->direct.enabled = EINA_FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
void
|
||||
evgl_direct_img_obj_set(Evas_Object *img, int rot)
|
||||
{
|
||||
EVGL_Resource *rsc;
|
||||
|
||||
if (!(rsc=_evgl_tls_resource_get())) return;
|
||||
|
||||
// Normally direct rendering isn't allowed if alpha is on and
|
||||
// rotation is not 0. BUT, if override is on, allow it.
|
||||
if (rot!=0)
|
||||
{
|
||||
if (evgl_engine->direct_override)
|
||||
rsc->direct.img = img;
|
||||
else
|
||||
rsc->direct.img = NULL;
|
||||
}
|
||||
else
|
||||
rsc->direct.img = img;
|
||||
}
|
||||
|
||||
Evas_Object *
|
||||
evgl_direct_img_obj_get()
|
||||
{
|
||||
EVGL_Resource *rsc;
|
||||
|
||||
if (!(rsc=_evgl_tls_resource_get())) return NULL;
|
||||
|
||||
return rsc->direct.img;
|
||||
}
|
||||
*/
|
||||
|
||||
Evas_GL_API *
|
||||
evgl_api_get()
|
||||
{
|
||||
|
@ -1909,24 +1877,6 @@ evgl_api_get()
|
|||
return &gl_funcs;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void
|
||||
evgl_direct_img_clip_set(int c, int x, int y, int w, int h)
|
||||
{
|
||||
EVGL_Resource *rsc;
|
||||
|
||||
if (!(rsc=_evgl_tls_resource_get())) return;
|
||||
|
||||
rsc->master_clip = c;
|
||||
rsc->clip[0] = x;
|
||||
rsc->clip[1] = y;
|
||||
rsc->clip[2] = w;
|
||||
rsc->clip[3] = h;
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
void
|
||||
evgl_direct_override_get(int *override, int *force_off)
|
||||
{
|
||||
|
|
|
@ -33,16 +33,9 @@ int evgl_native_surface_get(EVGL_Surface *sfc, Evas_Native_Surface *ns)
|
|||
Evas_GL_API *evgl_api_get();
|
||||
int evgl_direct_rendered();
|
||||
|
||||
|
||||
/*
|
||||
extern void evgl_direct_img_obj_set(Evas_Object *img, int rot);
|
||||
extern Evas_Object *evgl_direct_img_obj_get();
|
||||
*/
|
||||
|
||||
void evgl_direct_info_set(int win_w, int win_h, int rot, int img_x, int img_y, int img_w, int img_h, int clip_x, int clip_y, int clip_w, int clip_h);
|
||||
void evgl_direct_info_clear();
|
||||
|
||||
//extern void evgl_direct_img_clip_set(int c, int x, int y, int w, int h);
|
||||
void evgl_direct_override_get(int *override, int *force_off);
|
||||
|
||||
#endif //_EVAS_GL_CORE_H
|
||||
|
|
|
@ -212,7 +212,6 @@ struct _EVGL_Resource
|
|||
struct {
|
||||
EVGLNative_Surface surface;
|
||||
int rendered;
|
||||
//Evas_Object *img;
|
||||
|
||||
int rot;
|
||||
int win_w;
|
||||
|
|
Loading…
Reference in New Issue