doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
Str.cpp File Reference
#include "precompiled.h"

Go to the source code of this file.

Classes

struct  formatList_t
 

Macros

#define USE_STRING_DATA_ALLOCATOR
 
#define vsnprintf   use_idStr_vsnPrintf
 

Functions

int sprintf (idStr &string, const char *fmt,...)
 
int vsprintf (idStr &string, const char *fmt, va_list argptr)
 
char * va (const char *fmt,...)
 

Variables

idVec4 g_color_table [16]
 
const char * units [2][4]
 
formatList_t formatList []
 
int numFormatList = sizeof(formatList) / sizeof( formatList[0] )
 

Macro Definition Documentation

#define USE_STRING_DATA_ALLOCATOR

Definition at line 33 of file Str.cpp.

#define vsnprintf   use_idStr_vsnPrintf

Function Documentation

int sprintf ( idStr string,
const char *  fmt,
  ... 
)

Definition at line 1528 of file Str.cpp.

char* va ( const char *  fmt,
  ... 
)

Definition at line 1568 of file Str.cpp.

int vsprintf ( idStr string,
const char *  fmt,
va_list  argptr 
)

Definition at line 1549 of file Str.cpp.

Variable Documentation

formatList_t formatList[]
Initial value:
= {
{ 1000000000, 0 },
{ 1000000, 0 },
{ 1000, 0 }
}

Definition at line 1673 of file Str.cpp.

idVec4 g_color_table[16]
Initial value:
=
{
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(1.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 1.0f, 0.0f, 1.0f),
idVec4(1.0f, 1.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 1.0f, 1.0f),
idVec4(0.0f, 1.0f, 1.0f, 1.0f),
idVec4(1.0f, 0.0f, 1.0f, 1.0f),
idVec4(1.0f, 1.0f, 1.0f, 1.0f),
idVec4(0.5f, 0.5f, 0.5f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
idVec4(0.0f, 0.0f, 0.0f, 1.0f),
}
Definition: Vector.h:808
tuple f
Definition: idal.py:89

Definition at line 40 of file Str.cpp.

int numFormatList = sizeof(formatList) / sizeof( formatList[0] )

Definition at line 1679 of file Str.cpp.

static GLfloat units
Initial value:
=
{
{ "B", "KB", "MB", "GB" },
{ "B/s", "KB/s", "MB/s", "GB/s" }
}

Definition at line 60 of file Str.cpp.