- Decided to remove boost due to extensive dependencies
- Huge refactor on Wayland loading to support retrieval of Protocol headers - Setup EGL to create surfaces for Wayland windows
This commit is contained in:
@@ -34,13 +34,33 @@ inline void fennec_test_platform() {
|
||||
platform* instance = platform::instance();
|
||||
instance->initialize();
|
||||
|
||||
fennec_test_run(instance->get_display() != nullptr, true);
|
||||
fennec_test_run(instance->get_display()->get_context() != nullptr, true);
|
||||
display* display = instance->get_display();
|
||||
|
||||
std::cout << instance->get_display()->get_context()->get_context_name() << " ";
|
||||
std::cout << instance->get_display()->get_context()->get_version_major() << ".";
|
||||
std::cout << instance->get_display()->get_context()->get_version_minor() << std::endl;
|
||||
fennec_test_run(display != nullptr, true);
|
||||
fennec_test_run(display->get_context() != nullptr, true);
|
||||
|
||||
gfxcontext* gfxcontext = display->get_context();
|
||||
|
||||
std::cout << gfxcontext->get_name() << " ";
|
||||
std::cout << gfxcontext->get_version_major() << ".";
|
||||
std::cout << gfxcontext->get_version_minor() << std::endl;
|
||||
|
||||
window::config winconfig = {
|
||||
string{"fennec_test_platform"},
|
||||
window::flags_none,
|
||||
1280, 720,
|
||||
window::fullscreen_mode::windowed
|
||||
};
|
||||
window* window = display->create_window(nullptr);
|
||||
|
||||
fennec_test_run(window != nullptr, true);
|
||||
|
||||
window->configure(winconfig);
|
||||
window->initialize(false);
|
||||
|
||||
fennec_test_run(window->running(), true);
|
||||
|
||||
delete window;
|
||||
instance->shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user