|
|
@ -10,7 +10,7 @@
|
|
|
|
#include "ft2build.h"
|
|
|
|
#include "ft2build.h"
|
|
|
|
#include FT_FREETYPE_H
|
|
|
|
#include FT_FREETYPE_H
|
|
|
|
|
|
|
|
|
|
|
|
VkResult i_dont_know_yet(GLFWwindow* window, UIContext* ui, RenderContext* render) {
|
|
|
|
VkResult test_ui(GLFWwindow* window, UIContext* ui, RenderContext* render) {
|
|
|
|
uint32_t font_index;
|
|
|
|
uint32_t font_index;
|
|
|
|
uint32_t background_index;
|
|
|
|
uint32_t background_index;
|
|
|
|
FT_Library library;
|
|
|
|
FT_Library library;
|
|
|
@ -239,18 +239,14 @@ int main() {
|
|
|
|
VkResult result;
|
|
|
|
VkResult result;
|
|
|
|
VK_RESULT(init_vulkan(window, &render));
|
|
|
|
VK_RESULT(init_vulkan(window, &render));
|
|
|
|
|
|
|
|
|
|
|
|
VK_RESULT(create_ui_context(
|
|
|
|
// TODO: make # of fonts/textures/containers scaling, recreate GPU buffers as necessary
|
|
|
|
10,
|
|
|
|
VK_RESULT(create_ui_context(10, 10, 10, &render, &ui));
|
|
|
|
10,
|
|
|
|
|
|
|
|
10,
|
|
|
|
|
|
|
|
&render,
|
|
|
|
|
|
|
|
&ui));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////
|
|
|
|
//////////////////////////////////
|
|
|
|
/// Test Code
|
|
|
|
/// Test Code
|
|
|
|
//////////////////////////////////
|
|
|
|
//////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
VK_RESULT(i_dont_know_yet(window, &ui, &render));
|
|
|
|
VK_RESULT(test_ui(window, &ui, &render));
|
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////
|
|
|
|
//////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|