# Autor: Geraldo Clézio Oliveira Júnior #Email: geraldoclezio@yahoo.com.br #Data:11 de Agosto de 2005 # Descrição: cria um objeto através de uma caixa de dialogo e permite excluir um objeto selecionado require 'fox12' require 'fox12/responder' require 'fox12/colors' begin require 'fox12/glshapes' #require 'opengl' rescue LoadError require 'fox12/missingdep' MSG = <> ",$viewer.selection. object_id #@texto.text = "ID:" + String($viewer.selection) #$viewer.selection.width = 0.8 #$viewer.center = @array#$viewer.selection.position #$gp2.remove($viewer.selection) #$viewer.update #@viewer.repaint # end #@id = @gp2[@gp2.size-1].object_id #@gp2.remove(@id) # end # Make a scene! @scene = FXGLGroup.new $gp2 = FXGLGroup.new @scene.append($gp2) # Add scene to GL viewer $viewer.scene = @scene #dialogocubo @dialogocubo = DialogoCubo.new(self) end#final de initialize # Crie e inicialize def create super show(PLACEMENT_SCREEN) end end#final de clase if __FILE__==$0 application = FXApp.new("GLTest", "FoxTest") application.disableThreads GLTestInicio.new(application) application.create application.run end