Files
GameOfLifeEditor/includes/snapping.hpp
lejulien 3c37d9aca4 wippatern_preview: Adding patern preview
This adds a preview of the patern placement, checking out of bound
2026-01-14 16:38:25 +01:00

19 lines
315 B
C++

/*
* File name: snapping.hpp
* Author: lejulien
* Date created: 01-01-1970 00:59:59
// Date modified: 12-01-2026 21:30:10
* ------
*/
#pragma once
#include <types.hpp>
#include <raylib.h>
#include <cmath>
Vector2 snapToGrid(Vector2 screen, int cell_size);
Vector2i screenToGrid(Vector2 screen, int cell_size);