Compiled (segfault on close)

This commit is contained in:
2022-10-31 00:03:28 -07:00
parent 234866ee8f
commit f5e8dd9a8e
4 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ set(DAWN_BUILDING dawnpokergame)
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")

View File

@ -29,6 +29,7 @@ extern "C" {
#include <map>
#include <array>
#include <stb_truetype.h>
#include <memory>
// #include <iterator>
// #include <algorithm>
// #include <string>

View File

@ -139,5 +139,7 @@ namespace Dawn {
* Dispose and clenaup this transform, also removes self from parent.
*/
~Transform();
friend SceneItem;
};
}

View File

@ -33,7 +33,7 @@ namespace Dawn {
struct Color textColor = COLOR_MAGENTA;
UILabel(UICanvas &canvas);
void drawSelf(UIShader &shader, glm::mat4 selfTransform);
void drawSelf(UIShader &shader, glm::mat4 selfTransform) override;
/**
* Returns the current text that the label has.