A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.sfml-dev.org/documentation/ below:

Documentation for SFML 3.0.0 - Simple and Fast Multimedia Library

Welcome

Welcome to the official SFML documentation. Here you will find a detailed view of all the SFML classes and functions.
If you are looking for tutorials, you can visit the official website at www.sfml-dev.org.

Short example

Here is a short example, to show you how simple it is to use SFML:

int main()

{

music.play();

{

while

(

const

std::optional event = window.

pollEvent

())

{

}

}

}

Class for loading and manipulating character fonts.

Streamed music played from an audio file.

void draw(const Drawable &drawable, const RenderStates &states=RenderStates::Default)

Draw a drawable object to the render target.

void clear(Color color=Color::Black)

Clear the entire target with a single color.

Window that can serve as a target for 2D drawing.

Drawable representation of a texture, with its own transformations, color, etc.

Graphical text that can be drawn to a render target.

Image living on the graphics card that can be used for drawing.

VideoMode defines a video mode (size, bpp)

std::optional< Event > pollEvent()

Pop the next event from the front of the FIFO event queue, if any, and return it.

bool isOpen() const

Tell whether or not the window is open.

void close() override

Close the window and destroy all the attached resources.

void display()

Display on screen what has been rendered to the window so far.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4