\hypertarget{graphics__main_8cpp}{
\section{D:/Basile/Visual\-Cpp\-Projects/hydro\-MEX3/hydro\-MEX3/o\-GL\_\-graphics/graphics\_\-main.cpp File Reference}
\label{graphics__main_8cpp}\index{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/oGL_graphics/graphics_main.cpp@{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/oGL\_\-graphics/graphics\_\-main.cpp}}
}
{\tt \#include \char`\"{}graphics\_\-relative.h\char`\"{}}\par
{\tt \#include \char`\"{}../hydro\_\-source/data\-Fillings.h\char`\"{}}\par


Include dependency graph for graphics\_\-main.cpp:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=316pt]{graphics__main_8cpp__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
GLvoid \hyperlink{graphics__main_8cpp_a90fba1d494d9474c883fbb29fe0ed53}{Build\-Font} (GLvoid)
\begin{CompactList}\small\item\em Create OSD font. \item\end{CompactList}\item 
GLvoid \hyperlink{graphics__main_8cpp_29fd6b15a498074df9565150f5212475}{Kill\-Font} (GLvoid)
\begin{CompactList}\small\item\em Delete font list. \item\end{CompactList}\item 
GLvoid \hyperlink{graphics__main_8cpp_129151512b91e0ec031d99a8d0a4551b}{gl\-Print} (const char $\ast$fmt,...)
\begin{CompactList}\small\item\em Custom GL \char`\"{}Print\char`\"{} Routine. \item\end{CompactList}\item 
GLvoid \hyperlink{graphics__main_8cpp_87bb84d489df61ed7b0c002584fd984f}{Re\-Size\-GLScene} (GLsizei width, GLsizei height)
\item 
int \hyperlink{graphics__main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}{Init\-GL} (GLvoid)
\begin{CompactList}\small\item\em Initialize Open\-GL stuff. \item\end{CompactList}\item 
int \hyperlink{graphics__main_8cpp_c1bae98baa191778a9ae0375cd06b5b6}{Draw\-GLScene} (\hyperlink{structdatas}{datas} $\ast$d)
\begin{CompactList}\small\item\em Draws the scene (open\-GL). \item\end{CompactList}\item 
GLvoid \hyperlink{graphics__main_8cpp_f33a2273205c1491be5916d3091658e0}{Kill\-GLWindow} (GLvoid)
\item 
BOOL \hyperlink{graphics__main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}{Create\-GLWindow} (char $\ast$title, int width, int height, int bits, bool fullscreenflag)
\begin{CompactList}\small\item\em Sub-function for window closing stuffs. \item\end{CompactList}\item 
LRESULT CALLBACK \hyperlink{graphics__main_8cpp_e749e989b362e19783c7af4a2bf46c95}{Wnd\-Proc} (HWND \hyperlink{graphics__main_8cpp_fec4341c234519e145bac6f0e5edaa51}{h\-Wnd}, UINT u\-Msg, WPARAM w\-Param, LPARAM l\-Param)
\begin{CompactList}\small\item\em Callback and keyboard management. \item\end{CompactList}\item 
int \hyperlink{graphics__main_8cpp_3bb9e166d32f46d151241c84d540f7d5}{draw\_\-graphics\_\-init} (\hyperlink{structdatas}{datas} $\ast$d)
\begin{CompactList}\small\item\em General graphic stuff initialisation. \item\end{CompactList}\item 
bool \hyperlink{graphics__main_8cpp_fee90b4ec4217feed41c1a8086ef5f52}{draw\_\-graphics} (\hyperlink{structdatas}{datas} $\ast$d)
\begin{CompactList}\small\item\em General graphic (scene) display and keyboard reading. \item\end{CompactList}\item 
int \hyperlink{graphics__main_8cpp_7676cd9244f6e90a0c1a15d51b05d964}{draw\_\-graphics\_\-kill} ()
\begin{CompactList}\small\item\em General graphic (scene/window) closing. \item\end{CompactList}\item 
void \hyperlink{graphics__main_8cpp_dac6dff8e0b477523ef130bc4603df35}{pass\_\-joy\_\-parameters} (\hyperlink{structjoy__parameters}{joy\_\-parameters} $\ast$j\-P)
\begin{CompactList}\small\item\em Copy joystick parameters from MATLAB struct. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
HGLRC \hyperlink{graphics__main_8cpp_874963259c7cd998acfe6e187fbdb4c1}{h\-RC} = NULL
\item 
HDC \hyperlink{graphics__main_8cpp_78f6446a0e13adc7b7b2f239112ac785}{h\-DC} = NULL
\item 
HWND \hyperlink{graphics__main_8cpp_fec4341c234519e145bac6f0e5edaa51}{h\-Wnd} = NULL
\item 
HINSTANCE \hyperlink{graphics__main_8cpp_74029128723095e7bf00a71d46af8b24}{h\-Instance}
\item 
GLuint \hyperlink{graphics__main_8cpp_e4cbdc51d2d504c24c15b22cf9861e8d}{base}
\item 
bool \hyperlink{graphics__main_8cpp_23ca8db2cebbfb94538122c439146f1a}{keys} \mbox{[}256\mbox{]}
\item 
bool \hyperlink{graphics__main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}{active} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}{fullscreen} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_703a7eb6bd6dc795fc14729152c4f591}{light}
\item 
GLfloat \hyperlink{graphics__main_8cpp_3d44eec049025e8ae1fc5e333a3f09e6}{view\-Angle1} = 0.0
\begin{CompactList}\small\item\em horizontal camera view angle \item\end{CompactList}\item 
GLfloat \hyperlink{graphics__main_8cpp_21fb3402d87e98dd35aef888f7085b8e}{view\-Angle2} = 0.3
\begin{CompactList}\small\item\em vertical camera view angle \item\end{CompactList}\item 
GLfloat \hyperlink{graphics__main_8cpp_d20d39cbfd3b978182e632302a1c05d2}{dview\-Angle} = 0.01
\item 
GLfloat \hyperlink{graphics__main_8cpp_0af8a5f226a60377a9e0aa9325049fae}{view\-Dist} = 50.0
\begin{CompactList}\small\item\em camera view distance \item\end{CompactList}\item 
GLfloat \hyperlink{graphics__main_8cpp_753d2e6d1d61660a4f113e7b18926294}{dview\-Dist} = 0.3
\item 
GLfloat \hyperlink{graphics__main_8cpp_933b98c8ca09e30db7b47d4d8575eaab}{Light\-Ambient} \mbox{[}$\,$\mbox{]} = \{ 0.35f, 0.35f, 0.5f, 1.0f \}
\item 
GLfloat \hyperlink{graphics__main_8cpp_71beb2ce6c0f1281cafe8529a93bebb1}{Light\-Diffuse} \mbox{[}$\,$\mbox{]} = \{ 0.6f, 0.6f, 0.6f, 1.0f \}
\item 
GLfloat \hyperlink{graphics__main_8cpp_abd772c6114f6182a5bd105869052b24}{Light\-Position} \mbox{[}$\,$\mbox{]} = \{ -10.0f, 20.0f, 150.0f, 0.0f \}
\item 
MSG \hyperlink{graphics__main_8cpp_c13bc459ae800248eabb652b9f6dc8ed}{msg}
\item 
BOOL \hyperlink{graphics__main_8cpp_7a770b6d2804c86ef834ee04c4ab5ae3}{done} = FALSE
\item 
int \hyperlink{graphics__main_8cpp_e2a7b037f55685adc5cbd9b4d2c0834d}{joystick\_\-exist}
\item 
bool \hyperlink{graphics__main_8cpp_5a3c2aa9a76204fb5a88ad3feaa9a0f4}{do\-X} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_400d40cdb5ad93ffc84da0cc86cb351c}{do\-Y} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_8ffdb1e1aa5b4f8c1f41601c9c69529a}{do\-Z} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_9b61dde9e1f583fd397cc8d18889eb20}{do\-R} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_619c5da21da7651fa5df96591806b5f6}{allow\-Change\-Do\-X} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_e7d744705ee3fa8f74a1b204fedfb683}{allow\-Change\-Do\-Y} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_6be591c9847168c40a6017c0dcca3a73}{allow\-Change\-Do\-Z} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_6410443d527a972720016486d2d8a9d1}{allow\-Change\-Do\-R} = TRUE
\item 
float \hyperlink{graphics__main_8cpp_b1761c91e3594dec827fe60e992d2e1a}{dir\-X} = 1.0f
\item 
float \hyperlink{graphics__main_8cpp_72324d3d2f391a353c57aaa03b148d8d}{dir\-Y} = 1.0f
\item 
float \hyperlink{graphics__main_8cpp_6fc68ee789a22aa3976562aef3e39780}{dir\-Z} = 1.0f
\item 
float \hyperlink{graphics__main_8cpp_019c032406906b366853fee46fe14ee8}{dir\-R} = 1.0f
\item 
bool \hyperlink{graphics__main_8cpp_ba013bd52b86bf97243d3f15c2272228}{allow\-Change\-Dir\-X} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_5f64b0b8566900dc7255ac07671977a8}{allow\-Change\-Dir\-Y} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_ac5b1b6ed6e590aadd295178fec5f28f}{allow\-Change\-Dir\-Z} = TRUE
\item 
bool \hyperlink{graphics__main_8cpp_ee5706e2c3a415c24871c64615a44ea4}{allow\-Change\-Dir\-R} = TRUE
\item 
float \hyperlink{graphics__main_8cpp_04983559ea5df0e1fa261d3ac8017f84}{time\_\-before} = 0.0
\item 
float \hyperlink{graphics__main_8cpp_5208b603a8c96a030fe1ce3fc1399fe2}{time\_\-elapsed}
\item 
float \hyperlink{graphics__main_8cpp_4f50e96f11c68d45dc109185efe011ad}{fps} = 0.0
\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Author:]\href{mailto:basile.graf@epfl.ch}{\tt basile.graf@epfl.ch}\end{Desc}
This is the main graphic code. Window management, (main) Open\-GL drawing, ... 

