Initial OpenGL commit

This commit is contained in:
Corentin 2021-07-13 01:02:17 +09:00
commit 1ae16b306f
18 changed files with 25863 additions and 0 deletions

26
src/test/example_gl.cpp Normal file
View file

@ -0,0 +1,26 @@
#include <iostream>
#include "uui/opengl/application.hpp"
using namespace std;
int main()
{
cout << "Example Staring" << endl;
try
{
uui::GlApplication app;
app.add_window(800, 600, "Vulkan!");
app.add_window(600, 600, "Vulkan 2!");
app.run();
}
catch(const std::exception& error)
{
std::cerr << error.what() << std::endl;
return EXIT_FAILURE;
}
cout << "Example done" << endl;
return 0;
}