summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_2d_solid.cpp
AgeCommit message (Collapse)Author
2023-09-30refa Remove redundant render passFrederico Linhares
* src/vk/render_pass.hpp: Both 2D pipelines used identical render passes. I merged both in a single render pass. * src/vk/renderer.cpp (Renderer::draw): Use only one render pass for both 2D graphics pipelines.
2023-09-28styl Rename ODO structures to UDOFrederico Linhares
* src/vk/uniform_data_object.hpp: I do not remember why I named these structs ODO. UDO makes more sense as they represents "uniform data objects."
2023-07-18fixt Invert drawing order for spritesFrederico Linhares
* src/vk/graphics_pipeline_2d_solid.cpp: Drawing sprites with a higher z-index on top is more intuitive than the opposite.
2023-06-17feat Add z index when rendering spritesFrederico Linhares
* src/sprite.cpp: Add a new parameter to sprites to define the z index of the image being rendered. * src/vk/graphics_pipeline_2d_solid.cpp: Sort may not be the most efficient algorithm, but it is easier to implement. If this code becomes slow, it can be optimized with little or no changes to the Ruby interface.
2023-01-06refa Use Push constants for sprites and rectanglesFrederico Linhares
2022-12-23refa Merge Rectangle into Vector4DFrederico Linhares
2022-11-09feat create method Rectangle#drawFrederico Linhares