From 4045ae89d7bb8d043c5d3d21984c5ee28bc9527c Mon Sep 17 00:00:00 2001 From: odweta Date: Sun, 4 Oct 2026 20:45:10 +0200 Subject: [PATCH] update README with syntax highlighting --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c761557..ec0a451 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 1. Put Pixel -``` +```c void put_pixel(unsigned int x, unsigned int y, uint32_t color); ``` @@ -14,7 +14,7 @@ void put_pixel(unsigned int x, unsigned int y, uint32_t color); 2. Clear Framebuffer -``` +```c void clear_framebuffer(uint32_t color); ``` @@ -24,7 +24,7 @@ void clear_framebuffer(uint32_t color); The main function of a program that uses this engine should look something like this: -``` +```c int main() { // initialize the engine if (engine_init( @@ -50,7 +50,7 @@ Updating the framebuffer means changing color values in the respective struct an An excerpt from the main game loop is below: -``` +```c ... // main game loop