mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Examples adjustments.
* French to English punctuation. * Pong and Shader use fixed-sized windows now (especially on tiling window managers, the windows will be resized automatically, thus making the examples look and also behave weirdly).
This commit is contained in:
parent
6ef3cb27a1
commit
40ae3ce175
@ -27,7 +27,8 @@ int main()
|
||||
float ballRadius = 10.f;
|
||||
|
||||
// Create the window of the application
|
||||
sf::RenderWindow window(sf::VideoMode(gameWidth, gameHeight, 32), "SFML Pong");
|
||||
sf::RenderWindow window(sf::VideoMode(gameWidth, gameHeight, 32), "SFML Pong",
|
||||
sf::Style::Titlebar | sf::Style::Close);
|
||||
window.setVerticalSyncEnabled(true);
|
||||
|
||||
// Load the sounds used in the game
|
||||
|
@ -267,7 +267,8 @@ private:
|
||||
int main()
|
||||
{
|
||||
// Create the main window
|
||||
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML Shader");
|
||||
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML Shader",
|
||||
sf::Style::Titlebar | sf::Style::Close);
|
||||
window.setVerticalSyncEnabled(true);
|
||||
|
||||
// Load the application font and pass it to the Effect class
|
||||
|
@ -25,12 +25,12 @@ int main()
|
||||
|
||||
// TCP, UDP or connected UDP ?
|
||||
char protocol;
|
||||
std::cout << "Do you want to use TCP (t) or UDP (u) ? ";
|
||||
std::cout << "Do you want to use TCP (t) or UDP (u)? ";
|
||||
std::cin >> protocol;
|
||||
|
||||
// Client or server ?
|
||||
char who;
|
||||
std::cout << "Do you want to be a server (s) or a client (c) ? ";
|
||||
std::cout << "Do you want to be a server (s) or a client (c)? ";
|
||||
std::cin >> who;
|
||||
|
||||
if (protocol == 't')
|
||||
|
@ -24,7 +24,7 @@ int main()
|
||||
|
||||
// Choose the sample rate
|
||||
unsigned int sampleRate;
|
||||
std::cout << "Please choose the sample rate for sound capture (44100 is CD quality) : ";
|
||||
std::cout << "Please choose the sample rate for sound capture (44100 is CD quality): ";
|
||||
std::cin >> sampleRate;
|
||||
std::cin.ignore(10000, '\n');
|
||||
|
||||
|
@ -28,7 +28,7 @@ int main()
|
||||
|
||||
// Client or server ?
|
||||
char who;
|
||||
std::cout << "Do you want to be a server ('s') or a client ('c') ? ";
|
||||
std::cout << "Do you want to be a server ('s') or a client ('c')? ";
|
||||
std::cin >> who;
|
||||
|
||||
if (who == 's')
|
||||
|
Loading…
Reference in New Issue
Block a user