Ignore:
Timestamp:
Sep 12, 2011, 10:17:23 PM (11 years ago)
Author:
Sam Hocevar
Message:

core: rename vec2i to ivec2 and update matrix.h from Lol Engine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.h

    r666 r682  
    107107               return cache.foret(foretiles[x]); }
    108108
    109     vec2i GetFgTile(vec2i pos);
    110     vec2i GetBgTile(vec2i pos);
     109    ivec2 GetFgTile(ivec2 pos);
     110    ivec2 GetBgTile(ivec2 pos);
    111111  void toggle_delay();
    112112  void set_delay(int on) { no_delay=!on; }
    113113  void pan(int xv, int yv);
    114114
    115     vec2i MouseToGame(vec2i pos, view *v = NULL);
    116     vec2i GameToMouse(vec2i pos, view *v);
    117     view *GetView(vec2i pos);
     115    ivec2 MouseToGame(ivec2 pos, view *v = NULL);
     116    ivec2 GameToMouse(ivec2 pos, view *v);
     117    view *GetView(ivec2 pos);
    118118
    119119  int calc_speed();
     
    125125
    126126
    127     void PutFg(vec2i pos, int type);
    128     void PutBg(vec2i pos, int type);
     127    void PutFg(ivec2 pos, int type);
     128    void PutBg(ivec2 pos, int type);
    129129  void draw_map(view *v, int interpolate=0);
    130130  void dev_scroll();
     
    134134  void set_level(level *nl);
    135135  void show_time();
    136     tile_type GetMapBg(vec2i pos) { return current_level->GetBg(pos); }
    137     tile_type GetMapFg(vec2i pos) { return current_level->GetFg(pos); }
     136    tile_type GetMapBg(ivec2 pos) { return current_level->GetBg(pos); }
     137    tile_type GetMapFg(ivec2 pos) { return current_level->GetFg(pos); }
    138138  void end_session();
    139139  void need_refresh() { refresh=1; }       // for development mode only
Note: See TracChangeset for help on using the changeset viewer.