src/gl/partrenderer.h

changeset 66
77c819262b7a
parent 61
4585d8d7a7ec
child 70
f21b800b02a4
equal deleted inserted replaced
65:87c906545fc3 66:77c819262b7a
32 Model* const model; 32 Model* const model;
33 DocumentManager* const documents; 33 DocumentManager* const documents;
34 const ldraw::ColorTable& colorTable; 34 const ldraw::ColorTable& colorTable;
35 gl::Compiler* const compiler; 35 gl::Compiler* const compiler;
36 ldraw::Id highlighted = ldraw::NULL_ID; 36 ldraw::Id highlighted = ldraw::NULL_ID;
37 std::optional<glm::vec3> screenToModelCoordinates(const QPoint& point, const geom::Plane& plane); 37 std::optional<glm::vec3> screenToModelCoordinates(const QPoint& point, const geom::Plane& plane) const;
38 QPointF modelToScreenCoordinates(const glm::vec3& point); 38 QPointF modelToScreenCoordinates(const glm::vec3& point) const;
39 glm::vec3 unproject(const glm::vec3& win); 39 geom::Line cameraLine(const QPoint& point) const;
40 glm::vec3 unproject(const glm::vec3& win) const;
40 glm::mat4 projectionMatrix; 41 glm::mat4 projectionMatrix;
41 glm::mat4 viewMatrix; 42 glm::mat4 viewMatrix;
42 glm::mat4 modelMatrix; 43 glm::mat4 modelMatrix;
43 glm::vec4 viewportVector; 44 glm::vec4 viewportVector;
44 glm::quat modelQuaternion; 45 glm::quat modelQuaternion;

mercurial