Carna Version 3.3.3
Loading...
Searching...
No Matches
TransparentRenderingStageTest.h
1/*
2 * Copyright (C) 2010 - 2015 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 */
11
12#pragma once
13
14#include <Carna/Carna.h>
16
17namespace Carna
18{
19
20namespace testing
21{
22
23
24
25// ----------------------------------------------------------------------------------
26// TransparentRenderingStageTest
27// ----------------------------------------------------------------------------------
28
35class TransparentRenderingStageTest : public QObject
36{
37
38 Q_OBJECT
39
40private slots:
41
44 void initTestCase();
45
48 void cleanupTestCase();
49
52 void init();
53
56 void cleanup();
57
58 // ---------------------------------------------------------------------------------
59
60 void test_transparentFromFront();
61
62 void test_transparentFromBack();
63
64 // ---------------------------------------------------------------------------------
65
66private:
67
68 const static unsigned int GEOMETRY_TYPE_TRANSPARENT = 1;
69
70 std::unique_ptr< QGLContextHolder > qglContextHolder;
71 std::unique_ptr< TestFramebuffer > testFramebuffer;
72 std::unique_ptr< TestScene > scene;
73 std::unique_ptr< base::FrameRenderer > renderer;
74
76
77}; // TransparentRenderingStageTest
78
79
80
81} // namespace testing
82
83} // namespace Carna
Defines Carna::presets::TransparentRenderingStage.
Implements rendering stage that renders transparent meshes.
Module-tests of the Carna::presets::TransparentRenderingStage class.