Source code changes.

* Changed newlines to \n.
* Removed whitespace before colons.
* Fixed several alignments.
This commit is contained in:
Stefan Schindler 2014-09-30 16:07:25 +02:00
parent b27cbd5036
commit f24ca9a840
268 changed files with 40227 additions and 40227 deletions

View file

@ -124,7 +124,7 @@ endif()
# setup Mac OS X stuff # setup Mac OS X stuff
if(SFML_OS_MACOSX) if(SFML_OS_MACOSX)
# SFML_BUILD_FRAMEWORKS needs two things : # SFML_BUILD_FRAMEWORKS needs two things:
# first, it's available only for release # first, it's available only for release
# (because cmake currently doesn't allow specifying a custom framework name so XXX-d is not possible) # (because cmake currently doesn't allow specifying a custom framework name so XXX-d is not possible)
# secondly, it works only with BUILD_SHARED_LIBS enabled # secondly, it works only with BUILD_SHARED_LIBS enabled
@ -229,7 +229,7 @@ else()
COMMAND cp -r ${PROJECT_SOURCE_DIR}/include/SFML/* $<TARGET_FILE_DIR:SFML>/Headers) COMMAND cp -r ${PROJECT_SOURCE_DIR}/include/SFML/* $<TARGET_FILE_DIR:SFML>/Headers)
# adapt install directory to allow distributing dylibs/frameworks in users frameworks/application bundle # adapt install directory to allow distributing dylibs/frameworks in users frameworks/application bundle
# NOTE : it's not required to link agains SFML.framework # NOTE: it's not required to link agains SFML.framework
set_target_properties(SFML PROPERTIES set_target_properties(SFML PROPERTIES
BUILD_WITH_INSTALL_RPATH 1 BUILD_WITH_INSTALL_RPATH 1
INSTALL_NAME_DIR "@executable_path/../Frameworks") INSTALL_NAME_DIR "@executable_path/../Frameworks")

View file

@ -82,7 +82,7 @@ find_path(SFML_INCLUDE_DIR SFML/Config.hpp
set(SFML_VERSION_OK TRUE) set(SFML_VERSION_OK TRUE)
if(SFML_FIND_VERSION AND SFML_INCLUDE_DIR) if(SFML_FIND_VERSION AND SFML_INCLUDE_DIR)
# extract the major and minor version numbers from SFML/Config.hpp # extract the major and minor version numbers from SFML/Config.hpp
# we have to handle framework a little bit differently : # we have to handle framework a little bit differently:
if("${SFML_INCLUDE_DIR}" MATCHES "SFML.framework") if("${SFML_INCLUDE_DIR}" MATCHES "SFML.framework")
set(SFML_CONFIG_HPP_INPUT "${SFML_INCLUDE_DIR}/Headers/Config.hpp") set(SFML_CONFIG_HPP_INPUT "${SFML_INCLUDE_DIR}/Headers/Config.hpp")
else() else()

View file

@ -1095,57 +1095,57 @@ endif()
set(LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_LIBRARY_DIR}) set(LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_LIBRARY_DIR})
# Variables controlling behavior or set by cmake toolchain: # Variables controlling behavior or set by cmake toolchain:
# ANDROID_ABI : "armeabi-v7a" (default), "armeabi", "armeabi-v7a with NEON", "armeabi-v7a with VFPV3", "armeabi-v6 with VFP", "x86", "mips" # ANDROID_ABI: "armeabi-v7a" (default), "armeabi", "armeabi-v7a with NEON", "armeabi-v7a with VFPV3", "armeabi-v6 with VFP", "x86", "mips"
# ANDROID_NATIVE_API_LEVEL : 3,4,5,8,9,14 (depends on NDK version) # ANDROID_NATIVE_API_LEVEL: 3,4,5,8,9,14 (depends on NDK version)
# ANDROID_SET_OBSOLETE_VARIABLES : ON/OFF # ANDROID_SET_OBSOLETE_VARIABLES: ON/OFF
# ANDROID_USE_STLPORT : OFF/ON - EXPERIMENTAL!!! # ANDROID_USE_STLPORT: OFF/ON - EXPERIMENTAL!!!
# ANDROID_FORBID_SYGWIN : ON/OFF # ANDROID_FORBID_SYGWIN: ON/OFF
# ANDROID_NO_UNDEFINED : ON/OFF # ANDROID_NO_UNDEFINED: ON/OFF
# ANDROID_SO_UNDEFINED : OFF/ON (default depends on NDK version) # ANDROID_SO_UNDEFINED: OFF/ON (default depends on NDK version)
# ANDROID_FUNCTION_LEVEL_LINKING : ON/OFF # ANDROID_FUNCTION_LEVEL_LINKING: ON/OFF
# Variables that takes effect only at first run: # Variables that takes effect only at first run:
# ANDROID_FORCE_ARM_BUILD : ON/OFF # ANDROID_FORCE_ARM_BUILD: ON/OFF
# LIBRARY_OUTPUT_PATH_ROOT : <any valid path> # LIBRARY_OUTPUT_PATH_ROOT: <any valid path>
# Can be set only at the first run: # Can be set only at the first run:
# ANDROID_NDK # ANDROID_NDK
# ANDROID_STANDALONE_TOOLCHAIN # ANDROID_STANDALONE_TOOLCHAIN
# ANDROID_TOOLCHAIN_NAME : "arm-linux-androideabi-4.4.3" or "arm-linux-androideabi-4.6" or "mipsel-linux-android-4.4.3" or "mipsel-linux-android-4.6" or "x86-4.4.3" or "x86-4.6" # ANDROID_TOOLCHAIN_NAME: "arm-linux-androideabi-4.4.3" or "arm-linux-androideabi-4.6" or "mipsel-linux-android-4.4.3" or "mipsel-linux-android-4.6" or "x86-4.4.3" or "x86-4.6"
# Obsolete: # Obsolete:
# ANDROID_API_LEVEL : superseded by ANDROID_NATIVE_API_LEVEL # ANDROID_API_LEVEL: superseded by ANDROID_NATIVE_API_LEVEL
# ARM_TARGET : superseded by ANDROID_ABI # ARM_TARGET: superseded by ANDROID_ABI
# ARM_TARGETS : superseded by ANDROID_ABI (can be set only) # ARM_TARGETS: superseded by ANDROID_ABI (can be set only)
# ANDROID_NDK_TOOLCHAIN_ROOT : superseded by ANDROID_STANDALONE_TOOLCHAIN (can be set only) # ANDROID_NDK_TOOLCHAIN_ROOT: superseded by ANDROID_STANDALONE_TOOLCHAIN (can be set only)
# ANDROID_LEVEL : superseded by ANDROID_NATIVE_API_LEVEL (completely removed) # ANDROID_LEVEL: superseded by ANDROID_NATIVE_API_LEVEL (completely removed)
# #
# Primary read-only variables: # Primary read-only variables:
# ANDROID : always TRUE # ANDROID: always TRUE
# ARMEABI : TRUE for arm v6 and older devices # ARMEABI: TRUE for arm v6 and older devices
# ARMEABI_V6 : TRUE for arm v6 # ARMEABI_V6: TRUE for arm v6
# ARMEABI_V7A : TRUE for arm v7a # ARMEABI_V7A: TRUE for arm v7a
# NEON : TRUE if NEON unit is enabled # NEON: TRUE if NEON unit is enabled
# VFPV3 : TRUE if VFP version 3 is enabled # VFPV3: TRUE if VFP version 3 is enabled
# X86 : TRUE if configured for x86 # X86: TRUE if configured for x86
# BUILD_ANDROID : always TRUE # BUILD_ANDROID: always TRUE
# BUILD_WITH_ANDROID_NDK : TRUE if NDK is used # BUILD_WITH_ANDROID_NDK: TRUE if NDK is used
# BUILD_WITH_STANDALONE_TOOLCHAIN : TRUE if standalone toolchain is used # BUILD_WITH_STANDALONE_TOOLCHAIN: TRUE if standalone toolchain is used
# ANDROID_NDK_HOST_SYSTEM_NAME : "windows", "linux-x86" or "darwin-x86" depending on host platform # ANDROID_NDK_HOST_SYSTEM_NAME: "windows", "linux-x86" or "darwin-x86" depending on host platform
# ANDROID_NDK_HOST_SYSTEM_ARCH : "x86", "x64" depending on host platform # ANDROID_NDK_HOST_SYSTEM_ARCH: "x86", "x64" depending on host platform
# ANDROID_NDK_ABI_NAME : "armeabi", "armeabi-v7a" or "x86" depending on ANDROID_ABI # ANDROID_NDK_ABI_NAME: "armeabi", "armeabi-v7a" or "x86" depending on ANDROID_ABI
# ANDROID_ARCH_NAME : "arm" or "x86" or "mips" depending on ANDROID_ABI # ANDROID_ARCH_NAME: "arm" or "x86" or "mips" depending on ANDROID_ABI
# TOOL_OS_SUFFIX : "" or ".exe" depending on host platform # TOOL_OS_SUFFIX: "" or ".exe" depending on host platform
# ANDROID_SYSROOT : path to the compiler sysroot # ANDROID_SYSROOT: path to the compiler sysroot
# ANDROID_SYSTEM_INCLUDE_DIRS # ANDROID_SYSTEM_INCLUDE_DIRS
# ANDROID_SYSTEM_LIB_DIRS # ANDROID_SYSTEM_LIB_DIRS
# Obsolete: # Obsolete:
# ARMEABI_NDK_NAME : superseded by ANDROID_NDK_ABI_NAME # ARMEABI_NDK_NAME: superseded by ANDROID_NDK_ABI_NAME
# #
# Secondary (less stable) read-only variables: # Secondary (less stable) read-only variables:
# ANDROID_COMPILER_VERSION : GCC version used # ANDROID_COMPILER_VERSION: GCC version used
# ANDROID_CXX_FLAGS : C/C++ compiler flags required by Android platform # ANDROID_CXX_FLAGS: C/C++ compiler flags required by Android platform
# ANDROID_SUPPORTED_ABIS : list of currently allowed values for ANDROID_ABI # ANDROID_SUPPORTED_ABIS: list of currently allowed values for ANDROID_ABI
# ANDROID_TOOLCHAIN_MACHINE_NAME : "arm-linux-androideabi", "arm-eabi" or "i686-android-linux" # ANDROID_TOOLCHAIN_MACHINE_NAME: "arm-linux-androideabi", "arm-eabi" or "i686-android-linux"
# ANDROID_TOOLCHAIN_ROOT : path to the top level of toolchain (standalone or placed inside NDK) # ANDROID_TOOLCHAIN_ROOT: path to the top level of toolchain (standalone or placed inside NDK)
# ANDROID_SUPPORTED_NATIVE_API_LEVELS : list of native API levels found inside NDK # ANDROID_SUPPORTED_NATIVE_API_LEVELS: list of native API levels found inside NDK
# #
# Defaults: # Defaults:
# ANDROID_DEFAULT_NDK_API_LEVEL # ANDROID_DEFAULT_NDK_API_LEVEL

View file

@ -8,7 +8,7 @@
/// at <a href="http://www.sfml-dev.org/">www.sfml-dev.org</a>. /// at <a href="http://www.sfml-dev.org/">www.sfml-dev.org</a>.
/// ///
/// \section example Short example /// \section example Short example
/// Here is a short example, to show you how simple it is to use SFML : /// Here is a short example, to show you how simple it is to use SFML:
/// ///
/// \code /// \code
/// ///
@ -47,7 +47,7 @@
/// sf::Event event; /// sf::Event event;
/// while (window.pollEvent(event)) /// while (window.pollEvent(event))
/// { /// {
/// // Close window : exit /// // Close window: exit
/// if (event.type == sf::Event::Closed) /// if (event.type == sf::Event::Closed)
/// window.close(); /// window.close();
/// } /// }

View file

@ -176,8 +176,8 @@ int main()
// Process it // Process it
switch (event.type) switch (event.type)
{ {
// Any key is pressed : quit // Any key is pressed: quit
case KeyPress : case KeyPress:
running = false; running = false;
break; break;
} }

View file

@ -48,7 +48,7 @@ foreach(XIB ${XIBS})
--compile ${XIB_OUTPUT_PATH}/${XIB}.nib --compile ${XIB_OUTPUT_PATH}/${XIB}.nib
${XIB_INPUT_PATH}/${XIB}.xib ${XIB_INPUT_PATH}/${XIB}.xib
COMMENT "Compiling ${XIB}.xib") COMMENT "Compiling ${XIB}.xib")
# deactivated options : --warnings --notices # deactivated options: --warnings --notices
endforeach() endforeach()
# add install rule # add install rule

View file

@ -27,8 +27,8 @@
#import <SFML/Graphics.hpp> #import <SFML/Graphics.hpp>
/* /*
* NB : We need pointers for C++ objects fields in Obj-C interface ! * NB: We need pointers for C++ objects fields in Obj-C interface !
* The recommended way is to use PIMP idiom. * The recommended way is to use PIMPL idiom.
* *
* It's elegant. Moreover, we do no constrain * It's elegant. Moreover, we do no constrain
* other file including this one to be Obj-C++. * other file including this one to be Obj-C++.

View file

@ -29,7 +29,7 @@ int main()
sf::IpAddress address; sf::IpAddress address;
do do
{ {
std::cout << "Enter the FTP server address : "; std::cout << "Enter the FTP server address: ";
std::cin >> address; std::cin >> address;
} }
while (address == sf::IpAddress::None); while (address == sf::IpAddress::None);
@ -43,9 +43,9 @@ int main()
// Ask for user name and password // Ask for user name and password
std::string user, password; std::string user, password;
std::cout << "User name : "; std::cout << "User name: ";
std::cin >> user; std::cin >> user;
std::cout << "Password : "; std::cout << "Password: ";
std::cin >> password; std::cin >> password;
// Login to the server // Login to the server
@ -79,7 +79,7 @@ int main()
switch (choice) switch (choice)
{ {
default : default:
{ {
// Wrong choice // Wrong choice
std::cout << "Invalid choice!" << std::endl; std::cout << "Invalid choice!" << std::endl;
@ -88,7 +88,7 @@ int main()
break; break;
} }
case 1 : case 1:
{ {
// Print the current server directory // Print the current server directory
sf::Ftp::DirectoryResponse response = server.getWorkingDirectory(); sf::Ftp::DirectoryResponse response = server.getWorkingDirectory();
@ -97,7 +97,7 @@ int main()
break; break;
} }
case 2 : case 2:
{ {
// Print the contents of the current server directory // Print the contents of the current server directory
sf::Ftp::ListingResponse response = server.getDirectoryListing(); sf::Ftp::ListingResponse response = server.getDirectoryListing();
@ -108,7 +108,7 @@ int main()
break; break;
} }
case 3 : case 3:
{ {
// Change the current directory // Change the current directory
std::string directory; std::string directory;
@ -118,7 +118,7 @@ int main()
break; break;
} }
case 4 : case 4:
{ {
// Create a new directory // Create a new directory
std::string directory; std::string directory;
@ -128,7 +128,7 @@ int main()
break; break;
} }
case 5 : case 5:
{ {
// Remove an existing directory // Remove an existing directory
std::string directory; std::string directory;
@ -138,7 +138,7 @@ int main()
break; break;
} }
case 6 : case 6:
{ {
// Rename a file // Rename a file
std::string source, destination; std::string source, destination;
@ -150,7 +150,7 @@ int main()
break; break;
} }
case 7 : case 7:
{ {
// Remove an existing directory // Remove an existing directory
std::string filename; std::string filename;
@ -160,7 +160,7 @@ int main()
break; break;
} }
case 8 : case 8:
{ {
// Download a file from server // Download a file from server
std::string filename, directory; std::string filename, directory;
@ -172,7 +172,7 @@ int main()
break; break;
} }
case 9 : case 9:
{ {
// Upload a file to server // Upload a file to server
std::string filename, directory; std::string filename, directory;
@ -184,7 +184,7 @@ int main()
break; break;
} }
case 0 : case 0:
{ {
// Disconnect // Disconnect
break; break;

View file

@ -146,11 +146,11 @@ int main()
sf::Event event; sf::Event event;
while (window.pollEvent(event)) while (window.pollEvent(event))
{ {
// Close window : exit // Close window: exit
if (event.type == sf::Event::Closed) if (event.type == sf::Event::Closed)
window.close(); window.close();
// Escape key : exit // Escape key: exit
if ((event.type == sf::Event::KeyPressed) && (event.key.code == sf::Keyboard::Escape)) if ((event.type == sf::Event::KeyPressed) && (event.key.code == sf::Keyboard::Escape))
window.close(); window.close();

View file

@ -14,7 +14,7 @@
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class Effect : public sf::Drawable class Effect : public sf::Drawable
{ {
public : public:
virtual ~Effect() virtual ~Effect()
{ {
@ -56,7 +56,7 @@ public :
} }
} }
protected : protected:
Effect(const std::string& name) : Effect(const std::string& name) :
m_name(name), m_name(name),
@ -70,14 +70,14 @@ protected :
return *s_font; return *s_font;
} }
private : private:
// Virtual functions to be implemented in derived effects // Virtual functions to be implemented in derived effects
virtual bool onLoad() = 0; virtual bool onLoad() = 0;
virtual void onUpdate(float time, float x, float y) = 0; virtual void onUpdate(float time, float x, float y) = 0;
virtual void onDraw(sf::RenderTarget& target, sf::RenderStates states) const = 0; virtual void onDraw(sf::RenderTarget& target, sf::RenderStates states) const = 0;
private : private:
std::string m_name; std::string m_name;
bool m_isLoaded; bool m_isLoaded;

View file

@ -14,7 +14,7 @@ const sf::Font* Effect::s_font = NULL;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class Pixelate : public Effect class Pixelate : public Effect
{ {
public : public:
Pixelate() : Pixelate() :
Effect("pixelate") Effect("pixelate")
@ -60,7 +60,7 @@ private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class WaveBlur : public Effect class WaveBlur : public Effect
{ {
public : public:
WaveBlur() : WaveBlur() :
Effect("wave + blur") Effect("wave + blur")
@ -124,7 +124,7 @@ private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class StormBlink : public Effect class StormBlink : public Effect
{ {
public : public:
StormBlink() : StormBlink() :
Effect("storm + blink") Effect("storm + blink")
@ -179,7 +179,7 @@ private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class Edge : public Effect class Edge : public Effect
{ {
public : public:
Edge() : Edge() :
Effect("edge post-effect") Effect("edge post-effect")

View file

@ -19,7 +19,7 @@ void playSound()
return; return;
// Display sound informations // Display sound informations
std::cout << "canary.wav :" << std::endl; std::cout << "canary.wav:" << std::endl;
std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl; std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl;
std::cout << " " << buffer.getSampleRate() << " samples / sec" << std::endl; std::cout << " " << buffer.getSampleRate() << " samples / sec" << std::endl;
std::cout << " " << buffer.getChannelCount() << " channels" << std::endl; std::cout << " " << buffer.getChannelCount() << " channels" << std::endl;
@ -54,7 +54,7 @@ void playMusic()
return; return;
// Display music informations // Display music informations
std::cout << "orchestral.ogg :" << std::endl; std::cout << "orchestral.ogg:" << std::endl;
std::cout << " " << music.getDuration().asSeconds() << " seconds" << std::endl; std::cout << " " << music.getDuration().asSeconds() << " seconds" << std::endl;
std::cout << " " << music.getSampleRate() << " samples / sec" << std::endl; std::cout << " " << music.getSampleRate() << " samples / sec" << std::endl;
std::cout << " " << music.getChannelCount() << " channels" << std::endl; std::cout << " " << music.getChannelCount() << " channels" << std::endl;

View file

@ -45,7 +45,7 @@ int main()
const sf::SoundBuffer& buffer = recorder.getBuffer(); const sf::SoundBuffer& buffer = recorder.getBuffer();
// Display captured sound informations // Display captured sound informations
std::cout << "Sound information :" << std::endl; std::cout << "Sound information:" << std::endl;
std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl; std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl;
std::cout << " " << buffer.getSampleRate() << " samples / seconds" << std::endl; std::cout << " " << buffer.getSampleRate() << " samples / seconds" << std::endl;
std::cout << " " << buffer.getChannelCount() << " channels" << std::endl; std::cout << " " << buffer.getChannelCount() << " channels" << std::endl;
@ -60,7 +60,7 @@ int main()
{ {
// Choose the filename // Choose the filename
std::string filename; std::string filename;
std::cout << "Choose the file to create : "; std::cout << "Choose the file to create: ";
std::getline(std::cin, filename); std::getline(std::cin, filename);
// Save the buffer // Save the buffer

View file

@ -17,7 +17,7 @@ const sf::Uint8 endOfStream = 2;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class NetworkRecorder : public sf::SoundRecorder class NetworkRecorder : public sf::SoundRecorder
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Constructor /// Constructor
@ -32,7 +32,7 @@ public :
{ {
} }
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// /see SoundRecorder::OnStart /// /see SoundRecorder::OnStart
@ -108,7 +108,7 @@ void doClient(unsigned short port)
sf::IpAddress server; sf::IpAddress server;
do do
{ {
std::cout << "Type address or name of the server to connect to : "; std::cout << "Type address or name of the server to connect to: ";
std::cin >> server; std::cin >> server;
} }
while (server == sf::IpAddress::None); while (server == sf::IpAddress::None);

View file

@ -19,7 +19,7 @@ const sf::Uint8 endOfStream = 2;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class NetworkAudioStream : public sf::SoundStream class NetworkAudioStream : public sf::SoundStream
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Default constructor /// Default constructor
@ -64,7 +64,7 @@ public :
} }
} }
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// /see SoundStream::OnGetData /// /see SoundStream::OnGetData
@ -72,11 +72,11 @@ private :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool onGetData(sf::SoundStream::Chunk& data) virtual bool onGetData(sf::SoundStream::Chunk& data)
{ {
// We have reached the end of the buffer and all audio data have been played : we can stop playback // We have reached the end of the buffer and all audio data have been played: we can stop playback
if ((m_offset >= m_samples.size()) && m_hasFinished) if ((m_offset >= m_samples.size()) && m_hasFinished)
return false; return false;
// No new data has arrived since last update : wait until we get some // No new data has arrived since last update: wait until we get some
while ((m_offset >= m_samples.size()) && !m_hasFinished) while ((m_offset >= m_samples.size()) && !m_hasFinished)
sf::sleep(sf::milliseconds(10)); sf::sleep(sf::milliseconds(10));
@ -138,7 +138,7 @@ private :
} }
else if (id == endOfStream) else if (id == endOfStream)
{ {
// End of stream reached : we stop receiving audio data // End of stream reached: we stop receiving audio data
std::cout << "Audio data has been 100% received!" << std::endl; std::cout << "Audio data has been 100% received!" << std::endl;
m_hasFinished = true; m_hasFinished = true;
} }

View file

@ -18,14 +18,14 @@ LRESULT CALLBACK onEvent(HWND handle, UINT message, WPARAM wParam, LPARAM lParam
switch (message) switch (message)
{ {
// Quit when we close the main window // Quit when we close the main window
case WM_CLOSE : case WM_CLOSE:
{ {
PostQuitMessage(0); PostQuitMessage(0);
return 0; return 0;
} }
// Quit when we click the "quit" button // Quit when we click the "quit" button
case WM_COMMAND : case WM_COMMAND:
{ {
if (reinterpret_cast<HWND>(lParam) == button) if (reinterpret_cast<HWND>(lParam) == button)
{ {
@ -42,7 +42,7 @@ LRESULT CALLBACK onEvent(HWND handle, UINT message, WPARAM wParam, LPARAM lParam
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Entry point of application /// Entry point of application
/// ///
/// \param Instance : Instance of the application /// \param Instance: Instance of the application
/// ///
/// \return Error code /// \return Error code
/// ///

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API Listener class SFML_AUDIO_API Listener
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the global volume of all the sounds and musics /// \brief Change the global volume of all the sounds and musics

View file

@ -51,7 +51,7 @@ class InputStream;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API Music : public SoundStream class SFML_AUDIO_API Music : public SoundStream
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -136,7 +136,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Time getDuration() const; Time getDuration() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request a new chunk of audio samples from the stream source /// \brief Request a new chunk of audio samples from the stream source
@ -159,7 +159,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onSeek(Time timeOffset); virtual void onSeek(Time timeOffset);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Initialize the internal state after loading a new music /// \brief Initialize the internal state after loading a new music

View file

@ -44,7 +44,7 @@ class SoundBuffer;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API Sound : public SoundSource class SFML_AUDIO_API Sound : public SoundSource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -212,7 +212,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void resetBuffer(); void resetBuffer();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -51,7 +51,7 @@ class InputStream;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API SoundBuffer class SFML_AUDIO_API SoundBuffer
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -230,7 +230,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundBuffer& operator =(const SoundBuffer& right); SoundBuffer& operator =(const SoundBuffer& right);
private : private:
friend class Sound; friend class Sound;

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API SoundBufferRecorder : public SoundRecorder class SFML_AUDIO_API SoundBufferRecorder : public SoundRecorder
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the sound buffer containing the captured audio data /// \brief Get the sound buffer containing the captured audio data
@ -85,7 +85,7 @@ protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onStop(); virtual void onStop();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API SoundRecorder class SFML_AUDIO_API SoundRecorder
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief destructor /// \brief destructor
@ -156,7 +156,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isAvailable(); static bool isAvailable();
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -224,7 +224,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onStop(); virtual void onStop();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Function called as the entry point of the thread /// \brief Function called as the entry point of the thread

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API SoundSource class SFML_AUDIO_API SoundSource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enumeration of the sound source states /// \brief Enumeration of the sound source states
@ -239,7 +239,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
float getAttenuation() const; float getAttenuation() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -44,7 +44,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_AUDIO_API SoundStream : public SoundSource class SFML_AUDIO_API SoundStream : public SoundSource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Structure defining a chunk of audio data to stream /// \brief Structure defining a chunk of audio data to stream
@ -178,7 +178,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool getLoop() const; bool getLoop() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -234,7 +234,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onSeek(Time timeOffset) = 0; virtual void onSeek(Time timeOffset) = 0;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Function called as the entry point of the thread /// \brief Function called as the entry point of the thread
@ -342,7 +342,7 @@ private :
/// \code /// \code
/// class CustomStream : public sf::SoundStream /// class CustomStream : public sf::SoundStream
/// { /// {
/// public : /// public:
/// ///
/// bool open(const std::string& location) /// bool open(const std::string& location)
/// { /// {
@ -355,7 +355,7 @@ private :
/// initialize(channelCount, sampleRate); /// initialize(channelCount, sampleRate);
/// } /// }
/// ///
/// private : /// private:
/// ///
/// virtual bool onGetData(Chunk& data) /// virtual bool onGetData(Chunk& data)
/// { /// {

View file

@ -124,7 +124,7 @@
// For Visual C++ compilers, we also need to turn off this annoying C4251 warning // For Visual C++ compilers, we also need to turn off this annoying C4251 warning
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4251) #pragma warning(disable: 4251)
#endif #endif

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API CircleShape : public Shape class SFML_GRAPHICS_API CircleShape : public Shape
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -106,7 +106,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(unsigned int index) const; virtual Vector2f getPoint(unsigned int index) const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -39,7 +39,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Color class SFML_GRAPHICS_API Color
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API ConvexShape : public Shape class SFML_GRAPHICS_API ConvexShape : public Shape
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -107,7 +107,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(unsigned int index) const; virtual Vector2f getPoint(unsigned int index) const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -43,7 +43,7 @@ class RenderTarget;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Drawable class SFML_GRAPHICS_API Drawable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Virtual destructor /// \brief Virtual destructor
@ -51,7 +51,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~Drawable() {} virtual ~Drawable() {}
protected : protected:
friend class RenderTarget; friend class RenderTarget;
@ -94,11 +94,11 @@ protected :
/// \code /// \code
/// class MyDrawable : public sf::Drawable /// class MyDrawable : public sf::Drawable
/// { /// {
/// public : /// public:
/// ///
/// ... /// ...
/// ///
/// private : /// private:
/// ///
/// virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const /// virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const
/// { /// {

View file

@ -49,7 +49,7 @@ class InputStream;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Font class SFML_GRAPHICS_API Font
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Holds various information about a font /// \brief Holds various information about a font
@ -60,7 +60,7 @@ public :
std::string family; ///< The font family std::string family; ///< The font family
}; };
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -249,7 +249,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Font& operator =(const Font& right); Font& operator =(const Font& right);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Structure defining a row of glyphs /// \brief Structure defining a row of glyphs

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Glyph class SFML_GRAPHICS_API Glyph
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -45,7 +45,7 @@ class InputStream;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Image class SFML_GRAPHICS_API Image
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -258,7 +258,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void flipVertically(); void flipVertically();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -41,7 +41,7 @@ namespace sf
template <typename T> template <typename T>
class Rect class Rect
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RectangleShape : public Shape class SFML_GRAPHICS_API RectangleShape : public Shape
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -94,7 +94,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(unsigned int index) const; virtual Vector2f getPoint(unsigned int index) const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -44,7 +44,7 @@ class Texture;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RenderStates class SFML_GRAPHICS_API RenderStates
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -50,7 +50,7 @@ class Drawable;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RenderTarget : NonCopyable class SFML_GRAPHICS_API RenderTarget : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
@ -323,7 +323,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void resetGLStates(); void resetGLStates();
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -46,7 +46,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RenderTexture : public RenderTarget class SFML_GRAPHICS_API RenderTexture : public RenderTarget
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -186,7 +186,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const Texture& getTexture() const; const Texture& getTexture() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate the target for rendering /// \brief Activate the target for rendering

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API RenderWindow : public Window, public RenderTarget class SFML_GRAPHICS_API RenderWindow : public Window, public RenderTarget
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -149,7 +149,7 @@ protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onResize(); virtual void onResize();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate the target for rendering /// \brief Activate the target for rendering

View file

@ -50,7 +50,7 @@ class Texture;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Shader : GlResource, NonCopyable class SFML_GRAPHICS_API Shader : GlResource, NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Types of shaders /// \brief Types of shaders
@ -79,7 +79,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static CurrentTextureType CurrentTexture; static CurrentTextureType CurrentTexture;
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -494,7 +494,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isAvailable(); static bool isAvailable();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Compile the shader(s) and create the program /// \brief Compile the shader(s) and create the program

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Shape : public Drawable, public Transformable class SFML_GRAPHICS_API Shape : public Drawable, public Transformable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Virtual destructor /// \brief Virtual destructor
@ -240,7 +240,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
FloatRect getGlobalBounds() const; FloatRect getGlobalBounds() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -258,7 +258,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void update(); void update();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Draw the shape to a render target /// \brief Draw the shape to a render target
@ -293,7 +293,7 @@ private :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void updateOutlineColors(); void updateOutlineColors();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -46,7 +46,7 @@ class Texture;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Sprite : public Drawable, public Transformable class SFML_GRAPHICS_API Sprite : public Drawable, public Transformable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -189,7 +189,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
FloatRect getGlobalBounds() const; FloatRect getGlobalBounds() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Draw the sprite to a render target /// \brief Draw the sprite to a render target

View file

@ -47,7 +47,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Text : public Drawable, public Transformable class SFML_GRAPHICS_API Text : public Drawable, public Transformable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enumeration of the string drawing styles /// \brief Enumeration of the string drawing styles
@ -278,7 +278,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
FloatRect getGlobalBounds() const; FloatRect getGlobalBounds() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Draw the text to a render target /// \brief Draw the text to a render target

View file

@ -46,7 +46,7 @@ class InputStream;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Texture : GlResource class SFML_GRAPHICS_API Texture : GlResource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Types of texture coordinates that can be used for rendering /// \brief Types of texture coordinates that can be used for rendering
@ -58,7 +58,7 @@ public :
Pixels ///< Texture coordinates in range [0 .. size] Pixels ///< Texture coordinates in range [0 .. size]
}; };
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -468,7 +468,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static unsigned int getMaximumSize(); static unsigned int getMaximumSize();
private : private:
friend class RenderTexture; friend class RenderTexture;
friend class RenderTarget; friend class RenderTarget;

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Transform class SFML_GRAPHICS_API Transform
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Transformable class SFML_GRAPHICS_API Transformable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -311,7 +311,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const Transform& getInverseTransform() const; const Transform& getInverseTransform() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data
@ -396,7 +396,7 @@ private :
/// \code /// \code
/// class MyEntity /// class MyEntity
/// { /// {
/// public : /// public:
/// void SetPosition(const MyVector& v) /// void SetPosition(const MyVector& v)
/// { /// {
/// myTransform.setPosition(v.x(), v.y()); /// myTransform.setPosition(v.x(), v.y());
@ -407,7 +407,7 @@ private :
/// target.draw(..., myTransform.getTransform()); /// target.draw(..., myTransform.getTransform());
/// } /// }
/// ///
/// private : /// private:
/// sf::Transformable myTransform; /// sf::Transformable myTransform;
/// }; /// };
/// \endcode /// \endcode

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API Vertex class SFML_GRAPHICS_API Vertex
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -44,7 +44,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API VertexArray : public Drawable class SFML_GRAPHICS_API VertexArray : public Drawable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -171,7 +171,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
FloatRect getBounds() const; FloatRect getBounds() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Draw the vertex array to a render target /// \brief Draw the vertex array to a render target

View file

@ -42,7 +42,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API View class SFML_GRAPHICS_API View
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -264,7 +264,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const Transform& getInverseTransform() const; const Transform& getInverseTransform() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -46,7 +46,7 @@ class IpAddress;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Ftp : NonCopyable class SFML_NETWORK_API Ftp : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enumeration of transfer modes /// \brief Enumeration of transfer modes
@ -65,7 +65,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Response class SFML_NETWORK_API Response
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Status codes possibly returned by a FTP response /// \brief Status codes possibly returned by a FTP response
@ -172,7 +172,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const std::string& getMessage() const; const std::string& getMessage() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data
@ -187,7 +187,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API DirectoryResponse : public Response class SFML_NETWORK_API DirectoryResponse : public Response
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -205,7 +205,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const std::string& getDirectory() const; const std::string& getDirectory() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data
@ -220,7 +220,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API ListingResponse : public Response class SFML_NETWORK_API ListingResponse : public Response
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -239,7 +239,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const std::vector<std::string>& getListing() const; const std::vector<std::string>& getListing() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -45,7 +45,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Http : NonCopyable class SFML_NETWORK_API Http : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Define a HTTP request /// \brief Define a HTTP request
@ -53,7 +53,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Request class SFML_NETWORK_API Request
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enumerate the available HTTP methods for a request /// \brief Enumerate the available HTTP methods for a request
@ -143,7 +143,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void setBody(const std::string& body); void setBody(const std::string& body);
private : private:
friend class Http; friend class Http;
@ -192,7 +192,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Response class SFML_NETWORK_API Response
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enumerate all the valid status codes for a response /// \brief Enumerate all the valid status codes for a response
@ -303,7 +303,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
const std::string& getBody() const; const std::string& getBody() const;
private : private:
friend class Http; friend class Http;
@ -404,7 +404,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Response sendRequest(const Request& request, Time timeout = Time::Zero); Response sendRequest(const Request& request, Time timeout = Time::Zero);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API IpAddress class SFML_NETWORK_API IpAddress
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -185,7 +185,7 @@ public :
static const IpAddress LocalHost; ///< The "localhost" address (for connecting a computer to itself locally) static const IpAddress LocalHost; ///< The "localhost" address (for connecting a computer to itself locally)
static const IpAddress Broadcast; ///< The "broadcast" address (for sending UDP messages to everyone on a local network) static const IpAddress Broadcast; ///< The "broadcast" address (for sending UDP messages to everyone on a local network)
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -49,7 +49,7 @@ class SFML_NETWORK_API Packet
// A bool-like type that cannot be converted to integer or pointer types // A bool-like type that cannot be converted to integer or pointer types
typedef bool (Packet::*BoolType)(std::size_t); typedef bool (Packet::*BoolType)(std::size_t);
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -252,7 +252,7 @@ protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onReceive(const void* data, std::size_t size); virtual void onReceive(const void* data, std::size_t size);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Disallow comparisons between packets /// Disallow comparisons between packets

View file

@ -44,7 +44,7 @@ class SocketSelector;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API Socket : NonCopyable class SFML_NETWORK_API Socket : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Status codes that may be returned by socket functions /// \brief Status codes that may be returned by socket functions
@ -67,7 +67,7 @@ public :
AnyPort = 0 ///< Special value that tells the system to pick any available port AnyPort = 0 ///< Special value that tells the system to pick any available port
}; };
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
@ -104,7 +104,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool isBlocking() const; bool isBlocking() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Types of protocols that the socket can use /// \brief Types of protocols that the socket can use
@ -165,7 +165,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void close(); void close();
private : private:
friend class SocketSelector; friend class SocketSelector;

View file

@ -42,7 +42,7 @@ class Socket;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API SocketSelector class SFML_NETWORK_API SocketSelector
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -151,7 +151,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SocketSelector& operator =(const SocketSelector& right); SocketSelector& operator =(const SocketSelector& right);
private : private:
struct SocketSelectorImpl; struct SocketSelectorImpl;

View file

@ -42,7 +42,7 @@ class TcpSocket;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API TcpListener : public Socket class SFML_NETWORK_API TcpListener : public Socket
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -45,7 +45,7 @@ class Packet;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API TcpSocket : public Socket class SFML_NETWORK_API TcpSocket : public Socket
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -44,7 +44,7 @@ class Packet;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_NETWORK_API UdpSocket : public Socket class SFML_NETWORK_API UdpSocket : public Socket
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Constants // Constants

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API Clock class SFML_SYSTEM_API Clock
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -73,7 +73,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Time restart(); Time restart();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -39,7 +39,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class InputStream class InputStream
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Virtual destructor /// \brief Virtual destructor
@ -114,7 +114,7 @@ public :
/// // custom stream class that reads from inside a zip file /// // custom stream class that reads from inside a zip file
/// class ZipStream : public sf::InputStream /// class ZipStream : public sf::InputStream
/// { /// {
/// public : /// public:
/// ///
/// ZipStream(std::string archive); /// ZipStream(std::string archive);
/// ///
@ -128,7 +128,7 @@ public :
/// ///
/// Int64 getSize(); /// Int64 getSize();
/// ///
/// private : /// private:
/// ///
/// ... /// ...
/// }; /// };

View file

@ -42,7 +42,7 @@ class Mutex;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API Lock : NonCopyable class SFML_SYSTEM_API Lock : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Construct the lock with a target mutex /// \brief Construct the lock with a target mutex
@ -62,7 +62,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~Lock(); ~Lock();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -46,7 +46,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API Mutex : NonCopyable class SFML_SYSTEM_API Mutex : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -80,7 +80,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void unlock(); void unlock();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API NonCopyable class SFML_SYSTEM_API NonCopyable
{ {
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -52,7 +52,7 @@ protected :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
NonCopyable() {} NonCopyable() {}
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Disabled copy constructor /// \brief Disabled copy constructor

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API String class SFML_SYSTEM_API String
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Types // Types
@ -515,7 +515,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
ConstIterator end() const; ConstIterator end() const;
private : private:
friend SFML_SYSTEM_API bool operator ==(const String& left, const String& right); friend SFML_SYSTEM_API bool operator ==(const String& left, const String& right);
friend SFML_SYSTEM_API bool operator <(const String& left, const String& right); friend SFML_SYSTEM_API bool operator <(const String& left, const String& right);

View file

@ -47,7 +47,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API Thread : NonCopyable class SFML_SYSTEM_API Thread : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Construct the thread from a functor with no argument /// \brief Construct the thread from a functor with no argument
@ -111,7 +111,7 @@ public :
/// \code /// \code
/// class MyClass /// class MyClass
/// { /// {
/// public : /// public:
/// ///
/// void function(); /// void function();
/// }; /// };
@ -171,7 +171,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void terminate(); void terminate();
private : private:
friend class priv::ThreadImpl; friend class priv::ThreadImpl;
@ -244,7 +244,7 @@ private :
/// ///
/// class Task /// class Task
/// { /// {
/// public : /// public:
/// void run() /// void run()
/// { /// {
/// ... /// ...

View file

@ -46,7 +46,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API ThreadLocal : NonCopyable class SFML_SYSTEM_API ThreadLocal : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -78,7 +78,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void* getValue() const; void* getValue() const;
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -40,7 +40,7 @@ namespace sf
template <typename T> template <typename T>
class ThreadLocalPtr : private ThreadLocal class ThreadLocalPtr : private ThreadLocal
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -39,7 +39,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_SYSTEM_API Time class SFML_SYSTEM_API Time
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -84,7 +84,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static const Time Zero; ///< Predefined "zero" time value static const Time Zero; ///< Predefined "zero" time value
private : private:
friend SFML_SYSTEM_API Time seconds(float); friend SFML_SYSTEM_API Time seconds(float);
friend SFML_SYSTEM_API Time milliseconds(Int32); friend SFML_SYSTEM_API Time milliseconds(Int32);
@ -101,7 +101,7 @@ private :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
explicit Time(Int64 microseconds); explicit Time(Int64 microseconds);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -47,7 +47,7 @@ class Utf;
template <> template <>
class Utf<8> class Utf<8>
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Decode a single UTF-8 character /// \brief Decode a single UTF-8 character
@ -254,7 +254,7 @@ public :
template <> template <>
class Utf<16> class Utf<16>
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Decode a single UTF-16 character /// \brief Decode a single UTF-16 character
@ -461,7 +461,7 @@ public :
template <> template <>
class Utf<32> class Utf<32>
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Decode a single UTF-32 character /// \brief Decode a single UTF-32 character

View file

@ -24,7 +24,7 @@
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// References : // References:
// //
// http://www.unicode.org/ // http://www.unicode.org/
// http://www.unicode.org/Public/PROGRAMS/CVTUTF/ConvertUTF.c // http://www.unicode.org/Public/PROGRAMS/CVTUTF/ConvertUTF.c
@ -62,12 +62,12 @@ In Utf<8>::decode(In begin, In end, Uint32& output, Uint32 replacement)
output = 0; output = 0;
switch (trailingBytes) switch (trailingBytes)
{ {
case 5 : output += static_cast<Uint8>(*begin++); output <<= 6; case 5: output += static_cast<Uint8>(*begin++); output <<= 6;
case 4 : output += static_cast<Uint8>(*begin++); output <<= 6; case 4: output += static_cast<Uint8>(*begin++); output <<= 6;
case 3 : output += static_cast<Uint8>(*begin++); output <<= 6; case 3: output += static_cast<Uint8>(*begin++); output <<= 6;
case 2 : output += static_cast<Uint8>(*begin++); output <<= 6; case 2: output += static_cast<Uint8>(*begin++); output <<= 6;
case 1 : output += static_cast<Uint8>(*begin++); output <<= 6; case 1: output += static_cast<Uint8>(*begin++); output <<= 6;
case 0 : output += static_cast<Uint8>(*begin++); case 0: output += static_cast<Uint8>(*begin++);
} }
output -= offsets[trailingBytes]; output -= offsets[trailingBytes];
} }
@ -114,10 +114,10 @@ Out Utf<8>::encode(Uint32 input, Out output, Uint8 replacement)
Uint8 bytes[4]; Uint8 bytes[4];
switch (bytestoWrite) switch (bytestoWrite)
{ {
case 4 : bytes[3] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6; case 4: bytes[3] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6;
case 3 : bytes[2] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6; case 3: bytes[2] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6;
case 2 : bytes[1] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6; case 2: bytes[1] = static_cast<Uint8>((input | 0x80) & 0xBF); input >>= 6;
case 1 : bytes[0] = static_cast<Uint8> (input | firstBytes[bytestoWrite]); case 1: bytes[0] = static_cast<Uint8> (input | firstBytes[bytestoWrite]);
} }
// Add them to the output // Add them to the output

View file

@ -36,7 +36,7 @@ namespace sf
template <typename T> template <typename T>
class Vector2 class Vector2
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -36,7 +36,7 @@ namespace sf
template <typename T> template <typename T>
class Vector3 class Vector3
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -47,7 +47,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Context : GlResource, NonCopyable class SFML_WINDOW_API Context : GlResource, NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -75,7 +75,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool setActive(bool active); bool setActive(bool active);
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Construct a in-memory context /// \brief Construct a in-memory context
@ -90,7 +90,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Context(const ContextSettings& settings, unsigned int width, unsigned int height); Context(const ContextSettings& settings, unsigned int width, unsigned int height);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -43,7 +43,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class Event class Event
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Size events parameters (Resized) /// \brief Size events parameters (Resized)

View file

@ -39,7 +39,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API GlResource class SFML_WINDOW_API GlResource
{ {
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Joystick class SFML_WINDOW_API Joystick
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Constants related to joysticks capabilities /// \brief Constants related to joysticks capabilities

View file

@ -39,7 +39,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Keyboard class SFML_WINDOW_API Keyboard
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Key codes /// \brief Key codes

View file

@ -42,7 +42,7 @@ class Window;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Mouse class SFML_WINDOW_API Mouse
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Mouse buttons /// \brief Mouse buttons

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Sensor class SFML_WINDOW_API Sensor
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Sensor type /// \brief Sensor type

View file

@ -42,7 +42,7 @@ class Window;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Touch class SFML_WINDOW_API Touch
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check if a touch event is currently down /// \brief Check if a touch event is currently down

View file

@ -40,7 +40,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API VideoMode class SFML_WINDOW_API VideoMode
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -56,7 +56,7 @@ class Event;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SFML_WINDOW_API Window : GlResource, NonCopyable class SFML_WINDOW_API Window : GlResource, NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -437,7 +437,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const;
protected : protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Function called after the window has been created /// \brief Function called after the window has been created

View file

@ -47,35 +47,35 @@ void alCheckError(const std::string& file, unsigned int line)
// Decode the error code // Decode the error code
switch (errorCode) switch (errorCode)
{ {
case AL_INVALID_NAME : case AL_INVALID_NAME:
{ {
error = "AL_INVALID_NAME"; error = "AL_INVALID_NAME";
description = "an unacceptable name has been specified"; description = "an unacceptable name has been specified";
break; break;
} }
case AL_INVALID_ENUM : case AL_INVALID_ENUM:
{ {
error = "AL_INVALID_ENUM"; error = "AL_INVALID_ENUM";
description = "an unacceptable value has been specified for an enumerated argument"; description = "an unacceptable value has been specified for an enumerated argument";
break; break;
} }
case AL_INVALID_VALUE : case AL_INVALID_VALUE:
{ {
error = "AL_INVALID_VALUE"; error = "AL_INVALID_VALUE";
description = "a numeric argument is out of range"; description = "a numeric argument is out of range";
break; break;
} }
case AL_INVALID_OPERATION : case AL_INVALID_OPERATION:
{ {
error = "AL_INVALID_OPERATION"; error = "AL_INVALID_OPERATION";
description = "the specified operation is not allowed in the current state"; description = "the specified operation is not allowed in the current state";
break; break;
} }
case AL_OUT_OF_MEMORY : case AL_OUT_OF_MEMORY:
{ {
error = "AL_OUT_OF_MEMORY"; error = "AL_OUT_OF_MEMORY";
description = "there is not enough memory left to execute the command"; description = "there is not enough memory left to execute the command";

View file

@ -104,13 +104,13 @@ int AudioDevice::getFormatFromChannelCount(unsigned int channelCount)
int format = 0; int format = 0;
switch (channelCount) switch (channelCount)
{ {
case 1 : format = AL_FORMAT_MONO16; break; case 1: format = AL_FORMAT_MONO16; break;
case 2 : format = AL_FORMAT_STEREO16; break; case 2: format = AL_FORMAT_STEREO16; break;
case 4 : format = alGetEnumValue("AL_FORMAT_QUAD16"); break; case 4: format = alGetEnumValue("AL_FORMAT_QUAD16"); break;
case 6 : format = alGetEnumValue("AL_FORMAT_51CHN16"); break; case 6: format = alGetEnumValue("AL_FORMAT_51CHN16"); break;
case 7 : format = alGetEnumValue("AL_FORMAT_61CHN16"); break; case 7: format = alGetEnumValue("AL_FORMAT_61CHN16"); break;
case 8 : format = alGetEnumValue("AL_FORMAT_71CHN16"); break; case 8: format = alGetEnumValue("AL_FORMAT_71CHN16"); break;
default : format = 0; break; default: format = 0; break;
} }
// Fixes a bug on OS X // Fixes a bug on OS X

View file

@ -44,7 +44,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class AudioDevice class AudioDevice
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -223,7 +223,7 @@ bool SoundFile::openWrite(const std::string& filename, unsigned int channelCount
int format = getFormatFromFilename(filename); int format = getFormatFromFilename(filename);
if (format == -1) if (format == -1)
{ {
// Error : unrecognized extension // Error: unrecognized extension
err() << "Failed to create sound file \"" << filename << "\" (unknown format)" << std::endl; err() << "Failed to create sound file \"" << filename << "\" (unknown format)" << std::endl;
return false; return false;
} }
@ -375,10 +375,10 @@ sf_count_t SoundFile::Memory::seek(sf_count_t offset, int whence, void* user)
sf_count_t position = 0; sf_count_t position = 0;
switch (whence) switch (whence)
{ {
case SEEK_SET : position = offset; break; case SEEK_SET: position = offset; break;
case SEEK_CUR : position = memory->current - memory->begin + offset; break; case SEEK_CUR: position = memory->current - memory->begin + offset; break;
case SEEK_END : position = memory->size - offset; break; case SEEK_END: position = memory->size - offset; break;
default : position = 0; break; default: position = 0; break;
} }
if (position >= memory->size) if (position >= memory->size)
@ -431,10 +431,10 @@ sf_count_t SoundFile::Stream::seek(sf_count_t offset, int whence, void* userData
Stream* stream = static_cast<Stream*>(userData); Stream* stream = static_cast<Stream*>(userData);
switch (whence) switch (whence)
{ {
case SEEK_SET : return stream->source->seek(offset); case SEEK_SET: return stream->source->seek(offset);
case SEEK_CUR : return stream->source->seek(stream->source->tell() + offset); case SEEK_CUR: return stream->source->seek(stream->source->tell() + offset);
case SEEK_END : return stream->source->seek(stream->size - offset); case SEEK_END: return stream->source->seek(stream->size - offset);
default : return stream->source->seek(0); default: return stream->source->seek(0);
} }
} }

View file

@ -46,7 +46,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class SoundFile : NonCopyable class SoundFile : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -155,7 +155,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void seek(Time timeOffset); void seek(Time timeOffset);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Initialize the internal state of the sound file /// \brief Initialize the internal state of the sound file

View file

@ -33,7 +33,7 @@
#include <cstring> #include <cstring>
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4355) // 'this' used in base member initializer list #pragma warning(disable: 4355) // 'this' used in base member initializer list
#endif #endif
@ -71,7 +71,7 @@ bool SoundRecorder::start(unsigned int sampleRate)
// Check if the device can do audio capture // Check if the device can do audio capture
if (!isAvailable()) if (!isAvailable())
{ {
err() << "Failed to start capture : your system cannot capture audio data (call SoundRecorder::isAvailable to check it)" << std::endl; err() << "Failed to start capture: your system cannot capture audio data (call SoundRecorder::isAvailable to check it)" << std::endl;
return false; return false;
} }
@ -245,7 +245,7 @@ void SoundRecorder::record()
sleep(m_processingInterval); sleep(m_processingInterval);
} }
// Capture is finished : clean up everything // Capture is finished: clean up everything
cleanup(); cleanup();
} }

View file

@ -182,10 +182,10 @@ SoundSource::Status SoundSource::getStatus() const
switch (status) switch (status)
{ {
case AL_INITIAL : case AL_INITIAL:
case AL_STOPPED : return Stopped; case AL_STOPPED: return Stopped;
case AL_PAUSED : return Paused; case AL_PAUSED: return Paused;
case AL_PLAYING : return Playing; case AL_PLAYING: return Playing;
} }
return Stopped; return Stopped;

View file

@ -33,7 +33,7 @@
#include <SFML/System/Lock.hpp> #include <SFML/System/Lock.hpp>
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4355) // 'this' used in base member initializer list #pragma warning(disable: 4355) // 'this' used in base member initializer list
#endif #endif

View file

@ -48,49 +48,49 @@ void glCheckError(const char* file, unsigned int line)
// Decode the error code // Decode the error code
switch (errorCode) switch (errorCode)
{ {
case GL_INVALID_ENUM : case GL_INVALID_ENUM:
{ {
error = "GL_INVALID_ENUM"; error = "GL_INVALID_ENUM";
description = "an unacceptable value has been specified for an enumerated argument"; description = "an unacceptable value has been specified for an enumerated argument";
break; break;
} }
case GL_INVALID_VALUE : case GL_INVALID_VALUE:
{ {
error = "GL_INVALID_VALUE"; error = "GL_INVALID_VALUE";
description = "a numeric argument is out of range"; description = "a numeric argument is out of range";
break; break;
} }
case GL_INVALID_OPERATION : case GL_INVALID_OPERATION:
{ {
error = "GL_INVALID_OPERATION"; error = "GL_INVALID_OPERATION";
description = "the specified operation is not allowed in the current state"; description = "the specified operation is not allowed in the current state";
break; break;
} }
case GL_STACK_OVERFLOW : case GL_STACK_OVERFLOW:
{ {
error = "GL_STACK_OVERFLOW"; error = "GL_STACK_OVERFLOW";
description = "this command would cause a stack overflow"; description = "this command would cause a stack overflow";
break; break;
} }
case GL_STACK_UNDERFLOW : case GL_STACK_UNDERFLOW:
{ {
error = "GL_STACK_UNDERFLOW"; error = "GL_STACK_UNDERFLOW";
description = "this command would cause a stack underflow"; description = "this command would cause a stack underflow";
break; break;
} }
case GL_OUT_OF_MEMORY : case GL_OUT_OF_MEMORY:
{ {
error = "GL_OUT_OF_MEMORY"; error = "GL_OUT_OF_MEMORY";
description = "there is not enough memory left to execute the command"; description = "there is not enough memory left to execute the command";
break; break;
} }
case GLEXT_GL_INVALID_FRAMEBUFFER_OPERATION : case GLEXT_GL_INVALID_FRAMEBUFFER_OPERATION:
{ {
error = "GL_INVALID_FRAMEBUFFER_OPERATION"; error = "GL_INVALID_FRAMEBUFFER_OPERATION";
description = "the object bound to FRAMEBUFFER_BINDING is not \"framebuffer complete\""; description = "the object bound to FRAMEBUFFER_BINDING is not \"framebuffer complete\"";

View file

@ -123,7 +123,7 @@ bool ImageLoader::loadImageFromFile(const std::string& filename, std::vector<Uin
else else
{ {
// Error, failed to load the image // Error, failed to load the image
err() << "Failed to load image \"" << filename << "\". Reason : " << stbi_failure_reason() << std::endl; err() << "Failed to load image \"" << filename << "\". Reason: " << stbi_failure_reason() << std::endl;
return false; return false;
} }
@ -162,7 +162,7 @@ bool ImageLoader::loadImageFromMemory(const void* data, std::size_t dataSize, st
else else
{ {
// Error, failed to load the image // Error, failed to load the image
err() << "Failed to load image from memory. Reason : " << stbi_failure_reason() << std::endl; err() << "Failed to load image from memory. Reason: " << stbi_failure_reason() << std::endl;
return false; return false;
} }
@ -212,7 +212,7 @@ bool ImageLoader::loadImageFromStream(InputStream& stream, std::vector<Uint8>& p
else else
{ {
// Error, failed to load the image // Error, failed to load the image
err() << "Failed to load image from stream. Reason : " << stbi_failure_reason() << std::endl; err() << "Failed to load image from stream. Reason: " << stbi_failure_reason() << std::endl;
return false; return false;
} }

View file

@ -46,7 +46,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class ImageLoader : NonCopyable class ImageLoader : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the unique instance of the class /// \brief Get the unique instance of the class
@ -105,7 +105,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool saveImageToFile(const std::string& filename, const std::vector<Uint8>& pixels, const Vector2u& size); bool saveImageToFile(const std::string& filename, const std::vector<Uint8>& pixels, const Vector2u& size);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor

View file

@ -41,7 +41,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class RenderTextureImpl : NonCopyable class RenderTextureImpl : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor

View file

@ -44,7 +44,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class RenderTextureImplDefault : public RenderTextureImpl, GlResource class RenderTextureImplDefault : public RenderTextureImpl, GlResource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -58,7 +58,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~RenderTextureImplDefault(); ~RenderTextureImplDefault();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Create the render texture implementation /// \brief Create the render texture implementation

View file

@ -44,7 +44,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class RenderTextureImplFBO : public RenderTextureImpl, GlResource class RenderTextureImplFBO : public RenderTextureImpl, GlResource
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -66,7 +66,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isAvailable(); static bool isAvailable();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Create the render texture implementation /// \brief Create the render texture implementation

View file

@ -190,9 +190,9 @@ Vector2f Text::findCharacterPos(std::size_t index) const
// Handle special characters // Handle special characters
switch (curChar) switch (curChar)
{ {
case ' ' : position.x += hspace; continue; case ' ': position.x += hspace; continue;
case '\t' : position.x += hspace * 4; continue; case '\t': position.x += hspace * 4; continue;
case '\n' : position.y += vspace; position.x = 0; continue; case '\n': position.y += vspace; position.x = 0; continue;
} }
// For regular characters, add the advance offset of the glyph // For regular characters, add the advance offset of the glyph
@ -329,9 +329,9 @@ void Text::ensureGeometryUpdate() const
switch (curChar) switch (curChar)
{ {
case ' ' : x += hspace; break; case ' ': x += hspace; break;
case '\t' : x += hspace * 4; break; case '\t': x += hspace * 4; break;
case '\n' : y += vspace; x = 0; break; case '\n': y += vspace; x = 0; break;
} }
// Update the current bounds (max coordinates) // Update the current bounds (max coordinates)

View file

@ -41,7 +41,7 @@ namespace priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class TextureSaver class TextureSaver
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
@ -59,7 +59,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~TextureSaver(); ~TextureSaver();
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -41,7 +41,7 @@ namespace sf
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
class Ftp::DataChannel : NonCopyable class Ftp::DataChannel : NonCopyable
{ {
public : public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
DataChannel(Ftp& owner); DataChannel(Ftp& owner);
@ -55,7 +55,7 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void receive(std::ostream& stream); void receive(std::ostream& stream);
private : private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data
@ -499,7 +499,7 @@ Ftp::Response Ftp::getResponse()
} }
else else
{ {
// Error : cannot extract the code, and we are not in a multiline response // Error: cannot extract the code, and we are not in a multiline response
return Response(Response::InvalidResponse); return Response(Response::InvalidResponse);
} }
} }
@ -558,9 +558,9 @@ Ftp::Response Ftp::DataChannel::open(Ftp::TransferMode mode)
std::string modeStr; std::string modeStr;
switch (mode) switch (mode)
{ {
case Ftp::Binary : modeStr = "I"; break; case Ftp::Binary: modeStr = "I"; break;
case Ftp::Ascii : modeStr = "A"; break; case Ftp::Ascii: modeStr = "A"; break;
case Ftp::Ebcdic : modeStr = "E"; break; case Ftp::Ebcdic: modeStr = "E"; break;
} }
// Set the transfer mode // Set the transfer mode

View file

@ -107,12 +107,12 @@ std::string Http::Request::prepare() const
std::string method; std::string method;
switch (m_method) switch (m_method)
{ {
default : default:
case Get : method = "GET"; break; case Get: method = "GET"; break;
case Post : method = "POST"; break; case Post: method = "POST"; break;
case Head : method = "HEAD"; break; case Head: method = "HEAD"; break;
case Put : method = "PUT"; break; case Put: method = "PUT"; break;
case Delete : method = "DELETE"; break; case Delete: method = "DELETE"; break;
} }
// Write the first line containing the request type // Write the first line containing the request type

View file

@ -33,7 +33,7 @@
#include <utility> #include <utility>
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro #pragma warning(disable: 4127) // "conditional expression is constant" generated by the FD_SET macro
#endif #endif

Some files were not shown because too many files have changed in this diff Show more