Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils.h
Show First 20 Lines • Show All 505 Lines • ▼ Show 20 Line(s) | 446 | public: | |||
---|---|---|---|---|---|
506 | /** | 506 | /** | ||
507 | * Sets the virtual screen size to @p s. | 507 | * Sets the virtual screen size to @p s. | ||
508 | * @since 5.2 | 508 | * @since 5.2 | ||
509 | **/ | 509 | **/ | ||
510 | static void setVirtualScreenSize(const QSize &s) { | 510 | static void setVirtualScreenSize(const QSize &s) { | ||
511 | s_virtualScreenSize = s; | 511 | s_virtualScreenSize = s; | ||
512 | } | 512 | } | ||
513 | 513 | | |||
514 | /** | ||||
515 | * Sets the virtual screen geometry to @p g. | ||||
516 | * This is the geometry of the OpenGL window currently being rendered to | ||||
517 | * in the virtual geometry space the rendering geometries use. | ||||
518 | * @since 5.9 | ||||
519 | **/ | ||||
520 | static void setVirtualScreenGeometry(const QRect &g) { | ||||
521 | s_virtualScreenGeometry = g; | ||||
522 | } | ||||
523 | | ||||
514 | 524 | | |||
515 | protected: | 525 | protected: | ||
516 | void initFBO(); | 526 | void initFBO(); | ||
517 | 527 | | |||
518 | 528 | | |||
519 | private: | 529 | private: | ||
520 | friend void KWin::cleanupGL(); | 530 | friend void KWin::cleanupGL(); | ||
521 | static void cleanup(); | 531 | static void cleanup(); | ||
522 | static bool sSupported; | 532 | static bool sSupported; | ||
523 | static bool s_blitSupported; | 533 | static bool s_blitSupported; | ||
524 | static QStack<GLRenderTarget*> s_renderTargets; | 534 | static QStack<GLRenderTarget*> s_renderTargets; | ||
525 | static QSize s_virtualScreenSize; | 535 | static QSize s_virtualScreenSize; | ||
536 | static QRect s_virtualScreenGeometry; | ||||
526 | 537 | | |||
527 | GLTexture mTexture; | 538 | GLTexture mTexture; | ||
528 | bool mValid; | 539 | bool mValid; | ||
529 | 540 | | |||
530 | GLuint mFramebuffer; | 541 | GLuint mFramebuffer; | ||
531 | }; | 542 | }; | ||
532 | 543 | | |||
533 | enum VertexAttributeType { | 544 | enum VertexAttributeType { | ||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |