UFO: Alien Invasion
|
#include "r_local.h"
#include "r_misc.h"
#include "r_error.h"
#include "r_font.h"
#include "r_model.h"
#include "../../shared/images.h"
Go to the source code of this file.
Macros | |
#define | MISC_TEXTURE_SIZE 16 |
#define | CAPABILITY(X) {GL_ ## X, # X} |
Enumerations | |
enum | { SSHOTTYPE_JPG, SSHOTTYPE_PNG, SSHOTTYPE_TGA, SSHOTTYPE_TGA_COMP } |
Functions | |
void | R_InitMiscTexture (void) |
void | R_ScreenShot (int x, int y, int width, int height, const char *filename, const char *ext) |
void | R_ScreenShot_f (void) |
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. More... | |
void | R_PushMatrix (void) |
Push a new matrix to the stack. More... | |
void | R_PopMatrix (void) |
Removes the current matrix from the stack. More... | |
void | R_DumpOpenGlState (void) |
Dumps OpenGL state for debugging - typically every capability set with glEnable(). More... | |
void | R_ReinitOpenglContext (void) |
Re-initializes OpenGL state machine, all textures and renderer variables, this needed when application is put to background on Android. More... | |
Variables | |
static const byte | gridtexture [8][8] |
static const byte | dummytexture [4] = {255, 255, 255, 255} |
#define CAPABILITY | ( | X | ) | {GL_ ## X, # X} |
Referenced by R_DumpOpenGlState().
#define MISC_TEXTURE_SIZE 16 |
Definition at line 45 of file r_misc.cpp.
Referenced by R_InitMiscTexture().
anonymous enum |
Enumerator | |
---|---|
SSHOTTYPE_JPG | |
SSHOTTYPE_PNG | |
SSHOTTYPE_TGA | |
SSHOTTYPE_TGA_COMP |
Definition at line 85 of file r_misc.cpp.
Dumps OpenGL state for debugging - typically every capability set with glEnable().
Definition at line 256 of file r_misc.cpp.
References CAPABILITY, Com_Printf(), f, i, lengthof, and Q_strcat().
Definition at line 46 of file r_misc.cpp.
References dummytexture, gridtexture, it_effect, it_pic, MISC_TEXTURE_SIZE, OBJZERO, r_dummyTexture, R_LoadImageData(), r_noTexture, r_warpTexture, VID_NORM_HEIGHT, and VID_NORM_WIDTH.
Referenced by R_Init(), and R_ReinitOpenglContext().
Removes the current matrix from the stack.
Definition at line 248 of file r_misc.cpp.
Referenced by uiSequenceNode::draw(), SEQ_Render3D(), and UI_Transform().
Push a new matrix to the stack.
Definition at line 240 of file r_misc.cpp.
Referenced by uiSequenceNode::draw(), SEQ_Render3D(), and UI_Transform().
Re-initializes OpenGL state machine, all textures and renderer variables, this needed when application is put to background on Android.
Definition at line 349 of file r_misc.cpp.
References model_s::bsp, i, mBspModel_s::index_buffer, mBspModel_s::indexes, mBspModel_s::lmtexcoord_buffer, mBspModel_s::lmtexcoords, mBspModel_s::normal_buffer, mBspModel_s::normals, mBspSurface_s::numedges, mBspModel_s::numIndexes, mBspModel_s::numsurfaces, R_BeginBuildingLightmaps(), R_CreateSurfaceLightmap(), R_EndBuildingLightmaps(), R_FontCleanCache(), R_InitFBObjects(), R_InitMiscTexture(), R_InitPrograms(), r_mapTiles, r_numMapTiles, R_ReloadImages(), R_ResetArrayState(), R_SetDefaultState(), R_ShutdownFBObjects(), R_ShutdownPrograms(), R_UpdateDefaultMaterial(), mBspModel_s::surfaces, mBspModel_s::tangent_buffer, mBspModel_s::tangents, mBspModel_s::texcoord_buffer, mBspModel_s::texcoords, mBspModel_s::vertex_buffer, and mBspModel_s::verts.
Referenced by IN_Frame().
Take a screenshot of the frame buffer
[in] | x | |
[in] | y | |
[in] | width | |
[in] | height | |
[in] | filename | Force to use a filename. Else nullptr to autogen a filename |
[in] | ext | Force to use an image format (tga/png/jpg). Else nullptr to use value of r_screenshot_format |
Definition at line 101 of file r_misc.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), Com_sprintf(), f, FILE_WRITE, FS_CheckFile(), FS_Gamedir(), FS_OpenFile(), cvar_s::integer, MAX_OSPATH, Mem_Free, Mem_PoolAllocTypeN, 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 CL_BattlescapeRadarGenerate_f(), and R_ScreenShot_f().
Definition at line 203 of file r_misc.cpp.
References Cmd_Argc(), Cmd_Argv(), viddef_t::context, viddefContext_t::height, R_ScreenShot(), viddef, and viddefContext_t::width.
Perform translate, rotate and scale operations on the current matrix.
nullptr
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 220 of file r_misc.cpp.
Referenced by UI_DrawNode(), and UI_Transform().
|
static |
Definition at line 43 of file r_misc.cpp.
Referenced by R_InitMiscTexture().
|
static |
Definition at line 32 of file r_misc.cpp.
Referenced by R_InitMiscTexture().