What ogre needs to do when creating a window manually

Source: Internet
Author: User
What you need to do when creating a window manually:
1. Read the configuration file and record the log
Full Screen = Yes
Video mode = 1024x1280
Colourdepth
Fsaa
Fsaaquality
Vsync
Usenvperfhud
All possible parameters:
Left
Top
Title
Parent?whandle
External?whandle
Vsync
Displayfrequency
Colourdepth
Depthbuffer
Fsaa
Fsaaquality
Border
Outerdimensions
Usenvperfhud
2. Define dwstyle
Full Screen/window according to Parameter Definition
3. Create and register wndclass
Set the default window Handler
Window icon
Mouse window
4. Call the createwindow Function
5. Add Message Processing (windowseventutilitiesd: _ addrenderwindow)
6. createdevice
7. Add mrendertargets and mprioritisedrendertargets
8. If this is the first window, obtain the d3d device and create the texturemanager.
9. Set the d3dcaps9 Structure
10. If it is a 16-bit deep setting mwbuffer = ture
11. Root: onetimepost1_winit () initialize plugin
 

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.