41 lines
933 B
C
41 lines
933 B
C
|
/*****************************************************************
|
||
|
KWin - the KDE window manager
|
||
|
This file is part of the KDE project.
|
||
|
|
||
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
||
|
|
||
|
You can Freely distribute this program under the GNU General Public
|
||
|
License. See the file "COPYING" for the exact licensing terms.
|
||
|
******************************************************************/
|
||
|
|
||
|
#ifndef KWIN_SCENE_OPENGL_H
|
||
|
#define KWIN_SCENE_OPENGL_H
|
||
|
|
||
|
#include "scene.h"
|
||
|
|
||
|
#include <GL/gl.h>
|
||
|
#include <GL/glx.h>
|
||
|
|
||
|
namespace KWinInternal
|
||
|
{
|
||
|
|
||
|
class SceneOpenGL
|
||
|
: public Scene
|
||
|
{
|
||
|
public:
|
||
|
SceneOpenGL( Workspace* ws );
|
||
|
virtual ~SceneOpenGL();
|
||
|
virtual void paint( XserverRegion damage, ToplevelList windows );
|
||
|
private:
|
||
|
GC gcroot;
|
||
|
Pixmap buffer;
|
||
|
GLXFBConfig fbcroot;
|
||
|
GLXFBConfig fbcdrawable;
|
||
|
GLXPixmap glxroot;
|
||
|
GLXContext context;
|
||
|
};
|
||
|
|
||
|
} // namespace
|
||
|
|
||
|
#endif
|