rename to Project Archimedes
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# X-001 - Engine
|
# 007 - Archimedes
|
||||||
|
|
||||||
Some kind of cross platform desktop app using c++ imgui and vulkan
|
Some kind of cross platform desktop app using c++ imgui and vulkan
|
||||||
|
|
||||||
|
|||||||
8
include/Archimedes.h
Normal file
8
include/Archimedes.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifndef ARCHIMEDES_H
|
||||||
|
#define ARCHIMEDES_H
|
||||||
|
|
||||||
|
#include "../src/Module.h"
|
||||||
|
#include "../src/GuiModule.h"
|
||||||
|
#include "../src/App.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
29
modules/testMenu/src/testMenu.cpp
Normal file
29
modules/testMenu/src/testMenu.cpp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#include "testMenu.h"
|
||||||
|
|
||||||
|
TestMenu::TestMenu() {}
|
||||||
|
|
||||||
|
TestMenu::~TestMenu() {}
|
||||||
|
|
||||||
|
void TestMenu::run() {
|
||||||
|
|
||||||
|
std::cout << "Your number is: " << num << "\n"
|
||||||
|
<< "1. Add 1\n"
|
||||||
|
<< "2. Subtract 1\n"
|
||||||
|
<< "3. Quit\n\n";
|
||||||
|
|
||||||
|
std::cin >> choice;
|
||||||
|
|
||||||
|
switch(choice) {
|
||||||
|
case 1:
|
||||||
|
num++;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
num--;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
App::Get().end();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
23
modules/testMenu/src/testMenu.h
Normal file
23
modules/testMenu/src/testMenu.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#include "../../../include/Archimedes.h"
|
||||||
|
|
||||||
|
class TestMenu : public Module {
|
||||||
|
|
||||||
|
public:
|
||||||
|
TestMenu();
|
||||||
|
~TestMenu();
|
||||||
|
void run();
|
||||||
|
|
||||||
|
private:
|
||||||
|
int choice;
|
||||||
|
int num = 5;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
Module* create() {
|
||||||
|
return new TestMenu();
|
||||||
|
}
|
||||||
|
|
||||||
|
void destroy(Module* m) {
|
||||||
|
delete m;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user