Changeset 2147


Ignore:
Timestamp:
Dec 18, 2012, 10:13:12 PM (7 years ago)
Author:
sam
Message:

tutorial: HUGE COGS.

File:
1 edited

Legend:

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

    r1910 r2147  
    4444    {
    4545        m_angle = 0;
     46
     47        m_mesh.Compile("sc#ffb scb#ffb acg 12 10 30 30 5 5 0.1 0");
     48
     49#if 0
    4650        m_mesh.Compile("sc#8d3 [ato40 10 40 rx20 ry130 tx30]");
    4751
     
    5256        m_mesh.Compile("ty-50 tx-40");
    5357        m_mesh.CloseBrace();
     58#endif
    5459
    5560#if 0
     
    130135        WorldEntity::TickGame(seconds);
    131136
    132         m_angle += seconds * 45.0f;
     137        m_angle += seconds * 80.0f;
    133138
    134139        mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0));
     
    151156
    152157        m_mesh.Render(m_matrix);
     158        m_mesh.Render(mat4::translate(vec3(-65, 0, -65) * lol::sqrt(0.5)) * mat4::rotate(-m_angle, vec3(0, 1, 0)));
     159        m_mesh.Render(mat4::translate(vec3(0, 0, 65)) * mat4::rotate(-m_angle, vec3(0, 1, 0)));
     160        m_mesh.Render(mat4::translate(vec3(-65, 0, 65)) * mat4::rotate(m_angle, vec3(0, 1, 0)));
    153161    }
    154162
Note: See TracChangeset for help on using the changeset viewer.