Method: Gosu::DrawOpQueue#perform_draw_ops_and_code

Defined in:
lib/gosu_android/graphics/drawOpQueue.rb

#perform_draw_ops_and_codeObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/gosu_android/graphics/drawOpQueue.rb', line 21

def perform_draw_ops_and_code
  #Sort by z
  @ops.sort!
  manager = RenderStateManager.new(@gl)
  @ops.each do |op|
      manager.render_state = op.render_state
      op.perform(nil) if op.vertices_or_block_index >= 0
  end
  @op_pool.clearPool
end