-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase_graphics.h
More file actions
48 lines (42 loc) · 1.22 KB
/
Copy pathbase_graphics.h
File metadata and controls
48 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Base graphics library for coursework
*
* This library can be considered a highly simplfied OpenGL library for
* particular coursework.
* It supplys a few primitive and limited features.
*
* Features:
* + A main window with 400px(fixed) width and height both
* + Right-click menu support but single level only
* + Callback function support when left-click mouse and keyboard events
* + Monocolor(black & white) only for less code
* + Drawing simple figure like line/Bezier curve/rectangle/circle
* + Two styles for lines
* + Filling a area based on given point
* + Putting fixed font text by given position
* + Selection support for features below
* + Moving selections
* + Resizing selections
* + Rotating selections
* + Clipping lines
* + Undo support
*
* Notice: Exception would NOT be detected in this library.
*/
#ifndef BASE_GRAPHICS_H
#define BASE_GRAPHICS_H
#include <stddef.h> /* size_t */
/* functions */
void bg_init();
void bg_mainloop();
void bg_clean();
/*
void bg_selection_move(
bg_point * LU_p,
bg_point * RD_p,
bg_point * delta);
void bg_selection_rotate(
bg_point * LU_p,
bg_point * RD_p,
double radian);
*/
#endif /* BASE_GRAPHICS_H */