-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
76 lines (56 loc) · 1.54 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include "lve_window_bb.hpp"
#include <iostream>
#include "first_app.hpp"
#include <map>
void testLveWindowBB()
{
//lve::LveWindow window(800, 600, "My Vulkan Window");
std::cout << " testLveWindowBB\n";
lve::LveWindow lveWindow{ 800, 600, "testLveWindowBB!!!" };
}
void testVulcan()
{
glfwInit();
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
GLFWwindow* window = glfwCreateWindow(800, 600, "Vulkan window", nullptr, nullptr);
/*uint32_t extensionCount = 0;
vkEnumerateInstanceExtensionProperties(nullptr, &extensionCount, nullptr);
std::cout << extensionCount << " extensions supported\n";
glm::mat4 matrix;
glm::vec4 vec;
auto test = matrix * vec;
*/
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
}
glfwDestroyWindow(window);
glfwTerminate();
}
int main() {
//testVulcan();
//testLveWindowBB();
std::map<int, std::string> mis{};
mis[0] = "zero";
mis[1] = "one";
std::map<std::string, int> mis2{};
mis2["zero"] = 0;
mis2["one"] = 1;
std::multimap<int, std::string> mmis{};
mmis.insert(std::make_pair(0, "zero"));
mmis.insert(std::make_pair(0, "zero_2"));
lve::FirstApp app{};
try {
app.run();
}
catch (const std::exception& e) {
std::cerr << e.what() << '\n';
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}