0% found this document useful (0 votes)
150 views

SFML Classlist

SFML (Simple and Fast Multimedia Library) provides classes for common multimedia tasks such as loading graphics, playing sounds, handling user input and networking. Some key classes include: - sf::Sound - defines properties of a sound like position, volume and pitch - sf::Texture - loads and manipulates image files - sf::Font - loads and renders text using fonts - sf::Window - creates rendering windows for displaying graphics - sf::Event - handles system events from input devices and the operating system

Uploaded by

Meryll Essig
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views

SFML Classlist

SFML (Simple and Fast Multimedia Library) provides classes for common multimedia tasks such as loading graphics, playing sounds, handling user input and networking. Some key classes include: - sf::Sound - defines properties of a sound like position, volume and pitch - sf::Texture - loads and manipulates image files - sf::Font - loads and renders text using fonts - sf::Window - creates rendering windows for displaying graphics - sf::Event - handles system events from input devices and the operating system

Uploaded by

Meryll Essig
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

SFML Class List

Here are the classes, structs, unions and interfaces with brief descriptions: Abstract base class for every class that owns a device-dependant sf::AudioResource resource -- allow them to initialize / shutdown even when the audio context is not created sf::SoundStream::Chunk Structure defining a chunk of audio data to stream sf::Clock Clock is an utility class for manipulating time sf::Color Color is an utility class for manipulating 32-bits RGBA colors sf::Context Class wrapping an OpenGL context sf::Ftp::DirectoryRespons Specialization of FTP response returning a directory e Abstract base class for every object that can be drawn into a render sf::Drawable window sf::Event Event defines a system event and its parameters sf::Font Font is the low-level class for loading and manipulating character fonts This class provides methods for manipulating the FTP protocol sf::Ftp (described in RFC 959) sf::Glyph Structure describing a glyph (a visual character) This class provides methods for manipulating the HTTP protocol sf::Http (described in RFC 1945) sf::Image Image is the low-level class for loading and manipulating images sf::Input Input handles real-time input from keyboard and mouse sf::IPAddress IPAddress provides easy manipulation of IP v4 addresses sf::Event::JoyButtonEven Joystick buttons events parameters t sf::Event::JoyMoveEvent Joystick axis move event parameters sf::Event::KeyEvent Keyboard event parameters Listener is a global interface for defining the audio listener properties ; sf::Listener the audio listener is the point in the scene from where all the sounds are heard sf::Ftp::ListingResponse Specialization of FTP response returning a filename lisiting Lock is an exception-safe automatic wrapper for locking and unlocking sf::Lock mutexes sf::Matrix3 Utility class to manipulate 3x3 matrices representing 2D transformations sf::Event::MouseButtonE Mouse buttons events parameters vent sf::Event::MouseMoveEv Mouse move event parameters ent sf::Event::MouseWheelE Mouse wheel events parameters vent Music defines a big sound played using streaming, so usually what we sf::Music call a music :) Mutex defines a mutex (MUTual EXclusion) object, that allows a thread sf::Mutex to lock critical instructions to avoid simultaneous access with other threads

sf::NonCopyable sf::Packet sf::PostFX sf::Randomizer sf::Rect< T > sf::RenderTarget sf::RenderWindow sf::Http::Request

Utility base class to easily declare non-copyable classes Packet wraps data to send / to receive through the network PostFX is used to apply a post effect to a window Randomizer is an utility class for generating pseudo-random numbers Rect is an utility class for manipulating rectangles Base class for all render targets (window, image, ...) Simple wrapper for sf::Window that allows easy 2D rendering This class wraps an HTTP request, which is basically : Base class for every resource that needs to notify dependent classes sf::Resource< T > about its destruction Safe pointer to a T resource (inheriting from sf::Resource<T>), its sf::ResourcePtr< T > pointer is automatically reseted when the resource is destroyed sf::Ftp::Response This class wraps a FTP response, which is basically : sf::Http::Response This class wraps an HTTP response, which is basically : sf::Selector< Type > Selector allow reading from multiple sockets without blocking sf::SelectorBase Private base class for selectors Shape defines a drawable convex shape ; it also defines helper functions sf::Shape to draw simple shapes like lines, rectangles, circles, etc sf::Event::SizeEvent Size events parameters sf::SocketHelper This class defines helper functions to do all the non-portable socket stuff SocketTCP wraps a socket using TCP protocol to send data safely (but a sf::SocketTCP bit slower) SocketUDP wraps a socket using UDP protocol to send data fastly (but sf::SocketUDP with less safety) Sound defines the properties of a sound such as position, volume, pitch, sf::Sound etc sf::SoundBuffer SoundBuffer is the low-level for loading and manipulating sound buffers Specialized SoundRecorder which saves the captured audio data into a sf::SoundBufferRecorder sound buffer SoundRecorder is an interface for capturing sound data, it is meant to be sf::SoundRecorder used as a base class SoundStream is a streamed sound, ie samples are acquired while the sf::SoundStream sound is playing Sprite defines a sprite : texture, transformations, color, and draw on sf::Sprite screen sf::String String defines a graphical 2D text, that can be drawn on screen This class is an abstract definition of a unicode text, it can be converted sf::Unicode::Text from and to any kind of string and encoding sf::Event::TextEvent Text event parameters sf::Thread Thread defines an easy way to manipulate a thread Provides utility functions to convert from and to any unicode and ASCII sf::Unicode encoding sf::Vector2< T > Vector2 is an utility class for manipulating 2 dimensional vectors sf::Vector3< T > Vector3 is an utility class for manipulating 3 dimensional vectors sf::VideoMode VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for getting modes supported by the display

sf::View sf::Window sf::WindowListener sf::WindowSettings

device This class defines a view (position, size, etc.) ; you can consider it as a 2D camera Window is a rendering window ; it can create a new window or connect to an existing one Base class for classes that want to receive events from a window (for internal use only) Structure defining the creation settings of windows

You might also like