\hypertarget{v__palette_8h}{
\section{common/v\_\-palette.h File Reference}
\label{de/d24/v__palette_8h}\index{common/v\_\-palette.h@{common/v\_\-palette.h}}
}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structpalette__s}{palette\_\-s}
\item 
struct \hyperlink{structdyncolormap__s}{dyncolormap\_\-s}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{structpalette__s}{palette\_\-s} \hyperlink{v__palette_8h_aa1d4f91fc60aaebd881e184aaf103fd4}{palette\_\-t}
\item 
typedef struct \hyperlink{structdyncolormap__s}{dyncolormap\_\-s} \hyperlink{v__palette_8h_a41509f5821ad94566131199bd7f50a2c}{dyncolormap\_\-t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_ae59c8f7389f2de2407a37cab44022326}{InitPalettes} (const char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name})
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_abac5e826f826592671cd88f5435de5fd}{GetDefaultPalette} (void)
\item 
void \hyperlink{v__palette_8h_adbb88acc10dbfe4d412e5fa9627b67c1}{V\_\-RestoreScreenPalette} (void)
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_a0d2225efe8ab8587848c3473cc2f7088}{MakePalette} (\hyperlink{doomtype_8h_a0c8186d9b9b7880309c27230bbb5e69d}{byte} $\ast$colors, char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name}, unsigned flags)
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_aceedd616afc83e4432151c77e41e8c22}{LoadPalette} (char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name}, unsigned flags)
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_a864926ad966683007fe736ddec1c6eed}{LoadAttachedPalette} (char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name}, int type, unsigned flags)
\item 
void \hyperlink{v__palette_8h_abaea94ff73fdea74c0f1e74b341aa55e}{FreePalette} (\hyperlink{structpalette__s}{palette\_\-t} $\ast$palette)
\item 
\hyperlink{structpalette__s}{palette\_\-t} $\ast$ \hyperlink{v__palette_8h_af41b548d83d0bcd9db0c6434ecefb350}{FindPalette} (char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name}, unsigned flags)
\item 
void \hyperlink{v__palette_8h_a5cab7452d74f5bf4b7d1862d61d339f7}{RefreshPalette} (\hyperlink{structpalette__s}{palette\_\-t} $\ast$pal)
\item 
void \hyperlink{v__palette_8h_a6fd8bf6a9c805b429c8cdc89b6b5b480}{RefreshPalettes} (void)
\item 
void \hyperlink{v__palette_8h_a3b115d0aedd9934c59d979e2b04386ac}{GammaAdjustPalette} (\hyperlink{structpalette__s}{palette\_\-t} $\ast$pal)
\item 
void \hyperlink{v__palette_8h_a98b130b228e905d7c47e311233a79d16}{GammaAdjustPalettes} (void)
\item 
void \hyperlink{v__palette_8h_ac7e094020726a4f15a6f0d6a165b612d}{V\_\-SetBlend} (int blendr, int blendg, int blendb, int blenda)
\item 
void \hyperlink{v__palette_8h_a2ccd6cc3af770df2448669c12ac6e281}{V\_\-ForceBlend} (int blendr, int blendg, int blendb, int blenda)
\item 
void \hyperlink{v__palette_8h_aa034511d56c5266d8c97482addfdd523}{RGBtoHSV} (float r, float \hyperlink{client_2src_2v__palette_8cpp_a8cf17d727651616de6f2b79ef32170cd}{g}, float \hyperlink{client_2src_2v__palette_8cpp_a2c8b5e93edf6061940ca34185468fa03}{b}, float $\ast$\hyperlink{client_2src_2v__palette_8cpp_ae3b6a3a7fb933450f0e102a4ea5ff381}{h}, float $\ast$\hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s}, float $\ast$v)
\item 
void \hyperlink{v__palette_8h_a72acea4e7933697d088d0e1ddd186e51}{HSVtoRGB} (float $\ast$r, float $\ast$\hyperlink{client_2src_2v__palette_8cpp_a8cf17d727651616de6f2b79ef32170cd}{g}, float $\ast$\hyperlink{client_2src_2v__palette_8cpp_a2c8b5e93edf6061940ca34185468fa03}{b}, float \hyperlink{client_2src_2v__palette_8cpp_ae3b6a3a7fb933450f0e102a4ea5ff381}{h}, float \hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s}, float v)
\item 
\hyperlink{structdyncolormap__s}{dyncolormap\_\-t} $\ast$ \hyperlink{v__palette_8h_a13ee40673b09b753d967b667161ea373}{GetSpecialLights} (int lr, int lg, int lb, int fr, int fg, int fb)
\end{DoxyCompactItemize}


