Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | { | 46 | { | ||
47 | 47 | | |||
48 | class GLVertexBuffer; | 48 | class GLVertexBuffer; | ||
49 | class GLVertexBufferPrivate; | 49 | class GLVertexBufferPrivate; | ||
50 | 50 | | |||
51 | // Initializes OpenGL stuff. This includes resolving function pointers as | 51 | // Initializes OpenGL stuff. This includes resolving function pointers as | ||
52 | // well as checking for GL version and extensions | 52 | // well as checking for GL version and extensions | ||
53 | // Note that GL context has to be created by the time this function is called | 53 | // Note that GL context has to be created by the time this function is called | ||
54 | void KWINGLUTILS_EXPORT initGL(OpenGLPlatformInterface platformInterface); | 54 | typedef void (*resolveFuncPtr)(); | ||
55 | void KWINGLUTILS_EXPORT initGL(std::function<resolveFuncPtr(const char*)> resolveFunction); | ||||
55 | // Initializes EGL function pointers | 56 | // Initializes EGL function pointers | ||
56 | void KWINGLUTILS_EXPORT initEGL(); | 57 | void KWINGLUTILS_EXPORT initEGL(); | ||
57 | // Cleans up all resources hold by the GL Context | 58 | // Cleans up all resources hold by the GL Context | ||
58 | void KWINGLUTILS_EXPORT cleanupGL(); | 59 | void KWINGLUTILS_EXPORT cleanupGL(); | ||
59 | 60 | | |||
60 | // Number of supported texture units | 61 | // Number of supported texture units | ||
61 | extern KWINGLUTILS_EXPORT int glTextureUnitsCount; | 62 | extern KWINGLUTILS_EXPORT int glTextureUnitsCount; | ||
62 | 63 | | |||
▲ Show 20 Lines • Show All 732 Lines • Show Last 20 Lines |