Self-made animation layer engine under Windows-put two demo

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.