halflife-photomode/common/ref_params.h

74 lines
1.5 KiB
C
Raw Normal View History

/***
2013-08-30 13:34:05 -07:00
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
#pragma once
2013-08-30 13:34:05 -07:00
typedef struct ref_params_s
{
// Output
float vieworg[3];
float viewangles[3];
2013-08-30 13:34:05 -07:00
float forward[3];
float right[3];
float up[3];
2013-08-30 13:34:05 -07:00
// Client frametime;
float frametime;
2013-08-30 13:34:05 -07:00
// Client time
float time;
2013-08-30 13:34:05 -07:00
// Misc
int intermission;
int paused;
int spectator;
int onground;
int waterlevel;
2013-08-30 13:34:05 -07:00
float simvel[3];
float simorg[3];
2013-08-30 13:34:05 -07:00
float viewheight[3];
float idealpitch;
2013-08-30 13:34:05 -07:00
float cl_viewangles[3];
2013-08-30 13:34:05 -07:00
int health;
float crosshairangle[3];
float viewsize;
2013-08-30 13:34:05 -07:00
float punchangle[3];
int maxclients;
int viewentity;
int playernum;
int max_entities;
int demoplayback;
int hardware;
2013-08-30 13:34:05 -07:00
int smoothing;
2013-08-30 13:34:05 -07:00
// Last issued usercmd
struct usercmd_s* cmd;
2013-08-30 13:34:05 -07:00
// Movevars
struct movevars_s* movevars;
2013-08-30 13:34:05 -07:00
int viewport[4]; // the viewport coordinates x ,y , width, height
2013-08-30 13:34:05 -07:00
int nextView; // the renderer calls ClientDLL_CalcRefdef() and Renderview
// so long in cycles until this value is 0 (multiple views)
int onlyClientDraw; // if !=0 nothing is drawn by the engine except clientDraw functions
2013-08-30 13:34:05 -07:00
} ref_params_t;