This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "utils/event.h" | |
| #include <iostream> | |
| void cb (int i, bool s) { | |
| if(s)std::cout << i; | |
| } | |
| int main () { | |
| Event<int, bool> evt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <fstream> | |
| using namespace std; | |
| int main (int argc, char** argv) { | |
| if (argc < 3) { | |
| return false; | |
| } | |
| ifstream in(argv[1], ios::binary); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HIT_HMD2043 | |
| __ __ | |
| || || | |
| ||==|| I T | |
| _|| ||_ | |
| Harold Innovation Technologies | |
| "If it ain't a HIT, it's a piece of..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :main | |
| set a, process1 | |
| jsr process_create | |
| set a, process2 | |
| jsr process_create | |
| jsr process_exit; exit from main process | |
| :process1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set pc, kernel_start | |
| :clock | |
| dat 0xffff | |
| :get_hardware; () -> void | |
| hwn i | |
| .loop | |
| sub i, 1 | |
| hwq i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "enigne.h" | |
| using namespace scene; | |
| using namespace gfx; | |
| using namespace utils; | |
| //... | |
| int main () { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "scene.h" | |
| #include "gfx.h" | |
| #include <iostream> | |
| using namespace scene; | |
| using namespace gfx; | |
| using namespace math3d; | |
| int main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env = Environment() | |
| libs=['glfw', 'GLEW'] | |
| if env['PLATFORM'] == 'posix': | |
| env['LIBPATH']=['../glfw-2.7.5/lib/x11', '../glew-1.7.0/lib'] | |
| env['CPPPATH']=['../glfw-2.7.5/include', '../glew-1.7.0/include'] | |
| libs += ["rt", "X11", "GL", "pthread", "m"] | |
| conf = Configure(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "scene.h" | |
| #include <iostream> | |
| using namespace scene; | |
| int main () { | |
| Scene* scene = new Scene(); |