Skip to content

Commit b5f891a

Browse files
committed
rename types enum
1 parent e912de2 commit b5f891a

22 files changed

+60
-47
lines changed

examples/cpu/bubblechart.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ int main(void)
7979
/* Create several plot objects which creates the necessary
8080
* vertex buffer objects to hold the different plot types
8181
*/
82-
fg::Plot plt1 = chart.plot(cosData.size()/2, f32,
82+
fg::Plot plt1 = chart.plot(cosData.size()/2, fg::f32,
8383
FG_PLOT_LINE, FG_MARKER_TRIANGLE); //or specify a specific plot type
84-
fg::Plot plt2 = chart.plot(tanData.size()/2, f32,
84+
fg::Plot plt2 = chart.plot(tanData.size()/2, fg::f32,
8585
FG_PLOT_LINE, FG_MARKER_CIRCLE); //last parameter specifies marker shape
8686

8787
/* Set plot colors */

examples/cpu/fractal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int main(void)
5555
/* Create an image object which creates the necessary
5656
* textures and pixel buffer objects to hold the image
5757
* */
58-
fg::Image img(DIMX, DIMY, FG_RGBA, u8);
58+
fg::Image img(DIMX, DIMY, FG_RGBA, fg::u8);
5959
/* copy your data into the pixel buffer object exposed by
6060
* fg::Image class and then proceed to rendering.
6161
* To help the users with copying the data from compute

examples/cpu/histogram.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int main(void)
6666
*/
6767
wnd.grid(WIN_ROWS, WIN_COLS);
6868

69-
fg::Image img(IMGW, IMGH, FG_RGBA, u8);
69+
fg::Image img(IMGW, IMGH, FG_RGBA, fg::u8);
7070

7171
fg::Chart chart(FG_CHART_2D);
7272
/* set x axis limits to maximum and minimum values of data
@@ -79,7 +79,7 @@ int main(void)
7979
/*
8080
* Create histogram object specifying number of bins
8181
*/
82-
fg::Histogram hist = chart.histogram(NBINS, s32);
82+
fg::Histogram hist = chart.histogram(NBINS, fg::s32);
8383
/*
8484
* Set histogram colors
8585
*/

examples/cpu/plot3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(void)
4949
chart.setAxesLimits(-1.1f, 1.1f, -1.1f, 1.1f, 0.f, 10.f);
5050
chart.setAxesTitles("x-axis", "y-axis", "z-axis");
5151

52-
fg::Plot plot3 = chart.plot(ZSIZE, f32);
52+
fg::Plot plot3 = chart.plot(ZSIZE, fg::f32);
5353

5454
//generate a surface
5555
std::vector<float> function;

examples/cpu/plotting.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ int main(void)
5757
/* Create several plot objects which creates the necessary
5858
* vertex buffer objects to hold the different plot types
5959
*/
60-
fg::Plot plt0 = chart.plot(sinData.size()/2, f32); //create a default plot
61-
fg::Plot plt1 = chart.plot(cosData.size()/2, f32, FG_PLOT_LINE, FG_MARKER_NONE); //or specify a specific plot type
62-
fg::Plot plt2 = chart.plot(tanData.size()/2, f32, FG_PLOT_LINE, FG_MARKER_TRIANGLE); //last parameter specifies marker shape
63-
fg::Plot plt3 = chart.plot(logData.size()/2, f32, FG_PLOT_SCATTER, FG_MARKER_CROSS);
60+
fg::Plot plt0 = chart.plot(sinData.size()/2, fg::f32); //create a default plot
61+
fg::Plot plt1 = chart.plot(cosData.size()/2, fg::f32, FG_PLOT_LINE, FG_MARKER_NONE); //or specify a specific plot type
62+
fg::Plot plt2 = chart.plot(tanData.size()/2, fg::f32, FG_PLOT_LINE, FG_MARKER_TRIANGLE); //last parameter specifies marker shape
63+
fg::Plot plt3 = chart.plot(logData.size()/2, fg::f32, FG_PLOT_SCATTER, FG_MARKER_CROSS);
6464

6565
/*
6666
* Set plot colors

examples/cpu/surface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(void)
5252
chart.setAxesLimits(-10.f, 10.f, -10.f, 10.f, -0.5f, 1.f);
5353
chart.setAxesTitles("x-axis", "y-axis", "z-axis");
5454

55-
fg::Surface surf = chart.surface(XSIZE, YSIZE, f32);
55+
fg::Surface surf = chart.surface(XSIZE, YSIZE, fg::f32);
5656
surf.setColor(FG_YELLOW);
5757

5858
//generate a surface

examples/cuda/fractal.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main(void)
2525
/* Create an image object which creates the necessary
2626
* textures and pixel buffer objects to hold the image
2727
* */
28-
fg::Image img(DIMX, DIMY, FG_RGBA, u8);
28+
fg::Image img(DIMX, DIMY, FG_RGBA, fg::u8);
2929
/* copy your data into the pixel buffer object exposed by
3030
* fg::Image class and then proceed to rendering.
3131
* To help the users with copying the data from compute

examples/cuda/histogram.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int main(void)
7777
*/
7878
wnd.grid(WIN_ROWS, WIN_COLS);
7979

80-
fg::Image img(IMGW, IMGH, FG_RGBA, u8);
80+
fg::Image img(IMGW, IMGH, FG_RGBA, fg::u8);
8181

8282
fg::Chart chart(FG_CHART_2D);
8383
/* set x axis limits to maximum and minimum values of data
@@ -90,7 +90,7 @@ int main(void)
9090
/*
9191
* Create histogram object specifying number of bins
9292
*/
93-
fg::Histogram hist = chart.histogram(NBINS, s32);
93+
fg::Histogram hist = chart.histogram(NBINS, fg::s32);
9494
/*
9595
* Set histogram colors
9696
*/

examples/cuda/plot3.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main(void)
4141
chart.setAxesLimits(-1.1f, 1.1f, -1.1f, 1.1f, 0.f, 10.f);
4242
chart.setAxesTitles("x-axis", "y-axis", "z-axis");
4343

44-
fg::Plot plot3 = chart.plot(ZSIZE, f32);
44+
fg::Plot plot3 = chart.plot(ZSIZE, fg::f32);
4545

4646
static float t=0;
4747
FORGE_CUDA_CHECK(cudaMalloc((void**)&dev_out, ZSIZE * 3 * sizeof(float) ));

examples/cuda/plotting.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ int main(void)
3737
/* Create several plot objects which creates the necessary
3838
* vertex buffer objects to hold the different plot types
3939
*/
40-
fg::Plot plt0 = chart.plot( DATA_SIZE, f32); //create a default plot
41-
fg::Plot plt1 = chart.plot( DATA_SIZE, f32, FG_PLOT_LINE, FG_MARKER_NONE); //or specify a specific plot type
42-
fg::Plot plt2 = chart.plot( DATA_SIZE, f32, FG_PLOT_LINE, FG_MARKER_TRIANGLE); //last parameter specifies marker shape
43-
fg::Plot plt3 = chart.plot( DATA_SIZE, f32, FG_PLOT_SCATTER, FG_MARKER_CROSS);
40+
fg::Plot plt0 = chart.plot( DATA_SIZE, fg::f32); //create a default plot
41+
fg::Plot plt1 = chart.plot( DATA_SIZE, fg::f32, FG_PLOT_LINE, FG_MARKER_NONE); //or specify a specific plot type
42+
fg::Plot plt2 = chart.plot( DATA_SIZE, fg::f32, FG_PLOT_LINE, FG_MARKER_TRIANGLE); //last parameter specifies marker shape
43+
fg::Plot plt3 = chart.plot( DATA_SIZE, fg::f32, FG_PLOT_SCATTER, FG_MARKER_CROSS);
4444

4545
/*
4646
* Set plot colors

0 commit comments

Comments
 (0)