includes are accurate and formatted

This commit is contained in:
Justin Scofield
2022-06-12 18:42:21 -04:00
parent aa787a39fa
commit bf83a7cf3c
2 changed files with 11 additions and 11 deletions

View File

@@ -1,27 +1,27 @@
#include "Window.h"
#include <SDL2/SDL.h>
namespace yaze {
namespace Application {
namespace Core {
// TODO: pass in the size of the window as argument
// TODO: pass in the size of the window as argument
void Window::Create() {
if (SDL_Init(SDL_INIT_EVERYTHING)) {
SDL_Log("SDL_Init: %s\n", SDL_GetError());
} else {
window = SDL_CreateWindow("Yet Another Zelda3 Editor", // window title
SDL_WINDOWPOS_UNDEFINED, // initial x position
SDL_WINDOWPOS_UNDEFINED, // initial y position
1200, // width, in pixels
800, // height, in pixels
SDL_WINDOW_RESIZABLE // window flags
);
SDL_WINDOWPOS_UNDEFINED, // initial x position
SDL_WINDOWPOS_UNDEFINED, // initial y position
1200, // width, in pixels
800, // height, in pixels
SDL_WINDOW_RESIZABLE // window flags
);
}
}
SDL_Window* Window::Get() {
return window;
}
SDL_Window* Window::Get() { return window; }
void Window::Destroy() {
SDL_DestroyWindow(window);

View File

@@ -10,8 +10,8 @@ namespace Core {
class Window {
public:
void Create();
SDL_Window* Get();
void Destroy();
SDL_Window* Get();
private:
SDL_Window* window = nullptr;