XGlobals Asset

From COD Engine Research
Jump to: navigation, search

The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold local global variables associated with screen effects and cinematics.

struct gump_info_t
{
  char *name;
  int size;
};
 
struct overlay_info_t
{
  char *name;
  int size;
};
 
struct XGlobals	// BO1 size = 0x28, BO2 size = 0x234
{
  const char *name;	// xGlobalsSingleton
  int xanimStreamBufferSize;
  int cinematicMaxWidth;
  int cinematicMaxHeight;
  int extracamResolution;
  vec4_t screenClearColor;
  int bigestGumpSize;
#ifdef BO2
  int gumpsCount;
  gump_info_t gumps[32];
  int bigestOverlaySize;
  int overlayCount;
  overlay_info_t overlays[32];
#endif
};