diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/extantz/WindowSharing.txt | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/ClientHamr/extantz/WindowSharing.txt b/ClientHamr/extantz/WindowSharing.txt new file mode 100644 index 0000000..1ccd3bb --- /dev/null +++ b/ClientHamr/extantz/WindowSharing.txt | |||
@@ -0,0 +1,84 @@ | |||
1 | EnLichtIrrnment. B-) | ||
2 | |||
3 | Elementary and Irrlicht don't like to share windows. | ||
4 | |||
5 | Irrlicht can be told to create a device from a pre existing window, but this is Windows only. | ||
6 | Perhaps it already works for Linux, just the docs are out of date? | ||
7 | It works, sorta. | ||
8 | |||
9 | IVideoDriver::getExposedVideoData() can provide a structure with raw OS level window pointers. | ||
10 | This implies that it's theoretically possible to create a device from things other than Windows windows. | ||
11 | Wont provide any valid info when using the software renderer. | ||
12 | |||
13 | Elementary can provide an Ecore_Wl_Window or an Ecore_X_Window of one of it's windows. elm_win_wl_window_get() and elm_win_xwindow_get(). | ||
14 | |||
15 | Ecore_evas can provide an Ecore_Window with ecore_evas_window_get(). | ||
16 | |||
17 | Ecore_X_Window ecore_x_window_new() | ||
18 | |||
19 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=31350&sid=0eb6d64c84ec7043fd48103f8e63e930 may help. A little. | ||
20 | |||
21 | |||
22 | "For using OpenGL with an Evas canvas, there is two possibilities in my | ||
23 | opinion. Either put the canvas in a texture and give it to the 3D | ||
24 | engine, or use EvasGL API and make the 3D engine integrate inside | ||
25 | Evas. It is possible to have a direct rendering path with EvasGL and | ||
26 | so have a fastest possible path. | ||
27 | -- | ||
28 | Cedric BAIL" | ||
29 | |||
30 | |||
31 | Apparently Irrlicht's method of providing an external window actually works. Mostly. - | ||
32 | |||
33 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=32647 | ||
34 | http://sourceforge.net/tracker/index.php?func=detail&aid=2655876&group_id=74339&atid=540676 | ||
35 | |||
36 | Though seems that bug was marked as a duplicate with the duplicate having a better patch, but NO FUCKING LINK to that duplicate. What a horrid bug tracker. | ||
37 | |||
38 | |||
39 | There is also this which gives clues -http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=26506 | ||
40 | |||
41 | |||
42 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=39872 | ||
43 | http://irrlicht.sourceforge.net/forum//viewtopic.php?t=39719 | ||
44 | |||
45 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=35197 | ||
46 | |||
47 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=46087 | ||
48 | |||
49 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=42450 | ||
50 | |||
51 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=35251 | ||
52 | |||
53 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=5&t=15338 | ||
54 | http://irrlicht.sourceforge.net/forum//viewtopic.php?f=7&t=12697 | ||
55 | |||
56 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=5&t=44599 | ||
57 | |||
58 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=5&t=18941 I think is ancient and might just be similar to what's in there already. | ||
59 | |||
60 | --------------------------------------------------------- | ||
61 | |||
62 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=26141 | ||
63 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=33845 | ||
64 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=35984 | ||
65 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=34527 | ||
66 | |||
67 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=38656 may be of some interest. | ||
68 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=30943 | ||
69 | http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=46983 where the question I want is not answered. | ||
70 | |||
71 | --------------------------------------------------------- | ||
72 | |||
73 | I could run sed over COpenGLDriver.cpp to turn it into CEvasGLDriver.cpp, then tweak it a bit. | ||
74 | |||
75 | evas_gl_make_current(gld->evasgl, gld->sfc, gld->ctx); | ||
76 | glFoo() -> glapi->glFoo() | ||
77 | |||
78 | |||
79 | Hmm, there will be some source files with random gl() calls, and I'd | ||
80 | need to tweak a few other things to suit. So this wont be a clean "just | ||
81 | drop in this source file" patch. B-( | ||
82 | |||
83 | Probably a lot easier to just figure out what what brand of glue to use | ||
84 | to get Irrlicht using Evas created GL surface and context. | ||