aboutsummaryrefslogtreecommitdiff
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add multi-line support using vector of line pointersdilluti0n2025-04-181-18/+62
| | | | | | | | | | | | * main.c: - Introduce VEC_LINE (vector of struct line *) using DEFINE_VECTOR macro - Create `struct lines` to hold current line buffer and all past lines - Implement `lines_init`, `lines_append_last`, `lines_get_last_line`, `lines_free` - Modify main loop: - On KEY_ENTER, current line is stored and a new line is allocated - On BACKSPACE, deletion is done in current line - All stored lines and the current line are drawn line-by-line with vertical spacing - Replace previous single-line logic (`lineh`) with full multi-line editor buffer
* tabifydilluti0n2025-04-181-11/+7
|
* refactor: Extract line handling logic into separate line moduledilluti0n2025-04-181-42/+5
| | | | | | | | - Moved line-related functions (init, append, clear, delete, free) out of main.c - Created new files: line.c and line.h to encapsulate `struct line` and its operations - Updated main.c to use the new line module - Simplified main.c by removing inline struct and function definitions - Adjusted makefile to compile line.o
* Implement line apidilluti0n2025-04-181-22/+55
| | | | Should be improved
* Implement vector moduledilluti0n2025-04-181-0/+3
|
* Implement simple real time interactive text renderingdilluti0n2025-04-181-0/+76
Dependancy: raylib-5.5_linux_amd64[1] [1] https://github.com/raysan5/raylib/releases/tag/5.5