sfml3.rb

Module: SFML

Defined in:
ext/ext.c,
ext/ext.c

Overview

Ruby bindings for SFML 3, via its C API, CSFML. Every class and module in this library lives under this namespace.

Defined Under Namespace

Modules: Clipboard, Drawable, FtpStatus, FtpTransferMode, HttpMethod, HttpStatus, Joystick, Keyboard, Listener, Mouse, RenderTarget, Sensor, SocketStatus, SoundChannel, SoundStatus, Touch, Vulkan Classes: BlendMode, Buffer, Circle, Clock, Color, Context, ContextSettings, ConvexShape, Cursor, Event, Font, Ftp, FtpDirectoryResponse, FtpListingResponse, FtpResponse, Glyph, Http, HttpRequest, HttpResponse, Image, InputStream, IpAddress, Music, Packet, Rect, RectangleShape, RenderState, RenderTexture, RenderWindow, Shader, Shape, SocketSelector, Sound, SoundBuffer, SoundBufferRecorder, SoundRecorder, SoundSourceCone, SoundStream, Sprite, StencilMode, Target, TcpListener, TcpSocket, Text, Texture, Time, Transform, Transformable, UdpSocket, Vector2, Vector3, Vertex, VertexArray, VertexBuffer, VideoMode, View, Window, WindowBase

Class Method Summary collapse

Class Method Details

.sleep(duration) ⇒ Time, Numeric

Blocks the calling thread for duration, which may be a Time, a number of seconds, or anything #to_f-convertible.

Returns:

  • (Time, Numeric) —

    duration



16
17
18
19
20
# File 'ext/system/sleep.c', line 16

static VALUE Sleep_sleep(VALUE module, VALUE rb_duration) {
    sfSleep(time_from_rb(rb_duration));

    return rb_duration;
}