renderer: move State declaration to top of file

This commit is contained in:
Uzair Aftab
2026-07-09 21:41:42 +02:00
parent d34b54e9b4
commit 4f53b846bc

View File

@@ -1,5 +1,7 @@
//! This is the render state that is given to a renderer.
const State = @This();
const std = @import("std");
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
@@ -8,8 +10,6 @@ const terminalpkg = @import("../terminal/main.zig");
const inputpkg = @import("../input.zig");
const renderer = @import("../renderer.zig");
const State = @This();
/// The mutex that must be held while reading any of the data in the
/// members of this state. Note that the state itself is NOT protected
/// by the mutex and is NOT thread-safe, only the members values of the