\doxysection{Nav\+Grid.\+hpp}
\hypertarget{UI_2NavGrid_8hpp_source}{}\label{UI_2NavGrid_8hpp_source}\index{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/NavGrid.hpp@{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/NavGrid.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#ifndef\ GYM\_PCB\_UI\_NAVGRID\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#define\ GYM\_PCB\_UI\_NAVGRID\_H}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}GLContext.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ "{}Color.hpp"{}}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ "{}Geometry.hpp"{}}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <vector>}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classCamera}{Camera}};}
\DoxyCodeLine{00011\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPCBoard}{PCBoard}};}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \textcolor{keyword}{namespace\ }ui\ \{}
\DoxyCodeLine{00014\ }
\DoxyCodeLine{00015\ \textcolor{keyword}{class\ }NavGrid}
\DoxyCodeLine{00016\ \{}
\DoxyCodeLine{00017\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00018\ \ \ \ \ NavGrid(\textcolor{keyword}{const}\ \mbox{\hyperlink{classPCBoard}{PCBoard}}\&);}
\DoxyCodeLine{00019\ \ \ \ \ \string~NavGrid();}
\DoxyCodeLine{00020\ \ \ \ \ \textcolor{keywordtype}{void}\ update();}
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{void}\ setLineSize(\textcolor{keywordtype}{float}\ s)\ \{\ mLineSizeBase\ =\ s;\ \}}
\DoxyCodeLine{00022\ \ \ \ \ \textcolor{keywordtype}{void}\ setColor(\mbox{\hyperlink{classColor}{Color}});}
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keywordtype}{void}\ draw(\textcolor{keyword}{const}\ \mbox{\hyperlink{classCamera}{Camera}}\&);}
\DoxyCodeLine{00024\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00025\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{classPCBoard}{PCBoard}}\ \&mPCB;}
\DoxyCodeLine{00026\ \ \ \ \ uint\ mNumLines\{0\};}
\DoxyCodeLine{00027\ \ \ \ \ \textcolor{keywordtype}{float}\ mLineSizeBase\{0.25f\};}
\DoxyCodeLine{00028\ \ \ \ \ GLfloat\ mColor4f[4];}
\DoxyCodeLine{00029\ \ \ \ \ GLuint\ mVBO\{0\};}
\DoxyCodeLine{00030\ \ \ \ \ GLuint\ mVAO\{0\};}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00032\ \ \ \ \ \textcolor{keyword}{static}\ GLuint\ sVP,\ sFP;}
\DoxyCodeLine{00033\ \ \ \ \ \textcolor{keyword}{static}\ GLuint\ sPP;}
\DoxyCodeLine{00034\ \ \ \ \ \textcolor{keyword}{static}\ GLint\ sUniformColor;}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{keywordtype}{void}\ getDrawRanges(\textcolor{keyword}{const}\ \mbox{\hyperlink{classCamera}{Camera}}\&,\ uint\ start[2],\ uint\ count[2]);}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{void}\ createVAO();}
\DoxyCodeLine{00038\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ createShaders();}
\DoxyCodeLine{00039\ \};}
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \}\ \textcolor{comment}{//\ namespace\ ui}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ GYM\_PCB\_UI\_NAVGRID\_H}}

\end{DoxyCode}
