File: test_fltk.cpp

package info (click to toggle)
mathgl 8.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 248,044 kB
  • sloc: cpp: 87,365; ansic: 3,299; javascript: 3,284; pascal: 1,562; python: 52; sh: 51; makefile: 47; f90: 22
file content (13 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
// g++ test_fltk.cpp -lmgl-fltk -lmgl
#include <mgl2/fltk.h>
int sample(mglGraph *gr)
{
  gr->Rotate(60,40);  gr->Box();
  return 0;
}
//-----------------------------------------------------
int main(int argc,char **argv)
{
  mglFLTK gr(sample,"MathGL examples");
  return gr.Run();
}