26 lines
693 B
C++
26 lines
693 B
C++
#include <iostream>
|
|
// #include <sophia/application.hpp>
|
|
#include <sophia/render_triangle_test.hpp>
|
|
#include <stdexcept>
|
|
|
|
int main(int argc, const char** argv) {
|
|
(void)argc;
|
|
(void)argv;
|
|
std::cout << __FILE__ << "::" << __LINE__ << '\n';
|
|
|
|
try {
|
|
sophia::runRenderTriangleTest(TESTBED_SHADER_DIR "/triangle.vert",
|
|
TESTBED_SHADER_DIR "/triangle.frag");
|
|
} catch (const std::exception& error) {
|
|
std::cerr << "Render triangle test failed: " << error.what() << '\n';
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
// sophia::Application app{
|
|
// {.width = 750, .height = 1000, .name = "Testbed", .headless = true}};
|
|
|
|
// app.run();
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|