mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
little tinkering
This commit is contained in:
parent
7e490e7213
commit
61b5a35384
4 changed files with 42 additions and 19 deletions
19
src/main.cpp
19
src/main.cpp
|
@ -2245,14 +2245,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
//TimeTaker timer9("auxiliary drawings");
|
||||
// 0ms
|
||||
|
||||
driver->draw2DLine(displaycenter - core::vector2d<s32>(10,0),
|
||||
displaycenter + core::vector2d<s32>(10,0),
|
||||
video::SColor(255,255,255,255));
|
||||
driver->draw2DLine(displaycenter - core::vector2d<s32>(0,10),
|
||||
displaycenter + core::vector2d<s32>(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<s32>(10,0),
|
||||
displaycenter + core::vector2d<s32>(10,0),
|
||||
video::SColor(255,255,255,255));
|
||||
driver->draw2DLine(displaycenter - core::vector2d<s32>(0,10),
|
||||
displaycenter + core::vector2d<s32>(0,10),
|
||||
video::SColor(255,255,255,255));
|
||||
|
||||
}
|
||||
|
||||
//timer10.stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue