Skip to content

Commit

Permalink
gl: remove built-in 3D object draw methods
Browse files Browse the repository at this point in the history
gtkglext removed them.
  • Loading branch information
kou committed Sep 18, 2024
1 parent 95eff38 commit ebc31dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
5 changes: 0 additions & 5 deletions lib/rabbit/canvas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
37 changes: 0 additions & 37 deletions lib/rabbit/renderer/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebc31dd

Please sign in to comment.