OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreCompositorPassSceneDef.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4  (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2014 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 
29 #ifndef __CompositorPassSceneDef_H__
30 #define __CompositorPassSceneDef_H__
31 
32 #include "OgreHeaderPrefix.h"
33 
34 #include "../OgreCompositorPassDef.h"
35 
36 #include "OgreVisibilityFlags.h"
37 #include "OgreMaterialManager.h"
38 
39 namespace Ogre
40 {
49  {
53  SHADOW_NODE_CASTER_PASS //Set automatically only when this pass is used by a ShadowNode
54  };
55 
57  {
58  public:
62  ShadowNodeRecalculation mShadowNodeRecalculation; //Only valid if mShadowNode is not empty
69 
74 
79 
89 
95 
100 
102  CompositorPassDef( PASS_SCENE, rtIndex ),
103  mVisibilityMask( VisibilityFlags::RESERVED_VISIBILITY_FLAGS ),
104  mShadowNodeRecalculation( SHADOW_NODE_FIRST_ONLY ),
105  mFirstRQ( 0 ),
106  mLastRQ( -1 ),
107  mCameraCubemapReorient( false ),
108  mUpdateLodLists( true ),
109  mLodBias( 1.0f ),
110  mMaterialScheme(MaterialManager::DEFAULT_SCHEME_NAME)
111  {
112  //Change base defaults
113  mIncludeOverlays = true;
114  }
115 
116  void setVisibilityMask( uint32 visibilityMask )
117  {
118  mVisibilityMask = visibilityMask & VisibilityFlags::RESERVED_VISIBILITY_FLAGS;
119  }
120  };
121 
124 }
125 
126 #include "OgreHeaderSuffix.h"
127 
128 #endif
unsigned char uint8
Definition: OgrePlatform.h:422
float Real
Software floating point type.
unsigned int uint32
Definition: OgrePlatform.h:420
#define _OgreExport
Definition: OgrePlatform.h:255
IdString mLodCameraName
When empty, it implies mCameraName == mLodCameraName; except for shadow nodes.
Real mLodBias
Multiplier to the Lod value.
bool mCameraCubemapReorient
When true, the camera will be rotated 90°, -90° or 180° depending on the value of mRtIndex and then r...
ShadowNodeRecalculation mShadowNodeRecalculation
uint8 mFirstRQ
First Render Queue ID to render. Inclusive.
IdString mCameraName
When empty, uses the default camera.
uint32 mVisibilityMask
Viewport's visibility mask while rendering our pass.
_OgreExport const uint32 RESERVED_VISIBILITY_FLAGS
When this is bit is clear, the obj is not rendered at all.
Class for managing Material settings for Ogre.
String mMaterialScheme
The material scheme used for this pass.
Hashed string.
Definition: OgreIdString.h:94
Interface to abstract all types of pass definitions (.
uint8 mLastRQ
Last Render Queue ID to render. Not inclusive.
_StringBase String
Definition: OgreCommon.h:53
void setVisibilityMask(uint32 visibilityMask)
bool mUpdateLodLists
When true, which Lod index is current will be updated.