Debian Codegraph @

avogadro/rendering/avogadrorendering.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRORENDERING_H
7 #define AVOGADRORENDERING_H
8
9 namespace Avogadro {
10 namespace Rendering {
11
12 /**
13 * @brief The RenderPass enum is used to identify different stages in
14 * multipass rendering.
15 */
16 enum RenderPass
17 {
18 /**
19 * Default value -- no rendering is currently happening.
20 */
21 NotRendering = 0,
22 /**
23 * Solid geometry is being drawn. Alpha blending disabled, depth testing is
24 * enabled. Additionally, any screen-space shaders act here.
25 */
26 SolidPass,
27 /**
28 * Opaque geometry is being drawn. Alpha blending disabled, depth testing is
29 * enabled.
30 */
31 OpaquePass,
32 /**
33 * Translucent geometry is being drawn. Depth testing is disabled, and alpha
34 * blending is enabled using the equivalent of the OpenGL call
35 * @code glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) @endcode
36 */
37 TranslucentPass,
38 /**
39 * 3D geometry is being drawn over the Opaque and Translucent rendering.
40 * Depth testing is disabled, and alpha blending is enabled using the
41 * equivalent of the OpenGL call
42 * @code glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) @endcode
43 */
44 Overlay3DPass,
45 /**
46 * 2D drawables are being rendered over the 3D scene. The
47 * modelview matrix is identity, and the projection matrix is configured to
48 * an orthographic projection that matches the viewport. Valid Z values are
49 * [-1, 1], and the origin is in the bottom-left corner. Depth testing is
50 * disabled, and alpha blending is performed the same as in TranslucentPass.
51 */
52 Overlay2DPass
53 };
54
55 } // end namespace Rendering
56 } // end namespace Avogadro
57
58 #endif // AVOGADRORENDERING_H