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/src/text.cpp

    r326 r664  
    3030    int font, align, length;
    3131    char *text;
    32     int3 pos;
     32    vec3i pos;
    3333};
    3434
     
    4343    data->text = text ? strdup(text) : NULL;
    4444    data->length = text ? strlen(text) : 0;
    45     data->pos = int3(0, 0, 0);
     45    data->pos = vec3i(0, 0, 0);
    4646
    4747    drawgroup = DRAWGROUP_HUD;
     
    6666}
    6767
    68 void Text::SetPos(int3 pos)
     68void Text::SetPos(vec3i pos)
    6969{
    7070    data->pos = pos;
     
    8383    {
    8484        Font *font = Forge::GetFont(data->font);
    85         int3 delta = 0;
     85        vec3i delta = 0;
    8686        if (data->align == ALIGN_RIGHT)
    8787            delta.x -= data->length * font->GetSize().x;
Note: See TracChangeset for help on using the changeset viewer.