2023-01-16 14:12:53 -05:00
|
|
|
/*
|
|
|
|
* Created by Brett Terpstra 6920201 on 16/01/23.
|
|
|
|
* Copyright (c) Brett Terpstra 2023 All Rights Reserved
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FINAL_PROJECT_WINDOW_H
|
|
|
|
#define FINAL_PROJECT_WINDOW_H
|
|
|
|
|
|
|
|
#include <blt/window/window.h>
|
|
|
|
|
|
|
|
class glut_window : public blt::window {
|
2023-01-17 11:22:45 -05:00
|
|
|
protected:
|
|
|
|
void createGLUTWindow();
|
|
|
|
void destroyGLUTWindow();
|
2023-01-16 14:12:53 -05:00
|
|
|
public:
|
2023-01-17 11:22:45 -05:00
|
|
|
glut_window() = default;
|
|
|
|
glut_window(int width, int height);
|
|
|
|
void createWindow() override;
|
|
|
|
void destroyWindow() override;
|
|
|
|
~glut_window() override;
|
2023-01-16 14:18:53 -05:00
|
|
|
|
2023-01-17 11:22:45 -05:00
|
|
|
bool setResizeable(bool resizeEnabled) override;
|
|
|
|
bool setWindowSize(int width, int height) override;
|
2023-01-16 14:18:53 -05:00
|
|
|
|
2023-01-17 11:22:45 -05:00
|
|
|
void render();
|
2023-01-16 14:12:53 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FINAL_PROJECT_WINDOW_H
|