Added visible and float booleans
This commit is contained in:
10
main.cpp
10
main.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user