diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-03-16 15:06:55 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-03-16 15:10:57 +0900 |
commit | 786878b3c6939a423584b86e77c6f591ee3e2dbe (patch) | |
tree | 271f7ef3d256f2007b6f0b3077d87c7e11919343 | |
parent | 47b5ce6da8a2ce0ca6e36c6f11bec190895806f9 (diff) | |
download | elementary-786878b3c6939a423584b86e77c6f591ee3e2dbe.tar.gz |
elm_config: Add doc for the new depth/stencil/msaa preference
-rw-r--r-- | src/lib/elm_config.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h index 6b625b8df..0e15d53e6 100644 --- a/src/lib/elm_config.h +++ b/src/lib/elm_config.h @@ -908,13 +908,32 @@ EAPI const char *elm_config_accel_preference_get(void); * Note that it will take effect only to Elementary windows created after * this is called. The @p pref string is a freeform C string that indicates * what kind of acceleration is preferred. Here "acceleration" majorly - * means to rendering and which hardware unit application renders guis with. + * means to rendering and which hardware unit application renders GUIs with. * This may or may not be honored, but a best attempt will * be made. Known strings are as follows: * - * "gl", "opengl" - try use opengl. + * "gl", "opengl" - try use OpenGL. * "3d" - try and use a 3d acceleration unit. * "hw", "hardware", "accel" - try any acceleration unit (best possible) + * + * Since 1.14, it is also possible to specify some GL properties for the GL + * window surface. This allows applications to use GLView with depth, stencil + * and MSAA buffers with direct rendering. The new accel preference string + * format is thus "{HW Accel}[:depth{value}[:stencil{value}[:msaa{str}]]]". + * + * Accepted values for depth are for instance "depth", "depth16", "depth24". + * Accepted values for stencil are "stencil", "stencil1", "stencil8". + * For MSAA, only predefined strings are accepted: "msaa", "msaa_low", + * "msaa_mid" and "msaa_high". The selected configuration is not garanteed + * and is only valid in case of GL acceleration. Only the base acceleration + * string will be saved (e.g. "gl" or "hw"). + * + * Full examples include: + * + * "gl", - try to use OpenGL + * "hw:depth:stencil", - use HW acceleration with default depth and stencil buffers + * "opengl:depth24:stencil8:msaa_mid" - use OpenGL with 24-bit depth, + * 8-bit stencil and a medium number of MSAA samples in the backbuffer. * * This takes precedence over engine preferences set with * elm_config_preferred_engine_set(). |