Definition in file \hyperlink{graphics__main_8cpp-source}{graphics\_\-main.cpp}.

\subsection{Function Documentation}
\hypertarget{graphics__main_8cpp_a90fba1d494d9474c883fbb29fe0ed53}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!BuildFont@{BuildFont}}
\index{BuildFont@{BuildFont}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[BuildFont]{\setlength{\rightskip}{0pt plus 5cm}GLvoid Build\-Font (GLvoid)}}
\label{graphics__main_8cpp_a90fba1d494d9474c883fbb29fe0ed53}


Create OSD font. 

Creates font for OSD (On Screen Display), i.e. displaying various informations on the screen... (Windows dependent) 

Definition at line 74 of file graphics\_\-main.cpp.

References base, and h\-DC.

Referenced by Init\-GL().\hypertarget{graphics__main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!CreateGLWindow@{CreateGLWindow}}
\index{CreateGLWindow@{CreateGLWindow}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[CreateGLWindow]{\setlength{\rightskip}{0pt plus 5cm}BOOL Create\-GLWindow (char $\ast$ {\em title}, int {\em width}, int {\em height}, int {\em bits}, bool {\em fullscreenflag})}}
\label{graphics__main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}


Sub-function for window closing stuffs. 



Definition at line 331 of file graphics\_\-main.cpp.

