Index

zydeco / 0dd781a

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
405 Aug 2023 20:500dd781aCreate event handling and threads structureJosh Stockin1260G

Blob @ zydeco / include / IWindow.hpp

text/plain553 bytesdownload raw
1#ifndef IWINDOW_HPP_
2#define IWINDOW_HPP_
3
4
5#include <cstdint>
6#include <string>
7
8#include <SDL2/SDL.h>
9
10#include "IUpdateable.hpp"
11
12
13class IWindow : public IUpdateable
14{
15public:
16 virtual bool Update(uint64_t time_since_last_update_us) = 0;
17
18 // Basic public interface
19 virtual void SetTitle(std::string new_title) = 0;
20 virtual void SetFullscreen(bool is_fullscreen) = 0;
21 virtual void SetSize(uint64_t new_width, uint64_t new_height) = 0;
22 virtual void SetPosition(uint64_t new_x, uint64_t new_y) = 0;
23};
24
25
26#endif /* IWINDOW_HPP_ */
27