Annotation of /trunk/RexDotMeshLoader/OHWBuffer.cs
Parent Directory
|
Revision Log
Revision 48 - (view) (download)
| 1 : | tuco | 48 | /* |
| 2 : | Modified .mesh loader based on the Axiom Graphics Engine Library | ||
| 3 : | which is based on the open source Object Oriented Graphics Engine OGRE. | ||
| 4 : | |||
| 5 : | RexDotMeshLoader by realXtend project. | ||
| 6 : | |||
| 7 : | Axiom Graphics Engine Library | ||
| 8 : | Copyright (C) 2003-2006 Axiom Project Team | ||
| 9 : | The overall design, and a majority of the core engine and rendering code | ||
| 10 : | contained within this library is a derivative of the open source Object Oriented | ||
| 11 : | Graphics Engine OGRE, which can be found at http://ogre.sourceforge.net. | ||
| 12 : | Many thanks to the OGRE team for maintaining such a high quality project. | ||
| 13 : | |||
| 14 : | This library is free software; you can redistribute it and/or | ||
| 15 : | modify it under the terms of the GNU Lesser General Public | ||
| 16 : | License as published by the Free Software Foundation; either | ||
| 17 : | version 2.1 of the License, or (at your option) any later version. | ||
| 18 : | |||
| 19 : | This library is distributed in the hope that it will be useful, | ||
| 20 : | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 21 : | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 22 : | Lesser General Public License for more details. | ||
| 23 : | */ | ||
| 24 : | |||
| 25 : | using System; | ||
| 26 : | using System.Collections; | ||
| 27 : | using System.Collections.Generic; | ||
| 28 : | |||
| 29 : | namespace RexDotMeshLoader | ||
| 30 : | { | ||
| 31 : | public class HWBufferManager | ||
| 32 : | { | ||
| 33 : | private static HWBufferManager inst; | ||
| 34 : | protected ArrayList vertexDeclarations = new ArrayList(); | ||
| 35 : | |||
| 36 : | protected internal HWBufferManager() | ||
| 37 : | { | ||
| 38 : | if (inst == null) | ||
| 39 : | inst = this; | ||
| 40 : | } | ||
| 41 : | |||
| 42 : | public static HWBufferManager Instance | ||
| 43 : | { | ||
| 44 : | get | ||
| 45 : | { | ||
| 46 : | if (inst == null) | ||
| 47 : | inst = new HWBufferManager(); | ||
| 48 : | return inst; | ||
| 49 : | } | ||
| 50 : | } | ||
| 51 : | |||
| 52 : | public virtual VertexDeclaration CreateVertexDeclaration() | ||
| 53 : | { | ||
| 54 : | VertexDeclaration d = new VertexDeclaration(); | ||
| 55 : | vertexDeclarations.Add(d); | ||
| 56 : | return d; | ||
| 57 : | } | ||
| 58 : | } | ||
| 59 : | |||
| 60 : | } |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

