Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Helper.cpp File Reference


Detailed Description

a few helper functions.

Definition in file Helper.cpp.

#include "..\AEngine\AEngine.h"

Include dependency graph for Helper.cpp:

Include dependency graph

Go to the source code of this file.

Functions

string & stripComments (string &str)
void drawBox (Box &b, Vec3D color)


Function Documentation

void drawBox Box   b,
Vec3D    color
 

Definition at line 40 of file Helper.cpp.

References Box::bottom, Box::left, overlay_rect(), Box::right, Box::top, and Vec2D.

Referenced by renderMainMenu(), and renderMultiplayMenu().

00041 {
00042         overlay_rect( Vec2D(b.left, b.top), Vec2D(b.right, b.bottom), false, color );
00043 }

string& stripComments string &    str
 

Definition at line 28 of file Helper.cpp.

00029 {
00030         size_t start;
00031         size_t end;
00032         while( (start = str.find("//")) != string::npos )
00033         {
00034                 end = str.find("\n", start)+1;
00035                 str.erase(start, end-start);
00036         }
00037         return str;
00038 }


Generated on Wed Apr 23 05:51:17 2003 for Modern Warfare by doxygen1.3-rc2