References fullscreen, h\-DC, h\-Instance, h\-RC, h\-Wnd, Init\-GL(), Kill\-GLWindow(), Re\-Size\-GLScene(), and Wnd\-Proc().

Referenced by draw\_\-graphics(), and draw\_\-graphics\_\-init().\hypertarget{graphics__main_8cpp_fee90b4ec4217feed41c1a8086ef5f52}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!draw_graphics@{draw\_\-graphics}}
\index{draw_graphics@{draw\_\-graphics}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[draw\_\-graphics]{\setlength{\rightskip}{0pt plus 5cm}bool draw\_\-graphics (\hyperlink{structdatas}{datas} $\ast$ {\em d})}}
\label{graphics__main_8cpp_fee90b4ec4217feed41c1a8086ef5f52}


General graphic (scene) display and keyboard reading. 

A call to this function refreshes the entire scene. This function is to be used in the main computing loop. \par
 It also reads the keyboard for the different keyboard controls... \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if all went OK \end{Desc}


Definition at line 599 of file graphics\_\-main.cpp.

References active, allow\-Change\-Dir\-R, allow\-Change\-Dir\-X, allow\-Change\-Dir\-Y, allow\-Change\-Dir\-Z, allow\-Change\-Do\-R, allow\-Change\-Do\-X, allow\-Change\-Do\-Y, allow\-Change\-Do\-Z, datas::angle\_\-girouette, Create\-GLWindow(), dir\-R, dir\-X, dir\-Y, dir\-Z, done, do\-R, do\-X, do\-Y, do\-Z, Draw\-GLScene(), dview\-Angle, dview\-Dist, fullscreen, h\-DC, datas::Hslider\_\-x, keys, Kill\-GLWindow(), datas::max\_\-abs\_\-angle\_\-baume, msg, datas::t, datas::tan\-Angle\_\-sail, datas::target\_\-x, datas::target\_\-y, time\_\-before, time\_\-elapsed, view\-Angle1, view\-Angle2, view\-Dist, datas::Vslider\_\-x, datas::Wave\_\-amp, datas::Wave\_\-amp0, datas::Wave\_\-amp1, datas::Wave\_\-amp2, datas::Wind, datas::Wind\_\-angle, datas::Wind\_\-x, and datas::Wind\_\-y.

Referenced by mex\-Function().\hypertarget{graphics__main_8cpp_3bb9e166d32f46d151241c84d540f7d5}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!draw_graphics_init@{draw\_\-graphics\_\-init}}
\index{draw_graphics_init@{draw\_\-graphics\_\-init}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[draw\_\-graphics\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int draw\_\-graphics\_\-init (\hyperlink{structdatas}{datas} $\ast$ {\em d})}}
\label{graphics__main_8cpp_3bb9e166d32f46d151241c84d540f7d5}


General graphic stuff initialisation. 

Ask for full-screen or not, creates window and try to initialize the joystick. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$d}]: pointer to the datas data-structure \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]1 if window created sucessfully \end{Desc}


Definition at line 568 of file graphics\_\-main.cpp.

References Create\-GLWindow(), fullscreen, joystick\_\-exist, and joystick\_\-init().

Referenced by mex\-Function().\hypertarget{graphics__main_8cpp_7676cd9244f6e90a0c1a15d51b05d964}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!draw_graphics_kill@{draw\_\-graphics\_\-kill}}
\index{draw_graphics_kill@{draw\_\-graphics\_\-kill}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[draw\_\-graphics\_\-kill]{\setlength{\rightskip}{0pt plus 5cm}int draw\_\-graphics\_\-kill ()}}
\label{graphics__main_8cpp_7676cd9244f6e90a0c1a15d51b05d964}


General graphic (scene/window) closing. 

Closes window and joystick \begin{Desc}
\item[Returns:]msg.w\-Param (MS Windows !) \end{Desc}


Definition at line 774 of file graphics\_\-main.cpp.

