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.
Xash3DArchive/engine/client/cl_tent.h

117 lines
7.9 KiB
C
Raw Normal View History

2011-05-09 22:00:00 +02:00
/*
cl_tent.h - efx api set
Copyright (C) 2010 Uncle Mike
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
2010-11-06 22:00:00 +01:00
#ifndef CL_TENT_H
#define CL_TENT_H
// EfxAPI
2017-02-21 22:00:00 +01:00
struct particle_s *R_AllocParticle( void (*callback)( struct particle_s*, float ));
2010-11-10 22:00:00 +01:00
void CL_Explosion( vec3_t pos, int model, float scale, float framerate, int flags );
2010-11-06 22:00:00 +01:00
void CL_ParticleExplosion( const vec3_t org );
void CL_ParticleExplosion2( const vec3_t org, int colorStart, int colorLength );
2017-02-21 22:00:00 +01:00
void R_Implosion( const vec3_t end, float radius, int count, float life );
2010-11-10 22:00:00 +01:00
void CL_Blood( const vec3_t org, const vec3_t dir, int pcolor, int speed );
void CL_BloodStream( const vec3_t org, const vec3_t dir, int pcolor, int speed );
2010-11-06 22:00:00 +01:00
void CL_BlobExplosion( const vec3_t org );
void CL_EntityParticles( cl_entity_t *ent );
2017-02-26 22:00:00 +01:00
void R_FlickerParticles( const vec3_t org );
2017-02-21 22:00:00 +01:00
void R_RunParticleEffect( const vec3_t org, const vec3_t dir, int color, int count );
2010-11-06 22:00:00 +01:00
void CL_ParticleBurst( const vec3_t org, int size, int color, float life );
void CL_LavaSplash( const vec3_t org );
void CL_TeleportSplash( const vec3_t org );
2017-02-26 22:00:00 +01:00
void R_RocketTrail( vec3_t start, vec3_t end, int type );
short R_LookupColor( byte r, byte g, byte b );
2010-11-06 22:00:00 +01:00
void CL_GetPackedColor( short *packed, short color );
2017-02-21 22:00:00 +01:00
void R_TracerEffect( const vec3_t start, const vec3_t end );
void R_UserTracerParticle( float *org, float *vel, float life, int colorIndex, float length, byte deathcontext, void (*deathfunc)( struct particle_s* ));
struct particle_s *R_TracerParticles( float *org, float *vel, float life );
2017-02-26 22:00:00 +01:00
void R_ParticleLine( const vec3_t start, const vec3_t end, byte r, byte g, byte b, float life );
void R_ParticleBox( const vec3_t mins, const vec3_t maxs, byte r, byte g, byte b, float life );
void R_ShowLine( const vec3_t start, const vec3_t end );
2017-02-21 22:00:00 +01:00
void R_BulletImpactParticles( const vec3_t pos );
void R_SparkShower( const vec3_t org );
2010-11-10 22:00:00 +01:00
struct tempent_s *CL_TempEntAlloc( const vec3_t org, model_t *pmodel );
struct tempent_s *CL_TempEntAllocHigh( const vec3_t org, model_t *pmodel );
struct tempent_s *CL_TempEntAllocNoModel( const vec3_t org );
struct tempent_s *CL_TempEntAllocCustom( const vec3_t org, model_t *model, int high, void (*callback)( struct tempent_s*, float, float ));
void CL_FizzEffect( cl_entity_t *pent, int modelIndex, int density );
void CL_Bubbles( const vec3_t mins, const vec3_t maxs, float height, int modelIndex, int count, float speed );
void CL_BubbleTrail( const vec3_t start, const vec3_t end, float flWaterZ, int modelIndex, int count, float speed );
void CL_AttachTentToPlayer( int client, int modelIndex, float zoffset, float life );
void CL_KillAttachedTents( int client );
void CL_RicochetSprite( const vec3_t pos, model_t *pmodel, float duration, float scale );
void CL_RocketFlare( const vec3_t pos );
void CL_MuzzleFlash( const vec3_t pos, int type );
void CL_BloodSprite( const vec3_t org, int colorIndex, int modelIndex, int modelIndex2, float size );
void CL_BreakModel( const vec3_t pos, const vec3_t size, const vec3_t dir, float random, float life, int count, int modelIndex, char flags );
struct tempent_s *CL_TempModel( const vec3_t pos, const vec3_t dir, const vec3_t angles, float life, int modelIndex, int soundtype );
struct tempent_s *CL_TempSprite( const vec3_t pos, const vec3_t dir, float scale, int modelIndex, int rendermode, int renderfx, float a, float life, int flags );
struct tempent_s *CL_DefaultSprite( const vec3_t pos, int spriteIndex, float framerate );
void CL_Sprite_Explode( struct tempent_s *pTemp, float scale, int flags );
void CL_Sprite_Smoke( struct tempent_s *pTemp, float scale );
void CL_Spray( const vec3_t pos, const vec3_t dir, int modelIndex, int count, int speed, int iRand, int renderMode );
void CL_Sprite_Spray( const vec3_t pos, const vec3_t dir, int modelIndex, int count, int speed, int iRand );
void CL_Sprite_Trail( int type, const vec3_t vecStart, const vec3_t vecEnd, int modelIndex, int nCount, float flLife, float flSize, float flAmplitude, int nRenderamt, float flSpeed );
void CL_FunnelSprite( const vec3_t pos, int spriteIndex, int flags );
void CL_Large_Funnel( const vec3_t pos, int flags );
2017-02-21 22:00:00 +01:00
void R_SparkEffect( const vec3_t pos, int count, int velocityMin, int velocityMax );
void R_StreakSplash( const vec3_t pos, const vec3_t dir, int color, int count, float speed, int velMin, int velMax );
void R_SparkStreaks( const vec3_t pos, int count, int velocityMin, int velocityMax );
2010-11-10 22:00:00 +01:00
void CL_Projectile( const vec3_t origin, const vec3_t velocity, int modelIndex, int life, int owner, void (*hitcallback)( struct tempent_s*, struct pmtrace_s* ));
void CL_TempSphereModel( const vec3_t pos, float speed, float life, int count, int modelIndex );
void CL_MultiGunshot( const vec3_t org, const vec3_t dir, const vec3_t noise, int count, int decalCount, int *decalIndices );
void CL_FireField( float *org, int radius, int modelIndex, int count, int flags, float life );
void CL_PlayerSprites( int client, int modelIndex, int count, int size );
void CL_Sprite_WallPuff( struct tempent_s *pTemp, float scale );
2017-02-26 22:00:00 +01:00
void R_DebugParticle( const vec3_t pos, byte r, byte g, byte b );
2010-11-10 22:00:00 +01:00
void CL_RicochetSound( const vec3_t pos );
struct dlight_s *CL_AllocDlight( int key );
struct dlight_s *CL_AllocElight( int key );
2011-04-16 22:00:00 +02:00
void CL_UpdateFlashlight( cl_entity_t *pEnt );
2017-02-21 22:00:00 +01:00
void CL_AddEntityEffects( cl_entity_t *ent );
void CL_AddStudioEffects( cl_entity_t *ent );
2010-12-23 22:00:00 +01:00
void CL_DecalShoot( int textureIndex, int entityIndex, int modelIndex, float *pos, int flags );
2010-11-10 22:00:00 +01:00
void CL_DecalRemoveAll( int textureIndex );
int CL_DecalIndexFromName( const char *name );
int CL_DecalIndex( int id );
// Beams
2017-02-21 22:00:00 +01:00
struct beam_s *R_BeamLightning( vec3_t start, vec3_t end, int modelIndex, float life, float width, float amplitude, float brightness, float speed );
struct beam_s *R_BeamEnts( int startEnt, int endEnt, int modelIndex, float life, float width, float amplitude, float brightness, float speed, int startFrame, float framerate, float r, float g, float b );
struct beam_s *R_BeamPoints( vec3_t start, vec3_t end, int modelIndex, float life, float width, float amplitude, float brightness, float speed, int startFrame, float framerate, float r, float g, float b );
struct beam_s *R_BeamCirclePoints( int type, vec3_t start, vec3_t end, int modelIndex, float life, float width, float amplitude, float brightness, float speed, int startFrame, float framerate, float r, float g, float b );
struct beam_s *R_BeamEntPoint( int startEnt, vec3_t end, int modelIndex, float life, float width, float amplitude, float brightness, float speed, int startFrame, float framerate, float r, float g, float b );
struct beam_s *R_BeamRing( int startEnt, int endEnt, int modelIndex, float life, float width, float amplitude, float brightness, float speed, int startFrame, float framerate, float r, float g, float b );
struct beam_s *R_BeamFollow( int startEnt, int modelIndex, float life, float width, float r, float g, float b, float brightness );
void R_BeamKill( int deadEntity );
2010-11-10 22:00:00 +01:00
2010-11-06 22:00:00 +01:00
// TriAPI
2017-02-21 22:00:00 +01:00
void TriBegin( int mode );
void TriTexCoord2f( float u, float v );
2010-11-06 22:00:00 +01:00
void TriVertex3fv( const float *v );
2017-02-21 22:00:00 +01:00
void TriVertex3f( float x, float y, float z );
int TriBoxInPVS( float *mins, float *maxs );
2010-11-10 22:00:00 +01:00
void TriColor4f( float r, float g, float b, float a );
2010-12-17 22:00:00 +01:00
int TriSpriteTexture( model_t *pSpriteModel, int frame );
2017-02-21 22:00:00 +01:00
void TriColor4fRendermode( float r, float g, float b, float a, int rendermode );
2010-11-06 22:00:00 +01:00
int TriWorldToScreen( float *world, float *screen );
2017-02-21 22:00:00 +01:00
void TriColor4ub( byte r, byte g, byte b, byte a );
void TriBrightness( float brightness );
void TriRenderMode( int mode );
void TriCullFace( int mode );
void TriEnd( void );
2010-11-06 22:00:00 +01:00
#endif//CL_TENT_H