\hypertarget{console_8h}{
\section{libbroadway/include/console.h File Reference}
\label{console_8h}\index{libbroadway/include/console.h@{libbroadway/include/console.h}}
}
{\ttfamily \#include $<$types.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{console_8h_a82bc58c9dd8bec1bc05294d970917f27}{console\_\-initialize} (int vmode, void $\ast$fb, int x, int y, int w, int h, int fw, int fh, u8 font\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Initializes a console (and maps to printf). \item\end{DoxyCompactList}\item 
void \hyperlink{console_8h_ab150a665b5f31b99103c09a026facb6e}{console\_\-simple\_\-init} (int vmode, void $\ast$fb)
\begin{DoxyCompactList}\small\item\em Initializes the default console. \item\end{DoxyCompactList}\item 
void \hyperlink{console_8h_a4460f9e2f2b48fa4990c287381bbeb4a}{console\_\-set\_\-framebuffer} (void $\ast$fb)
\begin{DoxyCompactList}\small\item\em Changes the active framebuffer YUV pointer. \item\end{DoxyCompactList}\item 
void \hyperlink{console_8h_a1ad9ed65dfe41f6889f6de1e4f8d4d6a}{print\_\-str} (const char $\ast$str, size\_\-t len)
\begin{DoxyCompactList}\small\item\em Prints a string to the screen. \item\end{DoxyCompactList}\item 
int \hyperlink{console_8h_affec0665c5a62cdd7e0c2b9cb154ba73}{gfx\_\-printf} (const char $\ast$fmt,...) \_\-\_\-attribute\_\-\_\-((deprecated))
\begin{DoxyCompactList}\small\item\em Prints a formatted string to the screen. (DEPRECATED). \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions to manipulate a visual text console using functions from \hyperlink{video__low_8h}{video\_\-low.h} 

\subsection{Function Documentation}
\hypertarget{console_8h_a82bc58c9dd8bec1bc05294d970917f27}{
\index{console.h@{console.h}!console\_\-initialize@{console\_\-initialize}}
\index{console\_\-initialize@{console\_\-initialize}!console.h@{console.h}}
\subsubsection[{console\_\-initialize}]{\setlength{\rightskip}{0pt plus 5cm}void console\_\-initialize (int {\em vmode}, \/  void $\ast$ {\em fb}, \/  int {\em x}, \/  int {\em y}, \/  int {\em w}, \/  int {\em h}, \/  int {\em fw}, \/  int {\em fh}, \/  u8 {\em font}\mbox{[}$\,$\mbox{]})}}
\label{console_8h_a82bc58c9dd8bec1bc05294d970917f27}


Initializes a console (and maps to printf). 

Initializes a console using specified parameters. 
\begin{DoxyParams}{Parameters}
\item[{\em vmode}]the video mode being used. \item[{\em fb}]the YUV framebuffer to draw the console to. \item[{\em x}]the X offset of the framebuffer in pixels. \item[{\em y}]the Y offset of the framebuffer in pixels. \item[{\em w}]the width of the framebuffer in characters. \item[{\em h}]the height of the framebuffer in characters. \item[{\em fw}]the width of each font character. \item[{\em fh}]the height of each font character. \item[{\em font}]the font in a packed 1-\/bit format. \end{DoxyParams}
\hypertarget{console_8h_a4460f9e2f2b48fa4990c287381bbeb4a}{
\index{console.h@{console.h}!console\_\-set\_\-framebuffer@{console\_\-set\_\-framebuffer}}
\index{console\_\-set\_\-framebuffer@{console\_\-set\_\-framebuffer}!console.h@{console.h}}
\subsubsection[{console\_\-set\_\-framebuffer}]{\setlength{\rightskip}{0pt plus 5cm}void console\_\-set\_\-framebuffer (void $\ast$ {\em fb})}}
\label{console_8h_a4460f9e2f2b48fa4990c287381bbeb4a}


Changes the active framebuffer YUV pointer. 


\begin{DoxyParams}{Parameters}
\item[{\em fb}]the new YUV framebuffer to draw the console to. \end{DoxyParams}
\hypertarget{console_8h_ab150a665b5f31b99103c09a026facb6e}{
\index{console.h@{console.h}!console\_\-simple\_\-init@{console\_\-simple\_\-init}}
\index{console\_\-simple\_\-init@{console\_\-simple\_\-init}!console.h@{console.h}}
\subsubsection[{console\_\-simple\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void console\_\-simple\_\-init (int {\em vmode}, \/  void $\ast$ {\em fb})}}
\label{console_8h_ab150a665b5f31b99103c09a026facb6e}


Initializes the default console. 

Initializes a console using default values. 
\begin{DoxyParams}{Parameters}
\item[{\em vmode}]the video mode being used. \item[{\em fb}]the YUV framebuffer to draw the console to. \end{DoxyParams}
\hypertarget{console_8h_affec0665c5a62cdd7e0c2b9cb154ba73}{
\index{console.h@{console.h}!gfx\_\-printf@{gfx\_\-printf}}
\index{gfx\_\-printf@{gfx\_\-printf}!console.h@{console.h}}
\subsubsection[{gfx\_\-printf}]{\setlength{\rightskip}{0pt plus 5cm}int gfx\_\-printf (const char $\ast$ {\em fmt}, \/   {\em ...})}}
\label{console_8h_affec0665c5a62cdd7e0c2b9cb154ba73}


Prints a formatted string to the screen. (DEPRECATED). 

This function is deprecated. Please print directly to stdout instead. 
\begin{DoxyParams}{Parameters}
\item[{\em fmt}]the formatted string. \item[{\em ...}]the formatting data. \end{DoxyParams}
\hypertarget{console_8h_a1ad9ed65dfe41f6889f6de1e4f8d4d6a}{
\index{console.h@{console.h}!print\_\-str@{print\_\-str}}
\index{print\_\-str@{print\_\-str}!console.h@{console.h}}
\subsubsection[{print\_\-str}]{\setlength{\rightskip}{0pt plus 5cm}void print\_\-str (const char $\ast$ {\em str}, \/  size\_\-t {\em len})}}
\label{console_8h_a1ad9ed65dfe41f6889f6de1e4f8d4d6a}


Prints a string to the screen. 


\begin{DoxyParams}{Parameters}
\item[{\em str}]the string. \item[{\em len}]how many characters the string contains. \end{DoxyParams}
