lib/rays/painter.rb in rays-0.1.47 vs lib/rays/painter.rb in rays-0.1.48
- old
+ new
@@ -116,12 +116,23 @@
multiply: BLEND_MULTIPLY,
screen: BLEND_SCREEN,
replace: BLEND_REPLACE
}
+ const_symbol_accessor :texcoord_mode, **{
+ image: TEXCOORD_IMAGE,
+ normal: TEXCOORD_NORMAL
+ }
+
+ const_symbol_accessor :texcoord_wrap, **{
+ clamp: TEXCOORD_CLAMP,
+ repeat: TEXCOORD_REPEAT
+ }
+
universal_accessor :background, :fill, :stroke, :color,
:stroke_width, :stroke_outset, :stroke_cap, :stroke_join, :miter_limit,
- :nsegment, :blend_mode, :shader, :clip, :font
+ :nsegment, :blend_mode, :texture, :texcoord_mode, :texcoord_wrap,
+ :shader, :clip, :font
private
def each_type(types, reverse: false, &block)
types = [:state, :matrix] if types.empty? || types.include?(:all)