Implement the use of the new vmap3-format by Lynx3d (mad props to you for this, and thanks for the talks earlier) + reduced Vmap size to less than one third, and improve precision + indoor/outdoor check which allows automatic unmounting of players + additional area information from WMOAreaTable.dbc, removed existing "hacks" + WMO liquid information for swimming and fishing correctly in buildings/cities/caves/instances (lava and slime WILL hurt from now on!) - buildfiles for windows are not properly done, and will need to be sorted out NOTE: Do NOT annoy Lynx3d about this, any issues with this "port" is entirely our fault ! THIS REVISION IS CONSIDERED UNSTABLE AND CONTAINS WORK IN PROGRESS - USE AT YOUR OWN RISK! --HG-- branch : trunk
45 lines
993 B
C++
45 lines
993 B
C++
/**
|
|
@file format.h
|
|
|
|
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
|
|
|
|
@author 2000-09-09
|
|
@edited 2005-11-03
|
|
|
|
Copyright 2000-2005, Morgan McGuire.
|
|
All rights reserved.
|
|
*/
|
|
|
|
#ifndef G3D_FORMAT_H
|
|
#define G3D_FORMAT_H
|
|
|
|
#include "G3D/platform.h"
|
|
#include <string>
|
|
#include <stdio.h>
|
|
#include <cstdarg>
|
|
|
|
namespace G3D {
|
|
|
|
/**
|
|
Produces a string from arguments of the style of printf. This avoids
|
|
problems with buffer overflows when using sprintf and makes it easy
|
|
to use the result functionally. This function is fast when the resulting
|
|
string is under 160 characters (not including terminator) and slower
|
|
when the string is longer.
|
|
*/
|
|
std::string __cdecl format(
|
|
const char* fmt
|
|
...) G3D_CHECK_PRINTF_ARGS;
|
|
|
|
/**
|
|
Like format, but can be called with the argument list from a ... function.
|
|
*/
|
|
std::string vformat(
|
|
const char* fmt,
|
|
va_list argPtr) G3D_CHECK_VPRINTF_ARGS;
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|