Add window defines
parent
7d4477b983
commit
3d5deecc87
|
@ -81,7 +81,7 @@
|
|||
{
|
||||
"directoryIndex" : 0,
|
||||
"id" : "Final_Project::@6890427a1f51a3e7e1df",
|
||||
"jsonFile" : "target-Final_Project-Debug-b5832a3f1c00859bdae5.json",
|
||||
"jsonFile" : "target-Final_Project-Debug-9b666a87047b10b6f81b.json",
|
||||
"name" : "Final_Project",
|
||||
"projectIndex" : 0
|
||||
}
|
|
@ -26,7 +26,7 @@
|
|||
"objects" :
|
||||
[
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-3ef14ee1ded825530bb3.json",
|
||||
"jsonFile" : "codemodel-v2-9815ffeff720abbe266c.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
||||
|
@ -86,7 +86,7 @@
|
|||
},
|
||||
"codemodel-v2" :
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-3ef14ee1ded825530bb3.json",
|
||||
"jsonFile" : "codemodel-v2-9815ffeff720abbe266c.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
|
@ -96,7 +96,8 @@
|
|||
},
|
||||
"sourceIndexes" :
|
||||
[
|
||||
0
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -156,7 +157,8 @@
|
|||
"name" : "Source Files",
|
||||
"sourceIndexes" :
|
||||
[
|
||||
0
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -167,6 +169,12 @@
|
|||
"compileGroupIndex" : 0,
|
||||
"path" : "src/main.cpp",
|
||||
"sourceGroupIndex" : 0
|
||||
},
|
||||
{
|
||||
"backtrace" : 1,
|
||||
"compileGroupIndex" : 0,
|
||||
"path" : "src/window/window.cpp",
|
||||
"sourceGroupIndex" : 0
|
||||
}
|
||||
],
|
||||
"type" : "EXECUTABLE"
|
|
@ -1,3 +1,3 @@
|
|||
Start testing: Jan 16 14:11 EST
|
||||
Start testing: Jan 16 14:18 EST
|
||||
----------------------------------------------------------
|
||||
End testing: Jan 16 14:11 EST
|
||||
End testing: Jan 16 14:18 EST
|
||||
|
|
|
@ -56,6 +56,13 @@ build CMakeFiles/Final_Project.dir/src/main.cpp.o: CXX_COMPILER__Final_Project_D
|
|||
OBJECT_DIR = CMakeFiles/Final_Project.dir
|
||||
OBJECT_FILE_DIR = CMakeFiles/Final_Project.dir/src
|
||||
|
||||
build CMakeFiles/Final_Project.dir/src/window/window.cpp.o: CXX_COMPILER__Final_Project_Debug /home/laptop/Documents/Brock/CS$ 3P98/Final$ Project/src/window/window.cpp || cmake_object_order_depends_target_Final_Project
|
||||
DEP_FILE = CMakeFiles/Final_Project.dir/src/window/window.cpp.o.d
|
||||
FLAGS = -g -fdiagnostics-color=always
|
||||
INCLUDES = -I"/home/laptop/Documents/Brock/CS 3P98/Final Project/include" -I/usr/include/FreeImage.h -I"/home/laptop/Documents/Brock/CS 3P98/Final Project/libraries/BLT/include"
|
||||
OBJECT_DIR = CMakeFiles/Final_Project.dir
|
||||
OBJECT_FILE_DIR = CMakeFiles/Final_Project.dir/src/window
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# Link build statements for EXECUTABLE target Final_Project
|
||||
|
@ -64,7 +71,7 @@ build CMakeFiles/Final_Project.dir/src/main.cpp.o: CXX_COMPILER__Final_Project_D
|
|||
#############################################
|
||||
# Link the executable Final_Project
|
||||
|
||||
build Final_Project: CXX_EXECUTABLE_LINKER__Final_Project_Debug CMakeFiles/Final_Project.dir/src/main.cpp.o | libraries/BLT/libBLT.a /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/x86_64-linux-gnu/libXi.so /usr/lib/x86_64-linux-gnu/libfreeimage.so || libraries/BLT/libBLT.a
|
||||
build Final_Project: CXX_EXECUTABLE_LINKER__Final_Project_Debug CMakeFiles/Final_Project.dir/src/main.cpp.o CMakeFiles/Final_Project.dir/src/window/window.cpp.o | libraries/BLT/libBLT.a /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/x86_64-linux-gnu/libXi.so /usr/lib/x86_64-linux-gnu/libfreeimage.so || libraries/BLT/libBLT.a
|
||||
FLAGS = -g
|
||||
LINK_LIBRARIES = libraries/BLT/libBLT.a /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/x86_64-linux-gnu/libXi.so /usr/lib/x86_64-linux-gnu/libfreeimage.so
|
||||
OBJECT_DIR = CMakeFiles/Final_Project.dir
|
||||
|
|
|
@ -12,7 +12,22 @@ class glut_window : public blt::window {
|
|||
private:
|
||||
|
||||
public:
|
||||
glut_window();
|
||||
virtual void createWindow() override;
|
||||
virtual void destroyWindow() override;
|
||||
virtual ~glut_window();
|
||||
|
||||
virtual bool setResizeable(bool resizeEnabled) override;
|
||||
virtual bool setWindowSize(int width, int height) override;
|
||||
virtual int getWidth() override;
|
||||
virtual int getHeight() override;
|
||||
|
||||
virtual bool isKeyDown(int key) override;
|
||||
virtual bool isMouseDown(int button) override;
|
||||
// Function signature is window pointer to this, key press, pressed/released (true/false)
|
||||
virtual void registerKeyListener(std::function<void(window*, int, bool)> listener) override;
|
||||
// Function signature is window pointer to this, mouse button press, pressed/released (true/false)
|
||||
virtual void registerMouseListener(std::function<void(window*, int, bool)> listener) override;
|
||||
};
|
||||
|
||||
#endif //FINAL_PROJECT_WINDOW_H
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <iostream>
|
||||
#include <window/window.h>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Created by Brett Terpstra 6920201 on 16/01/23.
|
||||
* Copyright (c) Brett Terpstra 2023 All Rights Reserved
|
||||
*/
|
||||
#include <window/window.h>
|
||||
|
||||
glut_window::glut_window() {
|
||||
|
||||
}
|
||||
|
||||
void glut_window::createWindow() {
|
||||
|
||||
}
|
||||
|
||||
void glut_window::destroyWindow() {
|
||||
|
||||
}
|
||||
|
||||
glut_window::~glut_window() {
|
||||
|
||||
}
|
||||
|
||||
bool glut_window::setResizeable(bool resizeEnabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool glut_window::setWindowSize(int width, int height) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int glut_window::getWidth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int glut_window::getHeight() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool glut_window::isKeyDown(int key) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool glut_window::isMouseDown(int button) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void glut_window::registerKeyListener(std::function<(void) (bool)...> listener) {
|
||||
|
||||
}
|
||||
|
||||
void glut_window::registerMouseListener(std::function<(void) (bool)...> listener) {
|
||||
|
||||
}
|
Loading…
Reference in New Issue