Wed, 25 May 2022 20:36:34 +0300
Fix pick() picking from weird places on the screen with high DPI scaling
glReadPixels reads data from the frame buffer, which contains data after
high DPI scaling, so any reads to that need to take this scaling into account
3 | 1 | #pragma once |
89 | 2 | #include "polygonobject.h" |
3 | 3 | |
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
4 | namespace ldraw |
3 | 5 | { |
6 | class Edge; | |
7 | } | |
8 | ||
87
93ec4d630346
added PolygonObject and refactored away a lot of boilerplate
Teemu Piippo <teemu@hecknology.net>
parents:
86
diff
changeset
|
9 | class ldraw::Edge : public PolygonObject<2> |
3 | 10 | { |
11 | public: | |
87
93ec4d630346
added PolygonObject and refactored away a lot of boilerplate
Teemu Piippo <teemu@hecknology.net>
parents:
86
diff
changeset
|
12 | using PolygonObject::PolygonObject; |
6 | 13 | QString textRepresentation() const override; |
21 | 14 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
132
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
89
diff
changeset
|
15 | Type typeIdentifier() const override; |
141 | 16 | QString toLDrawCode() const override; |
158
5bd755eaa5a8
Add icons from ionicons
Teemu Piippo <teemu@hecknology.net>
parents:
141
diff
changeset
|
17 | QString iconName() const override; |
177
f69d53c053df
Show type of object in the object editor
Teemu Piippo <teemu@hecknology.net>
parents:
158
diff
changeset
|
18 | QString typeName() const override; |
3 | 19 | }; |