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/monsterz/piece.h

    r419 r664  
    3131    piece_t;
    3232
    33     Piece(piece_t, Emitter *emitter, int2 cell, int id);
     33    Piece(piece_t, Emitter *emitter, vec2i cell, int id);
    3434    virtual ~Piece();
    3535
    3636    virtual char const *GetName();
    3737
    38     void SetCell(int2 cell);
    39     int2 GetCell() const;
    40     void SetPos(int2 pos);
    41     int2 GetPos() const;
     38    void SetCell(vec2i cell);
     39    vec2i GetCell() const;
     40    void SetPos(vec2i pos);
     41    vec2i GetPos() const;
    4242
    43     int2 GetSize() const;
    44     int2 GetShift() const;
     43    vec2i GetSize() const;
     44    vec2i GetShift() const;
    4545
    4646    void SetAbove(Piece *below);
     
    5252
    5353    int Pop();
    54     int Grab(int2 dir);
    55     int Ungrab(int2 pos);
    56     int Move(int2 pos);
     54    int Grab(vec2i dir);
     55    int Ungrab(vec2i pos);
     56    int Move(vec2i pos);
    5757
    5858protected:
Note: See TracChangeset for help on using the changeset viewer.