d5f3e4cfea
Also fixed the project includes so that we don't need to always use the indirect include path, ie: #include "../include/foo.h" -> #include "foo.h" I'm don't know much about make files - if I busted the linux build, mea culpa, but I think we're okay on that front too. For future reference, here's the most straightforward link on the topic of adding pch support to make files: http://www.mercs-eng.com/~hulud/index.php?2008/06/13/6-writing-a-good-makefile-for-a-c-project
30 lines
599 B
C++
30 lines
599 B
C++
#include "PrecompiledHeader.h"
|
|
|
|
#include "GameApp.h"
|
|
#include "GuiBackground.h"
|
|
#include "GameObserver.h"
|
|
#include "Rules.h"
|
|
|
|
GuiBackground::GuiBackground()
|
|
{
|
|
}
|
|
|
|
GuiBackground::~GuiBackground()
|
|
{
|
|
}
|
|
|
|
void GuiBackground::Render()
|
|
{
|
|
JRenderer* renderer = JRenderer::GetInstance();
|
|
JQuad * quad = NULL;
|
|
GameObserver * go = GameObserver::GetInstance();
|
|
if (go && go->mRules && go->mRules->bg.size()) {
|
|
quad = resources.RetrieveTempQuad(go->mRules->bg);
|
|
}
|
|
if (!quad) {
|
|
quad = resources.RetrieveTempQuad("backdrop.jpg");
|
|
}
|
|
if (!quad) return;
|
|
renderer->RenderQuad(quad, 0, 18);
|
|
}
|