One of the popular tianlong source code framework analysis on the Internet-Brief introduction to the client

Source: Internet
Author: User

The source code of the martial arts world, the predecessor of tianlong, was circulated on the Internet. The younger brother also made a copy from his friends and studied it.

 

90% of the source code has been read, and the role of each class is basically understood.

 

Some netizens often ask me questions about the tianlong source code framework. There are too many people to ask, so I just want to summarize it.

 

Tianlong ClientCode. There are two main parts: an editor and a client.

 

The editor and client share a rendering module, that is, wxcore;

 

 

 

Let me talk about the client first, as shown in figure

 

First, we will briefly introduce the basic functions of the module.

 

Ceguibase is the core module of cegui

Ceguifalagard is the appearance window class of cegui,

Ceguifalagardex is a self-expanded exterior window class, such as a small map.

Ceguiogrerenderer is the interface class for cegui rendering in ogre,

Ceguisystem is the re-encapsulation of cegui. Why re-encapsulation and expansion? The following will analyze

Expat is parsed in XML for tinyxml.

Opcode is the credential stuffing Library

Wxclient is the client EXE,

Wxcore is a rendering module that encapsulates ogre again,

Wxengine is an interface library, which has no function. It is designed to allow the two DLL libraries of the UI module and the render module to call the client EXE code and implement interfaces, if the UI and render are used as static Lib, The wxengine can be discarded completely.

Wxnetpackets, Network Package

Wxrender is a coupled layer that encapsulates wxcore again. In this way, you can use other engines without damaging the client framework,

 

The most important of the above modules is

Ceguifalagardex-extension, very practical

Ceguisystem-UI module, very important

Wxcore-underlying rendering Module

Wxrender -- Rendering Module

 

Wxclient-the overall framework of the client, including input, network, events, scripts, data, and objects.

 

Next, I will perform a detailed analysis on the wxclient framework.

 

 

 

 

Related Article

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.