16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 07:59:18 +02:00

files missing from previous commit

fixes
version
This commit is contained in:
tmj-fstate
2018-06-15 18:56:50 +02:00
committed by milek7
parent db58ec131a
commit 8491c63f3c
10 changed files with 41 additions and 41 deletions

View File

@@ -25,6 +25,7 @@ Copyright (C) 2007-2014 Maciej Cierniak
#include "utilities.h"
#include "Globals.h"
#include "parser.h"
bool DebugModeFlag = false;
bool FreeFlyModeFlag = false;
@@ -387,3 +388,17 @@ substr_path( std::string const &Filename ) {
Filename.substr( 0, Filename.rfind( '/' ) + 1 ) :
"" );
}
// helper, restores content of a 3d vector from provided input stream
// TODO: review and clean up the helper routines, there's likely some redundant ones
glm::dvec3 LoadPoint( cParser &Input ) {
// pobranie współrzędnych punktu
glm::dvec3 point;
Input.getTokens( 3 );
Input
>> point.x
>> point.y
>> point.z;
return point;
}