Go to the documentation of this file.
115 strcpy(picname,
"quake00.tga");
117 for (
i=0 ;
i<=99 ;
i++)
119 picname[5] =
i/10 +
'0';
120 picname[6] =
i%10 +
'0';
122 f = fopen (checkname,
"rb");
147 for (
i=18 ;
i<c ;
i+=3)
154 f = fopen (checkname,
"wb");
178 qglClearColor (1,0, 0.5 , 0.5);
179 qglCullFace(GL_FRONT);
180 qglEnable(GL_TEXTURE_2D);
182 qglEnable(GL_ALPHA_TEST);
183 qglAlphaFunc(GL_GREATER, 0.666);
185 qglDisable (GL_DEPTH_TEST);
186 qglDisable (GL_CULL_FACE);
187 qglDisable (GL_BLEND);
189 qglColor4f (1,1,1,1);
191 qglPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
192 qglShadeModel (GL_FLAT);
198 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
gl_filter_min);
199 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
gl_filter_max);
201 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
202 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
204 qglBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
208 if ( qglPointParameterfEXT )
210 float attenuations[3];
216 qglEnable( GL_POINT_SMOOTH );
241 if ( qwglSwapIntervalEXT )
image_t * GL_LoadPic(char *name, byte *pic, int width, int height, imagetype_t type)
void GL_UpdateSwapInterval(void)
void GL_SetDefaultState(void)
cvar_t * gl_particle_att_c
void R_InitParticleTexture(void)
#define GL_SHARED_TEXTURE_PALETTE_EXT
void Sys_Mkdir(char *path)
void GL_TextureAlphaMode(char *string)
const char * extensions_string
void GL_TextureMode(char *string)
cvar_t * gl_particle_att_a
void GL_TextureSolidMode(char *string)
void GL_ScreenShot_f(void)
void(* Con_Printf)(int print_level, char *str,...)
cvar_t * gl_texturealphamode
image_t * r_particletexture
char *(* FS_Gamedir)(void)
#define GL_DISTANCE_ATTENUATION_EXT
void GL_SetTexturePalette(unsigned palette[256])
const char * renderer_string
cvar_t * gl_texturesolidmode
cvar_t * gl_particle_max_size
#define GL_POINT_SIZE_MAX_EXT
unsigned d_8to24table[256]
void GL_TexEnv(GLenum mode)
const char * vendor_string
struct _TargaHeader TargaHeader
#define GL_POINT_SIZE_MIN_EXT
cvar_t * gl_particle_min_size
const char * version_string
void Com_sprintf(char *dest, int size, char *fmt,...)
cvar_t * gl_particle_att_b