• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWinLibraries

kwinshadereffect.h

Go to the documentation of this file.
00001 /********************************************************************
00002  KWin - the KDE window manager
00003  This file is part of the KDE project.
00004 
00005 Copyright (C) 2006-2007 Rivo Laks <rivolaks@hot.ee>
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 *********************************************************************/
00020 
00021 #ifndef KWIN_SHADEREFFECT_H
00022 #define KWIN_SHADEREFFECT_H
00023 
00024 
00025 #include <kwineffects.h>
00026 
00027 #ifdef KWIN_HAVE_OPENGL_COMPOSITING
00028 
00032 namespace KWin
00033 {
00034 
00035 class GLTexture;
00036 class GLRenderTarget;
00037 class GLShader;
00038 class KWIN_EXPORT ShaderEffect : public Effect
00039 {
00040     public:
00041         ShaderEffect(const QString& shadername);
00042         virtual ~ShaderEffect();
00043 
00044         virtual void prePaintScreen( ScreenPrePaintData& data, int time );
00045         virtual void postPaintScreen();
00046 
00047         static bool supported();
00048 
00049     protected:
00050         bool isEnabled() const;
00051         void setEnabled(bool enabled);
00052 
00053         GLShader* shader() const;
00054 
00055         bool loadData(const QString& shadername);
00056 
00057     private:
00058         GLTexture* mTexture;
00059         GLRenderTarget* mRenderTarget;
00060         GLShader* mShader;
00061         bool mValid;
00062 
00063         double mTime;
00064 
00065         bool mEnabled;
00066 };
00067 
00068 } // namespace
00069 
00072 #endif
00073 
00074 #endif

KWinLibraries

Skip menu "KWinLibraries"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal