module: write module events using a struct pattern
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
582a3c07f6
commit
17db5498ee
13 changed files with 245 additions and 203 deletions
|
|
@ -78,13 +78,16 @@ pub const components = .{
|
|||
},
|
||||
};
|
||||
|
||||
pub const events = .{
|
||||
.{ .global = .deinit, .handler = deinit },
|
||||
.{ .global = .init, .handler = init },
|
||||
.{ .local = .init_pipeline, .handler = initPipeline },
|
||||
.{ .local = .updated, .handler = updated },
|
||||
.{ .local = .pre_render, .handler = preRender },
|
||||
.{ .local = .render, .handler = render },
|
||||
pub const global_events = .{
|
||||
.deinit = .{ .handler = deinit },
|
||||
.init = .{ .handler = init },
|
||||
};
|
||||
|
||||
pub const local_events = .{
|
||||
.init_pipeline = .{ .handler = initPipeline },
|
||||
.updated = .{ .handler = updated },
|
||||
.pre_render = .{ .handler = preRender },
|
||||
.render = .{ .handler = render },
|
||||
};
|
||||
|
||||
const Uniforms = extern struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue