mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
This was very painful, because I had to implement rearranging the paint order of the QSGNodes. The resulting code appears quite brittle. Let's see where that brings us. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
21 lines
587 B
C
21 lines
587 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Defines the z-values of features in the profile view.
|
|
// Objects with higher z-values are painted on top of objects
|
|
// with smaller z-values. For the same z-value objects are
|
|
// drawn in order of addition to the scene.
|
|
#ifndef PROFILE_ZVALUES_H
|
|
#define PROFILE_ZVALUES_H
|
|
|
|
// Encapsulating an enum in a struct is stupid, but allows us
|
|
// to not poison the namespace and yet autoconvert to int
|
|
// (in constrast to enum class). enum is so broken!
|
|
struct ProfileZValue {
|
|
enum ZValues {
|
|
Profile = 0,
|
|
Pictures,
|
|
ToolTipItem,
|
|
Count
|
|
};
|
|
};
|
|
|
|
#endif
|