LibCarna Version 3.4.0
Loading...
Searching...
No Matches
TransparentRenderingStageTest.hpp
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#pragma once
16
17#include <LibCarna/LibCarna.hpp>
19
20namespace LibCarna
21{
22
23namespace testing
24{
25
26
27
28// ----------------------------------------------------------------------------------
29// TransparentRenderingStageTest
30// ----------------------------------------------------------------------------------
31
37class TransparentRenderingStageTest : public QObject
38{
39
40 Q_OBJECT
41
42private slots:
43
46 void initTestCase();
47
50 void cleanupTestCase();
51
54 void init();
55
58 void cleanup();
59
60 // ---------------------------------------------------------------------------------
61
62 void test_transparentFromFront();
63
64 void test_transparentFromBack();
65
66 // ---------------------------------------------------------------------------------
67
68private:
69
70 const static unsigned int GEOMETRY_TYPE_TRANSPARENT = 1;
71
72 std::unique_ptr< QGLContextHolder > qglContextHolder;
73 std::unique_ptr< TestFramebuffer > testFramebuffer;
74 std::unique_ptr< TestScene > scene;
75 std::unique_ptr< base::FrameRenderer > renderer;
76
78
79}; // TransparentRenderingStageTest
80
81
82
83} // namespace testing
84
85} // namespace LibCarna
Contains forward-declarations.
Defines LibCarna::presets::TransparentRenderingStage.
Implements rendering stage that renders transparent meshes.
Module-tests of the LibCarna::presets::TransparentRenderingStage class.