Resolve the cWindow reference using Ruby.
[ruby-ecore.git] / src / ecore_evas / rb_ecore_evas_main.c
index 432f64a99b7e08f6ad92cb3d9affa42b9090131a..abe87afda538a5f03b3d5daca30756983b0cbe82 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * $Id: rb_ecore_evas_main.c 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_ecore_evas_main.c 389 2006-11-11 11:40:24Z tilman $
  *
- * Copyright (C) 2004 ruby-ecore team (see AUTHORS)
+ * Copyright (C) 2004-2005 ruby-ecore team (see AUTHORS)
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include "rb_ecore_evas.h"
 #include "rb_software_x11.h"
 #include "rb_gl_x11.h"
+#include "rb_xrender_x11.h"
 #include "rb_fb.h"
+#include "rb_buffer.h"
 
 void Init_ecore_evas (void)
 {
+       VALUE m;
+
        rb_require ("ecore");
        rb_require ("evas");
 
+       rb_require ("ecore_x");
+
+       m = rb_const_get (mEcore, rb_intern ("X"));
+       cWindow = rb_const_get (m, rb_intern ("Window"));
+
        mEvas = rb_define_module_under (mEcore, "Evas");
 
        Init_EcoreEvas ();
        Init_SoftwareX11 ();
        Init_GlX11 ();
+       Init_XRenderX11 ();
        Init_Fb ();
+       Init_Buffer ();
 }