9346
General / AW: Re: Memory Delete?
« on: October 28, 2012, 07:35:11 am »hmm, okay. But why do I need to do this?You can get a bit more details here.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
hmm, okay. But why do I need to do this?You can get a bit more details here.
Could you explain that a little bit better so I fully understand whats going on?You need to add virtual ~GameState(); to the GameState header and then implement a destructor for each state.
Which destructor are you talking about?
There are hex numbers there as const sf::Uint8 FONT[] to use load from memory on them, a bit like what sfml did before default font removal.Oh GitHub simply suppressed that in the normal view. The RAW output shows it though.
main.cpp, line 10:Which numbers? I don't see anything, see here.
Where did you get those numbers from?!?! Hex editor?
Also, I notice that some projects don't even include the music as a different .wav file. It seems they include the audio in a .dat file along with the graphics. How is this possible?They somehow pack it. A common way is to use zlib and decompress the contained data at runtime. There are even some libraries that can 'stream' it directly from the zipped file.