Initial commit - https://www.youtube.com/watch?v=_riranMmtvI&list=PL8327DO66nu9qYVKLDmdLW_84-yE4auCR&index=3
This commit is contained in:
10
include/basalt_context.h
Normal file
10
include/basalt_context.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include <vulkan.h>
|
||||
|
||||
namespace basalt
|
||||
{
|
||||
class Context
|
||||
{
|
||||
|
||||
};
|
||||
}
|
||||
29
include/basalt_window.h
Normal file
29
include/basalt_window.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
#define GLFW_INCLUDE_VULKAN
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
namespace basalt
|
||||
{
|
||||
class Window
|
||||
{
|
||||
public:
|
||||
Window(const Window& src) = delete;
|
||||
Window& operator =(const Window& src) = delete;
|
||||
Window(Window&& other) noexcept;
|
||||
Window& operator =(Window&& other) noexcept;
|
||||
|
||||
Window(uint16_t width, uint16_t height, const char* title);
|
||||
~Window(void) noexcept;
|
||||
|
||||
void swap(Window& other);
|
||||
operator GLFWwindow* (void) const noexcept;
|
||||
|
||||
const bool should_close(void) const noexcept;
|
||||
|
||||
protected:
|
||||
GLFWwindow* window = nullptr;
|
||||
const char* window_title = "N/A";
|
||||
uint16_t width = 0;
|
||||
uint16_t height = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user