Ignore:
Timestamp:
Apr 22, 2012, 2:31:55 AM (9 years ago)
Author:
sam
Message:

core: use operator<< instead of operator+= to append stuff to arrays,
it's a bit less confusing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/02_cube.cpp

    r1255 r1269  
    4646        m_mesh.Append(vec3(-1.0,  1.0, -1.0), vec3(0.0, 0.0, 1.0));
    4747
    48         m_indices += i16vec3(0, 1, 2);
    49         m_indices += i16vec3(2, 3, 0);
    50         m_indices += i16vec3(1, 5, 6);
    51         m_indices += i16vec3(6, 2, 1);
    52         m_indices += i16vec3(7, 6, 5);
    53         m_indices += i16vec3(5, 4, 7);
    54         m_indices += i16vec3(4, 0, 3);
    55         m_indices += i16vec3(3, 7, 4);
    56         m_indices += i16vec3(4, 5, 1);
    57         m_indices += i16vec3(1, 0, 4);
    58         m_indices += i16vec3(3, 2, 6);
    59         m_indices += i16vec3(6, 7, 3);
     48        m_indices << i16vec3(0, 1, 2);
     49        m_indices << i16vec3(2, 3, 0);
     50        m_indices << i16vec3(1, 5, 6);
     51        m_indices << i16vec3(6, 2, 1);
     52        m_indices << i16vec3(7, 6, 5);
     53        m_indices << i16vec3(5, 4, 7);
     54        m_indices << i16vec3(4, 0, 3);
     55        m_indices << i16vec3(3, 7, 4);
     56        m_indices << i16vec3(4, 5, 1);
     57        m_indices << i16vec3(1, 0, 4);
     58        m_indices << i16vec3(3, 2, 6);
     59        m_indices << i16vec3(6, 7, 3);
    6060
    6161        m_ready = false;
Note: See TracChangeset for help on using the changeset viewer.