Initial OpenGL commit
This commit is contained in:
commit
1ae16b306f
18 changed files with 25863 additions and 0 deletions
26
src/test/example_gl.cpp
Normal file
26
src/test/example_gl.cpp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue