keep getting a screen of white!!
Mar 29, 2012 at 4:29am UTC
so i making a game and i trying to load a texture and i believe i have loaded it corretly but all i am getting is a white screen and i cant find where the problem lies!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#include "MenuState.h"
#include "GL_Functions.h"
#include "Game.h"
MenuState::MenuState(Game* pGame)
{
m_pOwningGame = pGame;
}
MenuState::~MenuState()
{
int m_iTitleScreen;
}
void MenuState::OnLoad()
{
m_iTitleScreen = LoadTexture("./Images/TitleScreen.png" );
}
void MenuState::OnUnload()
{
FreeTexture(m_iTitleScreen);
}
void MenuState::Update()
{
DrawSprite(m_iTitleScreen,0,0,1024,768);
if (IsKeyDown(' ' ) == true )
{
m_pOwningGame->ChangeState(Game::PLAY_GAME_STATE);
}
}
void MenuState::Draw()
{
DrawSprite(m_iTitleScreen,0,0,1024,768);
}
Mar 29, 2012 at 4:34am UTC
never mind the file directory had a lower case in one word..it needed a capital sigh
Topic archived. No new replies allowed.