From 61b5a353849f8c8a188c4f91c1aa89c9e7a1d10a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 23 Dec 2010 17:32:21 +0200 Subject: little tinkering --- src/main.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index fe0bfb09c..da727811e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2245,14 +2245,7 @@ int main(int argc, char *argv[]) { //TimeTaker timer9("auxiliary drawings"); // 0ms - - driver->draw2DLine(displaycenter - core::vector2d(10,0), - displaycenter + core::vector2d(10,0), - video::SColor(255,255,255,255)); - driver->draw2DLine(displaycenter - core::vector2d(0,10), - displaycenter + core::vector2d(0,10), - video::SColor(255,255,255,255)); - + //timer9.stop(); //TimeTaker //timer10("//timer10"); @@ -2274,6 +2267,16 @@ int main(int argc, char *argv[]) driver->draw3DBox(*i, video::SColor(255,0,0,0)); } + /* + Draw crosshair + */ + driver->draw2DLine(displaycenter - core::vector2d(10,0), + displaycenter + core::vector2d(10,0), + video::SColor(255,255,255,255)); + driver->draw2DLine(displaycenter - core::vector2d(0,10), + displaycenter + core::vector2d(0,10), + video::SColor(255,255,255,255)); + } //timer10.stop(); -- cgit v1.2.3