Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
1.4 KiB

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef GLOBALFUNCTIONS_H
#define GLOBALFUNCTIONS_H
#ifdef _WIN32
#pragma once
#endif
#include "MapClass.h" // For CMapObjectList
class CMapSolid;
class CMainFrame;
class CMapWorld;
class CMapDoc;
class IWorldEditDispMgr;
class CSubdivMesh;
CMapWorld *GetActiveWorld(void);
IWorldEditDispMgr *GetActiveWorldEditDispManager( void );
//
// misc.cpp:
//
void randomize();
DWORD random();
void NotifyDuplicates(CMapSolid *pSolid);
void NotifyDuplicates(const CMapObjectList *pList);
bool IsWorldObject(CMapAtom *pObject);
BOOL AddLeavesToListCallback(CMapClass *pObject, CMapObjectList *pList);
void WriteDebug(char *pszStr);
LPCTSTR GetDefaultTextureName();
void SetDefaultTextureName( const char *szTexName );
LPCTSTR GetNullTextureName();
int mychdir(LPCTSTR pszDir);
//
// Message window interface.
//
class CMessageWnd;
enum MWMSGTYPE
{ mwStatus,
mwError,
mwWarning
};
extern CMessageWnd *g_pwndMessage;
void Msg(int type, const char *fmt, ...);
//
// timing functions
//
double I_FloatTime( void );
void I_BeginTime( void );
double I_EndTime( void );
// noise function
float PerlinNoise2D( float x, float y, float rockiness );
float PerlinNoise2DScaled( float x, float y, float rockiness );
void DBG(char *fmt, ...);
#endif // GLOBALFUNCTIONS_H