Lines Matching refs:Current
42 egl::Current *current = (egl::Current*)LocalAlloc(LPTR, sizeof(egl::Current));
44 if (current)
46 TlsSetValue(currentTLS, current);
48 current->error = EGL_SUCCESS;
49 current->API = EGL_OPENGL_ES_API;
50 current->display = EGL_NO_DISPLAY;
51 current->drawSurface = EGL_NO_SURFACE;
52 current->readSurface = EGL_NO_SURFACE;
58 void *current = TlsGetValue(currentTLS);
60 if (current)
62 LocalFree((HLOCAL)current);
68 void *current = TlsGetValue(currentTLS);
70 if (current)
72 LocalFree((HLOCAL)current);
89 Current *current = (Current*)TlsGetValue(currentTLS);
91 current->error = error;
96 Current *current = (Current*)TlsGetValue(currentTLS);
98 return current->error;
103 Current *current = (Current*)TlsGetValue(currentTLS);
105 current->API = API;
110 Current *current = (Current*)TlsGetValue(currentTLS);
112 return current->API;
117 Current *current = (Current*)TlsGetValue(currentTLS);
119 current->display = dpy;
124 Current *current = (Current*)TlsGetValue(currentTLS);
126 return current->display;
131 Current *current = (Current*)TlsGetValue(currentTLS);
133 current->drawSurface = surface;
138 Current *current = (Current*)TlsGetValue(currentTLS);
140 return current->drawSurface;
145 Current *current = (Current*)TlsGetValue(currentTLS);
147 current->readSurface = surface;
152 Current *current = (Current*)TlsGetValue(currentTLS);
154 return current->readSurface;