3434
3535#include < cstdlib>
3636
37+ // / \brief Window handle
3738typedef void * fg_window;
39+
40+ // / \brief Font handle
3841typedef void * fg_font;
42+
43+ // / \brief Chart handle
3944typedef void * fg_chart;
45+
46+ // / \brief Image handle
4047typedef void * fg_image;
48+
49+ // / \brief Histogram handle
4150typedef void * fg_histogram;
51+
52+ // / \brief Plot handle
4253typedef void * fg_plot;
54+
55+ // / \brief Surface handle
4356typedef void * fg_surface;
57+
58+ // / \brief Vector Field handle
4459typedef void * fg_vector_field;
4560
61+ // / \brief Return Error Codes for Forge C API
4662typedef enum {
4763 FG_ERR_NONE = 0 , // /< Fuction returned successfully.
4864 /*
@@ -102,6 +118,7 @@ typedef enum {
102118 FG_ERR_UNKNOWN = 9003 // /< Unkown error
103119} fg_err;
104120
121+ // / \brief Image Channel Formats
105122typedef enum {
106123 FG_GRAYSCALE = 100 , // /< Single channel
107124 FG_RG = 200 , // /< Three(Red, Green & Blue) channels
@@ -111,14 +128,13 @@ typedef enum {
111128 FG_BGRA = 401 // /< Four(Red, Green, Blue & Alpha) channels
112129} fg_channel_format;
113130
131+ // / \brief Chart dimensionality i.e. 2D or 3D
114132typedef enum {
115133 FG_CHART_2D = 2 , // /< Two dimensional charts
116134 FG_CHART_3D = 3 // /< Three dimensional charts
117135} fg_chart_type;
118136
119- /* *
120- Color maps
121- */
137+ // / \brief Color Maps
122138typedef enum {
123139 FG_COLOR_MAP_DEFAULT = 0 , // /< Default [0-255] grayscale colormap
124140 FG_COLOR_MAP_SPECTRUM = 1 , // /< Visual spectrum (390nm-830nm) in sRGB colorspace
@@ -133,6 +149,7 @@ typedef enum {
133149 FG_COLOR_MAP_VIRIDIS = 10 , // /< perceptually uniform shades of blue-green-yellow
134150} fg_color_map;
135151
152+ // / \brief Color Constants
136153typedef enum {
137154 FG_RED = 0xFF0000FF ,
138155 FG_GREEN = 0x00FF00FF ,
@@ -144,6 +161,7 @@ typedef enum {
144161 FG_BLACK = 0x000000FF
145162} fg_color;
146163
164+ // / \brief Enum representation of internal data types
147165typedef enum {
148166 FG_INT8 = 0 , // /< Signed byte (8-bits)
149167 FG_UINT8 = 1 , // /< Unsigned byte (8-bits)
@@ -154,12 +172,14 @@ typedef enum {
154172 FG_UINT16 = 6 // /< Unsigned integer (16-bits)
155173} fg_dtype;
156174
175+ // / \brief Plot Style
157176typedef enum {
158177 FG_PLOT_LINE = 0 , // /< Line plot
159178 FG_PLOT_SCATTER = 1 , // /< Scatter plot
160179 FG_PLOT_SURFACE = 2 // /< Surface plot
161180} fg_plot_type;
162181
182+ // / \brief Markers rendered as sprites
163183typedef enum {
164184 FG_MARKER_NONE = 0 , // /< No marker
165185 FG_MARKER_POINT = 1 , // /< Point marker
@@ -172,8 +192,9 @@ typedef enum {
172192} fg_marker_type;
173193
174194#ifdef __cplusplus
175- namespace forge
176- {
195+
196+ // / \brief Forge API namespace
197+ namespace forge {
177198 typedef fg_err ErrorCode;
178199 typedef fg_channel_format ChannelFormat;
179200 typedef fg_chart_type ChartType;
@@ -182,6 +203,7 @@ namespace forge
182203 typedef fg_plot_type PlotType;
183204 typedef fg_marker_type MarkerType;
184205
206+ // / \brief Alias Enum to \ref fg_dtype enum
185207 typedef enum {
186208 s8 = FG_INT8,
187209 u8 = FG_UINT8,
0 commit comments