Ignore:
Timestamp:
Sep 12, 2011, 10:17:23 PM (8 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/imlib/event.h

    r673 r682  
    4848
    4949    int type;
    50     vec2i mouse_move;
     50    ivec2 mouse_move;
    5151    int mouse_button, key;
    5252
     
    5454
    5555    Jwindow *window;      // NULL is root
    56     vec2i window_position;
     56    ivec2 window_position;
    5757    struct { int id; char *data; } message;
    5858};
     
    7070
    7171    void SysInit();
    72     void SysWarpMouse(vec2i pos);
     72    void SysWarpMouse(ivec2 pos);
    7373    void SysEvent(Event &ev);
    7474
     
    7878
    7979  int has_mouse() { return 1; }
    80     void SetMouseShape(image *im, vec2i center)
     80    void SetMouseShape(image *im, ivec2 center)
    8181    {
    8282        m_sprite->SetVisual(im, 1);
    8383        m_center = center;
    8484    }
    85     void SetMousePos(vec2i pos)
     85    void SetMousePos(ivec2 pos)
    8686    {
    87         m_pos = vec2i(Min(Max(pos.x, 0), m_screen->Size().x - 1),
     87        m_pos = ivec2(Min(Max(pos.x, 0), m_screen->Size().x - 1),
    8888                      Min(Max(pos.y, 0), m_screen->Size().y - 1));
    8989        SysWarpMouse(m_pos);
     
    9999    /* Mouse information */
    100100    Sprite *m_sprite;
    101     vec2i m_pos, m_center;
     101    ivec2 m_pos, m_center;
    102102    int m_button;
    103103};
Note: See TracChangeset for help on using the changeset viewer.