A year ago want to write a like cocoa, can be convenient layer animation development of the engine, write write and reverse its quartzcore.framework, that is, coreanimation of the bottom, has not engaged in the windows of the engine for half a year. Generally speaking, the animation has 9 elements, the rectangular region (x, Y, W, h), the affine transformation matrix (translation, rotation, scale), and the transparency Alpha, which must have a linear change function. These make up the most basic animation in cocoa, also most commonly used, usually commit the animation to a beginning state, an end state, and time is OK. Sequences of animations can be combined in chronological order using completion. How to design and implement can make programming simple.
These days will be six months before the code collated, on GitHub put on two demo. The demo shows some animated animations using the engine, with two demos using different methods to blend translucent (Windows window layer, not animation engine layer). The animation engine layer is implemented differently because of the different methods used for Windows window layers. Of course, the Windows window, which is the container space of the animation engine layer, does not consider transparency and does much less.
The demo address is below:
Https://github.com/bbqz007/xw/tree/master/demo
The idea of a year ago is here: To conceive a OBJC UI engine based on animation layer UI programming under Windows imitation
Now in the use of this engine to emulate the QQ butler to accelerate the function of the suspension of small windows, but also drive the development of the engine, only before the problem to think and solve problems, development can have progress.
Of course, the humble one at the moment is what I did.
PS: In the animation basic features, I have leaked the coordinate system above, in the 3d animation This is particularly important and foundation. For example, OpenGL has a modelview matrix mode, switch to the object coordinate system, also my engine is responsible for the parent layer to the sub-layer of the coordinate system switch and the child layer back to the parent layer of the coordinate system switch, even if you do a matrix transformation (transform).
Self-made animation layer engine under Windows-put two demo