class GameOfLife::Client
- GameOfLife::Client
- Reference
- Object
Defined in:
game_of_life/client.crConstant Summary
-
CELL_MODEL =
Float32[0.0_f32, 1.0_f32, 0.0_f32, 0.0_f32, 0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32, 1.0_f32, 0.0_f32, 1.0_f32, 1.0_f32, 1.0_f32, 0.0_f32, 1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32, 0.0_f32, 0.0_f32, 1.0_f32, 0.0_f32, 0.0_f32]
-
FRAGMENT_CELLS =
read_shader("resources/cell/fragment.glsl")
-
FRAGMENT_CURSOR =
read_shader("resources/cursor/fragment.glsl")
-
MAX_TICK_RATE =
500
-
MIN_TICK_RATE =
1
-
TEXTURE_CURSOR =
read_texture("resources/cursor/cursor.png")
-
VERTEX_CELLS =
read_shader("resources/cell/vertex.glsl")
-
VERTEX_CURSOR =
read_shader("resources/cursor/vertex.glsl")
Constructors
Macro Summary
Instance Method Summary
- #cursor_cell_position
- #finalize
- #generate_cells_mesh(cells)
- #generate_cursor_mesh(cell_x : Float32, cell_y : Float32)
- #start
- #update_buffer(mesh)
- #update_view_position(mouse_x : Float32, mouse_y : Float32)
- #use_programs(*shader_programs, &)
- #zoom_level_normalized