OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreLodBuffer.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 _LodBuffer_H__
30 #define _LodBuffer_H__
31 
32 #include "OgreLodPrerequisites.h"
33 #include "OgreSharedPtr.h"
34 
35 namespace Ogre
36 {
39  size_t indexSize;
40  size_t indexCount;
41  size_t indexStart;
42  size_t indexBufferSize;
44  void fillBuffer(Ogre::IndexData* data);
45 };
48  size_t vertexCount;
51  void fillBuffer(Ogre::VertexData* data);
52 };
55 {
60  };
65  void fillBuffer(Ogre::MeshPtr mesh);
66 };
69 
72  };
75 };
76 }
77 #endif
Data representing all required information from a Mesh. Used by LodInputProviderBuffer.
Definition: OgreLodBuffer.h:54
float Real
Software floating point type.
std::vector< T, A > type
Ogre::SharedPtr< unsigned char > indexBuffer
size of the index buffer in bytes
Definition: OgreLodBuffer.h:43
vector< Submesh >::type submesh
Contains every generated indexBuffer from every submesh. submeshCount*lodLevelCount buffers...
Definition: OgreLodBuffer.h:74
size_t indexBufferSize
Offset from the start of the indexBuffer.
Definition: OgreLodBuffer.h:42
size_t indexCount
Index size: 2 or 4 byte/index is supported only.
Definition: OgreLodBuffer.h:40
size_t indexStart
index count from indexStart.
Definition: OgreLodBuffer.h:41
Thread-safe buffer for storing Hardware vertex buffer.
Definition: OgreLodBuffer.h:47
Summary class collecting together index data source information.
Data representing the output of the Mesh reduction. Used by LodOutputProviderBuffer.
Definition: OgreLodBuffer.h:68
Ogre::SharedPtr< Vector3 > vertexNormalBuffer
Definition: OgreLodBuffer.h:50
#define _OgreLodExport
Summary class collecting together vertex source information.
vector< LodIndexBuffer >::type genIndexBuffers
Definition: OgreLodBuffer.h:71
_StringBase String
Definition: OgreCommon.h:53
vector< Submesh >::type submesh
Definition: OgreLodBuffer.h:61
LodVertexBuffer sharedVertexBuffer
Definition: OgreLodBuffer.h:62
Ogre::SharedPtr< Vector3 > vertexBuffer
Definition: OgreLodBuffer.h:49
Thread-safe buffer for storing Hardware index buffer.
Definition: OgreLodBuffer.h:38