Added properties to TextButtonInstance

Why wont the go button become textured aaaaaaaaaaaaaaaa
This commit is contained in:
andreja6
2018-04-12 22:44:51 -07:00
parent 5306ec6809
commit 21684a6ea3
3 changed files with 28 additions and 5 deletions

View File

@@ -455,12 +455,12 @@ void Demo::onGraphics(RenderDevice* rd) {
//rd->pushState();
rd->pushState();
//rd->setTexture(0, go);
rd->setTexture(0, go);
/*rd->enableAlphaWrite();
rd->enableAlphaWrite();
rd->setTexCoord(0, Vector2(0.0F, 0.0F));
rd->setTexCoord(0, Vector2(1.0F, 0.0F));
rd->setTexCoord(0, Vector2(0.0F, 1.0F));
@@ -473,7 +473,7 @@ void Demo::onGraphics(RenderDevice* rd) {
rd->sendVertex(Vector2(10,85));
rd->endPrimitive();
rd->setTexture(0, NULL);
//rd->popState();*/
rd->popState();
app->renderDevice->pop2D();