// SONIC ROBO BLAST 2 //----------------------------------------------------------------------------- // Copyright (C) 1993-1996 by id Software, Inc. // Copyright (C) 1998-2000 by DooM Legacy Team. // Copyright (C) 1999-2018 by Sonic Team Junior. // // This program is free software distributed under the // terms of the GNU General Public License, version 2. // See the 'LICENSE' file for more details. //----------------------------------------------------------------------------- /// \file v_video.h /// \brief Gamma correction LUT #ifndef __V_VIDEO__ #define __V_VIDEO__ #include "doomdef.h" #include "doomtype.h" #include "r_defs.h" // // VIDEO // // Screen 0 is the screen updated by I_Update screen. // Screen 1 is an extra buffer. extern UINT8 *screens[5]; extern const UINT8 gammatable[5][256]; extern consvar_t cv_ticrate, cv_usegamma, cv_allcaps, cv_constextsize; // Allocates buffer screens, call before R_Init. void V_Init(void); // Taken from my videos-in-SRB2 project // Generates a color look-up table // which has up to 64 colors at each channel #define COLORBITS 6 #define SHIFTCOLORBITS (8-COLORBITS) #define CLUTSIZE (1<