Added instance types

I feel like the way it works now isn't the best
This commit is contained in:
andreja6
2018-04-10 21:59:55 -07:00
parent 0908d93f29
commit 59f6652396
7 changed files with 74 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
*/
#include <G3DAll.h>
#include "Instance.h"
#include "PhysicalInstance.h"
#if G3D_VER < 61000
#error Requires G3D 6.10
@@ -19,6 +20,7 @@
static const float VNUM = 0.01F;
static const std::string VERSION = "PRE-ALPHA ";
static std::vector<Instance> Instances;
static Instance* dataModel;
static GFontRef fntdominant = NULL;
static GFontRef fntlighttrek = NULL;
static bool democ = true;
@@ -93,11 +95,17 @@ std::string Convert (float number){
void Demo::onInit() {
// Called before Demo::run() beings
dataModel = new Instance();
//dataModel->name = "undefined";
dataModel->parent = NULL;
PhysicalInstance* test = new PhysicalInstance();
setDesiredFrameRate(FPSVal[index]);
app->debugCamera.setPosition(Vector3(0, 2, 10));
app->debugCamera.lookAt(Vector3(0, 2, 0));
//std::string str = "Dynamica Duomillenium 5 Version " + VERSION + Convert(VNUM);
std::string str = "Game \"undefined\"";
std::string str = "Game \"" + dataModel->name + "\"";
app->renderDevice->setCaption(str);
GApplet::onInit();
}