r_misc.h File Reference

This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Definition in file r_misc.h.


Function Documentation

void R_InitMiscTexture ( void   ) 
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

Parameters:
[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.

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.

Note:
Every parameter may be NULL and is ignored then
Parameters:
[in] transform Translation vector
[in] rotate Rotation vector
[in] scale Scale vector (keep in mind to not set this to vec3_origin or zero)
See also:
R_PushMatrix
R_PopMatrix

Definition at line 215 of file r_misc.c.

Referenced by UI_DrawNode(), and UI_Transform().


Generated by  doxygen 1.6.2