Add basic Window creation to X11WindowDriver
This commit is contained in:
@@ -7,12 +7,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <nova/api.h>
|
||||
#include <nova/render/render_driver.h>
|
||||
#include <nova/types.h>
|
||||
|
||||
#include <string_view>
|
||||
|
||||
namespace Nova {
|
||||
using WindowID = uptr;
|
||||
|
||||
class NOVA_API WindowDriver {
|
||||
public:
|
||||
virtual ~WindowDriver() = default;
|
||||
|
||||
virtual void poll_events() = 0;
|
||||
|
||||
virtual WindowID create_window(std::string_view title = "Nova", u32 width = 800, u32 height = 600) = 0;
|
||||
virtual void destroy_window(WindowID window) = 0;
|
||||
|
||||
virtual void set_window_title(WindowID window, std::string_view title) = 0;
|
||||
virtual void set_window_size(WindowID window, u32 width, u32 height) = 0;
|
||||
virtual void set_window_position(WindowID window, i32 x, i32 y) = 0;
|
||||
|
||||
[[nodiscard]] virtual u32 get_window_count() const = 0;
|
||||
|
||||
[[nodiscard]] virtual const char* get_surface_extension() const = 0;
|
||||
};
|
||||
} // namespace Nova
|
||||
|
||||
Reference in New Issue
Block a user