Rivo Laks
cc2600100c
Add a method to render round box with a dark edge and use it for alt-tab's frame.
...
Now the frame has a slight edge/border around it which makes it look much better IMHO.
svn path=/trunk/KDE/kdebase/workspace/; revision=704310
19 years ago
Thiago Macieira
d2aee14a35
Remove use of k_funcinfo
...
svn path=/trunk/KDE/kdebase/workspace/; revision=702583
19 years ago
Laurent Montel
994c800d79
Adapt to new KWarning/kFatal/kDebug api
...
svn path=/trunk/KDE/kdebase/workspace/; revision=695877
19 years ago
Rivo Laks
42a4d364c2
Add a generic function to render a box with rounded corners.
...
Algorithm is basically same as for shadow, perhaps even shadow will use it.
svn path=/trunk/KDE/kdebase/workspace/; revision=683514
19 years ago
Rivo Laks
65bc41c518
Argh.. fix typo
...
svn path=/trunk/KDE/kdebase/workspace/; revision=675479
19 years ago
Rivo Laks
424f906ab2
- Add optional color argument to renderGLGeometry() functions. If specified, it's used as vertex colors
...
array when rendering.
- Rearrange some renderGLGeometry() parameters.
- Don't use opengl arrays and glDrawArrays() when rendering a small number of vertices since in this
case overhead of enabling/disabling the array is too big. Use immediate mode instead in such case.
svn path=/trunk/KDE/kdebase/workspace/; revision=675467
19 years ago
Pino Toscano
38267e8ac6
less qt3support
...
svn path=/trunk/KDE/kdebase/workspace/; revision=672194
19 years ago
Luboš Luňák
eb4fb38657
Have a separate list for glx extensions, to avoid mistakes - now initGL()
...
is called after initGLX(), so the glx extensions are reset.
svn path=/trunk/KDE/kdebase/workspace/; revision=669818
19 years ago
Luboš Luňák
6e8ca14379
Svnrevertlast, the file as a whole should be opengl-only.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=661861
19 years ago
Aaron J. Seigo
da80cba35c
compile fixes; and now to find out why it thinks i don't have gl installed ;)
...
svn path=/trunk/KDE/kdebase/workspace/; revision=661574
19 years ago
David Faure
38099ef7e5
Major config.h cleanup, moved much stuff to config-X11.h and to config-fish.h
...
svn path=/trunk/KDE/kdebase/workspace/; revision=661060
19 years ago
Luboš Luňák
f52b8e48cd
branches/work/kwin_composite becomes new trunk kwin.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=659202
19 years ago
Luboš Luňák
2b7e1f4993
Remove kwin, kwin_composite will become new trunk kwin, missing merges
...
from trunk will be merged in.
svn path=/trunk/KDE/kdebase/workspace/; revision=659200
19 years ago
Rivo Laks
a94aa904b0
Well, actually GLRenderTarget doesn't require NPOT textures (it works with rectangle textures as well).
...
That also means that those effects which do require NPOT have to check for it themselves.
svn path=/branches/work/kwin_composite/; revision=659155
19 years ago
Rivo Laks
f00d1745ed
Add static GLRenderTarget::supported() and make effects use it instead of checking for FBO extension
...
themselves.
Fix memory leak in Test_FBO effect.
svn path=/branches/work/kwin_composite/; revision=658804
19 years ago
Rivo Laks
24c8663923
Add GLShader dtor (fixes memory leak).
...
Also fix multiple memory leaks in effects.
svn path=/branches/work/kwin_composite/; revision=658761
19 years ago
Rivo Laks
6e62dcb922
Add GLTexture::setWrapMode() call to set texture's OpenGL wrap mode.
...
Liquid demo effect now sets wrap mode to CLAMP to ensure that the texture won't wrap at edges
of the screen, which would make other side of the screen visible there.
svn path=/branches/work/kwin_composite/; revision=658748
19 years ago
Laurent Montel
67f6750ab3
Remove not necessary include
...
svn path=/trunk/KDE/kdebase/workspace/; revision=656776
19 years ago
Luboš Luňák
ffc75a2214
GLTexture::render(), to render to a given QRect
...
svn path=/branches/work/kwin_composite/; revision=656521
19 years ago
Luboš Luňák
cd98bc12d5
Shared implementation of rendering gl geometry.
...
svn path=/branches/work/kwin_composite/; revision=656516
19 years ago
Rivo Laks
ec29f33832
Make enable/disableUnnormalizedTexCoords() work with custom textures (e.g. rendertarget ones).
...
Make texture dirty when enabling rendertarget.
svn path=/branches/work/kwin_composite/; revision=656496
19 years ago
Rivo Laks
cc1a7a9eca
Add GLRenderTarget class.
...
The render target is used to render the scene (or part of it) onto texture. This texture can then be used
e.g. to do some postprocessing.
Demo effect coming soon.
Move checkGLError() to kwineffects.*
Add GLTexture ctor which takes width and height and creates an empty texture (to be used with
GLRenderTarget to render onto it)
svn path=/branches/work/kwin_composite/; revision=655489
19 years ago
Rivo Laks
0353f3376e
Make effects actual plugins, so it's possible to load them on runtime.
...
There's also a kwineffects library now, containing the effects API, which makes it possible to write
third-party effects.
API isn't complete yet and for now just two effects have been converted but I'm working on it :-)
svn path=/branches/work/kwin_composite/; revision=652226
19 years ago
Luboš Luňák
e3b865cd5f
namespace KWinInternal -> KWin - shorter typing of names in gdb, yay
...
svn path=/branches/work/kwin_composite/; revision=650770
19 years ago
Luboš Luňák
35bbf89aed
Add support for activating features using window borders/corners.
...
Enabled it for PresentWindowsEffect for now.
svn path=/branches/work/kwin_composite/; revision=650532
19 years ago
Philip Falkner
aa6d8eabc5
Add GLTexture class. This is a convenient wrapper around managing an OpenGL texture, as well as loading an image into it. Includes support for loading from QImage, QPixmap, and a file. Defaults to a GL_TEXTURE_2D target, and will scale image if necessary.
...
Also add SceneOpenGL::Texture class, based on GLTexture. Optimised for SceneOpenGL::Window, this adds support for loading from an X Pixmap, as well as taking advantage of texture_from_pixmap/shm when available. Automatically detects what texture target should be used, so be sure to enableUnnormalizedTexCoords() before painting.
Make SceneOpenGL::Window, BoxSwitchEffect, and ExplosionEffect use the new classes.
svn path=/branches/work/kwin_composite/; revision=645125
19 years ago
Rivo Laks
d72a9239b4
Add static bool fragmentShaderSupported() and vertexShaderSupported() methods to GLShader.
...
Make sure shaders are supported before trying to load them.
svn path=/branches/work/kwin_composite/; revision=645060
19 years ago
Philip Falkner
8299541652
Add build checks for XComposite, XDamage, XRender, OpenGL, and XShm.
...
KWin should now build and run with/without any or all of the above.
svn path=/branches/work/kwin_composite/; revision=633387
19 years ago
Rivo Laks
1cdcd8956f
Move OpenGL defines, function prototypes and function resolving to a separate file.
...
Update copyright years.
svn path=/branches/work/kwin_composite/; revision=630583
19 years ago
Rivo Laks
66d8c5030b
Add GLSL shader support and GLShader class.
...
Add two preprocessor macros to simplify resolving of OpenGL functions.
svn path=/branches/work/kwin_composite/; revision=630553
19 years ago
Philip Falkner
1e2d811cea
Add support for GL_EXT_framebuffer_object, needed for mipmaps.
...
svn path=/branches/work/kwin_composite/; revision=629450
19 years ago
Rivo Laks
26e907c210
Merge MAKE_*_VERSION macros into MAKE_GL_VERSION and move it to .cpp file
...
svn path=/branches/work/kwin_composite/; revision=628353
19 years ago
Philip Falkner
0341a3e8b5
Add support for GL_ARB_texture_non_power_of_two. Use GL_TEXTURE_2D wherever possible, even when that extension isn't available.
...
svn path=/branches/work/kwin_composite/; revision=626897
19 years ago
Luboš Luňák
9c4218d4bf
Sync to vblank, patch by Philip Falkner.
...
svn path=/branches/work/kwin_composite/; revision=606795
20 years ago
Luboš Luňák
277683c4f0
Fix name of glXGetProcAddress(ARB).
...
svn path=/branches/work/kwin_composite/; revision=606549
20 years ago
Luboš Luňák
376fd954c3
Check whether extensions are available before using them.
...
svn path=/branches/work/kwin_composite/; revision=606274
20 years ago
Luboš Luňák
930a9248c9
Repainting of only changed areas, now also for OpenGL.
...
svn path=/branches/work/kwin_composite/; revision=606272
20 years ago
Luboš Luňák
1be2c4ed32
Detect and check GLX version/extensions.
...
svn path=/branches/work/kwin_composite/; revision=604805
20 years ago
Luboš Luňák
e86e1cf88f
Detect GLX version, patch by Philip Falkner.
...
svn path=/branches/work/kwin_composite/; revision=604801
20 years ago
Luboš Luňák
aeafa63a94
Move some OpenGL code to glutils.* .
...
Add support for changing window brightness.
Add DialogParent effect that makes windows that are unaccessible because
of modal dialogs darker.
Patch by Rivo Laks.
svn path=/branches/work/kwin_composite/; revision=603384
20 years ago