Added bare bones TextButton rendering

(Yes, it took that many lines of code)
This commit is contained in:
andreja6
2018-04-19 17:18:26 -07:00
parent acbe509c05
commit 3e4c128347
7 changed files with 151 additions and 10 deletions

21
ImageButtonInstance.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include "ImageButtonInstance.h"
G3D::TextureRef image = NULL;
int openGLID = 0;
G3D::TextureRef image_ovr = NULL;
int openGLID_ovr = 0;
G3D::TextureRef image_dn = NULL;
int openGLID_dn = 0;
ImageButtonInstance::ImageButtonInstance(G3D::TextureRef newImage = NULL, G3D::TextureRef overImage = NULL, G3D::TextureRef downImage = NULL)
{
image = newImage;
openGLID = image->getOpenGLID();
image_ovr = overImage;
openGLID_ovr = image_ovr->getOpenGLID();
image_dn = downImage;
openGLID_dn = image_dn->getOpenGLID();
}
ImageButtonInstance::~ImageButtonInstance(void)
{
}