begin work on window module
This commit is contained in:
14
modules/Print/src/print.cpp
Normal file
14
modules/Print/src/print.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "print.h"
|
||||
|
||||
Print::Print(void* h, App& a) : Module(h, a) {
|
||||
name = "Print";
|
||||
}
|
||||
|
||||
Print::~Print() {
|
||||
std::cout << "Print Destroyed!\n";
|
||||
}
|
||||
|
||||
void Print::run() {
|
||||
std::cout << "Print lib loaded and run!\n";
|
||||
app.stopModule(self);
|
||||
}
|
||||
16
modules/Print/src/print.h
Normal file
16
modules/Print/src/print.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "../../../include/Archimedes.h"
|
||||
|
||||
class Print : public Module {
|
||||
|
||||
public:
|
||||
Print(void*, App&);
|
||||
~Print();
|
||||
void run();
|
||||
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
Module* create(void* handle, App& app) {
|
||||
return new Print(handle, app);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user