diff options
| author | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-24 20:13:23 +0100 |
|---|---|---|
| committer | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-24 20:13:23 +0100 |
| commit | cd0a47245a54c249eca7ef1c0d86bc4aa3489e9b (patch) | |
| tree | c6c1b2e0471c5dfbfce2add70dbb894bf2b4649c /example | |
| parent | e416c072833477d1e50a036414100f7b75d5e1be (diff) | |
| parent | ff43c66c491b443b7522a3b3d716905ee9732b60 (diff) | |
Merge branch 'master' of https://github.com/dario-loi/fbgl
Diffstat (limited to 'example')
| -rw-r--r-- | example/.gitignore | 2 | ||||
| -rw-r--r-- | example/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | example/texture.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/example/.gitignore b/example/.gitignore index 4a6e1b0..567609b 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1 +1 @@ -build/core.* +build/ diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 3051dfc..411945a 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -21,4 +21,4 @@ endfunction() add_example(empty_example) -add_folders(Example)
\ No newline at end of file +add_folders(Example) diff --git a/example/texture.c b/example/texture.c index da614d4..d1c25bd 100644 --- a/example/texture.c +++ b/example/texture.c @@ -32,7 +32,8 @@ int main(int argc, char **argv) int dy = 3; // Vertical speed (adjust for desired marquee speed) // Main rendering loop - while (1) { + int framesize = 30 * 30; + while (framesize) { // Clear the framebuffer (set background) fbgl_set_bg(&framebuffer, 0x000000); @@ -56,6 +57,7 @@ int main(int argc, char **argv) } usleep(50000); // Delay to make the marquee effect visible (adjust as needed) + framesize--; } // Wait for the user to press the escape key before exiting |
