Ogre 3D 1.7 Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Chapter 4. Getting User Input and Using the Frame Listener

Until now, we always created scenes which were static and didn't have anything moving in them. We will change this with this chapter.

In this chapter, we will:

  • Learn what a FrameListener is
  • Learn how to process user input
  • Combine both concepts to create our own camera control

So let's get on with it...

Preparing a scene

Before adding moving things to our scene, we need a scene to add them to. So let's create a scene.