Files
Sokoban/rapport/latex/display_8c.tex
2025-01-09 13:10:45 +01:00

66 lines
3.8 KiB
TeX

\doxysection{Référence du fichier display.\+c}
\label{display_8c}\index{display.c@{display.c}}
{\ttfamily \#include "{}../include/display.\+h"{}}\newline
{\ttfamily \#include "{}../include/function.\+h"{}}\newline
{\ttfamily \#include $<$SDL2/\+SDL.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+image.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+mutex.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+mixer.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+rect.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+render.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+surface.\+h$>$}\newline
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+ttf.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
Graphe des dépendances par inclusion de display.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{display_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Fonctions}
\begin{DoxyCompactItemize}
\item
void \textbf{ screen\+Display} (char $\ast$$\ast$tab, int x, int y)
\begin{DoxyCompactList}\small\item\em La fonction permet d\textquotesingle{}afficher simplement le plateau de jeu dans le terminal. \end{DoxyCompactList}\item
void \textbf{ screen\+Display\+Game\+SDL} (char $\ast$$\ast$tab, \textbf{ vect} dim\+\_\+tab, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ vect} $\ast$player\+\_\+pos, int fov, \textbf{ vect} direction)
\begin{DoxyCompactList}\small\item\em La fonction affiche a l\textquotesingle{}aide de SDL la zone de jeu. \end{DoxyCompactList}\item
int \textbf{ get\+Max\+Size} (\textbf{ dis} display\+\_\+user)
\begin{DoxyCompactList}\small\item\em Taille de l\textquotesingle{}ecrant carre en fonction de l\textquotesingle{}ecrant du joueur avec une marge. \end{DoxyCompactList}\item
void \textbf{ init\+SDL} (\textbf{ dis} $\ast$display\+\_\+user)
\begin{DoxyCompactList}\small\item\em Initialise SDL. \end{DoxyCompactList}\item
void \textbf{ display\+Image} (SDL\+\_\+\+Renderer $\ast$renderer, SDL\+\_\+\+Texture $\ast$texture, \textbf{ vect} pos, \textbf{ vect} size)
\begin{DoxyCompactList}\small\item\em Cette fonction affiche l\textquotesingle{}image dans la fenetre de l\textquotesingle{}utilisateur. \end{DoxyCompactList}\item
void \textbf{ display\+Text\+SDL} (\textbf{ dis} $\ast$display\+\_\+user, char $\ast$text, \textbf{ vect} coor, \textbf{ vect} size, int font\+\_\+size)
\begin{DoxyCompactList}\small\item\em Cette fonction affiche du texte dans la fenetre de l\textquotesingle{}utilisateur. \end{DoxyCompactList}\item
void \textbf{ background\+Display} (\textbf{ dis} $\ast$display\+\_\+user, int bg)
\begin{DoxyCompactList}\small\item\em Afficher l\textquotesingle{}arriere plan. \end{DoxyCompactList}\item
void \textbf{ play\+Audio} (int sfx)
\begin{DoxyCompactList}\small\item\em Cette fonction permet de joueur des effet sonor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection{Description détaillée}
Fichier contient tout les fonctions pour l\textquotesingle{}affichage.
\doxysubsection{Documentation des fonctions}
\index{display.c@{display.c}!backgroundDisplay@{backgroundDisplay}}
\index{backgroundDisplay@{backgroundDisplay}!display.c@{display.c}}
\doxysubsubsection{backgroundDisplay()}
{\footnotesize\ttfamily \label{display_8c_adc264e6abc61064a8222b53822850cdd}
void background\+Display (\begin{DoxyParamCaption}\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{int}]{bg}{}\end{DoxyParamCaption})}
Afficher l\textquotesingle{}arriere plan.
\begin{DoxyParams}{Paramètres}
{\em display\+\_\+user} & Tout les information du display de l\textquotesingle{}utilisateur utile. \\
\hline
{\em bg} & quel back ground afficher. \\
\hline
\end{DoxyParams}
Voici le graphe d\textquotesingle{}appel pour cette fonction \+: