Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils.h
Show First 20 Lines • Show All 769 Lines • ▼ Show 20 Line(s) | 581 | public: | |||
---|---|---|---|---|---|
770 | * This is the geometry of the OpenGL window currently being rendered to | 770 | * This is the geometry of the OpenGL window currently being rendered to | ||
771 | * in the virtual geometry space the rendering geometries use. | 771 | * in the virtual geometry space the rendering geometries use. | ||
772 | * @since 5.9 | 772 | * @since 5.9 | ||
773 | **/ | 773 | **/ | ||
774 | static void setVirtualScreenGeometry(const QRect &g) { | 774 | static void setVirtualScreenGeometry(const QRect &g) { | ||
775 | s_virtualScreenGeometry = g; | 775 | s_virtualScreenGeometry = g; | ||
776 | } | 776 | } | ||
777 | 777 | | |||
778 | /** | ||||
779 | * The scale of the OpenGL window currently being rendered to | ||||
780 | * | ||||
781 | * @returns the ratio between the virtual geometry space the rendering | ||||
782 | * system uses and the target | ||||
783 | * @since 5.11.3 | ||||
graesslin: Just for the record: if you do need to extend the API in a minor version: go for it. No… | |||||
784 | */ | ||||
785 | static void setVirtualScreenScale(qreal s) { | ||||
786 | s_virtualScreenScale = s; | ||||
787 | } | ||||
788 | | ||||
778 | private: | 789 | private: | ||
779 | GLVertexBufferPrivate* const d; | 790 | GLVertexBufferPrivate* const d; | ||
780 | static QRect s_virtualScreenGeometry; | 791 | static QRect s_virtualScreenGeometry; | ||
792 | static qreal s_virtualScreenScale; | ||||
781 | }; | 793 | }; | ||
782 | 794 | | |||
783 | } // namespace | 795 | } // namespace | ||
784 | 796 | | |||
785 | Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::ShaderTraits) | 797 | Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::ShaderTraits) | ||
786 | 798 | | |||
787 | /** @} */ | 799 | /** @} */ | ||
788 | 800 | | |||
789 | #endif | 801 | #endif |
Just for the record: if you do need to extend the API in a minor version: go for it. No objections from my side and we did it in the past.