References done, joystick\_\-close(), Kill\-GLWindow(), and msg.

Referenced by mex\-Function().\hypertarget{graphics__main_8cpp_c1bae98baa191778a9ae0375cd06b5b6}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!DrawGLScene@{DrawGLScene}}
\index{DrawGLScene@{DrawGLScene}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[DrawGLScene]{\setlength{\rightskip}{0pt plus 5cm}int Draw\-GLScene (\hyperlink{structdatas}{datas} $\ast$ {\em d})}}
\label{graphics__main_8cpp_c1bae98baa191778a9ae0375cd06b5b6}


Draws the scene (open\-GL). 

Draws the scene by appling all necessary geometrical (spacial) transformations and by calling the different element drawing functions (for the boat, the sea, the instruments...). This is not the highest function for drwaing the current scene, see \hyperlink{graphics__main_8cpp_fee90b4ec4217feed41c1a8086ef5f52}{draw\_\-graphics()}. 

Definition at line 189 of file graphics\_\-main.cpp.

References angles\_\-update(), Boat\_\-draw(), dir\-R, dir\-X, dir\-Y, dir\-Z, do\-R, do\-X, do\-Y, do\-Z, Draw\_\-sea(), datas::dx, datas::dy, f(), fps, Girouette\_\-draw(), gl\-Print(), HSlider\_\-draw(), datas::Hslider\_\-x, joystick\_\-exist, joystick\_\-get\-XYZR(), Light\-Position, datas::phi, datas::psi, Relative\-Wind\_\-draw(), Sail\_\-create\_\-and\_\-draw(), Target\_\-draw(), datas::target\_\-x, datas::target\_\-y, datas::theta, time\_\-elapsed, view\-Angle1, view\-Angle2, view\-Dist, VSlider\_\-draw(), datas::Vslider\_\-x, wave\_\-z\_\-compute(), datas::Wind, datas::Wind\_\-x, datas::Wind\_\-y, datas::x, datas::y, and datas::z.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_129151512b91e0ec031d99a8d0a4551b}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!glPrint@{glPrint}}
\index{glPrint@{glPrint}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[glPrint]{\setlength{\rightskip}{0pt plus 5cm}GLvoid gl\-Print (const char $\ast$ {\em fmt},  {\em ...})}}
\label{graphics__main_8cpp_129151512b91e0ec031d99a8d0a4551b}


Custom GL \char`\"{}Print\char`\"{} Routine. 

A function that can be used like fprint(), but for writing on the Open\-GL window 

Definition at line 116 of file graphics\_\-main.cpp.

References base.

Referenced by Draw\-GLScene().\hypertarget{graphics__main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!InitGL@{InitGL}}
\index{InitGL@{InitGL}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[InitGL]{\setlength{\rightskip}{0pt plus 5cm}int Init\-GL (GLvoid)}}
\label{graphics__main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}


Initialize Open\-GL stuff. 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 

Definition at line 159 of file graphics\_\-main.cpp.

References Build\-Font(), f(), Light\-Ambient, Light\-Diffuse, and Light\-Position.

Referenced by Create\-GLWindow().\hypertarget{graphics__main_8cpp_29fd6b15a498074df9565150f5212475}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!KillFont@{KillFont}}
\index{KillFont@{KillFont}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[KillFont]{\setlength{\rightskip}{0pt plus 5cm}GLvoid Kill\-Font (GLvoid)}}
\label{graphics__main_8cpp_29fd6b15a498074df9565150f5212475}


Delete font list. 

Delete the font list created by \hyperlink{graphics__main_8cpp_a90fba1d494d9474c883fbb29fe0ed53}{Build\-Font()} 

Definition at line 107 of file graphics\_\-main.cpp.

References base.\hypertarget{graphics__main_8cpp_f33a2273205c1491be5916d3091658e0}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!KillGLWindow@{KillGLWindow}}
\index{KillGLWindow@{KillGLWindow}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[KillGLWindow]{\setlength{\rightskip}{0pt plus 5cm}GLvoid Kill\-GLWindow (GLvoid)}}
\label{graphics__main_8cpp_f33a2273205c1491be5916d3091658e0}




Definition at line 287 of file graphics\_\-main.cpp.

References fullscreen, h\-DC, h\-Instance, h\-RC, and h\-Wnd.

Referenced by Create\-GLWindow(), draw\_\-graphics(), and draw\_\-graphics\_\-kill().\hypertarget{graphics__main_8cpp_dac6dff8e0b477523ef130bc4603df35}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!pass_joy_parameters@{pass\_\-joy\_\-parameters}}
\index{pass_joy_parameters@{pass\_\-joy\_\-parameters}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[pass\_\-joy\_\-parameters]{\setlength{\rightskip}{0pt plus 5cm}void pass\_\-joy\_\-parameters (\hyperlink{structjoy__parameters}{joy\_\-parameters} $\ast$ {\em j\-P})}}
\label{graphics__main_8cpp_dac6dff8e0b477523ef130bc4603df35}


Copy joystick parameters from MATLAB struct. 

