Ignore:
Timestamp:
Feb 18, 2011, 1:09:28 AM (10 years ago)
Author:
sam
Message:

Get rid of float3, float4, int3 etc. in favour of GLSL types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/debugsprite.cpp

    r633 r664  
    2525    Game *game;
    2626    int tiler;
    27     float3 pos;
     27    vec3 pos;
    2828};
    2929
     
    3939    data->tiler = Tiler::Register("art/test/character-dress.png",
    4040                                  32, 0, sqrtf(2));
    41     data->pos = float3(320, 206, 0);
     41    data->pos = vec3(320, 206, 0);
    4242}
    4343
     
    4646    Entity::TickGame(deltams);
    4747
    48     float3 move = deltams * (float3)Input::GetAxis(0);
    49     data->pos = data->pos + move * float3(0.1f * sqrtf(2.0f), .1f, 0.1f);
     48    vec3 move = deltams * (vec3)Input::GetAxis(0);
     49    data->pos = data->pos + move * vec3(0.1f * sqrtf(2.0f), .1f, 0.1f);
    5050}
    5151
     
    5454    Entity::TickDraw(deltams);
    5555
    56     int3 pos = (int3)data->pos;
     56    vec3i pos = (vec3i)data->pos;
    5757
    5858    Scene::GetDefault()->AddTile((data->tiler << 16) | 31,
Note: See TracChangeset for help on using the changeset viewer.