OGRE  1.9.0
OgreRenderOperation.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 _RenderOperation_H__
29#define _RenderOperation_H__
30
31#include "OgrePrerequisites.h"
32#include "OgreVertexIndexData.h"
33#include "OgreHeaderPrefix.h"
34
35namespace Ogre {
36
37
46 public:
95
98
101
107
112
116
120
125
126
127 };
128
130}
131
132#include "OgreHeaderSuffix.h"
133
134#endif
#define _OgrePrivate
Summary class collecting together index data source information.
VertexData * vertexData
Vertex source data.
bool useGlobalInstancingVertexBufferIsAvailable
A flag to indicate that it is possible for this operation to use a global vertex instance buffer if a...
const Renderable * srcRenderable
Debug pointer back to renderable which created this.
OperationType
The rendering operation type to perform.
@ OT_LINE_STRIP
A strip of connected lines, 1 vertex per line plus 1 start vertex.
@ OT_TRIANGLE_STRIP
A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
@ OT_LINE_LIST
A list of lines, 2 vertices per line.
@ OT_TRIANGLE_FAN
A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
@ OT_TRIANGLE_LIST
A list of triangles, 3 vertices per triangle.
@ OT_PATCH_1_CONTROL_POINT
Patch control point operations, used with tesselation stages.
@ OT_POINT_LIST
A list of points, 1 vertex per point.
OperationType operationType
The type of operation to perform.
size_t numberOfInstances
The number of instances for the render operation - this option is supported in only a part of the ren...
IndexData * indexData
Index data - only valid if useIndexes is true.
bool useIndexes
Specifies whether to use indexes to determine the vertices to use as input.
Abstract class defining the interface all renderable objects must implement.
Summary class collecting together vertex source information.