summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-01 12:04:22 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-01 12:04:22 +0100
commit8c73fc61c55948614ea5243a070b6eb465a40e95 (patch)
tree169df93c8be3cfa3733819fdac0874fb260c750c /main.cpp
parent8906ff2e2755f6f8a2e52f5252afbcbea248c947 (diff)
Remove the FL stuff from below mainHEADmaster
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/main.cpp b/main.cpp
index b279d78..d6a8660 100644
--- a/main.cpp
+++ b/main.cpp
@@ -112,51 +112,3 @@ int main(void){
instance_destroy(*it);
}
}
-
-/*static Fl_Window_draw *window;
-
-
-
-Fl_Window_draw::Fl_Window_draw(int w,int h,const char *title=0)
- :Fl_Window(w,h,title){}
-Fl_Window_draw::Fl_Window_draw(int x,int y,int w,int h,const char *label=nullptr)
- :Fl_Window(x,y,w,h,label){}
-
-void Fl_Window_draw::draw(void){
- fl_rectf(0,0,w(),h(),FL_WHITE);
- fl_color(FL_BLACK);
- int i;
- for(i=0;i<(int)global.objects.size();i++){
- global.objects[i]->draw();
- }
-}
-
-
-void stepcallback(void*){
- int i;
- for(i=0;i<(int)global.objects.size();i++){
- global.objects[i]->step();
- }
- window->redraw();
- Fl::repeat_timeout(1.0/30,stepcallback);
-}
-
-int main(int argc,char **argv){
- struct timeval tv;
- gettimeofday(&tv,nullptr);
- srand(tv.tv_sec*1000000+tv.tv_usec);
- window=new Fl_Window_draw(640,480,GAME_NAME);
-
- global.objects.push_back(makeobjectbyname(0,0,"obj_control"));
- global.objects[0]->create();
-
- window->end();
- Fl::visual(FL_RGB);
- window->show(argc,argv);
- Fl::add_timeout(1.0/30,stepcallback);
- int ret=Fl::run();
- for(shared_ptr<Object> p : global.objects){
- p->destroy();
- }
- return ret;
-}*/