summaryrefslogtreecommitdiff
path: root/src/vk
AgeCommit message (Collapse)Author
2023-06-22feat Implement an algorithm to decode QOIFrederico Linhares
* src/vk/qoi.cpp: Implement an algorithm to decode QOI. This eliminates an unnecessary dependency as the engine does not need to encode QOI files, only decode them.
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-05-29refa Sprite receives floats instead of Vector4DFrederico Linhares
* lib/menu.rb: Uses the new interface for Sprite. * src/sprite.cpp (Sprite#new, Sprite#draw): By requiring a Vector4D as an argument, sometimes the code calling a Sprite method needs to instantiate a Vector4D and use the stance once. The functions now require four float variables to eliminate this unnecessary instantiation.
2023-04-24fixt Improve text renderingFrederico Linhares
2023-04-20feat Create text rendering systemFrederico Linhares
2023-01-12refa Use Push constants for 3D modelsFrederico Linhares
2023-01-06refa Use Push constants for sprites and rectanglesFrederico Linhares
2022-12-29refa Use QOI image format for texturesFrederico Linhares
2022-12-23feat Add size to projections in 2D viewsFrederico Linhares
2022-12-23refa Merge Rectangle into Vector4DFrederico Linhares
2022-11-09feat create method Rectangle#drawFrederico Linhares
2022-10-21feat Skip frame if image is not available.Frederico Linhares
2022-10-10feat Move configuration from YAML file to gameFrederico Linhares
2022-10-04buil Use SDL_MAIN_HANDLED to compile engine on WindowsFrederico Linhares
2022-09-29feat Allow multiple textures to be used with the same meshFrederico Linhares
2022-09-23refa Use Vulkan coordinates instead of OpenGLFrederico Linhares
2022-09-21feat Create View2DFrederico Linhares
2022-09-21refa All views in use shares the same descriptor poolFrederico Linhares
2022-09-16feat Create ViewFrederico Linhares
2022-09-08refa Move layouts away from graphics pipelinesFrederico Linhares
2022-09-05refa Move render passes away from graphics pipelinesFrederico Linhares
2022-08-31feat Add projection to 2D graphics pipelineFrederico Linhares
2022-08-30feat Create 2d graphics pipelineFrederico Linhares
2022-08-22feat Make camera and model instance more abstractFrederico Linhares
* src/camera.cpp src/camera.hpp: Remove the camera as Vector3D and Rotation3D are going to replace it. * src/model.cpp: Add draw command as instances do not exist anymore. * src/model/instance.cpp src/model/instance.hpp: Remove the instance as Vector3D and Rotation3D are going to replace it.
2022-08-17feat Simplify the 3d model structureFrederico Linhares
2022-08-16feat Create directional lightFrederico Linhares
2022-08-03fixt Increase view projection distanceFrederico Linhares
2022-08-03feat Create a log systemFrederico Linhares
2022-08-02refa Use Vulkan for graphicsFrederico Linhares
This is a partial refactory. Some functionalities implemented in SDL were removed and need reimplementation.