Changeset 536

Show
Ignore:
Timestamp:
06/06/08 18:55:03 (4 months ago)
Author:
krobillard
Message:

Public headers now live in thune/ subdirectory.

Location:
trunk/thune
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/gl/draw_list.c

    r533 r536  
    12631263   Returns zero if an error occurred. 
    12641264*/ 
    1265 int ug_runDrawList( UThread* ut, UCell* val ) 
     1265int ur_runDrawList( UThread* ut, UCell* val ) 
    12661266{ 
    12671267    UBlock* blk = ur_blockPtr( val->series.n ); 
     
    13121312                        glCallList( ur_dlGL(val) ); 
    13131313                    } 
    1314                     else if( ! ug_runDrawList( ut, val ) ) 
     1314                    else if( ! ur_runDrawList( ut, val ) ) 
    13151315                        return 0; 
    13161316                } 
     
    17271727                if( ur_is(pc, UT_BLOCK) ) 
    17281728                { 
    1729                     if( ! ug_runDrawList( ut, pc ) ) 
     1729                    if( ! ur_runDrawList( ut, pc ) ) 
    17301730                        return 0; 
    17311731                } 
     
    17951795 
    17961796 
    1797 int ug_compileDrawList( UThread* ut, UCell* blkCell, GLuint dl ) 
     1797int ur_compileDrawList( UThread* ut, UCell* blkCell, GLuint dl ) 
    17981798{ 
    17991799    int ok; 
     
    18051805 
    18061806    glNewList( dl, GL_COMPILE ); 
    1807     ok = ug_runDrawList( ut, blkCell ); 
     1807    ok = ur_runDrawList( ut, blkCell ); 
    18081808    glEndList(); 
    18091809 
     
    18481848 
    18491849        gr_clearState(); 
    1850         if( ! ug_compileDrawList( ut, tos, ur_dlGL(res) ) ) 
     1850        if( ! ur_compileDrawList( ut, tos, ur_dlGL(res) ) ) 
    18511851            return; 
    18521852    } 
     
    18761876        { 
    18771877            gr_clearState(); 
    1878             ug_runDrawList( ut, tos ); 
     1878            ur_runDrawList( ut, tos ); 
    18791879        } 
    18801880    } 
  • trunk/thune/gl/gui.c

    r533 r536  
    794794        rc = gui_styleCell( CI_STYLE_WINDOW ); 
    795795        if( ur_is(rc, UT_DRAWLIST) ) 
    796             ug_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 
     796            ur_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 
    797797    } 
    798798} 
     
    12511251        { 
    12521252            GRect rect; 
    1253             // Save grState so widgets can call ug_compileDrawList(). 
     1253            // Save grState so widgets can call ur_compileDrawList(). 
    12541254            GrRenderState save = grState; 
    12551255 
  • trunk/thune/gl/gx.c

    r533 r536  
    5454 
    5555 
    56 TexFont* ug_texFontV( UThread* ut, const UCell* cell ) 
     56TexFont* ur_texFontV( UThread* ut, const UCell* cell ) 
    5757{ 
    5858    if( ur_is(cell, UT_FONT) ) 
     
    273273    if( ur_stringSlice( ut, tos, &cpA, &cpB ) ) 
    274274    { 
    275         tf = ug_texFontV( ut, res ); 
     275        tf = ur_texFontV( ut, res ); 
    276276        if( tf ) 
    277277        { 
  • trunk/thune/gl/gx.h

    r533 r536  
    2222 
    2323#include <GL/glv.h> 
    24 #include "urlan.h" 
    2524#include "gui.h" 
    2625#include "TexFont.h" 
     
    185184 
    186185UIndex ur_makeRaster( UThread*, UCell*, int format, int w, int h, UBinary** ); 
    187 int    ug_runDrawList( UThread*, UCell* blkCell ); 
    188 int    ug_compileDrawList( UThread*, UCell* blkCell, GLuint dl ); 
    189  
    190 TexFont* ug_texFontV( UThread*, const UCell* ); 
     186int    ur_runDrawList( UThread*, UCell* blkCell ); 
     187int    ur_compileDrawList( UThread*, UCell* blkCell, GLuint dl ); 
     188 
     189TexFont* ur_texFontV( UThread*, const UCell* ); 
    191190 
    192191 
  • trunk/thune/gl/widgets/buttonw.c

    r533 r536  
    204204    { 
    205205        str = ur_binPtr( wd->labelN ); 
    206         tf = ug_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 
     206        tf = ur_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 
    207207        if( tf ) 
    208208        { 
     
    236236    rc = gui_styleCell( CI_STYLE_BUTTON_UP ); 
    237237    if( ur_is(rc, UT_DRAWLIST) ) 
    238         ug_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_UP ] ); 
     238        ur_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_UP ] ); 
    239239 
    240240    rc = gui_styleCell( CI_STYLE_BUTTON_DOWN ); 
    241241    if( ur_is(rc, UT_DRAWLIST) ) 
    242         ug_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_DOWN ] ); 
     242        ur_compileDrawList( ui->ut, rc, wd->dl[ BTN_STATE_DOWN ] ); 
    243243} 
    244244 
  • trunk/thune/gl/widgets/labelw.c

    r533 r536  
    8585    size->policyY = GW_FIXED; 
    8686 
    87     tf = ug_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 
     87    tf = ur_texFontV( ut, gui_styleCell( CI_STYLE_CONTROL_FONT ) ); 
    8888    if( tf ) 
    8989    { 
     
    128128    { 
    129129        grState.fontN = ur_fontTF(fc); 
    130         ug_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 
     130        ur_compileDrawList( ui->ut, rc, wd->dl[ 0 ] ); 
    131131    } 
    132132} 
  • trunk/thune/gl/widgets/twidget.c

    r533 r536  
    303303        { 
    304304            //gr_clearState(); 
    305             ug_runDrawList( ut, cell ); 
     305            ur_runDrawList( ut, cell ); 
    306306            // TODO: Handle errors. 
    307307        } 
  • trunk/thune/thune-gl.spec

    r527 r536  
    3535rm -rf $RPM_BUILD_ROOT 
    3636mkdir -p $RPM_BUILD_ROOT%{_bindir} 
    37 mkdir -p $RPM_BUILD_ROOT%{_includedir} 
     37mkdir -p $RPM_BUILD_ROOT%{_includedir}/thune 
    3838mkdir -p $RPM_BUILD_ROOT%{_libdir} 
    3939install -s -m 755 thune-gl $RPM_BUILD_ROOT/%{_bindir} 
    40 install -m 644 gl/gx.h $RPM_BUILD_ROOT%{_includedir}/thune-gl.h 
     40mkdir include 
     41sed -e "s~\"urlan.h\"~<thune/urlan.h>~" gl/gui.h >include/gui.h 
     42sed -e "s~\"gui.h\"~<thune/gui.h>~" -e "s~\"TexFont.h\"~<thune/TexFontgui.h>~" gl/gx.h >include/gx.h 
     43install -m 644 include/gx.h  $RPM_BUILD_ROOT%{_includedir}/thune 
     44install -m 644 include/gui.h $RPM_BUILD_ROOT%{_includedir}/thune 
     45install -m 644 gl/gx_atoms.h $RPM_BUILD_ROOT%{_includedir}/thune 
     46install -m 644 gl/TexFont.h  $RPM_BUILD_ROOT%{_includedir}/thune 
    4147install -m 644 libthune-gl.so $RPM_BUILD_ROOT%{_libdir}/libthune-gl.so.0 
    4248ln -s libthune-gl.so.0 $RPM_BUILD_ROOT%{_libdir}/libthune-gl.so 
     
    5056%{_libdir}/libthune-gl.so 
    5157%{_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 
    5362 
    5463%changelog 
  • trunk/thune/thune.spec

    r527 r536  
    3030rm -rf $RPM_BUILD_ROOT 
    3131mkdir -p $RPM_BUILD_ROOT%{_bindir} 
    32 mkdir -p $RPM_BUILD_ROOT%{_includedir} 
     32mkdir -p $RPM_BUILD_ROOT%{_includedir}/thune 
    3333mkdir -p $RPM_BUILD_ROOT%{_libdir} 
    3434install -s -m 755 thune $RPM_BUILD_ROOT%{_bindir} 
    35 install -m 644 urlan.h $RPM_BUILD_ROOT%{_includedir} 
     35install -m 644 urlan.h $RPM_BUILD_ROOT%{_includedir}/thune 
     36install -m 644 urlan_atoms.h $RPM_BUILD_ROOT%{_includedir}/thune 
    3637install -m 644 libthune.so $RPM_BUILD_ROOT%{_libdir}/libthune.so.0 
    3738ln -s libthune.so.0 $RPM_BUILD_ROOT%{_libdir}/libthune.so 
     
    4546%{_libdir}/libthune.so 
    4647%{_libdir}/libthune.so.0 
    47 %{_includedir}/urlan.h 
     48%{_includedir}/thune/urlan.h 
     49%{_includedir}/thune/urlan_atoms.h 
    4850 
    4951%changelog