Orange/src/Apps/Tools/CubeTest.cpp

28 lines
612 B
C++
Raw Normal View History

2022-06-19 04:33:41 +01:00
#include <Orange/Core/Result.h>
#include <Orange/Render/Window.h>
#include <Orange/Render/Renderer.h>
using namespace orange;
int main(int argc, char** argv)
{
(void)argc; (void)argv;
Result<Window> r_window = Window::Create();
if (!r_window)
return 1;
2022-08-02 22:27:01 +01:00
Result<Instance> r_instance = Instance::Create(*r_window, "Orange");
if (!r_instance)
return 1;
2022-08-03 05:33:52 +01:00
PhysicalDevice physicalDevice = PickBestPhysicalDevice(r_instance->PhysicalDevices());
Result<Device> r_device = Device::Create(*r_instance, physicalDevice);
if (!r_device)
2022-08-02 22:27:01 +01:00
return 1;
2022-06-19 04:33:41 +01:00
return 0;
}