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

orbital: implement chamfer boxes and stars in the mesh builder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1262 r1268  
    3434
    3535    m.SetCurColor(vec4(1.0, 0.0, 1.0, 1.0));
    36     m.AppendBox(vec3(0.5, 0.5, 0.5));
     36    m.AppendSmoothChamfBox(vec3(0.5, 0.5, 0.5), 0.1);
    3737    m.RotateX(45.0);
    3838    m.RotateZ(45.0);
    39     m.Translate(vec3(0.0, 0.4, 0.0));
     39    m.Translate(vec3(0.0, 0.6, 0.0));
     40    m.Flush();
     41
     42    m.SetCurColor(vec4(0.0, 1.0, 0.5, 1.0));
     43    m.SetCurColor2(vec4(0.0, 0.5, 1.0, 1.0));
     44    m.AppendStar(5, 0.4, 0.7, 1, 1);
    4045    m.Flush();
    4146
Note: See TracChangeset for help on using the changeset viewer.