mirror of
https://github.com/lisk77/comet.git
synced 2025-10-24 05:48:50 +00:00
feat: added a RenderPassInfo struct that allows for easily managed multiple render passes in the Renderer2D
This commit is contained in:
parent
490db93137
commit
661e3aa67a
3 changed files with 263 additions and 369 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue