For some reason I had a sudden urge to work out how to write graphics programs. The natural place to start is on Windows. I have Mingw installed so I can run X11 programs, in particular X11 programs written under WSL can be run in a window. The Xeyes sample is shown in the screen shot below.
I also have code::blocks installed so I had a quick look at whether it could do anything for me. C::B includes a number of openGL related templates. I tried the openGL template first, it compiled cleanly and gave me a lovely rotating triangle. I then tried to use GLUT which is mentioned in a number of Google articles on the subject. GLUT is obsolete and replaced by freeglut which needs some tweaking to get working under C::B (directions provided by GeekforGeeks). Again it provides a lovely demo, in this case some pretty wire frame demos.
In summary I have some great tools at my finger tips when I get an urge to actually write graphics programs.
No comments:
Post a Comment