Copy the joystick parameters (do\-X, do\-Y ,do\-Z ,do\-R and dir\-X ,dir\-Y ,di\-Z ,dir\-R) from the MATLAB struct $\ast$j\-P to the local joystick parameters variables. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em $\ast$j\-P}]: Structure comming from MATLAB or filled with default values defining joystick axes usage and direction. \end{description}
\end{Desc}


Definition at line 788 of file graphics\_\-main.cpp.

References dir\-R, joy\_\-parameters::dir\-R, dir\-X, joy\_\-parameters::dir\-X, dir\-Y, joy\_\-parameters::dir\-Y, dir\-Z, joy\_\-parameters::dir\-Z, do\-R, joy\_\-parameters::do\-R, do\-X, joy\_\-parameters::do\-X, do\-Y, joy\_\-parameters::do\-Y, do\-Z, and joy\_\-parameters::do\-Z.

Referenced by mex\-Function().\hypertarget{graphics__main_8cpp_87bb84d489df61ed7b0c002584fd984f}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!ReSizeGLScene@{ReSizeGLScene}}
\index{ReSizeGLScene@{ReSizeGLScene}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[ReSizeGLScene]{\setlength{\rightskip}{0pt plus 5cm}GLvoid Re\-Size\-GLScene (GLsizei {\em width}, GLsizei {\em height})}}
\label{graphics__main_8cpp_87bb84d489df61ed7b0c002584fd984f}




Definition at line 138 of file graphics\_\-main.cpp.

References f().

Referenced by Create\-GLWindow(), and Wnd\-Proc().\hypertarget{graphics__main_8cpp_e749e989b362e19783c7af4a2bf46c95}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!WndProc@{WndProc}}
\index{WndProc@{WndProc}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[WndProc]{\setlength{\rightskip}{0pt plus 5cm}LRESULT CALLBACK Wnd\-Proc (HWND {\em h\-Wnd}, UINT {\em u\-Msg}, WPARAM {\em w\-Param}, LPARAM {\em l\-Param})}}
\label{graphics__main_8cpp_e749e989b362e19783c7af4a2bf46c95}


Callback and keyboard management. 



Definition at line 510 of file graphics\_\-main.cpp.

References active, keys, and Re\-Size\-GLScene().

Referenced by Create\-GLWindow().

\subsection{Variable Documentation}
\hypertarget{graphics__main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!active@{active}}
\index{active@{active}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[active]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}{active} = TRUE}}
\label{graphics__main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}




Definition at line 23 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Wnd\-Proc().\hypertarget{graphics__main_8cpp_ee5706e2c3a415c24871c64615a44ea4}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDirR@{allowChangeDirR}}
\index{allowChangeDirR@{allowChangeDirR}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDirR]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_ee5706e2c3a415c24871c64615a44ea4}{allow\-Change\-Dir\-R} = TRUE}}
\label{graphics__main_8cpp_ee5706e2c3a415c24871c64615a44ea4}




Definition at line 62 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_ba013bd52b86bf97243d3f15c2272228}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDirX@{allowChangeDirX}}
\index{allowChangeDirX@{allowChangeDirX}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDirX]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_ba013bd52b86bf97243d3f15c2272228}{allow\-Change\-Dir\-X} = TRUE}}
\label{graphics__main_8cpp_ba013bd52b86bf97243d3f15c2272228}




Definition at line 59 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_5f64b0b8566900dc7255ac07671977a8}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDirY@{allowChangeDirY}}
\index{allowChangeDirY@{allowChangeDirY}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDirY]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_5f64b0b8566900dc7255ac07671977a8}{allow\-Change\-Dir\-Y} = TRUE}}
\label{graphics__main_8cpp_5f64b0b8566900dc7255ac07671977a8}




Definition at line 60 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_ac5b1b6ed6e590aadd295178fec5f28f}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDirZ@{allowChangeDirZ}}
\index{allowChangeDirZ@{allowChangeDirZ}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDirZ]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_ac5b1b6ed6e590aadd295178fec5f28f}{allow\-Change\-Dir\-Z} = TRUE}}
\label{graphics__main_8cpp_ac5b1b6ed6e590aadd295178fec5f28f}




Definition at line 61 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_6410443d527a972720016486d2d8a9d1}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDoR@{allowChangeDoR}}
\index{allowChangeDoR@{allowChangeDoR}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDoR]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_6410443d527a972720016486d2d8a9d1}{allow\-Change\-Do\-R} = TRUE}}
\label{graphics__main_8cpp_6410443d527a972720016486d2d8a9d1}




Definition at line 54 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_619c5da21da7651fa5df96591806b5f6}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDoX@{allowChangeDoX}}
\index{allowChangeDoX@{allowChangeDoX}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDoX]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_619c5da21da7651fa5df96591806b5f6}{allow\-Change\-Do\-X} = TRUE}}
\label{graphics__main_8cpp_619c5da21da7651fa5df96591806b5f6}




Definition at line 51 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_e7d744705ee3fa8f74a1b204fedfb683}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDoY@{allowChangeDoY}}
\index{allowChangeDoY@{allowChangeDoY}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDoY]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_e7d744705ee3fa8f74a1b204fedfb683}{allow\-Change\-Do\-Y} = TRUE}}
\label{graphics__main_8cpp_e7d744705ee3fa8f74a1b204fedfb683}




