halflife-photomode/cl_dll/particleman/particleman_internal.h

51 lines
1.1 KiB
C++

/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
#pragma once
/**
* @file
*
* Internal header for particle manager
*/
//TODO: remove this once the clamp macro has been removed
#undef clamp
#include <algorithm>
#include <cstddef>
#include "CFrustum.h"
constexpr std::size_t MaxForceElements = 128;
inline CFrustum g_cFrustum;
inline float g_flGravity;
inline float g_flOldTime;
inline Vector g_vViewAngles;
inline bool IsGamePaused()
{
return gEngfuncs.GetClientTime() == g_flOldTime;
}
struct ForceMember
{
Vector m_vOrigin;
Vector m_vDirection;
float m_flRadius;
float m_flStrength;
float m_flDieTime;
};