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/common/com_export.h

50 lines
1.4 KiB
C
Raw Normal View History

2009-11-03 22:00:00 +01:00
//=======================================================================
// Copyright XashXT Group 2009 <20>
2010-01-08 22:00:00 +01:00
// com_export.h - safe calls exports from other libraries
2009-11-03 22:00:00 +01:00
//=======================================================================
2010-01-08 22:00:00 +01:00
#ifndef COM_EXPORT_H
#define COM_EXPORT_H
2009-11-03 22:00:00 +01:00
2010-11-16 22:00:00 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2009-11-03 22:00:00 +01:00
// linked interfaces
2010-07-01 22:00:00 +02:00
extern stdlib_api_t com;
2010-03-06 22:00:00 +01:00
extern render_exp_t *re;
2009-11-03 22:00:00 +01:00
2010-11-16 22:00:00 +01:00
#ifdef __cplusplus
}
#endif
2010-11-29 22:00:00 +01:00
qboolean R_Init( void );
void R_Shutdown( void );
int GL_LoadTexture( const char *name, const byte *buf, size_t size, int flags );
void GL_FreeImage( const char *name );
qboolean VID_ScreenShot( const char *filename, int shot_type );
qboolean VID_CubemapShot( const char *base, uint size, const float *vieworg, qboolean skyshot );
void VID_RestoreGamma( void );
void R_BeginFrame( qboolean clearScene );
void R_RenderFrame( const ref_params_t *fd, qboolean drawWorld );
void R_EndFrame( void );
void R_ClearScene( void );
void R_DrawStretchRaw( float x, float y, float w, float h, int cols, int rows, const byte *data, qboolean dirty );
void R_DrawStretchPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, int texnum );
void R_DrawSetColor( const rgba_t color );
2010-11-20 22:00:00 +01:00
typedef int sound_t;
2009-11-03 22:00:00 +01:00
2010-11-20 22:00:00 +01:00
typedef struct
2010-10-16 22:00:00 +02:00
{
2010-11-20 22:00:00 +01:00
string name;
int entnum;
int entchannel;
vec3_t origin;
float volume;
float attenuation;
qboolean looping;
int pitch;
} soundlist_t;
2010-10-16 22:00:00 +02:00
2010-01-08 22:00:00 +01:00
#endif//COM_EXPORT_H