lib/rabbit/renderer/kernel.rb in rabbit-2.1.3 vs lib/rabbit/renderer/kernel.rb in rabbit-2.1.4
- old
+ new
@@ -1,18 +1,10 @@
require "rabbit/renderer/color"
module Rabbit
module Renderer
module Kernel
- def rsvg_available?
- false
- end
-
- def poppler_available?
- false
- end
-
def make_color(color)
return color if color.is_a?(Color)
if color.nil?
@foreground
else
@@ -63,23 +55,23 @@
end
def draw_circle(filled, x, y, w, h, color=nil, params={})
draw_arc(filled, x, y, w, h, 0, 360, color, params)
end
-
+
def draw_circle_by_radius(filled, x, y, r, color=nil, params={})
draw_arc_by_radius(filled, x, y, r, 0, 360, color, params)
end
-
+
def draw_flag(x, y, pole_height, params)
if params["flag_type"] == "triangle"
draw_triangle_flag(x, y, pole_height, params)
else
draw_rectangle_flag(x, y, pole_height, params)
end
end
-
+
def draw_triangle_flag(x, y, pole_height, params)
params = setup_flag_params(pole_height, 1.5, params)
layout = params["layout"]
text_width = params["text_width"]
@@ -182,39 +174,39 @@
end
def draw_cube(filled, x, y, z, size, color=nil)
not_support_method("draw_cube")
end
-
+
def draw_sphere(filled, x, y, z, radius, slices, stacks, color=nil)
not_support_method("draw_sphere")
end
-
+
def draw_cone(filled, x, y, z, base, height, slices, stacks, color=nil)
not_support_method("draw_cone")
end
-
+
def draw_torus(filled, x, y, z, inner_radius, outer_radius,
n_sides, rings, color=nil)
not_support_method("draw_torus")
end
-
+
def draw_tetrahedron(filled, x, y, z, color=nil)
not_support_method("draw_tetrahedron")
end
-
+
def draw_octahedron(filled, x, y, z, color=nil)
not_support_method("draw_octahedron")
end
-
+
def draw_dodecahedron(filled, x, y, z, color=nil)
not_support_method("draw_dodecahedron")
end
-
+
def draw_icosahedron(filled, x, y, z, color=nil)
not_support_method("draw_icosahedron")
end
-
+
def draw_teapot(filled, x, y, z, scale, color=nil)
not_support_method("draw_teapot")
end
def gl_compile(id)