Starfield problem

I’am looking for a starfield code with OpenGL and C++ (e.g. like in the Windows screensaver). Should be very simple, just some moving pixels.

Does anybody have a code for something like that? Who wants to help a beginner?
Many thanks.

You might give this a try

Here’s another (this one’s in OpenGL for sure)

Thanks. But this is too complex, cant even compile it. I need a very simple code with moving white pixels.

A very simple starfield example can be found here