20 std::vector<unsigned> tex_ids;
21 std::vector<unsigned> frames;
22 std::vector<unsigned> periods;
24 void update_duration();
26 void add_frame(
unsigned tex_id);
31 bool is_created()
const;
49 bool create(
const std::string&
id =
"arrow");
51 bool create_from_file(
const std::string& file_name);
63 unsigned get_nr_steps()
const;
65 unsigned get_nr_frames()
const;
67 unsigned get_texture_id(
unsigned frame_idx = 0)
const;
69 unsigned get_step_frame(
unsigned step_idx)
const;
71 void set_step_frame(
unsigned step_idx,
unsigned frame_idx);
73 unsigned get_step_period(
unsigned step_idx)
const;
75 void set_step_period(
unsigned step_idx,
unsigned period);
77 void append_step(
unsigned frame_idx,
unsigned period);
79 unsigned find_step_index(
double elapsed_seconds)
const;
87 void draw(
int x,
int y,
bool use_color =
false,
unsigned frame_idx = 0);
94 #include <cgv/config/lib_end.h>
Definition: gl_cursor.h:16
unsigned get_height() const
return the height of the cursor
Definition: gl_cursor.h:55
unsigned get_width() const
return the width of the cursor
Definition: gl_cursor.h:53
int get_hot_y() const
return the y-coordinate of the hot spot of the cursor in local pixel coordinates
Definition: gl_cursor.h:59
unsigned get_frame_texture_id(int frame_idx) const
return the gl texture id of the given frame
void set_hot_spot(int _x, int _y)
set a new hot spot of the cursor in local pixel coordinates
Definition: gl_cursor.h:61
int get_hot_x() const
return the x-coordinate of the hot spot of the cursor in local pixel coordinates
Definition: gl_cursor.h:57
the cgv namespace
Definition: vr_calib.cxx:9