Definition at line 52 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_6be591c9847168c40a6017c0dcca3a73}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!allowChangeDoZ@{allowChangeDoZ}}
\index{allowChangeDoZ@{allowChangeDoZ}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[allowChangeDoZ]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_6be591c9847168c40a6017c0dcca3a73}{allow\-Change\-Do\-Z} = TRUE}}
\label{graphics__main_8cpp_6be591c9847168c40a6017c0dcca3a73}




Definition at line 53 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_e4cbdc51d2d504c24c15b22cf9861e8d}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!base@{base}}
\index{base@{base}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[base]{\setlength{\rightskip}{0pt plus 5cm}GLuint \hyperlink{graphics__main_8cpp_e4cbdc51d2d504c24c15b22cf9861e8d}{base}}}
\label{graphics__main_8cpp_e4cbdc51d2d504c24c15b22cf9861e8d}




Definition at line 19 of file graphics\_\-main.cpp.

Referenced by Build\-Font(), gl\-Print(), and Kill\-Font().\hypertarget{graphics__main_8cpp_019c032406906b366853fee46fe14ee8}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dirR@{dirR}}
\index{dirR@{dirR}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dirR]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_019c032406906b366853fee46fe14ee8}{dir\-R} = 1.0f}}
\label{graphics__main_8cpp_019c032406906b366853fee46fe14ee8}




Definition at line 58 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_b1761c91e3594dec827fe60e992d2e1a}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dirX@{dirX}}
\index{dirX@{dirX}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dirX]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_b1761c91e3594dec827fe60e992d2e1a}{dir\-X} = 1.0f}}
\label{graphics__main_8cpp_b1761c91e3594dec827fe60e992d2e1a}




Definition at line 55 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_72324d3d2f391a353c57aaa03b148d8d}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dirY@{dirY}}
\index{dirY@{dirY}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dirY]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_72324d3d2f391a353c57aaa03b148d8d}{dir\-Y} = 1.0f}}
\label{graphics__main_8cpp_72324d3d2f391a353c57aaa03b148d8d}




Definition at line 56 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_6fc68ee789a22aa3976562aef3e39780}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dirZ@{dirZ}}
\index{dirZ@{dirZ}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dirZ]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_6fc68ee789a22aa3976562aef3e39780}{dir\-Z} = 1.0f}}
\label{graphics__main_8cpp_6fc68ee789a22aa3976562aef3e39780}




Definition at line 57 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_7a770b6d2804c86ef834ee04c4ab5ae3}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!done@{done}}
\index{done@{done}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[done]{\setlength{\rightskip}{0pt plus 5cm}BOOL \hyperlink{graphics__main_8cpp_7a770b6d2804c86ef834ee04c4ab5ae3}{done} = FALSE}}
\label{graphics__main_8cpp_7a770b6d2804c86ef834ee04c4ab5ae3}




Definition at line 43 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and draw\_\-graphics\_\-kill().\hypertarget{graphics__main_8cpp_9b61dde9e1f583fd397cc8d18889eb20}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!doR@{doR}}
\index{doR@{doR}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[doR]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_9b61dde9e1f583fd397cc8d18889eb20}{do\-R} = TRUE}}
\label{graphics__main_8cpp_9b61dde9e1f583fd397cc8d18889eb20}




Definition at line 50 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_5a3c2aa9a76204fb5a88ad3feaa9a0f4}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!doX@{doX}}
\index{doX@{doX}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[doX]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_5a3c2aa9a76204fb5a88ad3feaa9a0f4}{do\-X} = TRUE}}
\label{graphics__main_8cpp_5a3c2aa9a76204fb5a88ad3feaa9a0f4}




Definition at line 47 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_400d40cdb5ad93ffc84da0cc86cb351c}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!doY@{doY}}
\index{doY@{doY}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[doY]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_400d40cdb5ad93ffc84da0cc86cb351c}{do\-Y} = TRUE}}
\label{graphics__main_8cpp_400d40cdb5ad93ffc84da0cc86cb351c}




Definition at line 48 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_8ffdb1e1aa5b4f8c1f41601c9c69529a}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!doZ@{doZ}}
\index{doZ@{doZ}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[doZ]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_8ffdb1e1aa5b4f8c1f41601c9c69529a}{do\-Z} = TRUE}}
\label{graphics__main_8cpp_8ffdb1e1aa5b4f8c1f41601c9c69529a}




Definition at line 49 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), Draw\-GLScene(), and pass\_\-joy\_\-parameters().\hypertarget{graphics__main_8cpp_d20d39cbfd3b978182e632302a1c05d2}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dviewAngle@{dviewAngle}}
\index{dviewAngle@{dviewAngle}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dviewAngle]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_d20d39cbfd3b978182e632302a1c05d2}{dview\-Angle} = 0.01}}
\label{graphics__main_8cpp_d20d39cbfd3b978182e632302a1c05d2}




