~vladh/peony

peony/src/core.hpp -rw-r--r-- 468 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

#pragma once

#include <GLFW/glfw3.h>
#include "types.hpp"

namespace core {
  struct WindowSize {
    int32 width; // in pixels (size of framebuffer)
    int32 height; // in pixels (size of framebuffer)
    uint32 screencoord_width; // in screen coordinates
    uint32 screencoord_height; // in screen coordinates
  };

  int run();
}

using core::WindowSize;