\doxysection{Profiler.\+h}
\hypertarget{_profiler_8h_source}{}\label{_profiler_8h_source}\index{Include/Editor/Profiler.h@{Include/Editor/Profiler.h}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//\ =====================================================================================================================}}
\DoxyCodeLine{00002\ \textcolor{comment}{//\ \ OpenShaderDesigner,\ an\ open\ source\ software\ utility\ to\ create\ materials\ and\ shaders.}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ \ Copyright\ (C)\ 2024\ \ Medusa\ Slockbower}}
\DoxyCodeLine{00004\ \textcolor{comment}{//}}
\DoxyCodeLine{00005\ \textcolor{comment}{//\ \ This\ program\ is\ free\ software:\ you\ can\ redistribute\ it\ and/or\ modify}}
\DoxyCodeLine{00006\ \textcolor{comment}{//\ \ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by}}
\DoxyCodeLine{00007\ \textcolor{comment}{//\ \ the\ Free\ Software\ Foundation,\ either\ version\ 3\ of\ the\ License,\ or}}
\DoxyCodeLine{00008\ \textcolor{comment}{//\ \ (at\ your\ option)\ any\ later\ version.}}
\DoxyCodeLine{00009\ \textcolor{comment}{//}}
\DoxyCodeLine{00010\ \textcolor{comment}{//\ \ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}}
\DoxyCodeLine{00011\ \textcolor{comment}{//\ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00012\ \textcolor{comment}{//\ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the}}
\DoxyCodeLine{00013\ \textcolor{comment}{//\ \ GNU\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00014\ \textcolor{comment}{//}}
\DoxyCodeLine{00015\ \textcolor{comment}{//\ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License}}
\DoxyCodeLine{00016\ \textcolor{comment}{//\ \ along\ with\ this\ program.\ \ If\ not,\ see\ .}}
\DoxyCodeLine{00017\ \textcolor{comment}{//\ =====================================================================================================================}}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{preprocessor}{\#ifndef\ PROFILER\_H}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#define\ PROFILER\_H}}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#include\ }}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#include\ }}
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#include\ }}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ }}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{keyword}{namespace\ }OpenShaderDesigner}
\DoxyCodeLine{00028\ \{}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{Profiler}}}
\DoxyCodeLine{00031\ \ \ \ \ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}}
\DoxyCodeLine{00032\ \ \ \ \ ,\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler}{EventHandler}}}
\DoxyCodeLine{00033\ \ \ \ \ ,\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler}{EventHandler}}}
\DoxyCodeLine{00034\ \{}
\DoxyCodeLine{00035\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00036\ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{Profiler}}();}
\DoxyCodeLine{00037\ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{\string~Profiler}}();}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler_a26186e7726d5811f423c9cee06aec1d5}{DrawWindow}}()\ \textcolor{keyword}{override};}
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \ \ \ \ \textcolor{keywordtype}{bool}\ HandleEvent(\textcolor{keyword}{const}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler_ac7326c1ee1a04cf764475dc7c74dc021}{EventHandler::HandledType}}*\ event)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00042\ \ \ \ \ \textcolor{keywordtype}{bool}\ HandleEvent(\textcolor{keyword}{const}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler_ac7326c1ee1a04cf764475dc7c74dc021}{EventHandler::HandledType}}*\ event)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{keyword}{enum}}
\DoxyCodeLine{00046\ \ \ \ \ \{}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ EVENTS\ =\ 0}
\DoxyCodeLine{00048\ \ \ \ \ ,\ \ \ RENDER}
\DoxyCodeLine{00049\ \ \ \ \ ,\ \ \ EDITOR}
\DoxyCodeLine{00050\ \ \ \ \ ,\ \ \ END}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \ \ \ \ ,\ \ \ COUNT}
\DoxyCodeLine{00053\ \ \ \ \ ,\ \ \ LAST\ =\ COUNT\ -\/\ 1}
\DoxyCodeLine{00054\ \ \ \ \ \};}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \ \ \ \ uint64\_t\ Frame\_;}
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keywordtype}{double}\ \ \ Deltas\_[COUNT];}
\DoxyCodeLine{00058\ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_timer}{Timer}}\ \ \ \ Timer\_;}
\DoxyCodeLine{00059\ \};}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ \}}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//PROFILER\_H}}
\end{DoxyCode}