The combination of mygui and ogre has several minor issues.

Source: Internet
Author: User

1. If you port the demo of mygui directly, it is easy to neglect a problem,

Resources in the demo framework are read through an XML file,

If you are used to the ogre framework, remember to mention the Resource Directory in its XML to the cfg

2. The input processing of mygui is strange,

Adding OIS is a strange addition,

Simply follow the win32inputmanager method of mygui,

If they coexist with ois, the poor winproc won't be able to beat the exclusive Ois,

Remember to set the OIS to a non-exclusive mode:

Ois: paramlist pl;
Size_t %whnd = 0;
STD: ostringstream into whndstr;
Win-> getcustomattribute ("window", & windowhnd );
When whndstr <then whnd;
Pl. insert (STD: make_pair (STD: string ("window"), Fig. STR ()));
Pl. insert (STD: make_pair (STD: string ("w32_mouse"), STD: string ("discl_foreground ")));
Pl. insert (STD: make_pair (STD: string ("w32_mouse"), STD: string ("discl_nonexclusive ")));
Minputmanager = ois: inputmanager: createinputsystem (PL );

There are still many problems,

The delegate transmission mechanism has not been clarified yet,

This post is to be continued...

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: 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.