Definition at line 32 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_753d2e6d1d61660a4f113e7b18926294}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!dviewDist@{dviewDist}}
\index{dviewDist@{dviewDist}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[dviewDist]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_753d2e6d1d61660a4f113e7b18926294}{dview\-Dist} = 0.3}}
\label{graphics__main_8cpp_753d2e6d1d61660a4f113e7b18926294}




Definition at line 34 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_4f50e96f11c68d45dc109185efe011ad}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!fps@{fps}}
\index{fps@{fps}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[fps]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_4f50e96f11c68d45dc109185efe011ad}{fps} = 0.0}}
\label{graphics__main_8cpp_4f50e96f11c68d45dc109185efe011ad}




Definition at line 65 of file graphics\_\-main.cpp.

Referenced by Draw\-GLScene().\hypertarget{graphics__main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!fullscreen@{fullscreen}}
\index{fullscreen@{fullscreen}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[fullscreen]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}{fullscreen} = TRUE}}
\label{graphics__main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}




Definition at line 24 of file graphics\_\-main.cpp.

Referenced by Create\-GLWindow(), draw\_\-graphics(), draw\_\-graphics\_\-init(), and Kill\-GLWindow().\hypertarget{graphics__main_8cpp_78f6446a0e13adc7b7b2f239112ac785}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!hDC@{hDC}}
\index{hDC@{hDC}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[hDC]{\setlength{\rightskip}{0pt plus 5cm}HDC \hyperlink{graphics__main_8cpp_78f6446a0e13adc7b7b2f239112ac785}{h\-DC} = NULL}}
\label{graphics__main_8cpp_78f6446a0e13adc7b7b2f239112ac785}




Definition at line 15 of file graphics\_\-main.cpp.

Referenced by Build\-Font(), Create\-GLWindow(), draw\_\-graphics(), and Kill\-GLWindow().\hypertarget{graphics__main_8cpp_74029128723095e7bf00a71d46af8b24}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!hInstance@{hInstance}}
\index{hInstance@{hInstance}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[hInstance]{\setlength{\rightskip}{0pt plus 5cm}HINSTANCE \hyperlink{graphics__main_8cpp_74029128723095e7bf00a71d46af8b24}{h\-Instance}}}
\label{graphics__main_8cpp_74029128723095e7bf00a71d46af8b24}




Definition at line 17 of file graphics\_\-main.cpp.

Referenced by Create\-GLWindow(), and Kill\-GLWindow().\hypertarget{graphics__main_8cpp_874963259c7cd998acfe6e187fbdb4c1}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!hRC@{hRC}}
\index{hRC@{hRC}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[hRC]{\setlength{\rightskip}{0pt plus 5cm}HGLRC \hyperlink{graphics__main_8cpp_874963259c7cd998acfe6e187fbdb4c1}{h\-RC} = NULL}}
\label{graphics__main_8cpp_874963259c7cd998acfe6e187fbdb4c1}




Definition at line 14 of file graphics\_\-main.cpp.

Referenced by Create\-GLWindow(), and Kill\-GLWindow().\hypertarget{graphics__main_8cpp_fec4341c234519e145bac6f0e5edaa51}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!hWnd@{hWnd}}
\index{hWnd@{hWnd}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[hWnd]{\setlength{\rightskip}{0pt plus 5cm}HWND \hyperlink{graphics__main_8cpp_fec4341c234519e145bac6f0e5edaa51}{h\-Wnd} = NULL}}
\label{graphics__main_8cpp_fec4341c234519e145bac6f0e5edaa51}




Definition at line 16 of file graphics\_\-main.cpp.

Referenced by Create\-GLWindow(), and Kill\-GLWindow().\hypertarget{graphics__main_8cpp_e2a7b037f55685adc5cbd9b4d2c0834d}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!joystick_exist@{joystick\_\-exist}}
\index{joystick_exist@{joystick\_\-exist}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[joystick\_\-exist]{\setlength{\rightskip}{0pt plus 5cm}int \hyperlink{graphics__main_8cpp_e2a7b037f55685adc5cbd9b4d2c0834d}{joystick\_\-exist}}}
\label{graphics__main_8cpp_e2a7b037f55685adc5cbd9b4d2c0834d}




Definition at line 46 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics\_\-init(), and Draw\-GLScene().\hypertarget{graphics__main_8cpp_23ca8db2cebbfb94538122c439146f1a}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!keys@{keys}}
\index{keys@{keys}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[keys]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_23ca8db2cebbfb94538122c439146f1a}{keys}\mbox{[}256\mbox{]}}}
\label{graphics__main_8cpp_23ca8db2cebbfb94538122c439146f1a}




Definition at line 22 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Wnd\-Proc().\hypertarget{graphics__main_8cpp_703a7eb6bd6dc795fc14729152c4f591}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!light@{light}}
\index{light@{light}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[light]{\setlength{\rightskip}{0pt plus 5cm}bool \hyperlink{graphics__main_8cpp_703a7eb6bd6dc795fc14729152c4f591}{light}}}
\label{graphics__main_8cpp_703a7eb6bd6dc795fc14729152c4f591}




