aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/ClientHamr/WindowSharing.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ClientHamr/WindowSharing.txt')
-rw-r--r--docs/ClientHamr/WindowSharing.txt84
1 files changed, 84 insertions, 0 deletions
diff --git a/docs/ClientHamr/WindowSharing.txt b/docs/ClientHamr/WindowSharing.txt
new file mode 100644
index 0000000..1ccd3bb
--- /dev/null
+++ b/docs/ClientHamr/WindowSharing.txt
@@ -0,0 +1,84 @@
1EnLichtIrrnment. B-)
2
3Elementary and Irrlicht don't like to share windows.
4
5Irrlicht 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
9IVideoDriver::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
13Elementary 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
15Ecore_evas can provide an Ecore_Window with ecore_evas_window_get().
16
17Ecore_X_Window ecore_x_window_new()
18
19http://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
23opinion. Either put the canvas in a texture and give it to the 3D
24engine, or use EvasGL API and make the 3D engine integrate inside
25Evas. It is possible to have a direct rendering path with EvasGL and
26so have a fastest possible path.
27--
28Cedric BAIL"
29
30
31Apparently Irrlicht's method of providing an external window actually works. Mostly. -
32
33http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=32647
34http://sourceforge.net/tracker/index.php?func=detail&aid=2655876&group_id=74339&atid=540676
35
36Though 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
39There is also this which gives clues -http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=26506
40
41
42http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=39872
43http://irrlicht.sourceforge.net/forum//viewtopic.php?t=39719
44
45http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=35197
46
47http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=46087
48
49http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=42450
50
51http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=35251
52
53http://irrlicht.sourceforge.net/forum/viewtopic.php?f=5&t=15338
54http://irrlicht.sourceforge.net/forum//viewtopic.php?f=7&t=12697
55
56http://irrlicht.sourceforge.net/forum/viewtopic.php?f=5&t=44599
57
58http://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
62http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=26141
63http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=33845
64http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=35984
65http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=34527
66
67http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=38656 may be of some interest.
68http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=30943
69http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=46983 where the question I want is not answered.
70
71---------------------------------------------------------
72
73I could run sed over COpenGLDriver.cpp to turn it into CEvasGLDriver.cpp, then tweak it a bit.
74
75evas_gl_make_current(gld->evasgl, gld->sfc, gld->ctx);
76glFoo() -> glapi->glFoo()
77
78
79Hmm, there will be some source files with random gl() calls, and I'd
80need to tweak a few other things to suit. So this wont be a clean "just
81drop in this source file" patch. B-(
82
83Probably a lot easier to just figure out what what brand of glue to use
84to get Irrlicht using Evas created GL surface and context.