Added visible and float booleans

This commit is contained in:
andreja6
2018-04-13 20:09:20 -07:00
parent 7d623bb99d
commit b12c753179
4 changed files with 21 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#include "resource.h"
#include "Instance.h"
#include "PhysicalInstance.h"
#include "TextButtonInstance.h"
#if G3D_VER < 61000
#error Requires G3D 6.10
@@ -22,6 +23,7 @@ static const float VNUM = 0.01F;
static std::string title = "";
static const std::string VERSION = "PRE-ALPHA ";
static std::vector<Instance*> instances;
static std::vector<Instance*> instances_2D;
static Instance* dataModel;
static GFontRef fntdominant = NULL;
static GFontRef fntlighttrek = NULL;
@@ -102,6 +104,14 @@ PhysicalInstance* makePart()
return part;
}
TextButtonInstance* makeTextButton()
{
TextButtonInstance* part = new TextButtonInstance();
instances.push_back(part);
instances_2D.push_back(part);
return part;
}
void Demo::onInit() {
// Called before Demo::run() beings