Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 76 | private: | |||
---|---|---|---|---|---|
86 | void doBlur(const QRegion &shape, const QRect &screen, const float opacity, const QMatrix4x4 &screenProjection, bool isDock, QRect windowRect); | 86 | void doBlur(const QRegion &shape, const QRect &screen, const float opacity, const QMatrix4x4 &screenProjection, bool isDock, QRect windowRect); | ||
87 | void uploadRegion(QVector2D *&map, const QRegion ®ion, const int downSampleIterations); | 87 | void uploadRegion(QVector2D *&map, const QRegion ®ion, const int downSampleIterations); | ||
88 | void uploadGeometry(GLVertexBuffer *vbo, const QRegion &blurRegion, const QRegion &windowRegion); | 88 | void uploadGeometry(GLVertexBuffer *vbo, const QRegion &blurRegion, const QRegion &windowRegion); | ||
89 | void generateNoiseTexture(); | 89 | void generateNoiseTexture(); | ||
90 | 90 | | |||
91 | void upscaleRenderToScreen(GLVertexBuffer *vbo, int vboStart, int blurRectCount, QMatrix4x4 screenProjection, QPoint windowPosition); | 91 | void upscaleRenderToScreen(GLVertexBuffer *vbo, int vboStart, int blurRectCount, QMatrix4x4 screenProjection, QPoint windowPosition); | ||
92 | void downSampleTexture(GLVertexBuffer *vbo, int blurRectCount); | 92 | void downSampleTexture(GLVertexBuffer *vbo, int blurRectCount); | ||
93 | void upSampleTexture(GLVertexBuffer *vbo, int blurRectCount); | 93 | void upSampleTexture(GLVertexBuffer *vbo, int blurRectCount); | ||
94 | void copyScreenSampleTexture(GLVertexBuffer *vbo, int blurRectCount, QRegion blurShape, QSize screenSize, QMatrix4x4 screenProjection); | 94 | void copyScreenSampleTexture(GLVertexBuffer *vbo, int blurRectCount, QRegion blurShape, QMatrix4x4 screenProjection); | ||
95 | 95 | | |||
96 | private: | 96 | private: | ||
97 | BlurShader *m_shader; | 97 | BlurShader *m_shader; | ||
98 | QVector <GLRenderTarget*> m_renderTargets; | 98 | QVector <GLRenderTarget*> m_renderTargets; | ||
99 | QVector <GLTexture> m_renderTextures; | 99 | QVector <GLTexture> m_renderTextures; | ||
100 | QStack <GLRenderTarget*> m_renderTargetStack; | 100 | QStack <GLRenderTarget*> m_renderTargetStack; | ||
101 | 101 | | |||
102 | GLTexture m_noiseTexture; | 102 | GLTexture m_noiseTexture; | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |