Skip to content

A simple test application to get used to a external library, in this case being SFML, for C++. Simply a stepping stone to using OpenGL properly.

Notifications You must be signed in to change notification settings

DomThe-Dev/SFML_CPP_ScreenSaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SFML Screensaver

This served as a simple test to see if I could singlehandedly learn to use a C++ library, using only the online official documentation, to create something of relative interest.
With that in mind, I created this funky program!

How does it work?

I simply applied a constant speed for all the points of the square to move, with only 2 directions: down and right. When the coordinates of one of the corners are the same as the borders of the program, it reverses the speed of that direction, making it move around!
Then I also applied a constant loop to change the square's RGB values individually in a way that makes it cycle through a wide range of colours in a smooth manner!

image

Fun Fact

After having created a functioning version of this, I managed to win an award for this program in my college. I was awarded Best Software.

About

A simple test application to get used to a external library, in this case being SFML, for C++. Simply a stepping stone to using OpenGL properly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published