static HWND window;
+static HINSTANCE instance;
static LRESULT CALLBACK
MainWndProc(HWND hwnd,
{
WNDCLASS wc;
RECT rect;
- HINSTANCE instance;
HDC dc;
Evas_Engine_Info_GL_Glew *einfo;
DWORD style;
if (!SetWindowLong(window, GWL_STYLE, style))
goto unregister_class;
+ dc = GetDC(NULL);
+ if (!dc)
+ goto destroy_window;
+
+ depth = GetDeviceCaps(dc, BITSPIXEL);
+ ReleaseDC(NULL, dc);
+
evas_output_method_set(evas, evas_render_method_lookup("gl_glew"));
einfo = (Evas_Engine_Info_GL_Glew *)evas_engine_info_get(evas);
if (!einfo)
goto again;
}
+
+void
+engine_gl_glew_shutdown(void)
+{
+ DestroyWindow(window);
+ UnregisterClass("Evas_Software_Gdi_Test", instance);
+ FreeLibrary(instance);
+}