23 #ifndef SRC_VISUALIZATION_OPENGL_DRAWINGUTILS_HPP_
24 #define SRC_VISUALIZATION_OPENGL_DRAWINGUTILS_HPP_
27 #include <GLUT/glut.h>
29 #define M_PI 3.1415926535897932384626433
30 #define GLUT_NO_LIB_PRAGMA
31 #define GLUT_NO_WARNING_DISABLE
32 #define _WCHAR_T_DEFINED
45 #include <types/Color.hpp>
46 using namespace mic::types;
50 namespace visualization {
107 void draw_frame(
float x1,
float y1,
float x2,
float y2,
float r,
float g,
float b,
float a);
119 void draw_grid(
float r,
float g,
float b,
float a,
float cells_h,
float cells_v,
float line_width_ = 1.0);
133 void draw_mark(
mark m,
float x,
float y,
float size,
float line_width,
float r,
float g,
float b,
float a);
146 void draw_circle(
float x,
float y,
float size,
float line_width,
float r,
float g,
float b,
float a);
159 void draw_plus(
float x,
float y,
float size,
float line_width,
float r,
float g,
float b,
float a);
172 void draw_cross(
float x,
float y,
float size,
float line_width,
float r,
float g,
float b,
float a);
185 void draw_square(
float x,
float y,
float size,
float line_width,
float r,
float g,
float b,
float a);
196 void draw_square_in_place(
float size,
float line_width,
float r,
float g,
float b,
float a);
208 void draw_filled_square(
float x,
float y,
float size,
float r,
float g,
float b,
float a);
221 void draw_rectangle(
float x,
float y,
float h,
float w,
float r,
float g,
float b,
float a);
234 void draw_filled_rectangle(
float x,
float y,
float h,
float w,
float r,
float g,
float b,
float a);
240 void draw_texture_in_place(
float size);
251 void draw_filled_square_in_place(
float radius,
float line_width,
float r,
float g,
float b,
float a);
263 void draw_filled_rectangle_in_place(
float radius_x,
float radius_y,
float line_width,
float r,
float g,
float b,
float a);
275 void draw_cuboid(
float radius,
float line_width,
float height,
float r,
float g,
float b,
float a);
288 void draw_text(
float x,
float y,
char*
string,
float r,
float g,
float b,
float a,
void* font);
302 void draw_text_3i(
float x,
float y,
float z,
char*
string,
float r,
float g,
float b,
float a,
void* font);
313 void draw_cursor(
float x,
float y,
float r,
float g,
float b,
float a);
321 void draw_text_3d(GLfloat x, GLfloat y,
char* text);
328 float to_radians(
float degrees);
Class offering methods for drawing in OpenGL windows.
mark
Different types of marks drawn on chars.