Ignore:
Timestamp:
Mar 24, 2006, 4:00:47 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added caca_show/hide_cursor, and corresponding GL binding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_gl.c

    r684 r686  
    387387}
    388388
     389
     390static void gl_show_cursor(caca_t *kk)
     391{
     392    glutSetCursor(GLUT_CURSOR_RIGHT_ARROW);
     393}
     394
     395static void gl_hide_cursor(caca_t *kk)
     396{
     397    glutSetCursor(GLUT_CURSOR_NONE);
     398}
     399
     400
     401
    389402/*
    390403 * XXX: following functions are local
     
    465478    kk->drv.handle_resize = gl_handle_resize;
    466479    kk->drv.get_event = gl_get_event;
    467 
     480    kk->drv.show_cursor = gl_show_cursor;
     481    kk->drv.hide_cursor = gl_hide_cursor;
    468482    return 0;
    469483}
Note: See TracChangeset for help on using the changeset viewer.