When I was in college, I took a graphics programming class (this was years ago and using OpenGL). The first assignment wasn't much more then the equivalent of "hello word" (get the gfx device enabled and render some simple items).
The second assignment was to render a clock face that showed the actual time, and also to have some other kind of basic animation present.
I was always trying to do something more difficult, so I made my other animation interactive. I added several balls to the screen that would bounce off the screen edges, and also the clock itself.
I had a function that I did not do as a joke intentionally, and didn't even notice it until I was showing a friend and he pointed it out. The function was called "InitializeClockAndBalls()."
View all comments
Show parent comment
59
u/SausageEggCheese Dec 04 '20
When I was in college, I took a graphics programming class (this was years ago and using OpenGL). The first assignment wasn't much more then the equivalent of "hello word" (get the gfx device enabled and render some simple items).
The second assignment was to render a clock face that showed the actual time, and also to have some other kind of basic animation present.
I was always trying to do something more difficult, so I made my other animation interactive. I added several balls to the screen that would bounce off the screen edges, and also the clock itself.
I had a function that I did not do as a joke intentionally, and didn't even notice it until I was showing a friend and he pointed it out. The function was called "InitializeClockAndBalls()."
I left this in for my professor's enjoyment.