2 WindML Driver for Mesa 4.0
8 Tornado 2 + WindML, Cumulative Patchs are recommended.
10 I suppose you have a valid WindML installation. Double buffer hardware
11 gives better performance than double buffer software so if you can
12 compile your WindML driver with this option, just do it. I/O
13 redirection is adviced in target server.
19 During the development, my main target was a CoolMonster:
23 and my host a Windows NT + Tornado 2.
29 1. Mesa sources must be in root directory (C:\)
31 2. Add the following line to your torVars.bat:
34 OR copy the new torVars.bat in your bin path:
35 c:/Mesa/src/ugl/tornado/torVars.sample ->
36 /mnt/nt/Tornado/host/x86-win32/bin/torVars (for example)
38 3. In a command prompt:
41 $ make -f Makefile.ugl CPU=PENTIUM
45 5. Include all the files from ugldemos folder to build some downloadable
48 4. Download UGL/Mesa object files on target
50 For example via the WindShell:
51 ld < c:\Tornado\target\lib\objMesaGL.o
52 ld < c:\Tornado\target\lib\objMesaUGL.o
53 ld < c:\Tornado\target\lib\objMesaGLU.o
54 ld < c:\Tornado\target\lib\objGLUTshapes.o
55 ld < c:\Tornado\target\lib\objMesaOS.o
57 You can put the previous lines in a file and use:
60 6. Download the application modules.
65 During the show some messages will appear, it provides some useful
66 information on key management.
74 In addition to the usual ugl calls to initialize UGL, (may be find an
75 input driver), you must do the following to use the UGL/Mesa interface:
77 1. Call uglMesaCreateContext() to create a UGL/Mesa rendering context,
78 given the display format.
80 2. Call uglMesaMakeCurrent() to bind the UGL/Mesa buffers to an
81 UGL/Mesa Context and to make the context the current one.
83 3. Make gl* calls to render your graphics.
85 4. Use uglMesaSwapBuffers() when double buffering to swap front/back buffers.
87 5. Before the UGL is destroyed, call MesaDestroyContext().
89 6. Before exiting, call if required uglEventQDestroy and then
95 I found the following limitations in my driver :
96 - Color Indexed management is only in 8 bits
97 - It's possible to mix UGL/OpenGL application with a software
107 - include/GL/uglmesa.h
108 - si-glu/Makefile.ugl
110 - src/ugl/torGLUTShapesInit.c
111 - src/ugl/torMesaUGLInit.c
114 - src/ugl/ugl_glutshapes.c
121 Modified files in Tornado 2.0:
122 - c:\Tornado\host\x86-win32\bin\torVars.bat
123 rem Command line build environments
124 set WIND_HOST_TYPE=x86-win32
125 set WIND_BASE=C:\Tornado
126 set MESA_BASE=C:\Mesa
127 set PATH=%WIND_BASE%\host\%WIND_HOST_TYPE%\bin;%PATH%
128 - c:\Tornado\target\config\comps\VxWorks\01uglmesa.cdf
129 - c:\Tornado\target\h\GL\*
133 - GCC 2.96, ASM compilation
138 Precision Insight team for their great job around Mesa, XFree, and DRI.
139 Wind River Systems to take me as an intern.
143 <stephane.raimbault@windriver.com>
144 <stephane.raimbault@deesse.univ-lemans.fr>