OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * $Id: RAS_IStorage.h 37943 2011-06-29 09:36:23Z kupoman $ |
| 3 * |
| 4 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 5 * |
| 6 * This program is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU General Public License |
| 8 * as published by the Free Software Foundation; either version 2 |
| 9 * of the License, or (at your option) any later version. |
| 10 * |
| 11 * This program is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 * GNU General Public License for more details. |
| 15 * |
| 16 * You should have received a copy of the GNU General Public License |
| 17 * along with this program; if not, write to the Free Software Foundation, |
| 18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19 * |
| 20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. |
| 21 * All rights reserved. |
| 22 * |
| 23 * The Original Code is: all of this file. |
| 24 * |
| 25 * Contributor(s): none yet. |
| 26 * |
| 27 * ***** END GPL LICENSE BLOCK ***** |
| 28 */ |
| 29 |
| 30 #ifndef __KX_STORAGE |
| 31 #define __KX_STORAGE |
| 32 |
| 33 #include "RAS_MaterialBucket.h" |
| 34 |
| 35 enum RAS_STORAGE_TYPE { |
| 36 RAS_AUTO_STORAGE, |
| 37 RAS_IMMEDIATE, |
| 38 RAS_VA, |
| 39 RAS_VBO |
| 40 }; |
| 41 |
| 42 class RAS_IStorage |
| 43 { |
| 44 |
| 45 public: |
| 46 virtual ~RAS_IStorage() {}; |
| 47 |
| 48 virtual bool Init()=0; |
| 49 virtual void Exit()=0; |
| 50 |
| 51 virtual void IndexPrimitives(RAS_MeshSlot& ms)=0; |
| 52 virtual void IndexPrimitivesMulti(class RAS_MeshSlot& ms)=0; |
| 53 |
| 54 virtual void SetDrawingMode(int drawingmode)=0; |
| 55 |
| 56 |
| 57 #ifdef WITH_CXX_GUARDEDALLOC |
| 58 public: |
| 59 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE
:RAS_IStorage"); } |
| 60 void operator delete( void *mem ) { MEM_freeN(mem); } |
| 61 #endif |
| 62 }; |
| 63 |
| 64 #endif //__KX_STORAGE |
OLD | NEW |