Changeset 536
- Timestamp:
- 06/06/08 18:55:03 (4 months ago)
- Location:
- trunk/thune
- Files:
-
- 9 modified
-
gl/draw_list.c (modified) (7 diffs)
-
gl/gui.c (modified) (2 diffs)
-
gl/gx.c (modified) (2 diffs)
-
gl/gx.h (modified) (2 diffs)
-
gl/widgets/buttonw.c (modified) (2 diffs)
-
gl/widgets/labelw.c (modified) (2 diffs)
-
gl/widgets/twidget.c (modified) (1 diff)
-
thune-gl.spec (modified) (2 diffs)
-
thune.spec (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/draw_list.c
r533 r536 1263 1263 Returns zero if an error occurred. 1264 1264 */ 1265 int u g_runDrawList( UThread* ut, UCell* val )1265 int ur_runDrawList( UThread* ut, UCell* val ) 1266 1266 { 1267 1267 UBlock* blk = ur_blockPtr( val->series.n ); … … 1312 1312 glCallList( ur_dlGL(val) ); 1313 1313 } 1314 else if( ! u g_runDrawList( ut, val ) )1314 else if( ! ur_runDrawList( ut, val ) ) 1315 1315 return 0; 1316 1316 } … … 1727 1727 if( ur_is(pc, UT_BLOCK) ) 1728 1728 { 1729 if( ! u g_runDrawList( ut, pc ) )1729 if( ! ur_runDrawList( ut, pc ) ) 1730 1730 return 0; 1731 1731 } … … 1795 1795 1796 1796 1797 int u g_compileDrawList( UThread* ut, UCell* blkCell, GLuint dl )1797 int ur_compileDrawList( UThread* ut, UCell* blkCell, GLuint dl ) 1798 1798 { 1799 1799 int ok; … … 1805 1805 1806 1806 glNewList( dl, GL_COMPILE ); 1807 ok = u g_runDrawList( ut, blkCell );1807 ok = ur_runDrawList( ut, blkCell ); 1808 1808 glEndList(); 1809 1809 … … 1848 1848 1849 1849 gr_clearState(); 1850 if( ! u g_compileDrawList( ut, tos, ur_dlGL(res) ) )1850 if( ! ur_compileDrawList( ut, tos, ur_dlGL(res) ) ) 1851 1851 return; 1852 1852 } … … 1876 1876 { 1877 1877 gr_clearState(); 1878 u g_runDrawList( ut, tos );1878 ur_runDrawList( ut, tos ); 1879 1879 } 1880 1880 } -
trunk/thune/gl/gui.c
r533 r536 794 794 rc = gui_styleCell( CI_STYLE_WINDOW ); 795 795 if( ur_is(rc, UT_DRAWLIST) ) 796 u g_compileDrawList( ui->ut, rc, wd->dl[ 0 ] );796 ur_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 797 797 } 798 798 } … … 1251 1251 { 1252 1252 GRect rect; 1253 // Save grState so widgets can call u g_compileDrawList().1253 // Save grState so widgets can call ur_compileDrawList(). 1254 1254 GrRenderState save = grState; 1255 1255 -
trunk/thune/gl/gx.c
r533 r536 54 54 55 55 56 TexFont* u g_texFontV( UThread* ut, const UCell* cell )56 TexFont* ur_texFontV( UThread* ut, const UCell* cell ) 57 57 { 58 58 if( ur_is(cell, UT_FONT) ) … … 273 273 if( ur_stringSlice( ut, tos, &cpA, &cpB ) ) 274 274 { 275 tf = u g_texFontV( ut, res );275 tf = ur_texFontV( ut, res ); 276 276 if( tf ) 277 277 { -
trunk/thune/gl/gx.h
r533 r536 22 22 23 23 #include <GL/glv.h> 24 #include "urlan.h"25 24 #include "gui.h" 26 25 #include "TexFont.h" … … 185 184 186 185 UIndex ur_makeRaster( UThread*, UCell*, int format, int w, int h, UBinary** ); 187 int u g_runDrawList( UThread*, UCell* blkCell );188 int u g_compileDrawList( UThread*, UCell* blkCell, GLuint dl );189 190 TexFont* u g_texFontV( UThread*, const UCell* );186 int ur_runDrawList( UThread*, UCell* blkCell ); 187 int ur_compileDrawList( UThread*, UCell* blkCell, GLuint dl ); 188 189 TexFont* ur_texFontV( UThread*, const UCell* ); 191 190 192 191 -
trunk/thune/gl/widgets/buttonw.c
r533 r536 204 204 { 205 205 str = ur_binPtr( wd->labelN ); 206 tf = u g_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) );206 tf = ur_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 207 207 if( tf ) 208 208 { … … 236 236 rc = gui_styleCell( CI_STYLE_BUTTON_UP ); 237 237 if( ur_is(rc, UT_DRAWLIST) ) 238 u g_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_UP ] );238 ur_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_UP ] ); 239 239 240 240 rc = gui_styleCell( CI_STYLE_BUTTON_DOWN ); 241 241 if( ur_is(rc, UT_DRAWLIST) ) 242 u g_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_DOWN ] );242 ur_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_DOWN ] ); 243 243 } 244 244 -
trunk/thune/gl/widgets/labelw.c
r533 r536 85 85 size->policyY = GW_FIXED; 86 86 87 tf = u g_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) );87 tf = ur_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 88 88 if( tf ) 89 89 { … … 128 128 { 129 129 grState.fontN = ur_fontTF(fc); 130 u g_compileDrawList( ui->ut, rc, wd->dl[ 0 ] );130 ur_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 131 131 } 132 132 } -
trunk/thune/gl/widgets/twidget.c
r533 r536 303 303 { 304 304 //gr_clearState(); 305 u g_runDrawList( ut, cell );305 ur_runDrawList( ut, cell ); 306 306 // TODO: Handle errors. 307 307 } -
trunk/thune/thune-gl.spec
r527 r536 35 35 rm -rf $RPM_BUILD_ROOT 36 36 mkdir -p $RPM_BUILD_ROOT%{_bindir} 37 mkdir -p $RPM_BUILD_ROOT%{_includedir} 37 mkdir -p $RPM_BUILD_ROOT%{_includedir}/thune 38 38 mkdir -p $RPM_BUILD_ROOT%{_libdir} 39 39 install -s -m 755 thune-gl $RPM_BUILD_ROOT/%{_bindir} 40 install -m 644 gl/gx.h $RPM_BUILD_ROOT%{_includedir}/thune-gl.h 40 mkdir include 41 sed -e "s~\"urlan.h\"~<thune/urlan.h>~" gl/gui.h >include/gui.h 42 sed -e "s~\"gui.h\"~<thune/gui.h>~" -e "s~\"TexFont.h\"~<thune/TexFontgui.h>~" gl/gx.h >include/gx.h 43 install -m 644 include/gx.h $RPM_BUILD_ROOT%{_includedir}/thune 44 install -m 644 include/gui.h $RPM_BUILD_ROOT%{_includedir}/thune 45 install -m 644 gl/gx_atoms.h $RPM_BUILD_ROOT%{_includedir}/thune 46 install -m 644 gl/TexFont.h $RPM_BUILD_ROOT%{_includedir}/thune 41 47 install -m 644 libthune-gl.so $RPM_BUILD_ROOT%{_libdir}/libthune-gl.so.0 42 48 ln -s libthune-gl.so.0 $RPM_BUILD_ROOT%{_libdir}/libthune-gl.so … … 50 56 %{_libdir}/libthune-gl.so 51 57 %{_libdir}/libthune-gl.so.0 52 %{_includedir}/thune-gl.h 58 %{_includedir}/thune/gx.h 59 %{_includedir}/thune/gx_atoms.h 60 %{_includedir}/thune/gui.h 61 %{_includedir}/thune/TexFont.h 53 62 54 63 %changelog -
trunk/thune/thune.spec
r527 r536 30 30 rm -rf $RPM_BUILD_ROOT 31 31 mkdir -p $RPM_BUILD_ROOT%{_bindir} 32 mkdir -p $RPM_BUILD_ROOT%{_includedir} 32 mkdir -p $RPM_BUILD_ROOT%{_includedir}/thune 33 33 mkdir -p $RPM_BUILD_ROOT%{_libdir} 34 34 install -s -m 755 thune $RPM_BUILD_ROOT%{_bindir} 35 install -m 644 urlan.h $RPM_BUILD_ROOT%{_includedir} 35 install -m 644 urlan.h $RPM_BUILD_ROOT%{_includedir}/thune 36 install -m 644 urlan_atoms.h $RPM_BUILD_ROOT%{_includedir}/thune 36 37 install -m 644 libthune.so $RPM_BUILD_ROOT%{_libdir}/libthune.so.0 37 38 ln -s libthune.so.0 $RPM_BUILD_ROOT%{_libdir}/libthune.so … … 45 46 %{_libdir}/libthune.so 46 47 %{_libdir}/libthune.so.0 47 %{_includedir}/urlan.h 48 %{_includedir}/thune/urlan.h 49 %{_includedir}/thune/urlan_atoms.h 48 50 49 51 %changelog
