Languages

Menu
Sites
Language
Antialiasing in GL view

Hi!

I'm trying to create anti-aliasing image in OpenGL using  evas_object_anti_alias_set func.

Unfortunly it doesn't work.

What should i do?

Responses

1 Replies
Carsten Haitzler

assuming you elm_glview (which you sholuld as this does the footwork for you):

elm_glview_mode_set(glview_object, ELM_GLVIEW_MULTISAMPLE_MED);

see docs on elm_glview_mode_set() and look at Elm_GLView_Mode enum. it's an aord list of options like

ELM_GLVIEW_ALPHA | ELM_GLVIEW_DEPTH | ELM_GLVIEW_STENCIL | ELM_GLVIEW_DEPTH_32 | ELM_GLVIEW_STENCIL_16 | ELM_GLVIEW_MULTISAMPLE_HIGH

etc. - it should be obvious with the docs in the headers etc. which ones are or'ed together - choose LOW, MED or HIGH multisampling.