Home | History | Annotate | Download | only in libEGL

Lines Matching refs:Current

18 Current *AllocateCurrent()
20 Current *current = (egl::Current*)LocalAlloc(LPTR, sizeof(egl::Current));
22 if (!current)
29 TlsSetValue(currentTLS, current);
31 current->error = EGL_SUCCESS;
32 current->API = EGL_OPENGL_ES_API;
33 current->display = EGL_NO_DISPLAY;
34 current->drawSurface = EGL_NO_SURFACE;
35 current->readSurface = EGL_NO_SURFACE;
37 return current;
42 void *current = TlsGetValue(currentTLS);
44 if (current)
46 LocalFree((HLOCAL)current);
107 Current *GetCurrentData()
109 Current *current = (Current*)TlsGetValue(currentTLS);
112 // thread local storage (current) might not exist yet.
113 return (current ? current : AllocateCurrent());
118 Current *current = GetCurrentData();
120 current->error = error;
125 Current *current = GetCurrentData();
127 return current->error;
132 Current *current = GetCurrentData();
134 current->API = API;
139 Current *current = GetCurrentData();
141 return current->API;
146 Current *current = GetCurrentData();
148 current->display = dpy;
153 Current *current = GetCurrentData();
155 return current->display;
160 Current *current = GetCurrentData();
162 current->drawSurface = surface;
167 Current *current = GetCurrentData();
169 return current->drawSurface;
174 Current *current = GetCurrentData();
176 current->readSurface = surface;
181 Current *current = GetCurrentData();
183 return current->readSurface;