Changed DirectRendering demo to use UNSAFE_DIRECT_RENDERING mode by default.
[platform/core/uifw/dali-demo.git] / examples / direct-rendering / README.md
1 # Direct Rendering Example
2
3 This is an example showing how to use a Direct Rendering feature of DALi.
4
5 Direct Rendering (DR) allows injecting native drawing calls using GL API into
6 DALi rendering pipeline so developers can execute custom code. Demo shows a bunch
7 of cubes rendered by the custom GL code.
8
9 Environmental variables that can be used with the demo:
10
11 EGL_ENABLED (default: 0) - old rendering method using EGL native image as an offscreen
12
13 UNSAFE_MODE (default: 1) - direct rendering 'unsafe' mode which executes calls on the
14 same GL context as DALi rendering (hence is unsafe if not properly cleaned up). If set to 0,
15 demo will create isolated GL context for custom rendering.
16
17 DR_THREAD_ENABLED (default: 0) - threaded rendering. Runs custom rendering code on a separate
18 thread. This method implicitly creates an offscreen buffer to render into.
19
20 MAX_CUBES - allows change number of cubes to render