2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
11
#ifndef __COLLADAFW_COLORTARGET_H__
12
#define __COLLADAFW_COLORTARGET_H__
14
#include "COLLADAFWPrerequisites.h"
15
#include "COLLADAFWPassOutput.h"
22
Specifies which <surface> will receive the color information from the output of this pass.
24
Multiple Render Targets (MRTs) allow fragment shaders to output more than one value per pass,
25
or to redirect the standard depth and stencil units to read from and write to arbitrary
26
offscreen buffers. These elements tell the FX Runtime which previously defined surfaces to use.
28
The <color_target> element has no attributes in GLES scope.
30
class PassTarget : public PassOutput
46
/** Indexes a subimage inside a target <surface>, including a single MIP-map level, a
47
unique cube face, or a layer of a 3-D texture. The default is 0. Optional. */
50
/** The default is 0. Optional. */
54
POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y, POSITIVE_Z, and NEGATIVE_Z.
55
The default is POSITIVE_X. Optional. */
58
/** The color target value. */
64
PassTarget( PassOutput::OutputType outputType )
65
: PassOutput ( outputType )
66
, mFace ( POSITIVE_X )
70
virtual ~PassTarget() {}
72
/** Indexes a subimage inside a target <surface>, including a single MIP-map level, a
73
unique cube face, or a layer of a 3-D texture. The default is 0. Optional. */
74
const unsigned int getSlice () const { return mSlice; }
76
/** Indexes a subimage inside a target <surface>, including a single MIP-map level, a
77
unique cube face, or a layer of a 3-D texture. The default is 0. Optional. */
78
void setSlice ( const unsigned int Slice ) { mSlice = Slice; }
80
/** The default is 0. Optional. */
81
const unsigned int getMip () const { return mMip; }
83
/** The default is 0. Optional. */
84
void setMip ( const unsigned int Mip ) { mMip = Mip; }
87
POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y, POSITIVE_Z, and NEGATIVE_Z.
88
The default is POSITIVE_X. Optional. */
89
const unsigned int getFace () const { return mFace; }
92
POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y, POSITIVE_Z, and NEGATIVE_Z.
93
The default is POSITIVE_X. Optional. */
94
void setFace ( const unsigned int Face ) { mFace = Face; }
96
/** The color target value. */
97
const String getTarget () const { return mTarget; }
99
/** The color target value. */
100
void setTarget ( const String Target ) { mTarget = Target; }
104
/** Disable default copy ctor. */
105
PassTarget( const PassTarget& pre );
107
/** Disable default assignment operator. */
108
const PassTarget& operator= ( const PassTarget& pre );
112
} // namespace COLLADAFW
114
#endif // __COLLADAFW_COLORTARGET_H__