sf Namespace Reference


Classes

class  AudioResource
 Abstract base class for every class that owns a device-dependant resource -- allow them to initialize / shutdown even when the audio context is not created. More...
class  Music
 Music defines a big sound played using streaming, so usually what we call a music :). More...
class  Sound
 Sound defines the properties of the sound such as position, volume, pitch, etc. More...
class  SoundBuffer
 SoundBuffer is the low-level for loading and manipulating sound buffers. More...
class  SoundBufferRecorder
 Specialized sfSoundRecorder which saves the captured audio data into a sound buffer. More...
class  SoundRecorder
 SoundRecorder is an interface for capturing sound data, it is meant to be used as a base class. More...
class  SoundStream
 SoundStream is a streamed sound, ie samples are acquired while the sound is playing. More...
class  Color
 Color is an utility class for manipulating colors. More...
class  Drawable
 Abstract base class for every object that can be drawn into a render window. More...
class  Image
 Image is the low-level class for loading and manipulating images. More...
class  PostFX
 PostFX is used to apply a post effect to a window. More...
class  Rect
 Rect is an utility class for manipulating rectangles. More...
class  RenderWindow
 Simple wrapper for sfWindow that allows easy 2D rendering. More...
class  Sprite
 Sprite defines a sprite : texture, transformations, color, and draw on screen. More...
class  String
 String defines a graphical 2D text, that can be drawn on screen. More...
class  VideoResource
 Abstract base class for every class that owns a hardware resource -- allow them to initialize / shutdown even when rendering context is not created. More...
class  View
 This class defines a view (position, size and zoom) ; you can consider it as a camera. More...
class  IPAddress
 IPAddress provides easy manipulation of IP v4 addresses. More...
class  Packet
 Packet wraps data to send / to receive through the network. More...
class  Selector
 Selector allow reading from multiple sockets without blocking. More...
class  SocketTCP
 SocketTCP wraps a socket using TCP protocol to send data safely (but a bit slower). More...
class  SocketUDP
 SocketUDP wraps a socket using UDP protocol to send data fastly (but with less safety). More...
class  Clock
 Clock is an utility class for manipulating time. More...
class  Lock
 Lock is an exception-safe automatic wrapper for locking and unlocking mutexes. More...
struct  NonCopyable
 Utility base class to easily declare non-copyable classes. More...
class  Randomizer
 Randomizer is an utility class for generating pseudo-random numbers. More...
class  Mutex
 Mutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads. More...
class  Thread
 Thread defines an easy way to manipulate a thread. More...
struct  Key
 Definition of key codes for keyboard events. More...
struct  Mouse
 Definition of button codes for mouse events. More...
class  Event
 Event defines a system event and its parameters. More...
class  Input
 Input handles real-time input from keyboard and mouse. More...
class  OpenGLCaps
 Interface for requesting OpenGL extensions and capabilities. More...
class  VideoMode
 VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for getting modes supported by the display device. More...
class  Window
 Window is a rendering window ; it can create a new window or connect to an existing one. More...
class  WindowListener
 Base class for classes that want to receive events from a window (for internal use only). More...

Typedefs

typedef Rect< int > IntRect
typedef Rect< float > FloatRect
typedef Selector< SocketUDPSelectorUDP
typedef Selector< SocketTCPSelectorTCP

Functions

std::istream & operator>> (std::istream &Stream, IPAddress &Address)
 Operator >> overload to extract an address from an input stream.
std::ostream & operator<< (std::ostream &Stream, const IPAddress &Address)
 Operator << overload to print an address to an output stream.
void Sleep (float Duration)
 Make the current thread sleep for a given time.

Function Documentation

SFML_API std::ostream & sf::operator<< ( std::ostream &  Stream,
const IPAddress &  Address 
)

Operator << overload to print an address to an output stream.

Parameters:
Stream : Output stream
Address : Address to print
Returns:
Reference to the output stream

Definition at line 291 of file IPAddress.cpp.

SFML_API std::istream & sf::operator>> ( std::istream &  Stream,
IPAddress &  Address 
)

Operator >> overload to extract an address from an input stream.

Parameters:
Stream : Input stream
Address : Address to extract
Returns:
Reference to the input stream

Definition at line 278 of file IPAddress.cpp.

void SFML_API sf::Sleep ( float  Duration  ) 

Make the current thread sleep for a given time.

Parameters:
Duration : Time to sleep, in seconds

Definition at line 37 of file Sleep.cpp.