Definition at line 26 of file graphics\_\-main.cpp.\hypertarget{graphics__main_8cpp_933b98c8ca09e30db7b47d4d8575eaab}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!LightAmbient@{LightAmbient}}
\index{LightAmbient@{LightAmbient}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[LightAmbient]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_933b98c8ca09e30db7b47d4d8575eaab}{Light\-Ambient}\mbox{[}$\,$\mbox{]} = \{ 0.35f, 0.35f, 0.5f, 1.0f \}}}
\label{graphics__main_8cpp_933b98c8ca09e30db7b47d4d8575eaab}




Definition at line 37 of file graphics\_\-main.cpp.

Referenced by Init\-GL().\hypertarget{graphics__main_8cpp_71beb2ce6c0f1281cafe8529a93bebb1}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!LightDiffuse@{LightDiffuse}}
\index{LightDiffuse@{LightDiffuse}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[LightDiffuse]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_71beb2ce6c0f1281cafe8529a93bebb1}{Light\-Diffuse}\mbox{[}$\,$\mbox{]} = \{ 0.6f, 0.6f, 0.6f, 1.0f \}}}
\label{graphics__main_8cpp_71beb2ce6c0f1281cafe8529a93bebb1}




Definition at line 38 of file graphics\_\-main.cpp.

Referenced by Init\-GL().\hypertarget{graphics__main_8cpp_abd772c6114f6182a5bd105869052b24}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!LightPosition@{LightPosition}}
\index{LightPosition@{LightPosition}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[LightPosition]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_abd772c6114f6182a5bd105869052b24}{Light\-Position}\mbox{[}$\,$\mbox{]} = \{ -10.0f, 20.0f, 150.0f, 0.0f \}}}
\label{graphics__main_8cpp_abd772c6114f6182a5bd105869052b24}




Definition at line 39 of file graphics\_\-main.cpp.

Referenced by Draw\-GLScene(), and Init\-GL().\hypertarget{graphics__main_8cpp_c13bc459ae800248eabb652b9f6dc8ed}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!msg@{msg}}
\index{msg@{msg}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[msg]{\setlength{\rightskip}{0pt plus 5cm}MSG \hyperlink{graphics__main_8cpp_c13bc459ae800248eabb652b9f6dc8ed}{msg}}}
\label{graphics__main_8cpp_c13bc459ae800248eabb652b9f6dc8ed}




Definition at line 42 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and draw\_\-graphics\_\-kill().\hypertarget{graphics__main_8cpp_04983559ea5df0e1fa261d3ac8017f84}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!time_before@{time\_\-before}}
\index{time_before@{time\_\-before}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[time\_\-before]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_04983559ea5df0e1fa261d3ac8017f84}{time\_\-before} = 0.0}}
\label{graphics__main_8cpp_04983559ea5df0e1fa261d3ac8017f84}




Definition at line 63 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics().\hypertarget{graphics__main_8cpp_5208b603a8c96a030fe1ce3fc1399fe2}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!time_elapsed@{time\_\-elapsed}}
\index{time_elapsed@{time\_\-elapsed}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[time\_\-elapsed]{\setlength{\rightskip}{0pt plus 5cm}float \hyperlink{graphics__main_8cpp_5208b603a8c96a030fe1ce3fc1399fe2}{time\_\-elapsed}}}
\label{graphics__main_8cpp_5208b603a8c96a030fe1ce3fc1399fe2}




Definition at line 64 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Draw\-GLScene().\hypertarget{graphics__main_8cpp_3d44eec049025e8ae1fc5e333a3f09e6}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!viewAngle1@{viewAngle1}}
\index{viewAngle1@{viewAngle1}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[viewAngle1]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_3d44eec049025e8ae1fc5e333a3f09e6}{view\-Angle1} = 0.0}}
\label{graphics__main_8cpp_3d44eec049025e8ae1fc5e333a3f09e6}


horizontal camera view angle 



Definition at line 30 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Draw\-GLScene().\hypertarget{graphics__main_8cpp_21fb3402d87e98dd35aef888f7085b8e}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!viewAngle2@{viewAngle2}}
\index{viewAngle2@{viewAngle2}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[viewAngle2]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_21fb3402d87e98dd35aef888f7085b8e}{view\-Angle2} = 0.3}}
\label{graphics__main_8cpp_21fb3402d87e98dd35aef888f7085b8e}


vertical camera view angle 



Definition at line 31 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Draw\-GLScene().\hypertarget{graphics__main_8cpp_0af8a5f226a60377a9e0aa9325049fae}{
\index{graphics_main.cpp@{graphics\_\-main.cpp}!viewDist@{viewDist}}
\index{viewDist@{viewDist}!graphics_main.cpp@{graphics\_\-main.cpp}}
\subsubsection[viewDist]{\setlength{\rightskip}{0pt plus 5cm}GLfloat \hyperlink{graphics__main_8cpp_0af8a5f226a60377a9e0aa9325049fae}{view\-Dist} = 50.0}}
\label{graphics__main_8cpp_0af8a5f226a60377a9e0aa9325049fae}


camera view distance 



Definition at line 33 of file graphics\_\-main.cpp.

Referenced by draw\_\-graphics(), and Draw\-GLScene().