This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
2009-01-11 22:00:00 +01:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2009 <20>
|
|
|
|
|
// effects_api.h - client temp entities
|
|
|
|
|
//=======================================================================
|
|
|
|
|
#ifndef EFFECTS_API_H
|
|
|
|
|
#define EFFECTS_API_H
|
|
|
|
|
|
2009-01-15 22:00:00 +01:00
|
|
|
|
struct cparticle_s
|
|
|
|
|
{
|
|
|
|
|
vec3_t origin;
|
|
|
|
|
vec3_t velocity;
|
|
|
|
|
vec3_t accel;
|
|
|
|
|
vec3_t color;
|
|
|
|
|
vec3_t colorVelocity;
|
|
|
|
|
float alpha;
|
|
|
|
|
float alphaVelocity;
|
|
|
|
|
float radius;
|
|
|
|
|
float radiusVelocity;
|
|
|
|
|
float length;
|
|
|
|
|
float lengthVelocity;
|
|
|
|
|
float rotation;
|
|
|
|
|
float bounceFactor;
|
|
|
|
|
};
|
|
|
|
|
|
2009-01-11 22:00:00 +01:00
|
|
|
|
typedef struct efxapi_s
|
|
|
|
|
{
|
2009-01-15 22:00:00 +01:00
|
|
|
|
size_t api_size; // must match with sizeof( efxapi_t );
|
|
|
|
|
|
|
|
|
|
int (*R_AllocParticle)( cparticle_t *src, HSPRITE shader, int flags );
|
|
|
|
|
void (*R_SetDecal)( float *org, float *dir, float *rgba, float rot, float rad, HSPRITE hSpr, int flags );
|
|
|
|
|
void (*CL_AllocDLight)( const float *org, float *rgb, float rad, float decay, float time, int key );
|
|
|
|
|
void (*CL_FindExplosionPlane)( vec3_t origin, float radius, float *result );
|
2009-01-11 22:00:00 +01:00
|
|
|
|
} efxapi_t;
|
|
|
|
|
|
|
|
|
|
#endif//EFFECTS_API_H
|