struct
Diorite::FrameDrawBuffers
- Diorite::FrameDrawBuffers
- Struct
- Value
- Object
Overview
Complete suite of per-frame 3D (on-top + depth-tested) and 2D immediate-mode
debug vertex/color batches allocated from Lapis::Core::FrameArena.
Defined in:
diorite/core/frame_arena_batch.crConstant Summary
-
DEFAULT_2D_CAPACITY =
4096 -
DEFAULT_DEPTH_3D_CAPACITY =
4096 -
DEFAULT_ON_TOP_3D_CAPACITY =
8192
Constructors
-
.from_arena(arena : Lapis::Core::FrameArena = Lapis::Core::FrameArena.current, cap_3d_on_top : Int32 = DEFAULT_ON_TOP_3D_CAPACITY, cap_3d_depth : Int32 = DEFAULT_DEPTH_3D_CAPACITY, cap_2d : Int32 = DEFAULT_2D_CAPACITY) : FrameDrawBuffers
Carves a complete per-frame buffer set from
arena. - .new(batch_3d_on_top : FrameLineBatch3D, batch_3d_depth : FrameLineBatch3D, batch_2d : FrameLineBatch2D)
Instance Method Summary
- #batch_2d : FrameLineBatch2D
- #batch_3d_depth : FrameLineBatch3D
- #batch_3d_on_top : FrameLineBatch3D
- #clear : self
- #cols_2d : ArenaVertexBuffer(Godot::Color)
- #cols_depth : ArenaVertexBuffer(Godot::Color)
- #cols_top : ArenaVertexBuffer(Godot::Color)
-
#compile_2d(queue : DebugCommandQueue) : self
Compiles all enabled 2D commands and telemetry graphs from
queueinto@batch_2d. -
#compile_3d(queue : DebugCommandQueue) : self
Compiles all enabled 3D commands from
queueinto@batch_3d_on_topand@batch_3d_depth. -
#compile_command_2d(cmd : Command2D) : Void
Compiles a single
Command2Dinto the 2D arena batch. -
#compile_command_3d(cmd : Command3D) : Void
Compiles a single
Command3Dinto its target 3D arena batch. -
#compile_queue(queue : DebugCommandQueue) : self
Compiles all enabled 3D commands, 2D commands, and telemetry graphs from
queueinto these arena-backed buffers and updates the queue's vertex counters. - #total_lines_2d : Int32
- #total_lines_3d : Int32
- #total_vertex_count : Int32
- #total_vertices_2d : Int32
- #total_vertices_3d : Int32
- #verts_2d : ArenaVertexBuffer(Godot::Vector2)
- #verts_depth : ArenaVertexBuffer(Godot::Vector3)
- #verts_top : ArenaVertexBuffer(Godot::Vector3)
Constructor Detail
Carves a complete per-frame buffer set from arena.
Instance Method Detail
Compiles all enabled 2D commands and telemetry graphs from queue into @batch_2d.
Compiles all enabled 3D commands from queue into @batch_3d_on_top and @batch_3d_depth.
Compiles all enabled 3D commands, 2D commands, and telemetry graphs from queue
into these arena-backed buffers and updates the queue's vertex counters.