Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
00001 // Copyright 2006-2011 by Kat'Oun 00002 00003 #ifndef _INDEX_BUFFER_H_ 00004 #define _INDEX_BUFFER_H_ 00005 00006 #include <EngineConfig.h> 00007 #include <core/Types.h> 00008 #include <resource/Buffer.h> 00009 00010 namespace render 00011 { 00012 00013 enum IndexType 00014 { 00015 IT_16BIT, 00016 IT_32BIT 00017 }; 00018 00020 class ENGINE_PUBLIC_EXPORT IndexBuffer : public resource::Buffer 00021 { 00022 public: 00023 00024 IndexBuffer(IndexType idxType, u32 numIndexes, resource::BufferUsage usage, bool systemMemory, bool useShadowBuffer); 00025 00026 virtual ~IndexBuffer(); 00027 00029 IndexType getType(); 00031 u32 getNumIndexes(); 00033 u32 getIndexSize(); 00034 00035 protected: 00036 00037 IndexType mIndexType; 00038 u32 mNumIndexes; 00039 u32 mIndexSize; 00040 }; 00041 00042 }// end namespace render 00043 00044 #endif// _INDEXBUFFER_H_
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by
Doxygen
(1.7.4)
|