feat: added a RenderPassInfo struct that allows for easily managed multiple render passes in the Renderer2D

This commit is contained in:
lisk77 2025-03-19 14:00:45 +01:00
parent 490db93137
commit 661e3aa67a
3 changed files with 263 additions and 369 deletions

View file

@ -13,10 +13,10 @@ pub struct TextureRegion {
v0: f32,
u1: f32,
v1: f32,
dimensions: (u32, u32),
advance: f32,
offset_x: f32,
offset_y: f32,
dimensions: (u32, u32),
}
impl TextureRegion {
@ -26,10 +26,10 @@ impl TextureRegion {
v0,
u1,
v1,
dimensions,
advance,
offset_x,
offset_y,
dimensions
}
}