* Add missing files.
This commit is contained in:
jean.chalard
2009-08-22 06:01:52 +00:00
parent 3349f974f1
commit b2f75d45e7
21 changed files with 1625 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "../include/config.h"
#include "../include/GameApp.h"
#include "../include/GuiBackground.h"
GuiBackground::GuiBackground()
{
JTexture* texture = GameApp::CommonRes->GetTexture("graphics/back.jpg");
if (texture)
quad = NEW JQuad(texture, 0, 0, 480, 255);
else
{
quad = NULL;
GameApp::systemError = "Error loading background texture : " __FILE__;
}
}
GuiBackground::~GuiBackground()
{
delete(quad);
}
void GuiBackground::Render()
{
JRenderer* renderer = JRenderer::GetInstance();
renderer->RenderQuad(quad, 0, 18);
}