Pure hand-drawn mygui class diagram and rendering Flowchart

Source: Internet
Author: User

Mygui (version 3.2 Preview) class diagrams and render flow charts, sketched by liigo. 2011-12-16.

Init:

Irendertarget, rendermanager, vertex, ivertexbuf, itexture, directxrendermananger:



Basemanager, layermanager, ilayer,
Ilaynode, ilayeritem:



Layermanager tree:



The liigo update, for example, mainly supplements the rendering content of layer and layernode:

Layermanager tree, layer. rendertotarget (),
Layernode. rendertotarget ():



Renderitem,
Isubwidget:



Directxrendermanage. dorender (...)
Isubwidget. createdrawitem (...):



Summary of mygui rendering process: basemanager. Run ()
-> While (peekmessage ()... basemanager. drawoneframe ()-> idirect3ddevice9. beginscene ()-> rendermanager. drawoneframe
-> Rendermanager. onframeevent (), begin () | setrenderstates, onrendertotarget () end ()-> layermanager. rendertotarget ()-> ilayer. rendertotarget ()
-> Ilayernode. rendertotarget ()-> renderitem. rendertotarget ()-> isubwidget.Dorender() To ivertexbuffer, directxrendermanager. dorender ()
-> Idirect3ddevice9. setstreamsource () to ivertexbuffer-> idirect3ddevice9.Drawprimitive(D3dpt_trianglelist,
...)... And last, idirect3ddevice9. endscene, idirect3ddevice9. Present ().

The core of the entire rendering process isIsubwidget. dorender ()
Generate vertex data (including coordinates, colors, and textures) to the ivertexbuffer.
Idirect3ddevice9. drawprimitive (). Text/liigo

The above content is for easy understanding. At present, the level of understanding is limited, so it is not expected to ask for help from external users.

Continued: Flowchart of creating widgets using hand-drawn mygui


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.