Go to the source code of this file.
Functions | |
void | R_Transform (const vec3_t transform, const vec3_t rotate, const vec3_t scale) |
Perform translate, rotate and scale operations on the current matrix. | |
void | R_PopMatrix (void) |
Removes the current matrix from the stack. | |
void | R_PushMatrix (void) |
Push a new matrix to the stack. | |
void | R_InitMiscTexture (void) |
void | R_ScreenShot_f (void) |
void | R_ScreenShot (int x, int y, int width, int height, const char *filename, const char *ext) |
Definition in file r_misc.h.
void R_InitMiscTexture | ( | void | ) |
Definition at line 42 of file r_misc.c.
References byte, data, gridtexture, it_effect, MISC_TEXTURE_SIZE, R_LoadImageData(), r_noTexture, r_warpTexture, VID_NORM_HEIGHT, and VID_NORM_WIDTH.
Referenced by R_Init().
void R_PopMatrix | ( | void | ) |
Removes the current matrix from the stack.
Definition at line 243 of file r_misc.c.
Referenced by UI_Transform().
void R_PushMatrix | ( | void | ) |
Push a new matrix to the stack.
Definition at line 235 of file r_misc.c.
Referenced by UI_Transform().
void R_ScreenShot | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height, | |||
const char * | filename, | |||
const char * | ext | |||
) |
Take a screenshot of the frame buffer
[in] | x | |
[in] | y | |
[in] | width | |
[in] | height | |
[in] | filename | Force to use a filename. Else NULL to autogen a filename |
[in] | ext | Force to use an image format (tga/png/jpg). Else NULL to use value of r_screenshot_format |
Definition at line 94 of file r_misc.c.
References byte, Cmd_Argc(), Cmd_Argv(), Com_Printf(), Com_sprintf(), qFILE_s::f, f, FILE_WRITE, FS_CheckFile(), FS_CloseFile(), FS_Gamedir(), FS_OpenFile(), cvar_s::integer, MAX_OSPATH, Mem_Free, Mem_PoolAlloc, Q_strcasecmp, R_CheckError, r_screenshot_format, r_screenshot_jpeg_quality, R_WriteCompressedTGA(), R_WriteJPG(), R_WritePNG(), SSHOTTYPE_JPG, SSHOTTYPE_PNG, SSHOTTYPE_TGA_COMP, cvar_s::string, type, and vid_imagePool.
Referenced by R_ScreenShot_f(), and UI_GenRadarMap_f().
void R_ScreenShot_f | ( | void | ) |
Definition at line 198 of file r_misc.c.
References Cmd_Argc(), Cmd_Argv(), viddef_t::height, R_ScreenShot(), viddef, and viddef_t::width.
Perform translate, rotate and scale operations on the current matrix.
NULL
and is ignored then [in] | transform | Translation vector |
[in] | rotate | Rotation vector |
[in] | scale | Scale vector (keep in mind to not set this to vec3_origin or zero) |
Definition at line 215 of file r_misc.c.
Referenced by UI_DrawNode(), and UI_Transform().