Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / widget Creation question

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. widget Creation question
#6126
Posted by: daesdemon 2005-05-13 20:39:10
Hello to the community.

I am completely newb in wxWidgets.

I would like to use it to make an application with 3D Engine Ogre.

So my first work would be to create a widget which could be able to display the ouput of the 3D Engine.

I can send to Ogre3D the external Window Handle that i want to create its renderWindow.

I would like to know everything which could be important to know to envisage this kind of widgets.
Do i have to take as example GlCanvas ( registerClass..., buffering ) or can i make something relativly simple.

I tried already to make a wxControl derived Class and to send GetHandle To Ogre; it compiles but i see nothing in the widget.

Thx for support.
Message2. Re: widget Creation question
#6127
Posted by: daesdemon 2005-05-14 00:30:02
Its ok, i finally succeeded in integrating an OgreRender Window in wxWidgets.

I only subclass a wxControl, send the GetHandle to Ogre, and  connect OnSize Handler to translate the RenderWindow Size to Ogre.

I also create a Timer To update the RenderWindow autmaticly.

see you soon ;)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥738.00 ·
 
 
¥1,480.00 ·
 
 
¥397.00 ·
 
 
¥950.00 ·
 
 
¥264.00 ·
 
 
¥1,005.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0