src/gl/partrenderer.h

changeset 58
b7841cd31fb7
parent 57
5c0005f63319
child 61
4585d8d7a7ec
equal deleted inserted replaced
57:5c0005f63319 58:b7841cd31fb7
36 Model* const model; 36 Model* const model;
37 DocumentManager* const documents; 37 DocumentManager* const documents;
38 const ldraw::ColorTable& colorTable; 38 const ldraw::ColorTable& colorTable;
39 gl::Compiler* const compiler; 39 gl::Compiler* const compiler;
40 ldraw::Id highlighted = ldraw::NULL_ID; 40 ldraw::Id highlighted = ldraw::NULL_ID;
41 std::optional<glm::vec3> screenToModelCoordinates(const QPoint& point); 41 std::optional<glm::vec3> screenToModelCoordinates(const QPoint& point, const geom::Plane& plane);
42 QPointF modelToScreenCoordinates(const glm::vec3& point); 42 QPointF modelToScreenCoordinates(const glm::vec3& point);
43 glm::vec3 unproject(const glm::vec3& win); 43 glm::vec3 unproject(const glm::vec3& win);
44 private: 44 private:
45 void setFragmentStyle(gl::FragmentStyle fragStyle); 45 void setFragmentStyle(gl::FragmentStyle fragStyle);
46 void renderAllArrays(); 46 void renderAllArrays();

mercurial