- capture() - Method in class org.jsfml.graphics.RenderWindow
-
Copies the current contents of the window to an image.
- character - Variable in class org.jsfml.window.event.TextEvent
-
The Java representation of the character that was entered.
- CircleShape - Class in org.jsfml.graphics
-
A specialized shape representing a circle.
- CircleShape() - Constructor for class org.jsfml.graphics.CircleShape
-
Constructs a new circle shape with a zero radius, approximated using 30 points.
- CircleShape(float) - Constructor for class org.jsfml.graphics.CircleShape
-
Constructs a new circle shape with the specified radius, approximated using 30 points.
- CircleShape(float, int) - Constructor for class org.jsfml.graphics.CircleShape
-
Constructs a new circle shape with the specified parameters.
- clear(Color) - Method in interface org.jsfml.graphics.RenderTarget
-
Clears the render target and fills it with a constant color.
- clear(Color) - Method in class org.jsfml.graphics.RenderTexture
-
- clear() - Method in class org.jsfml.graphics.RenderTexture
-
Clears the target with black.
- clear(Color) - Method in class org.jsfml.graphics.RenderWindow
-
- clear() - Method in class org.jsfml.graphics.RenderWindow
-
Clears the target with black.
- Clock - Class in org.jsfml.system
-
Provides functionality for time measurement.
- Clock() - Constructor for class org.jsfml.system.Clock
-
Constructs a clock and starts it.
- close() - Method in class org.jsfml.window.Window
-
Closes the window and destroys all attached resources,
including the OpenGL context provided by it.
- CLOSE - Static variable in interface org.jsfml.window.WindowStyle
-
Adds a close button to the window.
- Color - Class in org.jsfml.graphics
-
Represents RGBA colors.
- Color(int, int, int) - Constructor for class org.jsfml.graphics.Color
-
Constructs a new color with the specified color components and an alpha value of 255
(fully opaque).
- Color(int, int, int, int) - Constructor for class org.jsfml.graphics.Color
-
Constructs a new color with the specified color and alpha components.
- Color(Color, int) - Constructor for class org.jsfml.graphics.Color
-
Constructs a new color by copying another color and resetting the alpha value.
- color - Variable in class org.jsfml.graphics.Vertex
-
The vertex color.
- combine(Transform, Transform) - Static method in class org.jsfml.graphics.Transform
-
Combines two transformation matrices by multiplying them.
- compareTo(Time) - Method in class org.jsfml.system.Time
-
- componentwiseDiv(Vector2f, Vector2f) - Static method in class org.jsfml.system.Vector2f
-
Performs a component-wise division of two vectors.
- componentwiseDiv(Vector2i, Vector2i) - Static method in class org.jsfml.system.Vector2i
-
Performs a component-wise division of two vectors.
- componentwiseDiv(Vector3f, Vector3f) - Static method in class org.jsfml.system.Vector3f
-
Performs a component-wise division of two vectors.
- componentwiseDiv(Vector3i, Vector3i) - Static method in class org.jsfml.system.Vector3i
-
Performs a component-wise division of two vectors.
- componentwiseMul(Vector2f, Vector2f) - Static method in class org.jsfml.system.Vector2f
-
Performs a component-wise multiplication of two vectors.
- componentwiseMul(Vector2i, Vector2i) - Static method in class org.jsfml.system.Vector2i
-
Performs a component-wise multiplication of two vectors.
- componentwiseMul(Vector3f, Vector3f) - Static method in class org.jsfml.system.Vector3f
-
Performs a component-wise multiplication of two vectors.
- componentwiseMul(Vector3i, Vector3i) - Static method in class org.jsfml.system.Vector3i
-
Performs a component-wise multiplication of two vectors.
- Const - Interface in org.jsfml.internal
-
Interface for read-only objects.
- ConstFont - Interface in org.jsfml.graphics
-
Interface for read-only fonts.
- ConstShader - Interface in org.jsfml.graphics
-
Interface for read-only textures.
- ConstSoundBuffer - Interface in org.jsfml.audio
-
Read-only interface for sound buffers.
- ConstTexture - Interface in org.jsfml.graphics
-
Interface for read-only textures.
- ConstView - Interface in org.jsfml.graphics
-
Interface for read-only views.
- contains(float, float) - Method in class org.jsfml.graphics.FloatRect
-
Tests whether a point is inside the rectangle's boundaries, including its edges.
- contains(Vector2f) - Method in class org.jsfml.graphics.FloatRect
-
Tests whether a point is inside the rectangle's boundaries, including its edges.
- contains(int, int) - Method in class org.jsfml.graphics.IntRect
-
Tests whether a point is inside the rectangle's boundaries, including its edges.
- contains(Vector2i) - Method in class org.jsfml.graphics.IntRect
-
Tests whether a point is inside the rectangle's boundaries, including its edges.
- Context - Class in org.jsfml.window
-
Holds a valid OpenGL drawing context.
- ContextActivationException - Exception in org.jsfml.window
-
- ContextActivationException(String) - Constructor for exception org.jsfml.window.ContextActivationException
-
Constructs a context activation exception with the specified message.
- ContextSettings - Class in org.jsfml.window
-
Holds the settings for an OpenGL context attached to a window.
- ContextSettings() - Constructor for class org.jsfml.window.ContextSettings
-
Constructs new context settings with default values (OpenGL 2.0, no depth or stencil bits,
no anti-aliasing).
- ContextSettings(int) - Constructor for class org.jsfml.window.ContextSettings
-
Constructs new context settings with the specified level of anti-aliasing and OpenGL 2.0,
no depth or stencil bits.
- ContextSettings(int, int) - Constructor for class org.jsfml.window.ContextSettings
-
Constructs new context settings with the specified OpenGL version, no depth or stencil
bits and no anti-aliasing.
- ContextSettings(int, int, int) - Constructor for class org.jsfml.window.ContextSettings
-
Constructs new context settings with the specified OpenGL version and anti-aliasing level and
no depth or stencil bits.
- ContextSettings(int, int, int, int, int) - Constructor for class org.jsfml.window.ContextSettings
-
Constructs new context settings.
- control - Variable in class org.jsfml.window.event.KeyEvent
-
true
if a CTRL
key (left or right) was pressed when the event occured,
false
if not.
- ConvexShape - Class in org.jsfml.graphics
-
Specialized shape representing a convex polygon.
- ConvexShape() - Constructor for class org.jsfml.graphics.ConvexShape
-
Constructs a new empty polygon.
- ConvexShape(int) - Constructor for class org.jsfml.graphics.ConvexShape
-
Constructs a new empty polygon and allocates a certain amount of points.
- ConvexShape(Vector2f...) - Constructor for class org.jsfml.graphics.ConvexShape
-
Constructs a new polygon from a given set of points.
- copy(Image, int, int, IntRect, boolean) - Method in class org.jsfml.graphics.Image
-
Copies a portion of another image onto this image.
- copy(Image, int, int, IntRect) - Method in class org.jsfml.graphics.Image
-
Copies a portion of another image onto this image.
- copy(Image, int, int) - Method in class org.jsfml.graphics.Image
-
Copies another image onto this image.
- copyToImage() - Method in interface org.jsfml.graphics.ConstTexture
-
Copies this texture to an editable
Image
.
- copyToImage() - Method in class org.jsfml.graphics.Texture
-
- create(int, int, Color) - Method in class org.jsfml.graphics.Image
-
Generates a new image and fills it with a color.
- create(int, int) - Method in class org.jsfml.graphics.Image
-
Generates a new image and fills it with black.
- create(BufferedImage) - Method in class org.jsfml.graphics.Image
-
- create(int, int, int[]) - Method in class org.jsfml.graphics.Image
-
Creates a new image from the given pixel data.
- create(int, int, boolean) - Method in class org.jsfml.graphics.RenderTexture
-
Sets up the render texture.
- create(int, int) - Method in class org.jsfml.graphics.RenderTexture
-
Sets up the render texture without a depth buffer.
- create(VideoMode, String, int, ContextSettings) - Method in class org.jsfml.graphics.RenderWindow
-
- create(int, int) - Method in class org.jsfml.graphics.Texture
-
Generates an empty texture with the specified dimensions.
- create(VideoMode, String, int, ContextSettings) - Method in class org.jsfml.window.Window
-
Creates and opens a window or re-creates it if it was already opened.
- create(VideoMode, String, int) - Method in class org.jsfml.window.Window
-
Creates and opens a window or re-creates it if it was already opened.
- create(VideoMode, String) - Method in class org.jsfml.window.Window
-
Creates and opens a window or re-creates it if it was already opened.
- createMaskFromColor(Color, int) - Method in class org.jsfml.graphics.Image
-
Creates a transparency mask from the given color.
- createMaskFromColor(Color) - Method in class org.jsfml.graphics.Image
-
Creates a transparency mask from the given color, making matching pixels fully transparent.
- CURRENT_TEXTURE - Static variable in class org.jsfml.graphics.Shader
-
Special value denoting that the texture of the object being drawn
should be used, which cannot be known before it is actually being drawn.
- CYAN - Static variable in class org.jsfml.graphics.Color
-
Cyan (0, 255, 255)
- g - Variable in class org.jsfml.graphics.Color
-
The green component of the color.
- getAttenuation() - Method in class org.jsfml.audio.SoundSource
-
Gets the sound's attenuation factor.
- getAxisPosition(int, Joystick.Axis) - Static method in class org.jsfml.window.Joystick
-
Retrieves the current position of the specified axis of a joystick or gamepad.
- getBounds() - Method in class org.jsfml.graphics.VertexArray
-
Computes the axis-aligned bounding box of this vertex array.
- getBuffer() - Method in class org.jsfml.audio.Sound
-
Gets the underlying sound buffer that this sound plays from.
- getBuffer() - Method in class org.jsfml.audio.SoundBufferRecorder
-
Gets the sound buffer containing the captured audio data.
- getBuffer() - Static method in class org.jsfml.internal.IntercomHelper
-
Gets the current thread-local buffer.
- getButtonCount(int) - Static method in class org.jsfml.window.Joystick
-
Retrieves the amount of buttons of a joystick or gamepad.
- getCenter() - Method in interface org.jsfml.graphics.ConstView
-
Gets the current center of the view.
- getCenter() - Method in class org.jsfml.graphics.View
-
- getChannelCount() - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Gets the amount of audio channels in the buffer
(e.g.
- getChannelCount() - Method in class org.jsfml.audio.SoundBuffer
-
- getChannelCount() - Method in class org.jsfml.audio.SoundStream
-
Gets the amount of audio channels of this stream.
- getCharacterSize() - Method in class org.jsfml.graphics.Text
-
Gets the text's current font size.
- getColor() - Method in class org.jsfml.graphics.Sprite
-
Gets the sprite's current color mask.
- getColor() - Method in class org.jsfml.graphics.Text
-
Gets the text's current font color.
- getContext() - Static method in class org.jsfml.window.Context
-
Creates and activates a valid OpenGL context on the current thread.
- getDefaultView() - Method in interface org.jsfml.graphics.RenderTarget
-
Gets the target's default view.
- getDefaultView() - Method in class org.jsfml.graphics.RenderTexture
-
- getDefaultView() - Method in class org.jsfml.graphics.RenderWindow
-
- getDesktopMode() - Static method in class org.jsfml.window.VideoMode
-
Retrieves the desktop's current video mode / screen resolution.
- getDirection() - Static method in class org.jsfml.audio.Listener
-
Gets the listener's current orientation or "view direction" in the scene.
- getDuration() - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Gets the duration of the sound.
- getDuration() - Method in class org.jsfml.audio.Music
-
Gets the total duration of the music.
- getDuration() - Method in class org.jsfml.audio.SoundBuffer
-
- getElapsedTime() - Method in class org.jsfml.system.Clock
-
Gets the elapsed time since the clock was created or last restarted.
- getFillColor() - Method in class org.jsfml.graphics.Shape
-
Gets the shape's current fill color.
- getFont() - Method in class org.jsfml.graphics.Text
-
Gets the text's current font.
- getFullscreenModes() - Static method in class org.jsfml.window.VideoMode
-
Retrieves the list of supported fullscreen video modes.
- getGlobalBounds() - Method in class org.jsfml.graphics.Shape
-
Gets the text's global bounding rectangle in the scene,
taking the text's transformation into account.
- getGlobalBounds() - Method in class org.jsfml.graphics.Sprite
-
Gets the sprite's global bounding rectangle in the scene,
taking the sprite's transformation into account.
- getGlobalBounds() - Method in class org.jsfml.graphics.Text
-
Gets the text's global bounding rectangle in the scene,
taking the text's transformation into account.
- getGlobalVolume() - Static method in class org.jsfml.audio.Listener
-
Gets the global sound volume.
- getGlyph(int, int, boolean) - Method in interface org.jsfml.graphics.ConstFont
-
Gets a glyph information structure from the font.
- getGlyph(int, int, boolean) - Method in class org.jsfml.graphics.Font
-
- getInverse() - Method in class org.jsfml.graphics.Transform
-
Returns the inverse transformation.
- getInverseTransform() - Method in class org.jsfml.graphics.BasicTransformable
-
- getInverseTransform() - Method in interface org.jsfml.graphics.ConstView
-
Gets the inverse of the view's current transformation matrix as determined
by its center, size and rotation angle.
- getInverseTransform() - Method in interface org.jsfml.graphics.Transformable
-
Gets the inverse of the current transformation matrix.
- getInverseTransform() - Method in class org.jsfml.graphics.View
-
- getKerning(int, int, int) - Method in interface org.jsfml.graphics.ConstFont
-
Gets the kerning offset between two glyphs.
- getKerning(int, int, int) - Method in class org.jsfml.graphics.Font
-
- getLineSpacing(int) - Method in interface org.jsfml.graphics.ConstFont
-
Gets the line spacing of the font.
- getLineSpacing(int) - Method in class org.jsfml.graphics.Font
-
- getLocalBounds() - Method in class org.jsfml.graphics.Shape
-
Gets the text's local bounding rectangle,
not taking the text's transformation into account.
- getLocalBounds() - Method in class org.jsfml.graphics.Sprite
-
Gets the sprite's local bounding rectangle,
not taking the sprite's transformation into account.
- getLocalBounds() - Method in class org.jsfml.graphics.Text
-
Gets the text's local bounding rectangle,
not taking the text's transformation into account.
- getMatrix() - Method in class org.jsfml.graphics.Transform
-
Gets a copy of the underlying 4x4 3D transformation matrix.
- getMaximumSize() - Static method in class org.jsfml.graphics.Texture
-
Gets the maximum texture size supported by the current hardware.
- getMicroseconds(long) - Static method in class org.jsfml.system.Time
-
Creates a new time with the given value.
- getMilliseconds(long) - Static method in class org.jsfml.system.Time
-
Creates a new time with the given value.
- getMinDistance() - Method in class org.jsfml.audio.SoundSource
-
Gets the sound's minimum distance from the
Listener
before attenuation sets in.
- getOrigin() - Method in class org.jsfml.graphics.BasicTransformable
-
- getOrigin() - Method in interface org.jsfml.graphics.Transformable
-
Gets the origin of this object.
- getOutlineColor() - Method in class org.jsfml.graphics.Shape
-
Gets the shape's current outline color.
- getOutlineThickness() - Method in class org.jsfml.graphics.Shape
-
Gets the shape's current outline thickness.
- getPitch() - Method in class org.jsfml.audio.SoundSource
-
Gets the sound's current pitch factor.
- getPixel(int, int) - Method in class org.jsfml.graphics.Image
-
Gets the color of a certain pixel.
- getPixels() - Method in class org.jsfml.graphics.Image
-
Retrieves a copy of all the pixels of the image in 32-bit ARGB color format.
- getPlayingOffset() - Method in class org.jsfml.audio.Sound
-
Gets the playing offset from where to start playing the underlying buffer.
- getPlayingOffset() - Method in class org.jsfml.audio.SoundStream
-
Gets the playing offset at which to play from the stream.
- getPoint(int) - Method in class org.jsfml.graphics.Shape
-
Gets a point of the shape.
- getPointCount() - Method in class org.jsfml.graphics.Shape
-
Gets the amount of points that defines this shape.
- getPoints() - Method in class org.jsfml.graphics.ConvexShape
-
- getPoints() - Method in class org.jsfml.graphics.Shape
-
Gets all the points of the shape.
- getPosition() - Static method in class org.jsfml.audio.Listener
-
Gets the listener's current position in the scene.
- getPosition() - Method in class org.jsfml.audio.SoundSource
-
Gets the sound's current position in the scene.
- getPosition() - Method in class org.jsfml.graphics.BasicTransformable
-
- getPosition() - Method in interface org.jsfml.graphics.Transformable
-
Gets the position of this object.
- getPosition() - Static method in class org.jsfml.window.Mouse
-
Retrieves the absolute position of the mouse cursor on the screen.
- getPosition(Window) - Static method in class org.jsfml.window.Mouse
-
Retrieves the position of the mouse cursor relative to a window.
- getPosition() - Method in class org.jsfml.window.Window
-
Gets the absolute position of the window's top left corner on the screen.
- getPrimitiveType() - Method in class org.jsfml.graphics.VertexArray
-
Gets the type of primitives drawn by this vertex array.
- getRadius() - Method in class org.jsfml.graphics.CircleShape
-
Gets the radius of this circle.
- getRotation() - Method in class org.jsfml.graphics.BasicTransformable
-
- getRotation() - Method in interface org.jsfml.graphics.ConstView
-
Gets the current rotation angle of the view in degrees.
- getRotation() - Method in interface org.jsfml.graphics.Transformable
-
Gets the rotation angle of this object.
- getRotation() - Method in class org.jsfml.graphics.View
-
- getSampleCount() - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Retrieves the amount of samples stored in the buffer.
- getSampleCount() - Method in class org.jsfml.audio.SoundBuffer
-
- getSampleRate() - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Gets the sound buffer's sample rate in samples per second.
- getSampleRate() - Method in class org.jsfml.audio.SoundBuffer
-
- getSampleRate() - Method in class org.jsfml.audio.SoundRecorder
-
Gets the sample rate that audio is being captured with.
- getSampleRate() - Method in class org.jsfml.audio.SoundStream
-
Gets the sample rate of this stream.
- getSamples() - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Retrieves the raw 16-bit audio samples stored in the buffer.
- getSamples() - Method in class org.jsfml.audio.SoundBuffer
-
- getScale() - Method in class org.jsfml.graphics.BasicTransformable
-
- getScale() - Method in interface org.jsfml.graphics.Transformable
-
Gets the scaling of this object.
- getSeconds(float) - Static method in class org.jsfml.system.Time
-
Creates a new time with the given value.
- getSettings() - Method in class org.jsfml.window.Window
-
Retrieves the context settings for the window's OpenGL context.
- getSize() - Method in interface org.jsfml.graphics.ConstTexture
-
Gets the dimensions of the texture.
- getSize() - Method in interface org.jsfml.graphics.ConstView
-
Gets the current dimensions of the view in pixels.
- getSize() - Method in class org.jsfml.graphics.Image
-
Gets the size of the image.
- getSize() - Method in class org.jsfml.graphics.RectangleShape
-
Gets the dimensions of the rectangle.
- getSize() - Method in interface org.jsfml.graphics.RenderTarget
-
Gets the size of the render region.
- getSize() - Method in class org.jsfml.graphics.RenderTexture
-
- getSize() - Method in class org.jsfml.graphics.Texture
-
Gets the dimensions of the texture.
- getSize() - Method in class org.jsfml.graphics.View
-
- getSize() - Method in class org.jsfml.window.Window
-
Gets the size of the window.
- getStatus() - Method in class org.jsfml.audio.Sound
-
- getStatus() - Method in class org.jsfml.audio.SoundSource
-
Gets the current state of the sound stream.
- getStatus() - Method in class org.jsfml.audio.SoundStream
-
- getString() - Method in class org.jsfml.graphics.Text
-
Gets the text's string.
- getStyle() - Method in class org.jsfml.graphics.Text
-
Gets the text's current font style.
- getTexture(int) - Method in interface org.jsfml.graphics.ConstFont
-
Retrieves the texture containing the font's glyphs.
- getTexture(int) - Method in class org.jsfml.graphics.Font
-
- getTexture() - Method in class org.jsfml.graphics.RenderTexture
-
Gets the target texture.
- getTexture() - Method in class org.jsfml.graphics.Shape
-
Gets the shape's current texture.
- getTexture() - Method in class org.jsfml.graphics.Sprite
-
Gets the sprite's current texture.
- getTextureRect() - Method in class org.jsfml.graphics.Shape
-
Gets the shape's current texture portion.
- getTextureRect() - Method in class org.jsfml.graphics.Sprite
-
Gets the sprite's current texture rectangle.
- getTransform() - Method in class org.jsfml.graphics.BasicTransformable
-
- getTransform() - Method in interface org.jsfml.graphics.ConstView
-
Gets the view's current transformation matrix as determined by its center,
size and rotation angle.
- getTransform() - Method in interface org.jsfml.graphics.Transformable
-
Gets the current transformation matrix.
- getTransform() - Method in class org.jsfml.graphics.View
-
- getView() - Method in interface org.jsfml.graphics.RenderTarget
-
Gets the target's current view.
- getView() - Method in class org.jsfml.graphics.RenderTexture
-
- getView() - Method in class org.jsfml.graphics.RenderWindow
-
- getViewport() - Method in interface org.jsfml.graphics.ConstView
-
Gets the current viewport rectangle of this view.
- getViewport(ConstView) - Method in interface org.jsfml.graphics.RenderTarget
-
Computes the viewport of the given view applied to this render target.
- getViewport(ConstView) - Method in class org.jsfml.graphics.RenderTexture
-
- getViewport(ConstView) - Method in class org.jsfml.graphics.RenderWindow
-
- getViewport() - Method in class org.jsfml.graphics.View
-
- getVolume() - Method in class org.jsfml.audio.SoundSource
-
Gets the sound's current volume.
- Glyph - Class in org.jsfml.graphics
-
Describes a glyph in a
Font
.
- Glyph(int, IntRect, IntRect) - Constructor for class org.jsfml.graphics.Glyph
-
Constructs a glyph with the specified parameters.
- GREEN - Static variable in class org.jsfml.graphics.Color
-
Green (0, 255, 0)
- IDENTITY - Static variable in class org.jsfml.graphics.Transform
-
The identity transformation, maps any vector to itself and therefore
"does nothing".
- Image - Class in org.jsfml.graphics
-
Provides methods for loading, manipulating and saving images.
- Image() - Constructor for class org.jsfml.graphics.Image
-
Constructs a new empty image.
- Image.PixelOutOfBoundsException - Exception in org.jsfml.graphics
-
- Image.PixelOutOfBoundsException(int, int) - Constructor for exception org.jsfml.graphics.Image.PixelOutOfBoundsException
-
Constructs a new exception.
- initialize(int, int) - Method in class org.jsfml.audio.Music
-
- initialize(int, int) - Method in class org.jsfml.audio.SoundStream
-
Defines the audio stream parameters.
- initialize(T) - Method in class org.jsfml.internal.NativeRef
-
Initializes a native reference with the specified Java object.
- Intercom - Annotation Type in org.jsfml.internal
-
Annotation for intercom-critical types, fields, methods and constructors.
- IntercomHelper - Class in org.jsfml.internal
-
Provides functionality to encode and decode data structures used
for intercom methods.
- intersection(FloatRect) - Method in class org.jsfml.graphics.FloatRect
-
Tests whether this rectangle intersects with another rectangle and
calculates the rectangle of intersection.
- intersection(IntRect) - Method in class org.jsfml.graphics.IntRect
-
Tests whether this rectangle intersects with another rectangle and
calculates the rectangle of intersection.
- IntRect - Class in org.jsfml.graphics
-
Represents an axis-aligned rectangle using integer coordinates.
- IntRect(int, int, int, int) - Constructor for class org.jsfml.graphics.IntRect
-
Constructs a new rectangle with the specified parameters.
- IntRect(Vector2i, Vector2i) - Constructor for class org.jsfml.graphics.IntRect
-
Constructs a new rectangle with the specified parameters.
- IntRect(FloatRect) - Constructor for class org.jsfml.graphics.IntRect
-
Constructs a new rectangle by converting a floating point rectangle.
- isAvailable() - Static method in class org.jsfml.audio.SoundRecorder
-
Checks whether audio capturing is available on this system.
- isAvailable() - Static method in class org.jsfml.graphics.Shader
-
Checks if shaders are available on this system.
- isButtonPressed(int, int) - Static method in class org.jsfml.window.Joystick
-
Checks whether the specified button is currently pressed on a joystick or gamepad.
- isButtonPressed(Mouse.Button) - Static method in class org.jsfml.window.Mouse
-
Checks if a mouse button is currently pressed.
- isConnected(int) - Static method in class org.jsfml.window.Joystick
-
Checks if a joystick or gamepad is currently connected.
- isKeyPressed(Keyboard.Key) - Static method in class org.jsfml.window.Keyboard
-
Checks if a certain key is currently pressed on the keyboard.
- isLegalWindowThread() - Static method in class org.jsfml.window.Window
-
Checks whether the current native thread is eligibile for creating a window.
- isLoop() - Method in class org.jsfml.audio.Sound
-
Returns whether or not the sound is looping.
- isLoop() - Method in class org.jsfml.audio.SoundStream
-
Returns whether or not the sound stream playback is looping.
- isOpen() - Method in class org.jsfml.window.Window
-
Checks if the window has been created and is opened.
- isRelativeToListener() - Method in class org.jsfml.audio.SoundSource
-
Returns whether the sound's position is relative to the
Listener
.
- isRepeated() - Method in interface org.jsfml.graphics.ConstTexture
-
Checks whether texture repeating is enabled.
- isRepeated() - Method in class org.jsfml.graphics.RenderTexture
-
Checks whether texture repeating is enabled for the underlying texture.
- isRepeated() - Method in class org.jsfml.graphics.Texture
-
- isSmooth() - Method in interface org.jsfml.graphics.ConstTexture
-
Checks whether the smooth filter is enabled.
- isSmooth() - Method in class org.jsfml.graphics.RenderTexture
-
Checks whether texture smoothing is enabled.
- isSmooth() - Method in class org.jsfml.graphics.Texture
-
- isValid() - Method in class org.jsfml.window.VideoMode
-
Checks whether this display mode is a valid fullscreen mode, ie whether
the current monitor supports it for fullscreen.
- ITALIC - Static variable in interface org.jsfml.graphics.TextStyle
-
Italic drawing style.
- r - Variable in class org.jsfml.graphics.Color
-
The red component of the color.
- ratio(Time, Time) - Static method in class org.jsfml.system.Time
-
Computes a time period's ratio of another time period.
- readFile(Path) - Static method in class org.jsfml.internal.StreamUtil
-
Fully reads a file into a byte array.
- readStream(InputStream) - Static method in class org.jsfml.internal.StreamUtil
-
Fully reads an input stream into a byte array.
- RectangleShape - Class in org.jsfml.graphics
-
A specialized shape representing a rectangle.
- RectangleShape() - Constructor for class org.jsfml.graphics.RectangleShape
-
Constructs a new rectangle shape with no dimensions.
- RectangleShape(Vector2f) - Constructor for class org.jsfml.graphics.RectangleShape
-
Constructs a new rectangle shape with the specified dimensions.
- RED - Static variable in class org.jsfml.graphics.Color
-
Red (255, 0, 0)
- REGULAR - Static variable in interface org.jsfml.graphics.TextStyle
-
Regular drawing style.
- release() - Method in class org.jsfml.internal.NativeRef
-
Releases the managed Java reference, if any, and frees the managed native pointer,
if any, including freeing any natively allocated memory.
- RenderStates - Class in org.jsfml.graphics
-
Defines drawing properties when drawing objects to a
RenderTarget
.
- RenderStates(BlendMode) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states with default settings and
the specified blending mode.
- RenderStates(Transform) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states with default settings and
the specified transformation matrix.
- RenderStates(ConstTexture) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states with default settings and
the specified texture.
- RenderStates(ConstShader) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states with default settings and
the specified shader.
- RenderStates(RenderStates, BlendMode) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states by copying other states,
but changing the blend mode.
- RenderStates(RenderStates, Transform) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states by copying other states,
but changing the transformation.
- RenderStates(RenderStates, ConstTexture) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states by copying other states,
but changing the texture.
- RenderStates(RenderStates, ConstShader) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states by copying other states,
but changing the shader.
- RenderStates(BlendMode, Transform, ConstTexture, ConstShader) - Constructor for class org.jsfml.graphics.RenderStates
-
Constructs a new set of render states with the specified parameters.
- RenderTarget - Interface in org.jsfml.graphics
-
Interface for render targets.
- RenderTexture - Class in org.jsfml.graphics
-
Provides a render target for off-screen 2D rendering into a texture.
- RenderTexture() - Constructor for class org.jsfml.graphics.RenderTexture
-
Constructs a new render texture.
- RenderWindow - Class in org.jsfml.graphics
-
Provides a window that can serve as a target for 2D drawing.
- RenderWindow() - Constructor for class org.jsfml.graphics.RenderWindow
-
Constructs a new render window without actually creating (opening) it.
- RenderWindow(VideoMode, String, int, ContextSettings) - Constructor for class org.jsfml.graphics.RenderWindow
-
Constructs a new render window and creates it with the specified parameters.
- RenderWindow(VideoMode, String, int) - Constructor for class org.jsfml.graphics.RenderWindow
-
Constructs a new render window and creates it with default context settings.
- RenderWindow(VideoMode, String) - Constructor for class org.jsfml.graphics.RenderWindow
-
Constructs a new render window and creates it with default style and context settings.
- reset(FloatRect) - Method in class org.jsfml.graphics.View
-
Resets the view to a certain viewport rectangle, resetting the rotation angle in the process.
- resetGLStates() - Method in interface org.jsfml.graphics.RenderTarget
-
Resets the internal OpenGL states so that the target is ready for drawing.
- resetGLStates() - Method in class org.jsfml.graphics.RenderTexture
-
- resetGLStates() - Method in class org.jsfml.graphics.RenderWindow
-
- RESIZE - Static variable in interface org.jsfml.window.WindowStyle
-
Makes the window resizable.
- restart() - Method in class org.jsfml.system.Clock
-
Yields the elapsed time and restarts the clock.
- rotate(float) - Method in class org.jsfml.graphics.BasicTransformable
-
- rotate(Transform, float) - Static method in class org.jsfml.graphics.Transform
-
Adds a rotation around the origin to a transformation.
- rotate(Transform, float, float, float) - Static method in class org.jsfml.graphics.Transform
-
Adds a rotation around an arbitrary center to this transformation.
- rotate(Transform, float, Vector2f) - Static method in class org.jsfml.graphics.Transform
-
Adds a rotation around an arbitrary center to this transformation.
- rotate(float) - Method in interface org.jsfml.graphics.Transformable
-
Rotates this object around its origin.
- rotate(float) - Method in class org.jsfml.graphics.View
-
Rotates the view around its center.
- saveToFile(Path) - Method in interface org.jsfml.audio.ConstSoundBuffer
-
Attempts to save the sound buffer to a file.
- saveToFile(Path) - Method in class org.jsfml.audio.SoundBuffer
-
- saveToFile(Path) - Method in class org.jsfml.graphics.Image
-
Attempts to save the image to a file.
- scale(float, float) - Method in class org.jsfml.graphics.BasicTransformable
-
- scale(Vector2f) - Method in class org.jsfml.graphics.BasicTransformable
-
- scale(Transform, float, float) - Static method in class org.jsfml.graphics.Transform
-
Adds a scaling operation from the origin to a transformation.
- scale(Transform, Vector2f) - Static method in class org.jsfml.graphics.Transform
-
Adds a scaling operation from the origin to a transformation.
- scale(Transform, float, float, float, float) - Static method in class org.jsfml.graphics.Transform
-
Adds a scaling operation from an arbitrary center to a transformation.
- scale(Transform, Vector2f, Vector2f) - Static method in class org.jsfml.graphics.Transform
-
Adds a scaling operation from an arbitrary center to a transformation.
- scale(float, float) - Method in interface org.jsfml.graphics.Transformable
-
Scales the object, using its origin as the scaling center.
- scale(Vector2f) - Method in interface org.jsfml.graphics.Transformable
-
Scales the object, using its origin as the scaling center.
- setActive(boolean) - Method in class org.jsfml.graphics.RenderTexture
-
Activates or deactivates the render texture for rendering.
- setActive(boolean) - Method in class org.jsfml.window.Context
-
Explictly activates or deactivates the OpenGL context.
- setActive(boolean) - Method in class org.jsfml.window.Window
-
Activates or deactivates the window as the current OpenGL rendering target.
- setActive() - Method in class org.jsfml.window.Window
-
Activates the window as the current OpenGL rendering target.
- setAttenuation(float) - Method in class org.jsfml.audio.SoundSource
-
Sets the sound's attenuation factor.
- setBuffer(ConstSoundBuffer) - Method in class org.jsfml.audio.Sound
-
Sets the sound buffer used by this sound.
- setCenter(float, float) - Method in class org.jsfml.graphics.View
-
Sets the center of the view.
- setCenter(Vector2f) - Method in class org.jsfml.graphics.View
-
Sets the center of the view.
- setCharacterSize(int) - Method in class org.jsfml.graphics.Text
-
Sets the font size for this text.
- setColor(Color) - Method in class org.jsfml.graphics.Sprite
-
Sets the color mask of the sprite.
- setColor(Color) - Method in class org.jsfml.graphics.Text
-
Sets the font color for this text.
- setDirection(float, float, float) - Static method in class org.jsfml.audio.Listener
-
Sets the orientation or "view direction" of the listener in the scene.
- setDirection(Vector3f) - Static method in class org.jsfml.audio.Listener
-
Sets the orientation or "view direction" of the listener in the scene.
- setFillColor(Color) - Method in class org.jsfml.graphics.Shape
-
Sets the fill color of the shape.
- setFont(ConstFont) - Method in class org.jsfml.graphics.Text
-
Sets the text's font.
- setFramerateLimit(int) - Method in class org.jsfml.window.Window
-
Sets the maximum frame rate in frames per second.
- setGlobalVolume(float) - Static method in class org.jsfml.audio.Listener
-
Sets the global sound volume.
- setIcon(Image) - Method in class org.jsfml.window.Window
-
Sets the icon of the window.
- setJoystickTreshold(float) - Method in class org.jsfml.window.Window
-
Sets the joystick treshold.
- setKeyRepeatEnabled(boolean) - Method in class org.jsfml.window.Window
-
Determines whether automatic key repeat is enabled.
- setLoop(boolean) - Method in class org.jsfml.audio.Sound
-
Enables or disables repeated looping of the sound.
- setLoop(boolean) - Method in class org.jsfml.audio.SoundStream
-
Enables or disables repeated looping of the sound stream playback.
- setMinDistance(float) - Method in class org.jsfml.audio.SoundSource
-
Sets the minimum distance of the sound before attenuation kicks in.
- setMouseCursorVisible(boolean) - Method in class org.jsfml.window.Window
-
Determines whether the mouse cursor, if moved over the window, is visible or not.
- setOrigin(float, float) - Method in class org.jsfml.graphics.BasicTransformable
-
- setOrigin(Vector2f) - Method in class org.jsfml.graphics.BasicTransformable
-
- setOrigin(Vector2f) - Method in class org.jsfml.graphics.Shape
-
- setOrigin(Vector2f) - Method in class org.jsfml.graphics.Sprite
-
- setOrigin(Vector2f) - Method in class org.jsfml.graphics.Text
-
- setOrigin(float, float) - Method in interface org.jsfml.graphics.Transformable
-
Sets the rotation, scaling and drawing origin of this object.
- setOrigin(Vector2f) - Method in interface org.jsfml.graphics.Transformable
-
Sets the rotation, scaling and drawing origin of this object.
- setOutlineColor(Color) - Method in class org.jsfml.graphics.Shape
-
Sets the outline color of the shape.
- setOutlineThickness(float) - Method in class org.jsfml.graphics.Shape
-
Sets the thickness of the shape's outline.
- setParameter(String, float) - Method in class org.jsfml.graphics.Shader
-
Sets a float parameter (float
) value in the shader.
- setParameter(String, float, float) - Method in class org.jsfml.graphics.Shader
-
Sets a 2-component-float (vec2
) parameter value in the shader.
- setParameter(String, Vector2f) - Method in class org.jsfml.graphics.Shader
-
Sets a 2-component-float (vec2
) parameter value in the shader.
- setParameter(String, float, float, float) - Method in class org.jsfml.graphics.Shader
-
Sets a 3-component-float (vec3
) parameter value in the shader.
- setParameter(String, Vector3f) - Method in class org.jsfml.graphics.Shader
-
Sets a 3-component-float (vec3
) parameter value in the shader.
- setParameter(String, float, float, float, float) - Method in class org.jsfml.graphics.Shader
-
Sets a 4-component-float (vec4
) parameter value in the shader.
- setParameter(String, Color) - Method in class org.jsfml.graphics.Shader
-
Sets a color (vec4) parameter value in the shader.
- setParameter(String, Transform) - Method in class org.jsfml.graphics.Shader
-
Sets a matrix (mat4) parameter value in the shader.
- setParameter(String, ConstTexture) - Method in class org.jsfml.graphics.Shader
-
Sets a texture (sampler2D) parameter value in the shader.
- setParameter(String, Shader.CurrentTextureType) - Method in class org.jsfml.graphics.Shader
-
Sets a texture (sampler2D) parameter value in the shader to the texture
of the object being drawn in the moment the shader is applied.
- setPitch(float) - Method in class org.jsfml.audio.SoundSource
-
Sets the pitch factor of the sound.
- setPixel(int, int, Color) - Method in class org.jsfml.graphics.Image
-
Sets the color of a certain pixel.
- setPlayingOffset(Time) - Method in class org.jsfml.audio.Sound
-
Sets the playing offset from where to play the underlying buffer.
- setPlayingOffset(Time) - Method in class org.jsfml.audio.SoundStream
-
Sets the current playing offset at which to play from the stream.
- setPoint(int, Vector2f) - Method in class org.jsfml.graphics.ConvexShape
-
Sets a point of the polygon.
- setPointCount(int) - Method in class org.jsfml.graphics.CircleShape
-
Sets the amount of points the circle should be approximated with.
- setPointCount(int) - Method in class org.jsfml.graphics.ConvexShape
-
Sets the amount of points that belong to the polygon.
- setPoints(Vector2f...) - Method in class org.jsfml.graphics.ConvexShape
-
Sets the points of the polygon.
- setPosition(float, float, float) - Static method in class org.jsfml.audio.Listener
-
Sets the position of the listener in the scene.
- setPosition(Vector3f) - Static method in class org.jsfml.audio.Listener
-
Sets the position of the listener in the scene.
- setPosition(float, float, float) - Method in class org.jsfml.audio.SoundSource
-
Sets the position of the sound in the scene.
- setPosition(Vector3f) - Method in class org.jsfml.audio.SoundSource
-
Sets the position of the sound in the scene.
- setPosition(float, float) - Method in class org.jsfml.graphics.BasicTransformable
-
- setPosition(Vector2f) - Method in class org.jsfml.graphics.BasicTransformable
-
- setPosition(Vector2f) - Method in class org.jsfml.graphics.Shape
-
- setPosition(Vector2f) - Method in class org.jsfml.graphics.Sprite
-
- setPosition(Vector2f) - Method in class org.jsfml.graphics.Text
-
- setPosition(float, float) - Method in interface org.jsfml.graphics.Transformable
-
Sets the position of this object in the scene so that its origin will be exactly on it.
- setPosition(Vector2f) - Method in interface org.jsfml.graphics.Transformable
-
Sets the position of this object in the scene so that its origin will be exactly on it.
- setPosition(Vector2i) - Static method in class org.jsfml.window.Mouse
-
Sets the absolute position of the mouse cursor on the screen.
- setPosition(Vector2i, Window) - Static method in class org.jsfml.window.Mouse
-
Sets the position of the mouse cursor relative to a window.
- setPosition(Vector2i) - Method in class org.jsfml.window.Window
-
Sets the absolute position of the window's top left corner on the screen.
- setPrimitiveType(PrimitiveType) - Method in class org.jsfml.graphics.VertexArray
-
Sets the type of primitives drawn by this vertex array.
- setRadius(float) - Method in class org.jsfml.graphics.CircleShape
-
Sets the radius of this circle.
- setRelativeToListener(boolean) - Method in class org.jsfml.audio.SoundSource
-
Determines whether the sound position is bound to be relative to the
Listener
or whether it is positioned absolutely in the scene.
- setRepeated(boolean) - Method in class org.jsfml.graphics.RenderTexture
-
Enables or disables texture repeating for the underlying texture.
- setRepeated(boolean) - Method in class org.jsfml.graphics.Texture
-
Enables or disables texture repeating.
- setRotation(float) - Method in class org.jsfml.graphics.BasicTransformable
-
- setRotation(float) - Method in class org.jsfml.graphics.Shape
-
- setRotation(float) - Method in class org.jsfml.graphics.Sprite
-
- setRotation(float) - Method in class org.jsfml.graphics.Text
-
- setRotation(float) - Method in interface org.jsfml.graphics.Transformable
-
Sets the rotation of this object around its origin.
- setRotation(float) - Method in class org.jsfml.graphics.View
-
Sets the rotation of the view around its center.
- setScale(float, float) - Method in class org.jsfml.graphics.BasicTransformable
-
- setScale(Vector2f) - Method in class org.jsfml.graphics.BasicTransformable
-
- setScale(Vector2f) - Method in class org.jsfml.graphics.Shape
-
- setScale(Vector2f) - Method in class org.jsfml.graphics.Sprite
-
- setScale(Vector2f) - Method in class org.jsfml.graphics.Text
-
- setScale(float, float) - Method in interface org.jsfml.graphics.Transformable
-
Sets the scaling of this object, using its origin as the scaling center.
- setScale(Vector2f) - Method in interface org.jsfml.graphics.Transformable
-
Sets the scaling of this object, using its origin as the scaling center.
- setSize(Vector2f) - Method in class org.jsfml.graphics.RectangleShape
-
Sets the dimensions of the rectangle.
- setSize(float, float) - Method in class org.jsfml.graphics.View
-
Sets the dimensions of the view.
- setSize(Vector2f) - Method in class org.jsfml.graphics.View
-
Sets the dimensions of the view.
- setSize(Vector2i) - Method in class org.jsfml.window.Window
-
Sets the size of the window.
- setSmooth(boolean) - Method in class org.jsfml.graphics.RenderTexture
-
Enables or disables textures smoothing.
- setSmooth(boolean) - Method in class org.jsfml.graphics.Texture
-
Enables or disables the smooth filter.
- setString(String) - Method in class org.jsfml.graphics.Text
-
Sets the string to display.
- setStyle(int) - Method in class org.jsfml.graphics.Text
-
Sets the font drawing style.
- setTexture(ConstTexture, boolean) - Method in class org.jsfml.graphics.Shape
-
Sets the texture of the shape.
- setTexture(ConstTexture) - Method in class org.jsfml.graphics.Shape
-
Sets the texture of the shape without affecting the texture rectangle.
- setTexture(ConstTexture, boolean) - Method in class org.jsfml.graphics.Sprite
-
Sets the texture of this sprite.
- setTexture(ConstTexture) - Method in class org.jsfml.graphics.Sprite
-
Sets the texture of this sprite without affecting the texture rectangle.
- setTextureRect(IntRect) - Method in class org.jsfml.graphics.Shape
-
Sets the portion of the texture that will be used for drawing.
- setTextureRect(IntRect) - Method in class org.jsfml.graphics.Sprite
-
Sets the portion of the texture that will be used for drawing.
- setTitle(String) - Method in class org.jsfml.window.Window
-
Sets the window's title.
- setVerticalSyncEnabled(boolean) - Method in class org.jsfml.window.Window
-
Enables or disables vertical synchronization (VSync).
- setView(ConstView) - Method in interface org.jsfml.graphics.RenderTarget
-
Sets the target's view.
- setView(ConstView) - Method in class org.jsfml.graphics.RenderTexture
-
- setView(ConstView) - Method in class org.jsfml.graphics.RenderWindow
-
- setViewport(FloatRect) - Method in class org.jsfml.graphics.View
-
Sets the viewport rectangle of this view.
- setVisible(boolean) - Method in class org.jsfml.window.Window
-
Shows or hides the window.
- setVolume(float) - Method in class org.jsfml.audio.SoundSource
-
Sets the volume of the sound.
- SFMLErrorCapture - Class in org.jsfml.internal
-
Provides methods to capture output to sf::err()
.
- SFMLInputStream - Class in org.jsfml.internal
-
Pipe for enabling stream from a Java
InputStream
into a
sf::InputStream
.
- SFMLInputStream(InputStream) - Constructor for class org.jsfml.internal.SFMLInputStream
-
- SFMLInputStream.NativeStreamRef - Class in org.jsfml.internal
-
Native pointer manager for an SFMLInputStream
bound
natively to an sf::InputStream
.
- SFMLInputStream.NativeStreamRef() - Constructor for class org.jsfml.internal.SFMLInputStream.NativeStreamRef
-
- SFMLNative - Class in org.jsfml.internal
-
Native library loader.
- SFMLNativeObject - Class in org.jsfml.internal
-
Abstract base class for classes bound to SFML C++ objects.
- SFMLNativeObject() - Constructor for class org.jsfml.internal.SFMLNativeObject
-
- SFMLNativeObject(long) - Constructor for class org.jsfml.internal.SFMLNativeObject
-
Deprecated.
Use of this constructor may cause undefined behaviour and is not supported.
- shader - Variable in class org.jsfml.graphics.RenderStates
-
The shader used for drawing.
- Shader - Class in org.jsfml.graphics
-
Represents a GLSL shader program, consisting of a vertex and a fragment shader.
- Shader() - Constructor for class org.jsfml.graphics.Shader
-
Constructs a new shader.
- Shader.CurrentTextureType - Class in org.jsfml.graphics
-
Special type denoting that the texture of the object being drawn
should be used, which cannot be known before it is actually being drawn.
- Shader.Type - Enum in org.jsfml.graphics
-
Enumeration of shader types.
- ShaderSourceException - Exception in org.jsfml.graphics
-
Thrown if a vertex or fragment shader source could not be compiled or linked.
- ShaderSourceException(String) - Constructor for exception org.jsfml.graphics.ShaderSourceException
-
Constructs a shader compilation exception with the specified message.
- Shape - Class in org.jsfml.graphics
-
Abstract base class for (optionally) textured shapes with (optional) outlines.
- Shape() - Constructor for class org.jsfml.graphics.Shape
-
Default constructor.
- shift - Variable in class org.jsfml.window.event.KeyEvent
-
true
if a SHIFT
key (left or right) was pressed when the event occured,
false
if not.
- size - Variable in class org.jsfml.window.event.SizeEvent
-
The new size of the window in pixels.
- SizeEvent - Class in org.jsfml.window.event
-
Represents window resize events.
- SizeEvent(int, int, int) - Constructor for class org.jsfml.window.event.SizeEvent
-
Constructs a new window resize event.
- Sound - Class in org.jsfml.audio
-
Provides functionality to instantiate a SoundBuffer
and play a buffered sound.
- Sound() - Constructor for class org.jsfml.audio.Sound
-
Constructs an empty sound.
- Sound(ConstSoundBuffer) - Constructor for class org.jsfml.audio.Sound
-
- Sound(Sound) - Constructor for class org.jsfml.audio.Sound
-
Constructs a sound by copying another sound.
- SoundBuffer - Class in org.jsfml.audio
-
Buffer of audio samples, providing an audio data source for a Sound
.
- SoundBuffer() - Constructor for class org.jsfml.audio.SoundBuffer
-
Constructs a sound buffer.
- SoundBuffer(ConstSoundBuffer) - Constructor for class org.jsfml.audio.SoundBuffer
-
Constructs a sound buffer by copying another sound buffer.
- SoundBufferRecorder - Class in org.jsfml.audio
-
A SoundRecorder
which stores captured audio data into a SoundBuffer
.
- SoundBufferRecorder() - Constructor for class org.jsfml.audio.SoundBufferRecorder
-
Constructs a sound buffer recorder.
- SoundRecorder - Class in org.jsfml.audio
-
Abstract base class for sound recorders, which provide functionality to capture audio data.
- SoundRecorder() - Constructor for class org.jsfml.audio.SoundRecorder
-
Constructs a sound recorder.
- SoundSource - Class in org.jsfml.audio
-
Abstract base class for playable sound sources.
- SoundSource() - Constructor for class org.jsfml.audio.SoundSource
-
Constructs a sound source.
- SoundSource.Status - Enum in org.jsfml.audio
-
Enumeration of possible sound source states.
- SoundStream - Class in org.jsfml.audio
-
Abstract base class for streamed sound sources.
- SoundStream() - Constructor for class org.jsfml.audio.SoundStream
-
Constructs a sound stream.
- SoundStream.Chunk - Class in org.jsfml.audio
-
Represents a chunk of audio data provided by a SoundStream
when
new data is requested.
- SoundStream.Chunk(short[], boolean) - Constructor for class org.jsfml.audio.SoundStream.Chunk
-
Constructs a new chunk containing the specified data.
- Sprite - Class in org.jsfml.graphics
-
Represents a drawable instance of a texture or texture portion.
- Sprite() - Constructor for class org.jsfml.graphics.Sprite
-
Constructs a new sprite without a texture.
- Sprite(ConstTexture) - Constructor for class org.jsfml.graphics.Sprite
-
Constructs a new sprite with the specified texture.
- Sprite(ConstTexture, IntRect) - Constructor for class org.jsfml.graphics.Sprite
-
Constructs a new sprite with the specified texture and texture portion.
- start(int) - Method in class org.jsfml.audio.SoundRecorder
-
Starts capturing audio data with the specified sample rate.
- start() - Method in class org.jsfml.audio.SoundRecorder
-
Starts capturing audio data with a sample rate of 44,100 Hz.
- start() - Static method in class org.jsfml.internal.SFMLErrorCapture
-
Starts capturing all output to sf::err()
.
- stencilBits - Variable in class org.jsfml.window.ContextSettings
-
The amount of stencil buffer bits.
- stop() - Method in class org.jsfml.audio.Sound
-
Stops the sound if it is currently playing or paused.
- stop() - Method in class org.jsfml.audio.SoundRecorder
-
Stops capturing audio data.
- stop() - Method in class org.jsfml.audio.SoundStream
-
Stops playing the stream.
- streamToFile(InputStream, Path) - Static method in class org.jsfml.internal.StreamUtil
-
Fully streams an input stream into a file.
- StreamUtil - Class in org.jsfml.internal
-
Provides stream utility functions used by JSFML-internal file reading and writing methods.
- StreamUtil() - Constructor for class org.jsfml.internal.StreamUtil
-
- sub(Time, Time) - Static method in class org.jsfml.system.Time
-
Subtracts two time values.
- sub(Vector2f, Vector2f) - Static method in class org.jsfml.system.Vector2f
-
Subtracts two vectors.
- sub(Vector2i, Vector2i) - Static method in class org.jsfml.system.Vector2i
-
Subtracts two vectors.
- sub(Vector3f, Vector3f) - Static method in class org.jsfml.system.Vector3f
-
Subtracts two vectors.
- sub(Vector3i, Vector3i) - Static method in class org.jsfml.system.Vector3i
-
Subtracts two vectors.
- system - Variable in class org.jsfml.window.event.KeyEvent
-
true
if a system key was pressed when the event occured,
false
if not.
- texCoords - Variable in class org.jsfml.graphics.Vertex
-
The vertex texture coordinates.
- Text - Class in org.jsfml.graphics
-
Represents a graphical text that can be transformed and drawn to a render target.
- Text() - Constructor for class org.jsfml.graphics.Text
-
Creates a new empty text.
- Text(String, ConstFont) - Constructor for class org.jsfml.graphics.Text
-
Creates a new text.
- Text(String, ConstFont, int) - Constructor for class org.jsfml.graphics.Text
-
Creates a new text.
- TextEvent - Class in org.jsfml.window.event
-
Represents text enter events.
- TextEvent(int, int) - Constructor for class org.jsfml.window.event.TextEvent
-
Constructs a new text event.
- TextStyle - Interface in org.jsfml.graphics
-
Provides text style constants.
- texture - Variable in class org.jsfml.graphics.RenderStates
-
The texture used for drawing.
- Texture - Class in org.jsfml.graphics
-
Represents a 2D texture stored on the graphics card for rendering.
- Texture() - Constructor for class org.jsfml.graphics.Texture
-
Constructs a new texture.
- Texture(ConstTexture) - Constructor for class org.jsfml.graphics.Texture
-
Constructs a new texture by copying another texture.
- Texture.CoordinateType - Enum in org.jsfml.graphics
-
Enumeation of texture coordinate types that can be used for rendering.
- TextureCreationException - Exception in org.jsfml.graphics
-
Thrown if a texture failed to be created.
- TextureCreationException(String) - Constructor for exception org.jsfml.graphics.TextureCreationException
-
Constructs a new texture creation exception with the specified message.
- textureRect - Variable in class org.jsfml.graphics.Glyph
-
The texture coordinates of the glyph on the font's texture.
- Time - Class in org.jsfml.system
-
Represents a time period and provides functionality to convert between
various time units, as well as arithmetic operations on time intervals.
- TITLEBAR - Static variable in interface org.jsfml.window.WindowStyle
-
Adds a title bar and a fixed border to the window.
- toBufferedImage() - Method in class org.jsfml.graphics.Image
-
- top - Variable in class org.jsfml.graphics.FloatRect
-
The Y coordinate of the rectangle's top edge.
- top - Variable in class org.jsfml.graphics.IntRect
-
The Y coordinate of the rectangle's top edge.
- toString() - Method in class org.jsfml.graphics.Color
-
- toString() - Method in class org.jsfml.graphics.FloatRect
-
- toString() - Method in class org.jsfml.graphics.IntRect
-
- toString() - Method in class org.jsfml.graphics.Transform
-
- toString() - Method in class org.jsfml.system.Time
-
- toString() - Method in class org.jsfml.system.Vector2f
-
- toString() - Method in class org.jsfml.system.Vector2i
-
- toString() - Method in class org.jsfml.system.Vector3f
-
- toString() - Method in class org.jsfml.system.Vector3i
-
- toString() - Method in class org.jsfml.window.ContextSettings
-
- toString() - Method in class org.jsfml.window.VideoMode
-
- transform - Variable in class org.jsfml.graphics.RenderStates
-
The transformation matrix used for drawing.
- Transform - Class in org.jsfml.graphics
-
Defines a 3x3 transformation matrix for 2D transformations.
- Transform() - Constructor for class org.jsfml.graphics.Transform
-
Constructs an identity transformation.
- Transform(float, float, float, float, float, float, float, float, float) - Constructor for class org.jsfml.graphics.Transform
-
Constructs a new transformation from a 3x3 matrix of the following format:
- Transform(Transform) - Constructor for class org.jsfml.graphics.Transform
-
Constructs a new transformation by copying another transformation.
- Transformable - Interface in org.jsfml.graphics
-
Interface for transformable objects that can be positioned in the scene and
rotated and scaled around an origin.
- transformPoint(float, float) - Method in class org.jsfml.graphics.Transform
-
Transforms a 2D point using the transformation matrix.
- transformPoint(Vector2f) - Method in class org.jsfml.graphics.Transform
-
Transforms a 2D point using the transformation matrix.
- transformRect(FloatRect) - Method in class org.jsfml.graphics.Transform
-
Transforms a rectangle and returns the axis-aligned bounding rectangle.
- translate(Transform, float, float) - Static method in class org.jsfml.graphics.Transform
-
Adds a translation by a 2D vector to a transformation.
- translate(Transform, Vector2f) - Static method in class org.jsfml.graphics.Transform
-
Adds a translation by a 2D vector to a transformation.
- TRANSPARENT - Static variable in class org.jsfml.graphics.Color
-
Transparent (0, 0, 0, 0)
- type - Variable in class org.jsfml.window.event.Event
-
The type of the window event.
- valueOf(String) - Static method in enum org.jsfml.audio.SoundSource.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.graphics.BlendMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.graphics.PrimitiveType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.graphics.Shader.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.graphics.Texture.CoordinateType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.window.event.Event.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.window.Joystick.Axis
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.window.Keyboard.Key
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jsfml.window.Mouse.Button
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.jsfml.audio.SoundSource.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.graphics.BlendMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.graphics.PrimitiveType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.graphics.Shader.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.graphics.Texture.CoordinateType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.window.event.Event.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.window.Joystick.Axis
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.window.Keyboard.Key
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.jsfml.window.Mouse.Button
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Vector2f - Class in org.jsfml.system
-
Represents two-dimensional vectors using floating point coordinates and provides
arithmetic operations on floating point 2D vectors.
- Vector2f(float, float) - Constructor for class org.jsfml.system.Vector2f
-
Constructs a new vector with the given coordinates.
- Vector2f(Vector2i) - Constructor for class org.jsfml.system.Vector2f
-
Constructs a new vector by converting an integral vector.
- Vector2i - Class in org.jsfml.system
-
Represents two-dimensional vectors using integer coordinates and provides
arithmetic operations on integral 2D vectors.
- Vector2i(int, int) - Constructor for class org.jsfml.system.Vector2i
-
Constructs a new vector with the given coordinates.
- Vector2i(Vector2f) - Constructor for class org.jsfml.system.Vector2i
-
Constructs a new vector by converting a floating point vector.
- Vector3f - Class in org.jsfml.system
-
Represents three-dimensional vectors using floating point coordinates and provides
arithmetic operations on floating point 3D vectors.
- Vector3f(float, float, float) - Constructor for class org.jsfml.system.Vector3f
-
Constructs a new vector with the given coordinates.
- Vector3f(Vector3i) - Constructor for class org.jsfml.system.Vector3f
-
Constructs a new vector by converting an integral vector.
- Vector3i - Class in org.jsfml.system
-
Represents three-dimensional vectors using integer coordinates and provides
arithmetic operations on integral 3D vectors.
- Vector3i(int, int, int) - Constructor for class org.jsfml.system.Vector3i
-
Constructs a new vector with the given coordinates.
- Vector3i(Vector3f) - Constructor for class org.jsfml.system.Vector3i
-
Constructs a new vector by converting a floating point vector.
- Vertex - Class in org.jsfml.graphics
-
Defines a shape point with position, color and texture coordinates information.
- Vertex(Vector2f) - Constructor for class org.jsfml.graphics.Vertex
-
Constructs a new vertex at the specified position with white color.
- Vertex(Vector2f, Color) - Constructor for class org.jsfml.graphics.Vertex
-
Constructs a new vertex with the specified position and color.
- Vertex(Vector2f, Vector2f) - Constructor for class org.jsfml.graphics.Vertex
-
Constructs a new vertex with the specified position and texture coordinates, with white color.
- Vertex(Vector2f, Color, Vector2f) - Constructor for class org.jsfml.graphics.Vertex
-
Constructs a new vertex with the specified parameters.
- VertexArray - Class in org.jsfml.graphics
-
Defines a drawable set of one or multiple 2D primitives.
- VertexArray() - Constructor for class org.jsfml.graphics.VertexArray
-
- VertexArray(PrimitiveType) - Constructor for class org.jsfml.graphics.VertexArray
-
Constructs a new empty vertex array.
- VideoMode - Class in org.jsfml.window
-
Represents a video mode (width, height and bits per pixel).
- VideoMode(int, int, int) - Constructor for class org.jsfml.window.VideoMode
-
Constructs a new video mode.
- VideoMode(int, int) - Constructor for class org.jsfml.window.VideoMode
-
Constructs a new video mode with a pixel depth of 32 bits per pixel.
- View - Class in org.jsfml.graphics
-
Represents a 2D camera which defines the region of the scene that is visible.
- View() - Constructor for class org.jsfml.graphics.View
-
Constructs a new view for the area of (0, 0, 1000, 1000).
- View(FloatRect) - Constructor for class org.jsfml.graphics.View
-
Constructs a new view for the specified area.
- View(Vector2f, Vector2f) - Constructor for class org.jsfml.graphics.View
-
Constructs a view for the specified area.


This week's technical blog is about explaining technical terms without jargon and in a non-technical friendly way. That and packing it with analogies too, so let's see if mine are at least a little entertaining.
HTML and CSS what's the difference?
The difference between HTML and CSS is that they are responsible for different parts of the website. HTML is the blueprint for the websites it's skeletal structure, sure it includes a lot of the content and all its listed parts but only in its rawest form. CSS on the other hand is the look. It dresses each HTML element based on its instructions, think of it as your costume department manager. If we try to put this into a real world idea example say you are putting on a play, HTML has sourced all your actors, the set, and the script telling everyone where they should be. CSS’s job is to make sure they all look the part, each actor is wearing the correct costume, each set item is painted/dressed up in the correct way and so forth.
Control flow and loops what are they and how do they relate to real life?
Control flow as the name suggests controls the flow of a program, it is the sequential order that parts of the program activate for example what happens at the start when it is loaded, what happens when you click this button and so on. Loops are a type of function an activity of the program that does something over and over until a set stopping point is reached. This is normally controlled by a conditional statement and stops when the condition is no longer met kind of like “do this until it has been done for every item in this container” or in programing terms for( item in container){ do this thing;}.
Now let's put a in real life example on this idea say you are making a cup of coffee. You would generally follow a process (an not the average wellingtonian process of walking to the local brewista) you would first get a cup, then put in a variable amount of coffee depending on taste maybe some sugar too, boil the kettle until it clicks, add hot water, stir until the dry ingredients dissolve, if you are so inclined ad milk. Pretty basic but this is the control flow in action. It also has a few loops in it as well, such as the kettle keeps boiling until it is hot enough, you keep stirring until the dry ingredients are dissolved etc.
The DOM what is it? And how you might interact with it?
The Document Object Model or “The DOM”, is the glue that ties HTML, CSS and JavaScript together. What it does in relation to HTML elements is that it creates objects for each of the elements, making them into a thing that can be interacted with by object oriented programing languages such as JavaScript.
To someone not technically inclined this might not sound like much so let's put it in a different context. Say you are trying to assemble a flat pack bookcase (in website terms say the page shows the blueprint then it morphs into the completed product). You are the one actively putting it together handling the transition (the animated morphing) from what you have and transforming it into what it's going to be, this makes you JavaScript. Now as we touched on earlier HTML is your blueprint with its list of parts and CSS is the look of the item your colour/style selection in this example. Once it comes time to assemble this bookcase it's not going to get very far if you physically only have a blueprint to work from and no parts to assemble. That is where the DOM comes in, if you think of the DOM as the manufacturer. This manufacture sits on the assembly line making the parts that will then be packaged and shipped with the flatpack. How it does this is to take each of the listed parts on the blueprint (the HTML elements) say a screw. It then assigned properties how it looks based on the CSS instructions, say the screw (defined by the HTML tag) is 20mm long and has a phillips head (CSS styles). It does this for each part listed in the blueprint then the finished object is then packed and shipped off. The DOM’s job is done. The animation of turning the screw and putting it in place can then be handled by JavaScript, something that it couldn’t do until it had an object(s) to manipulate.
What is the difference between accessing data from arrays and objects?
Objects and arrays on their surface can seem similar as they both hold a bunch of data however they are actually very different in their use. An array is more of a traditional list or list of lists, holding data that can be accessed via the position it takes in the list good if you know where it is but not very dynamic if you have something more specific in mind. An object holds data but each piece of data or value is assigned to a property or key, this giving you a key value pair. A key value pair can be accessed by looking for the value or a key or any combination provided it can be logically stated.
Sounds confusing I know so let's put it in some context. Say you have a list of people and addresses. In an array each person and address is its on sublist from the original an array within an array and you need to know where each entry sits to use it in a program. Say you have a person ‘bob’ who lives at ‘123 Nowhere Street’, you know bob is the third person in the list so you tell the computer to pull the third position and just his address which is position two then vala you have his address to work with. This is fine if you have a small list and can bring it up to check the position if you forget but what if your list has 1000 people in it? This would be hard to remember so it would be easier to search by the property itself and that's where objects come in. With an object you could search for the ‘Bob’ and get his address no matter how many entries you have or where it sits within the list.
Stopping here would be selling objects short they are so much more than a database table, as this course progresses I’m sure we will have to explain classes at way to set rules around types of objects and also methods on how the get used tying in a function into the object itself, sure it still will have properties listed in key value pairs but they take on a new meaning. For example say your object is a tennis ball, your class says the object has a shape of spherical, has a colour dictated by the object itself in this case green/yellow whatever, but this type of object has a method of being thrown. Enter the classes in build function that dictates how this happens. This is the basis of an object orientated programing language that allows them to do almost anything in a program.
What is a function, and why are they useful?
A function is a piece of reusable code that does something in a program. If we go back to our coffee example a function could be called makeingCoffee that provides us with a cup of coffee as the end product. Within this function there are multiple blocks of code that all do the different bits to at the end come together to make the whole. Now let's say you wanted to make another coffee later you could redefine the process and write out the code all over again but who wants to reinvent the wheel over and over again. This is where the reusable part comes in, having this code in a function means that it never has to be written again in the program, it is all held in once place. Having it in one place as a function means the function can be called on again and again but only uses the same bit of code every time it is called on. It also allows it to be updated without having to find each and every copy of that code wasting everyone's time. There is actually a term called WET coding that refers to this last point it stands for “Write Everything Twice” or “Waste Everyone’s Time” as opposed to DRY coding that means “Don’t Repeat Yourself” which is preferable.


This Personal Brand Assessment has been finalized, and results have been consolidated randomly.
You can see the results in 5 seconds.