summaryrefslogtreecommitdiff
path: root/hammer/globalfunctions.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/globalfunctions.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/globalfunctions.h')
-rw-r--r--hammer/globalfunctions.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/hammer/globalfunctions.h b/hammer/globalfunctions.h
new file mode 100644
index 0000000..b6682b2
--- /dev/null
+++ b/hammer/globalfunctions.h
@@ -0,0 +1,77 @@
+//========= Copyright 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, PRINTF_FORMAT_STRING 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(PRINTF_FORMAT_STRING const char *fmt, ...);
+
+#endif // GLOBALFUNCTIONS_H