\subsection{Typedef Documentation}
\hypertarget{v__palette_8h_a41509f5821ad94566131199bd7f50a2c}{
\index{v\_\-palette.h@{v\_\-palette.h}!dyncolormap\_\-t@{dyncolormap\_\-t}}
\index{dyncolormap\_\-t@{dyncolormap\_\-t}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{dyncolormap\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf dyncolormap\_\-s} {\bf dyncolormap\_\-t}}}
\label{de/d24/v__palette_8h_a41509f5821ad94566131199bd7f50a2c}
\hypertarget{v__palette_8h_aa1d4f91fc60aaebd881e184aaf103fd4}{
\index{v\_\-palette.h@{v\_\-palette.h}!palette\_\-t@{palette\_\-t}}
\index{palette\_\-t@{palette\_\-t}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{palette\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf palette\_\-s} {\bf palette\_\-t}}}
\label{de/d24/v__palette_8h_aa1d4f91fc60aaebd881e184aaf103fd4}


\subsection{Function Documentation}
\hypertarget{v__palette_8h_af41b548d83d0bcd9db0c6434ecefb350}{
\index{v\_\-palette.h@{v\_\-palette.h}!FindPalette@{FindPalette}}
\index{FindPalette@{FindPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{FindPalette}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ FindPalette (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{name, }
\item[{unsigned}]{flags}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_af41b548d83d0bcd9db0c6434ecefb350}
\hypertarget{v__palette_8h_abaea94ff73fdea74c0f1e74b341aa55e}{
\index{v\_\-palette.h@{v\_\-palette.h}!FreePalette@{FreePalette}}
\index{FreePalette@{FreePalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{FreePalette}]{\setlength{\rightskip}{0pt plus 5cm}void FreePalette (
\begin{DoxyParamCaption}
\item[{{\bf palette\_\-t} $\ast$}]{palette}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_abaea94ff73fdea74c0f1e74b341aa55e}
\hypertarget{v__palette_8h_a3b115d0aedd9934c59d979e2b04386ac}{
\index{v\_\-palette.h@{v\_\-palette.h}!GammaAdjustPalette@{GammaAdjustPalette}}
\index{GammaAdjustPalette@{GammaAdjustPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{GammaAdjustPalette}]{\setlength{\rightskip}{0pt plus 5cm}void GammaAdjustPalette (
\begin{DoxyParamCaption}
\item[{{\bf palette\_\-t} $\ast$}]{pal}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a3b115d0aedd9934c59d979e2b04386ac}
\hypertarget{v__palette_8h_a98b130b228e905d7c47e311233a79d16}{
\index{v\_\-palette.h@{v\_\-palette.h}!GammaAdjustPalettes@{GammaAdjustPalettes}}
\index{GammaAdjustPalettes@{GammaAdjustPalettes}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{GammaAdjustPalettes}]{\setlength{\rightskip}{0pt plus 5cm}void GammaAdjustPalettes (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a98b130b228e905d7c47e311233a79d16}
\hypertarget{v__palette_8h_abac5e826f826592671cd88f5435de5fd}{
\index{v\_\-palette.h@{v\_\-palette.h}!GetDefaultPalette@{GetDefaultPalette}}
\index{GetDefaultPalette@{GetDefaultPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{GetDefaultPalette}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ GetDefaultPalette (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_abac5e826f826592671cd88f5435de5fd}
\hypertarget{v__palette_8h_a13ee40673b09b753d967b667161ea373}{
\index{v\_\-palette.h@{v\_\-palette.h}!GetSpecialLights@{GetSpecialLights}}
\index{GetSpecialLights@{GetSpecialLights}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{GetSpecialLights}]{\setlength{\rightskip}{0pt plus 5cm}{\bf dyncolormap\_\-t}$\ast$ GetSpecialLights (
\begin{DoxyParamCaption}
\item[{int}]{lr, }
\item[{int}]{lg, }
\item[{int}]{lb, }
\item[{int}]{fr, }
\item[{int}]{fg, }
\item[{int}]{fb}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a13ee40673b09b753d967b667161ea373}
\hypertarget{v__palette_8h_a72acea4e7933697d088d0e1ddd186e51}{
\index{v\_\-palette.h@{v\_\-palette.h}!HSVtoRGB@{HSVtoRGB}}
\index{HSVtoRGB@{HSVtoRGB}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{HSVtoRGB}]{\setlength{\rightskip}{0pt plus 5cm}void HSVtoRGB (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{r, }
\item[{float $\ast$}]{g, }
\item[{float $\ast$}]{b, }
\item[{float}]{h, }
\item[{float}]{s, }
\item[{float}]{v}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a72acea4e7933697d088d0e1ddd186e51}
\hypertarget{v__palette_8h_ae59c8f7389f2de2407a37cab44022326}{
\index{v\_\-palette.h@{v\_\-palette.h}!InitPalettes@{InitPalettes}}
\index{InitPalettes@{InitPalettes}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{InitPalettes}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ InitPalettes (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_ae59c8f7389f2de2407a37cab44022326}
\hypertarget{v__palette_8h_a864926ad966683007fe736ddec1c6eed}{
\index{v\_\-palette.h@{v\_\-palette.h}!LoadAttachedPalette@{LoadAttachedPalette}}
\index{LoadAttachedPalette@{LoadAttachedPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{LoadAttachedPalette}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ LoadAttachedPalette (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{name, }
\item[{int}]{type, }
\item[{unsigned}]{flags}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a864926ad966683007fe736ddec1c6eed}
\hypertarget{v__palette_8h_aceedd616afc83e4432151c77e41e8c22}{
\index{v\_\-palette.h@{v\_\-palette.h}!LoadPalette@{LoadPalette}}
\index{LoadPalette@{LoadPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{LoadPalette}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ LoadPalette (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{name, }
\item[{unsigned}]{flags}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_aceedd616afc83e4432151c77e41e8c22}
\hypertarget{v__palette_8h_a0d2225efe8ab8587848c3473cc2f7088}{
\index{v\_\-palette.h@{v\_\-palette.h}!MakePalette@{MakePalette}}
\index{MakePalette@{MakePalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{MakePalette}]{\setlength{\rightskip}{0pt plus 5cm}{\bf palette\_\-t}$\ast$ MakePalette (
\begin{DoxyParamCaption}
\item[{{\bf byte} $\ast$}]{colors, }
\item[{char $\ast$}]{name, }
\item[{unsigned}]{flags}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a0d2225efe8ab8587848c3473cc2f7088}
\hypertarget{v__palette_8h_a5cab7452d74f5bf4b7d1862d61d339f7}{
\index{v\_\-palette.h@{v\_\-palette.h}!RefreshPalette@{RefreshPalette}}
\index{RefreshPalette@{RefreshPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{RefreshPalette}]{\setlength{\rightskip}{0pt plus 5cm}void RefreshPalette (
\begin{DoxyParamCaption}
\item[{{\bf palette\_\-t} $\ast$}]{pal}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a5cab7452d74f5bf4b7d1862d61d339f7}
\hypertarget{v__palette_8h_a6fd8bf6a9c805b429c8cdc89b6b5b480}{
\index{v\_\-palette.h@{v\_\-palette.h}!RefreshPalettes@{RefreshPalettes}}
\index{RefreshPalettes@{RefreshPalettes}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{RefreshPalettes}]{\setlength{\rightskip}{0pt plus 5cm}void RefreshPalettes (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a6fd8bf6a9c805b429c8cdc89b6b5b480}
\hypertarget{v__palette_8h_aa034511d56c5266d8c97482addfdd523}{
\index{v\_\-palette.h@{v\_\-palette.h}!RGBtoHSV@{RGBtoHSV}}
\index{RGBtoHSV@{RGBtoHSV}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{RGBtoHSV}]{\setlength{\rightskip}{0pt plus 5cm}void RGBtoHSV (
\begin{DoxyParamCaption}
\item[{float}]{r, }
\item[{float}]{g, }
\item[{float}]{b, }
\item[{float $\ast$}]{h, }
\item[{float $\ast$}]{s, }
\item[{float $\ast$}]{v}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_aa034511d56c5266d8c97482addfdd523}
\hypertarget{v__palette_8h_a2ccd6cc3af770df2448669c12ac6e281}{
\index{v\_\-palette.h@{v\_\-palette.h}!V\_\-ForceBlend@{V\_\-ForceBlend}}
\index{V\_\-ForceBlend@{V\_\-ForceBlend}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{V\_\-ForceBlend}]{\setlength{\rightskip}{0pt plus 5cm}void V\_\-ForceBlend (
\begin{DoxyParamCaption}
\item[{int}]{blendr, }
\item[{int}]{blendg, }
\item[{int}]{blendb, }
\item[{int}]{blenda}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_a2ccd6cc3af770df2448669c12ac6e281}
\hypertarget{v__palette_8h_adbb88acc10dbfe4d412e5fa9627b67c1}{
\index{v\_\-palette.h@{v\_\-palette.h}!V\_\-RestoreScreenPalette@{V\_\-RestoreScreenPalette}}
\index{V\_\-RestoreScreenPalette@{V\_\-RestoreScreenPalette}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{V\_\-RestoreScreenPalette}]{\setlength{\rightskip}{0pt plus 5cm}void V\_\-RestoreScreenPalette (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_adbb88acc10dbfe4d412e5fa9627b67c1}
\hypertarget{v__palette_8h_ac7e094020726a4f15a6f0d6a165b612d}{
\index{v\_\-palette.h@{v\_\-palette.h}!V\_\-SetBlend@{V\_\-SetBlend}}
\index{V\_\-SetBlend@{V\_\-SetBlend}!v_palette.h@{v\_\-palette.h}}
\subsubsection[{V\_\-SetBlend}]{\setlength{\rightskip}{0pt plus 5cm}void V\_\-SetBlend (
\begin{DoxyParamCaption}
\item[{int}]{blendr, }
\item[{int}]{blendg, }
\item[{int}]{blendb, }
\item[{int}]{blenda}
\end{DoxyParamCaption}
)}}
\label{de/d24/v__palette_8h_ac7e094020726a4f15a6f0d6a165b612d}
