Ignore:
Timestamp:
Jan 21, 2013, 12:28:22 AM (7 years ago)
Author:
sam
Message:

system: try to autodetect the data directory from the executable path;
currently works for images (SDL and GDI+ loaders) and sound samples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/05_easymesh.cpp

    r2226 r2237  
    3030        m_gears.Push(EasyMesh(), mat4(1.0f), 180.0f / 18);
    3131
    32         m_gears[0].m1.Compile("[sc#00f ab 8 1 8 ty -.25]\
    33                               [sc#f9f scb#f9f acg 12 10 5 5 20 20 5 5 0.1 0 s .1 .1 .1 ty -.1 csgu]\
    34                               [sc#fff scb#000 acg 12 10 10 10 20 20 5 5 0.1 0 s .05 .05 .05 tx -1.5 ty .3 csgu]\
    35                               [sc#00f ab 5 3 9 tx 2.5 csgs]\
    36                               [[ sc#fff ab 3   1.4 2   tx -2 tz -2 \
    37                                [sc#fff ab 2.1  .7 1.1 ty .5 tx -1.4 tz -1.4 csgs] mz] csgu] \
    38                               ");
     32        m_gears[0].m1.Compile("[sc#00f ab 8 1 8 ty -.25]"
     33                              "[sc#f9f scb#f9f acg 12 10 5 5 20 20 5 5 0.1 0 s .1 .1 .1 ty -.1 csgu]"
     34                              "[sc#fff scb#000 acg 12 10 10 10 20 20 5 5 0.1 0 s .05 .05 .05 tx -1.5 ty .3 csgu]"
     35                              "[sc#00f ab 5 3 9 tx 2.5 csgs]"
     36                              "[[ sc#fff ab 3   1.4 2   tx -2 tz -2 "
     37                              "[sc#fff ab 2.1  .7 1.1 ty .5 tx -1.4 tz -1.4 csgs] mz] csgu]");
    3938        //m_gears[0].m1.Compile("[sc#f9f scb#f9f acg 12 10 5 5 20 20 5 5 0.1 0 s .1 .1 .1 [sc#00f ab 3 1 2 ty .25 tx 1 csgs]]");
    4039        m_gears[1].m1.Compile("sc#ff9 scb#ff9 acg 54 10 95 95 90 90 -5 -5 0.1 0 s .1 .1 .1");
     
    122121int main(int argc, char **argv)
    123122{
     123    System::Init(argc, argv);
     124
    124125    Application app("Tutorial 5: EasyMesh", ivec2(960, 600), 60.0f);
    125126    new EasyMeshTutorial();
Note: See TracChangeset for help on using the changeset viewer.