\doxysection{Route\+Painter.\+hpp}
\hypertarget{RoutePainter_8hpp_source}{}\label{RoutePainter_8hpp_source}\index{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/RoutePainter.hpp@{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/RoutePainter.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#ifndef\ GYM\_PCB\_UI\_ROUTEPAINTER\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#define\ GYM\_PCB\_UI\_ROUTEPAINTER\_H}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}GLContext.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ "{}Color.hpp"{}}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPCBoard}{PCBoard}};}
\DoxyCodeLine{00009\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classTrack}{Track}};}
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classCamera}{Camera}};}
\DoxyCodeLine{00011\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{class\ }RoutePainter}
\DoxyCodeLine{00013\ \{}
\DoxyCodeLine{00014\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00015\ \ \ \ \ \textcolor{keyword}{constexpr}\ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ uint\ MaxLayers\ =\ 16;}
\DoxyCodeLine{00016\ \ \ \ \ RoutePainter();}
\DoxyCodeLine{00017\ \ \ \ \ \string~RoutePainter();}
\DoxyCodeLine{00018\ \ \ \ \ \textcolor{keywordtype}{void}\ update(\textcolor{keyword}{const}\ \mbox{\hyperlink{classPCBoard}{PCBoard}}\&);}
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keywordtype}{void}\ update(\textcolor{keyword}{const}\ \mbox{\hyperlink{classTrack}{Track}}\&,\ uint\ zmax,\ \mbox{\hyperlink{classColor}{Color}});}
\DoxyCodeLine{00020\ \ \ \ \ \textcolor{keywordtype}{void}\ setLineWidth(\textcolor{keywordtype}{float}\ w)\ \{\ mBaseLineWidth\ =\ w;\ \}}
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{void}\ draw(\textcolor{keyword}{const}\ \mbox{\hyperlink{classCamera}{Camera}}\&);}
\DoxyCodeLine{00022\ \ \ \ \ \textcolor{keywordtype}{void}\ drawLayer(\textcolor{keyword}{const}\ \mbox{\hyperlink{classCamera}{Camera}}\&,\ uint\ z);}
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keywordtype}{void}\ setLayerColor(uint\ z,\ \mbox{\hyperlink{classColor}{Color}});}
\DoxyCodeLine{00024\ \ \ \ \ \textcolor{keywordtype}{void}\ setLayerAlpha(uint\ z,\ \textcolor{keywordtype}{float});}
\DoxyCodeLine{00025\ \ \ \ \ \textcolor{keywordtype}{void}\ clear();}
\DoxyCodeLine{00026\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00027\ \ \ \ \ \textcolor{comment}{//uint\ mNumTriStrips\{0\};}}
\DoxyCodeLine{00028\ \ \ \ \ uint\ mVertexCount\{0\};}
\DoxyCodeLine{00029\ \ \ \ \ std::vector<uint>\ mIndexCounts;}
\DoxyCodeLine{00030\ \ \ \ \ GLenum\ mIndexType;}
\DoxyCodeLine{00031\ \ \ \ \ \textcolor{keywordtype}{float}\ mBaseLineWidth\{2.0f\};}
\DoxyCodeLine{00032\ \ \ \ \ \textcolor{keywordtype}{float}\ mLayerColor[MaxLayers][4];}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \ \ \ \ GLuint\ mVBO\{0\};}
\DoxyCodeLine{00035\ \ \ \ \ GLuint\ mIBO\{0\};}
\DoxyCodeLine{00036\ \ \ \ \ GLuint\ mCMD\{0\};}
\DoxyCodeLine{00037\ \ \ \ \ GLuint\ mVAO\{0\};}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keyword}{static}\ GLuint\ sVP,\ sFP,\ sPP;}
\DoxyCodeLine{00040\ \ \ \ \ \textcolor{keyword}{static}\ GLint\ sUniformLayerColors;}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \ \ \ \ \textcolor{keywordtype}{void}\ createVAO();}
\DoxyCodeLine{00043\ \ \ \ \ \textcolor{keywordtype}{void}\ createIBO();}
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ createShaders();}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keyword}{constexpr}\ \textcolor{keyword}{const}\ GLushort\ RestartIndex\ =\ 0xffff;}
\DoxyCodeLine{00047\ \};}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ GYM\_PCB\_UI\_ROUTEPAINTER\_H}}

\end{DoxyCode}
