31
Graphics / Textures and RenderTextures broken
« on: August 25, 2011, 07:23:49 pm »
I tried using a renderTexture earlier but the program would just close straight away.
I am also using a Texture like this:
but I just et this image
I am also using a Texture like this:
Code: [Select]
#include "TitleScreen.hpp"
TitleScreen::TitleScreen()
{
}
TitleScreen::TitleScreen(sf::RenderWindow &App)
{
app = &App;
titleImage.LoadFromFile("./data/Title.png");
titleImage.Bind();
}
TitleScreen::~TitleScreen(){}
void TitleScreen::Update()
{
}
void TitleScreen::Draw()
{
app->Draw(sf::Sprite(titleImage ));
}
but I just et this image