gfx: add some Text module TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b90b70084e
commit
74595362d3
2 changed files with 6 additions and 6 deletions
|
|
@ -23,12 +23,6 @@ allocator: std.mem.Allocator,
|
||||||
pub const name = .mach_gfx_text;
|
pub const name = .mach_gfx_text;
|
||||||
pub const Mod = mach.Mod(@This());
|
pub const Mod = mach.Mod(@This());
|
||||||
|
|
||||||
// TODO: better/proper text layout, shaping
|
|
||||||
//
|
|
||||||
// TODO: integrate freetype integration
|
|
||||||
//
|
|
||||||
// TODO: allow user to specify projection matrix (3d-space flat text etc.)
|
|
||||||
|
|
||||||
pub const components = .{
|
pub const components = .{
|
||||||
.pipeline = .{ .type = u8, .description =
|
.pipeline = .{ .type = u8, .description =
|
||||||
\\ The ID of the pipeline this text belongs to. By default, zero.
|
\\ The ID of the pipeline this text belongs to. By default, zero.
|
||||||
|
|
@ -185,6 +179,7 @@ fn init(text_mod: *Mod) void {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(text): no args
|
||||||
fn initPipeline(
|
fn initPipeline(
|
||||||
engine: *Engine.Mod,
|
engine: *Engine.Mod,
|
||||||
text_mod: *Mod,
|
text_mod: *Mod,
|
||||||
|
|
@ -345,6 +340,7 @@ fn initPipeline(
|
||||||
pipeline.value_ptr.reference();
|
pipeline.value_ptr.reference();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(text): no args
|
||||||
fn updated(
|
fn updated(
|
||||||
engine: *Engine.Mod,
|
engine: *Engine.Mod,
|
||||||
text_mod: *Mod,
|
text_mod: *Mod,
|
||||||
|
|
@ -506,6 +502,7 @@ fn updated(
|
||||||
engine.state().queue.submit(&[_]*gpu.CommandBuffer{command});
|
engine.state().queue.submit(&[_]*gpu.CommandBuffer{command});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(text): no args
|
||||||
fn preRender(
|
fn preRender(
|
||||||
engine: *Engine.Mod,
|
engine: *Engine.Mod,
|
||||||
text_mod: *Mod,
|
text_mod: *Mod,
|
||||||
|
|
@ -534,6 +531,7 @@ fn preRender(
|
||||||
engine.state().encoder.writeBuffer(pipeline.uniforms, 0, &[_]Uniforms{uniforms});
|
engine.state().encoder.writeBuffer(pipeline.uniforms, 0, &[_]Uniforms{uniforms});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(text): no args
|
||||||
fn render(
|
fn render(
|
||||||
engine: *Engine.Mod,
|
engine: *Engine.Mod,
|
||||||
text_mod: *Mod,
|
text_mod: *Mod,
|
||||||
|
|
|
||||||
|
|
@ -34,4 +34,6 @@ pub const components = .{
|
||||||
\\ Fill color
|
\\ Fill color
|
||||||
\\ TODO(text): this is not currently implemented
|
\\ TODO(text): this is not currently implemented
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// TODO(text): allow user to specify projection matrix (3d-space flat text etc.)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue