Commit Graph

3 Commits

Author SHA1 Message Date
Cem Karan
c63da92547 Changed the location of one vertex so the triangle is more triangular (maybe?)
I haven't checked the math on this, but in playing with blending modes I noticed
that one of the rotated vertices appeared to be closer to the center of rotation
than the others.  This adjustment makes it so they are all the same distance from
the center of rotation.  If the center of rotation is conincident with the
triangle's center, then this will mean the triangle is equilateral, but I
haven't verified this, it just looked right from the rotations.
2015-12-18 14:46:56 -05:00
Cem Karan
a676f4d5d0 Bug fixes to filters.c: All windows now show same contents regardless of position.
The auxiliary windows now reflect what is happening in the primary window.
Unfortunately, there is still a bug in the primary window code that affects
the orthographic projection.  Basically, the object that is drawn is resized
along with the contents of the window instead of remaining a constant size
while the window is resized around it.
2015-12-18 13:41:34 -05:00
Cem Karan
3229ae91b2 Created examples/filters.c to demonstrate how to draw in one window based on
the position of a different window.

This illustrates the idea of filters; windows that draw their contents based
on the content of a different window (similar to what you'd see if you viewed
something through a colored filter).  This works on OS X.  Untested on other
platforms.
2015-12-17 15:49:28 -05:00