Cleaning code.

This commit is contained in:
Martín Lucas Golini
2014-06-08 16:56:16 -03:00
parent d36f6e7ff2
commit 8bb008b79e
2 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
TexF->Color( eeColor(0,0,0) );
// Create a new text string
String Txt( String::FromUtf8( "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." ) );
String Txt( "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." );
// Make the text fit the screen width ( wrap the text )
TTF2->ShrinkText( Txt, win->GetWidth() - 96 );

View File

@@ -4,7 +4,7 @@
std::string AppPath = Sys::GetProcessPath();
/// Play a sound
void playSound() {
void PlaySound() {
// The sound manager class simplyfies the load of a SoundBuffer and the creation of the Sound
// It manages the sound playing, if the sound channel is already playing, it will open a new channel to play the sound
cSoundManager SoundManager;
@@ -25,7 +25,7 @@ void playSound() {
}
/// Play a music
void playMusic() {
void PlayMusic() {
// Load an ogg music file
cMusic music;
@@ -58,10 +58,10 @@ void playMusic() {
EE_MAIN_FUNC int main (int argc, char * argv [])
{
// Play a sound
playSound();
PlaySound();
// Play a music
playMusic();
PlayMusic();
// Wait until the user presses 'enter' key
std::cout << "Press enter to exit..." << std::endl;