misc.h

Mon, 18 Mar 2013 12:15:23 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 18 Mar 2013 12:15:23 +0200
changeset 25
c74bb88f537d
parent 18
a6732098fed8
child 29
55406ce7446e
permissions
-rw-r--r--

Deleted scanner.cpp (don't need it), merged model.cpp into io.cpp. Renamed LDForgeWindow to just ForgeWindow since I want the LD* prefix only be given to LDObject derivatives.

#ifndef __MISC_H__
#define __MISC_H__

#include "common.h"
#include "str.h"

inline str GetWord (str& zString, ulong ulIndex) {
	return (zString / " ")[ulIndex];
}

double getWordFloat (str& s, const ushort n);
long getWordInt (str& s, const ushort n);
vertex parseVertex (str& s, const ushort n);
void stripWhitespace (str& s);
bool isNumber (str& zToken);

// Float to string
str ftoa (double fCoord);

#endif // __MISC_H__

mercurial