Allink
v0.1
Main Page
Related Pages
Classes
Files
File List
src
DrEffect
DrEffect.cpp
1
#include "DrEffect.h"
2
#include "DrFinestra.h"
3
4
#ifdef __glut_h__
5
6
int
main(
int
argc,
char
** argv){
7
QApplication::setColorSpec( QApplication::CustomColor );
8
QApplication a(argc,argv);
9
DrFinestra
f;
10
a.setMainWidget( &f );
11
f.setGeometry(100,200,800,355);
12
f.show();
13
for
(
int
i=1;i<argc;i++){
14
if
(!strcmp(argv[i],
"-d"
)){
15
f.DataFile(argv[i+1]);
16
}
17
else
if
(!strcmp(argv[i],
"-c"
)){
18
f.ConfFile(argv[i+1]);
19
}
20
else
if
(!strncmp(argv[i],
"-r"
,2)){
21
f.Run();
22
}
23
else
{
24
f.DataFile(argv[i]);
25
}
26
}
27
// f.setStyle(QStyle::QPalstiqueStyle);
28
return
a.exec();
29
}
30
#else
31
int
main(
int
argc,
char
** argv){
32
printf(
"OpenGL not supported\n"
);
33
return
0;
34
}
35
#endif// __glut_h__
DrFinestra
Definition:
DrFinestra.h:21
Generated by
1.8.11