class SFML::RenderStates

The state passed alongside a draw call: blend mode, texture, shader, transform, coordinate type. You rarely instantiate this directly —window.draw(...) accepts blend_mode:, texture:, etc. shortcuts that build a RenderStates internally. Construct one yourself when you need to keep the same combination across many draws:

states = SFML::RenderStates.new( blend_mode: SFML::BlendMode::ADD, texture: glow_texture, ) window.draw(va, render_states: states) window.draw(other, render_states: states)

All fields default to the CSFML sfRenderStates_default value.