Class: BeltsOpengl::RenderSystem
- Inherits:
-
BeltsEngine::System
- Object
- BeltsEngine::System
- BeltsOpengl::RenderSystem
- Defined in:
- lib/belts_opengl/systems/render_system.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
9 10 11 12 |
# File 'lib/belts_opengl/systems/render_system.rb', line 9 def start GL.Enable(GL::DEPTH_TEST) GL.Enable(GL::CULL_FACE) end |
#update ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/belts_opengl/systems/render_system.rb', line 14 def update GL.ClearColor(0.07, 0.13, 0.17, 1.0) GL.Clear(GL::COLOR_BUFFER_BIT | GL::DEPTH_BUFFER_BIT) GL.UseProgram(default_shader) render_entities end |