abstract class Nya::Render::Backend
- Nya::Render::Backend
- Reference
- Object
Overview
Interface for graphics backend
Direct Known Subclasses
Defined in:
nya/render/backend.crClass Method Summary
Instance Method Summary
- #apply_shader_vars(prog : ShaderProgram)
- #compile_shaders(program : ShaderProgram)
- #create_object(objtype : Symbol) : Metadata
- #current_camera : Camera
- #delete_object(m : Metadata)
- #delete_shaders(shp : ShaderProgram)
-
#draw_camera(camera : Camera, &)
Wraps the execution of a block with calls required to render a camera
-
#draw_game_object(object : Nya::GameObject, &)
Draws a game object
-
#draw_mesh(mesh : Mesh)
Draws a mesh
-
#draw_texture(texture : Texture, x, y, w, h)
Draws a texture at specified position
-
#draw_texture(texture : Metadata, x, y, w, h)
Draws a texture specified by low-level texture id at specified position
-
#draw_texture(texture : Texture, pts : Array(CrystalEdge::Vector3))
Draws a 3D texture
-
#draw_texture(texture : Metadata, pts : Array(CrystalEdge::Vector3))
ditto
-
#draw_texture(texture : Texture2D)
Draws a texture
-
#draw_texture(texture : Texture3D)
Draws a texture
- #has_title? : Bool
- #load_texture(m : Metadata, w, h, texture : Bytes)
- #max_textures : Int32
- #project(camera : Camera, point : CrystalEdge::Vector3) : CrystalEdge::Vector3
- #project(point : CrystalEdge::Vector3) : CrystalEdge::Vector3
- #quit
- #relink_program(prog : ShaderProgram)
- #render(&)
- #resizeable? : Bool
- #shader_extensions : Array(String)
- #shader_formats : Array(String)
- #size : CrystalEdge::Vector2
- #size=(size : CrystalEdge::Vector2)
- #supports_shaders? : Bool
- #title : String
- #title=(title : String)
- #unproject(camera : Camera, point : CrystalEdge::Vector3) : CrystalEdge::Vector3
- #unproject(point : CrystalEdge::Vector3) : CrystalEdge::Vector3
- #unuse_shader_program
- #update
- #use_shader_program(prog : ShaderProgram)
- #with_shader_program(shp : ShaderProgram | Nil, &)
Class Method Detail
Instance Method Detail
Wraps the execution of a block with calls required to render a camera
Draws a texture at specified position
Draws a texture specified by low-level texture id at specified position
Draws a 3D texture
ditto