// BlockyFroggy
// Copyright © 2017 John Ryland.
// All rights reserved.
#include "BlankState.h"
#include "GameSim.h"
#include "Graphics.h"
REGISTER_GAME_STATE(BlankState)
void BlankState::enter(GameGraphics& graphics)
{
std::vector<GameSim::GameObjectList*> objectLists;
graphics.resetVertexBuffers(objectLists);
}
void BlankState::draw(GameGraphics& graphics)
{
graphics.prepareScreenContext();
}
std::string luaTestString;
void luaTestFunc()
{
static int calledTimes = 0;
luaTestString = "Ran " + std::to_string(calledTimes) + " times";
calledTimes++;
}
bool BlankState::update(GameUi::UpdateState& state, float elapsed)
{
state.m_variables["LUA_TEST_TEXT"] = luaTestString;
return true; // has to be exited via ui
}