Not complated.
Code View:
/*
Start: Run only program start.
Loop: Run code every loop.
*/
#define AppName "XsEngine Test" // Your Window Name.
// #define win eng.Window
using namespace std;
var cam = eng.Cam;
XsStart{
print("Ready!\n");
var Shape = eng.Shape("{}"); // Get Shape.
var Cube = eng.Mesh("Cube 0");
Cube = Xs.LoadOBJ("filename.obj");
Shape.mesh = &Cube;
};
XsLoop{
if (Xs.Key.Pressed(Xs.Key.Escape))
win.close();
// XsEditorCamera(cam);
};
[----------------------------------------------------------------------------------------------------------------]
v0.1.3 [----------------------------------------------------------------------------------------------------------------]
v0.1.2 (click image to view youtube video) [----------------------------------------------------------------------------------------------------------------]
v0.1.1 [----------------------------------------------------------------------------------------------------------------]
v0.1.0 [----------------------------------------------------------------------------------------------------------------]
v0.0.9 [----------------------------------------------------------------------------------------------------------------]
v0.0.8 [----------------------------------------------------------------------------------------------------------------]
v0.0.7 [----------------------------------------------------------------------------------------------------------------]
v0.0.6 [----------------------------------------------------------------------------------------------------------------]
v0.0.5 [----------------------------------------------------------------------------------------------------------------]
v0.0.4 [----------------------------------------------------------------------------------------------------------------]
v0.0.3 [----------------------------------------------------------------------------------------------------------------]
v0.0.2 [----------------------------------------------------------------------------------------------------------------]