OGRE  1.9.0
OgreRenderTargetListener.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2014 Torus Knot Software Ltd
8
9Permission is hereby granted, free of charge, to any person obtaining a copy
10of this software and associated documentation files (the "Software"), to deal
11in the Software without restriction, including without limitation the rights
12to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom the Software is
14furnished to do so, subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in
17all copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25THE SOFTWARE.
26-----------------------------------------------------------------------------
27*/
28#ifndef __RenderTargetListener_H__
29#define __RenderTargetListener_H__
30
31
32#include "OgrePrerequisites.h"
33
34namespace Ogre {
35
45 {
48 };
49
53 {
56 };
57
78 {
79 /*
80 Note that this could have been an abstract class, but I made
81 the explicit choice not to do this, because I wanted to give
82 people the option of only implementing the methods they wanted,
83 rather than having to create 'do nothing' implementations for
84 those they weren't interested in. As such this class follows
85 the 'Adapter' classes in Java rather than pure interfaces.
86 */
87 public:
101 { (void)evt; }
102
112 { (void)evt; }
113
114 /* Called just before a Viewport on a RenderTarget is to be updated.
115 @remarks
116 This method is called before each viewport on the RenderTarget is
117 rendered to. You can use this to perform per-viewport settings changes,
118 such as showing / hiding particular overlays.
119 */
121 { (void)evt; }
122
123 /* Called just after a Viewport on a RenderTarget is to be updated.
124 @remarks
125 This method is called after each viewport on the RenderTarget is
126 rendered to.
127 */
129 { (void)evt; }
130
135 { (void)evt; }
140 { (void)evt; }
141 };
144}
145
146#endif
#define _OgreExport
Definition: OgrePlatform.h:260
A interface class defining a listener which can be used to receive notifications of RenderTarget even...
virtual void postViewportUpdate(const RenderTargetViewportEvent &evt)
virtual void postRenderTargetUpdate(const RenderTargetEvent &evt)
Called just after a RenderTarget has been rendered to.
virtual void viewportAdded(const RenderTargetViewportEvent &evt)
Called to notify listener that a Viewport has been added to the target in question.
virtual void preViewportUpdate(const RenderTargetViewportEvent &evt)
virtual void viewportRemoved(const RenderTargetViewportEvent &evt)
Called to notify listener that a Viewport has been removed from the target in question.
virtual void preRenderTargetUpdate(const RenderTargetEvent &evt)
Called just before a RenderTarget is about to be rendered into.
A 'canvas' which can receive the results of a rendering operation.
An abstraction of a viewport, i.e.
Definition: OgreViewport.h:58
Struct containing information about a RenderTarget event.
RenderTarget * source
The source of the event being raised.
Struct containing information about a RenderTarget Viewport-specific event.
Viewport * source
The source of the event being raised.