OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Using Ogre with FLTK FLUID
View page
Source of version: 5
(current)
{maketoc} I consider what you have a little experience in using FLTK library and its user interface desinger - Fluid. I'am using a FLTK library v2.0 and its GUI editor Fluid wich you can get through Subversion system [http://www.fltk.org/software.php|fltk download page]. But this is not a big deal which version of FLTK you are using, this techique works fine in both versions. !!Creating fltk main window in FLUID Lets start fluid and create a simple interface window, what using Ogre for rendering 3d stuff. First off all lets create a function with very informative name make_window() and pass it a single parametr ogre_interface::EmbeddedOgre * ogreApp. Choose __New\Code\function/method...__ from the menu and fill the dialog like this : {img src="img/wiki_up/Create window dialog.png" alt="Create window dialog.png"} After what create new window by selecting __New\Group\fltk::Window...__ so you can see a clean window without any widgets on it. Now we approaching to the __Main__ idea of this tutorial - lets create a so-called "invisible" box. This box is will be the main container for our embeded Ogre. Choose __New\Other\fltk::InvisbleBox...__ ( or __New\Other\Box...__ if you are using FLTK v1.x): {img src="img/wiki_up/Main_window.png" alt="Main_window.png"} I add some labels and button for the widgets ( Misticaly "invisible" box showed like a red overlay rectangle.) __Note__: you __must__ add label for invisible box widget, because this label will be used when we start creating Ogre RenderWindow. Now it is time to prepare our "invisible" box for Ogre integration. On the widget preferense dialog you must --- Alias: (alias(Using_Ogre_with_FLTK_FLUID))
Search by Tags
Search Wiki by Freetags
Latest Changes
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
Mogre Add-ons
MOGRE
Mogre MyGUI wrapper
MOGRE Editable Terrain Manager
...more
Search
Find
Advanced
Search Help
Online Users
60 online users