SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
helpMarker.h
Go to the documentation of this file.
1#ifndef HELPMARKER_H
2#define HELPMARKER_H
3
4#include <imgui/imgui.h>
5#include <imgui/imgui_impl_glfw.h>
6#include <imgui/imgui_impl_opengl3.h>
7
8#ifdef WINDOWS
9#include <imgui/imgui_impl_win32.h>
10#endif
11
12#ifdef MACOS
13#include <imgui/imgui_impl_osx.h>
14#endif
15
21static void HelpMarker(const char* desc)
22{
23 ImGui::TextDisabled("(?)");
24 if (ImGui::BeginItemTooltip())
25 {
26 ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
27 ImGui::TextUnformatted(desc);
28 ImGui::PopTextWrapPos();
29 ImGui::EndTooltip();
30 }
31}
32
33#endif /* HELPMARKER_H */
glm::vec< L, float, glm::qualifier::highp > vec
Definition commandLine.h:214