From ebc31dddd9a6770ab88ae3fe30f3573e66fa3f22 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 18 Sep 2024 20:39:17 +0900 Subject: [PATCH] gl: remove built-in 3D object draw methods gtkglext removed them. --- lib/rabbit/canvas.rb | 5 ----- lib/rabbit/renderer/kernel.rb | 37 ----------------------------------- 2 files changed, 42 deletions(-) diff --git a/lib/rabbit/canvas.rb b/lib/rabbit/canvas.rb index 00c138a2..c77ff140 100644 --- a/lib/rabbit/canvas.rb +++ b/lib/rabbit/canvas.rb @@ -93,11 +93,6 @@ class Canvas def_delegators(:@renderer, :draw_poppler_page) def_delegators(:@renderer, :draw_link) - def_delegators(:@renderer, :draw_cube, :draw_sphere, :draw_cone) - def_delegators(:@renderer, :draw_torus, :draw_tetrahedron) - def_delegators(:@renderer, :draw_octahedron, :draw_dodecahedron) - def_delegators(:@renderer, :draw_icosahedron, :draw_teapot) - def_delegators(:@renderer, :gl_compile, :gl_call_list) def_delegators(:@renderer, :new_list_id) diff --git a/lib/rabbit/renderer/kernel.rb b/lib/rabbit/renderer/kernel.rb index 3a3e1ce4..3cc7e119 100644 --- a/lib/rabbit/renderer/kernel.rb +++ b/lib/rabbit/renderer/kernel.rb @@ -191,43 +191,6 @@ def flag_size(pole_height, params) [params["pole_width"] + params["flag_width"], pole_height] 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) not_support_method("gl_compile") end