/****************************************************************************** * File - component_guis.cpp * Author - Joey Pollack * Date - 2022/06/01 (y/m/d) * Mod Date - 2022/06/01 (y/m/d) * Description - Functions to render component editing GUIs ******************************************************************************/ #include "component_guis.h" #include #include #include namespace lunarium { namespace editor { void CompGui::RenderTagComp(TagComponent& comp) { const int BUFFER_SIZE = 256; static char buffer[BUFFER_SIZE] = ""; ImGui::Text("Tag:"); ImGui::SameLine(); strcpy(buffer, comp.Info.c_str()); ImGui::InputText("##Tag", buffer, BUFFER_SIZE); comp.Info = buffer; } void CompGui::RenderTransformComp(TransformComponent& comp) { } }}