Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
60 | // Cleans up all resources hold by the GL Context | 60 | // Cleans up all resources hold by the GL Context | ||
61 | void KWINGLUTILS_EXPORT cleanupGL(); | 61 | void KWINGLUTILS_EXPORT cleanupGL(); | ||
62 | 62 | | |||
63 | // Number of supported texture units | 63 | // Number of supported texture units | ||
64 | extern KWINGLUTILS_EXPORT int glTextureUnitsCount; | 64 | extern KWINGLUTILS_EXPORT int glTextureUnitsCount; | ||
65 | 65 | | |||
66 | 66 | | |||
67 | bool KWINGLUTILS_EXPORT hasGLVersion(int major, int minor, int release = 0); | 67 | bool KWINGLUTILS_EXPORT hasGLVersion(int major, int minor, int release = 0); | ||
68 | bool KWINGLUTILS_EXPORT hasGLXVersion(int major, int minor, int release = 0); | | |||
69 | bool KWINGLUTILS_EXPORT hasEGLVersion(int major, int minor, int release = 0); | 68 | bool KWINGLUTILS_EXPORT hasEGLVersion(int major, int minor, int release = 0); | ||
70 | // use for both OpenGL and GLX extensions | 69 | // use for both OpenGL and GLX extensions | ||
71 | bool KWINGLUTILS_EXPORT hasGLExtension(const QByteArray &extension); | 70 | bool KWINGLUTILS_EXPORT hasGLExtension(const QByteArray &extension); | ||
72 | 71 | | |||
73 | // detect OpenGL error (add to various places in code to pinpoint the place) | 72 | // detect OpenGL error (add to various places in code to pinpoint the place) | ||
74 | bool KWINGLUTILS_EXPORT checkGLError(const char* txt); | 73 | bool KWINGLUTILS_EXPORT checkGLError(const char* txt); | ||
75 | 74 | | |||
76 | inline bool KWINGLUTILS_EXPORT isPowerOfTwo(int x) | 75 | inline bool KWINGLUTILS_EXPORT isPowerOfTwo(int x) | ||
▲ Show 20 Lines • Show All 723 Lines • Show Last 20 Lines |