module Nya::Render::Backends::GL
Included Modules
Direct including types
Defined in:
nya/render/backends/gl.crnya/render/backends/gl/camera_metadata.cr
nya/render/backends/gl/glsl_compiler.cr
nya/render/backends/gl/location_metadata.cr
nya/render/backends/gl/metadata.cr
nya/render/backends/gl/shader_type.cr
Instance Method Summary
- #compile_shaders(sh : ShaderProgram)
- #create_object(objtype : Symbol) : Render::Backend::Metadata
- #current_camera : Camera
- #delete_object(object : Render::Backend::Metadata)
- #delete_shaders(sh : ShaderProgram)
- #draw(mode = LibGL::QUADS, &)
- #draw_camera(c : Camera, &)
- #draw_game_object(obj : Nya::GameObject, &)
- #draw_mesh(mesh : Mesh)
- #draw_shape(shape : Models::Shape)
- #draw_texture(tex : Nya::Render::Backend::Metadata, x, y, w, h)
- #draw_texture(texture : Texture, x, y, w, h)
- #draw_texture(tex : Nya::Render::Backend::Metadata, pts : Array(CrystalEdge::Vector3))
- #draw_texture(texture : Texture, pts : Array(CrystalEdge::Vector3))
- #draw_texture(texture : Texture2D)
- #draw_texture(texture : Texture3D)
- #load_texture(m : Nya::Render::Backend::Metadata, w, h, texture : Bytes)
- #max_textures : Int32
- #project(c : Camera, v) : CrystalEdge::Vector3
- #project(v : CrystalEdge::Vector3) : CrystalEdge::Vector3
- #relink_program(shp : ShaderProgram)
- #shader_extensions : Array(String)
- #shader_formats : Array(String)
- #supports_shaders? : Bool
- #unproject(c : Camera, v) : CrystalEdge::Vector3
-
#unproject(v : CrystalEdge::Vector3) : CrystalEdge::Vector3
Unprojects screen point to world coordinates
- #unuse_shader_program
- #use_shader_program(shp : ShaderProgram | Nil)
- #with_shader_program(shp : ShaderProgram | Nil, &)
Instance methods inherited from module Nya::Render::Backends::GL::VBOGenerator
generate_buffer!(shape : Models::Shape, force = false) : Models::Shape
generate_buffer!,
generate_buffers!(mesh : Mesh, force = false)
generate_buffers!
Instance methods inherited from module Nya::Render::Backends::GL::ShaderVars
apply_shader_vars(prog : ShaderProgram)
apply_shader_vars
Instance Method Detail
Unprojects screen point to world coordinates