Class: LiteRGSS::Shader
Overview
Shader loaded applicable to a ShaderedSprite
Direct Known Subclasses
Constant Summary collapse
- Fragment =
Define a Fragment shader
sf::Shader::Type::Fragment
- Vertex =
Define a Vertex shader
sf::Shader::Type::Vertex
- Geometry =
Define a Geometry shader
sf::Shader::Type::Geometry
Constants inherited from BlendMode
BlendMode::Add, BlendMode::DstAlpha, BlendMode::DstColor, BlendMode::One, BlendMode::OneMinusDstAlpha, BlendMode::OneMinusDstColor, BlendMode::OneMinusSrcAlpha, BlendMode::OneMinusSrcColor, BlendMode::ReverseSubtract, BlendMode::SrcAlpha, BlendMode::SrcColor, BlendMode::Subtract, BlendMode::Zero
Instance Attribute Summary
Attributes inherited from BlendMode
#alpha_dest_factor, #alpha_equation, #alpha_src_factor, #blend_type, #color_dest_factor, #color_equation, #color_src_factor
Class Method Summary collapse
-
.new(vertex_code, geometry_code, fragment_code)
Load a full shader from memory.
Instance Method Summary collapse
-
#load(vertex_code, geometry_code, fragment_code)
Load a full shader from memory.
-
#set_bool_uniform(name, uniform)
Set a Boolean type uniform.
-
#set_float_array_uniform(name, uniform)
Set a Float Array type uniform.
-
#set_float_uniform(name, uniform)
Set a Float type uniform.
-
#set_int_uniform(name, uniform)
Set a Integer type uniform.
-
#set_matrix_uniform(name, uniform)
Set a Matrix type uniform (3x3 or 4x4).
-
#set_texture_uniform(name, uniform)
Set a Texture type uniform.
Class Method Details
.new(vertex_code, geometry_code, fragment_code)
Load a full shader from memory
896 897 898 |
# File 'LiteRGSS.rb.yard.rb', line 896 def self.new(fragment_code) end |
Instance Method Details
#load(vertex_code, geometry_code, fragment_code)
Load a full shader from memory
872 873 874 |
# File 'LiteRGSS.rb.yard.rb', line 872 def load(fragment_code) end |
#set_bool_uniform(name, uniform)
Set a Boolean type uniform
933 934 935 |
# File 'LiteRGSS.rb.yard.rb', line 933 def set_bool_uniform(name, uniform) end |
#set_float_array_uniform(name, uniform)
Set a Float Array type uniform
951 952 953 |
# File 'LiteRGSS.rb.yard.rb', line 951 def set_float_array_uniform(name, uniform) end |
#set_float_uniform(name, uniform)
Set a Float type uniform
921 922 923 |
# File 'LiteRGSS.rb.yard.rb', line 921 def set_float_uniform(name, uniform) end |
#set_int_uniform(name, uniform)
Set a Integer type uniform
927 928 929 |
# File 'LiteRGSS.rb.yard.rb', line 927 def set_int_uniform(name, uniform) end |
#set_matrix_uniform(name, uniform)
Set a Matrix type uniform (3x3 or 4x4)
945 946 947 |
# File 'LiteRGSS.rb.yard.rb', line 945 def set_matrix_uniform(name, uniform) end |
#set_texture_uniform(name, uniform)
Set a Texture type uniform
939 940 941 |
# File 'LiteRGSS.rb.yard.rb', line 939 def set_texture_uniform(name, uniform) end |