Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

# IVertexBuffer.h

Go to the documentation of this file.

    00001 // Copyright (C) 2008-2009 Nikolaus Gebhardt
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __I_VERTEX_BUFFER_H_INCLUDED__
    00006 #define __I_VERTEX_BUFFER_H_INCLUDED__
    00007
    00008 #include "IReferenceCounted.h"
    00009 #include "irrArray.h"
    00010 #include "S3DVertex.h"
    00011
    00012 namespace irr
    00013 {
    00014 namespace scene
    00015 {
    00016
    00017         class IVertexBuffer : public virtual IReferenceCounted
    00018         {
    00019         public:
    00020                 virtual void* getData() =0;
    00021                 virtual video::E_VERTEX_TYPE getType() const =0;
    00022                 virtual void setType(video::E_VERTEX_TYPE vertexType) =0;
    00023                 virtual u32 stride() const =0;
    00024                 virtual u32 size() const =0;
    00025                 virtual void push_back(const video::S3DVertex &element) =0;
    00026                 virtual video::S3DVertex& operator [](const u32 index) const =0;
    00027                 virtual video::S3DVertex& getLast() =0;
    00028                 virtual void set_used(u32 usedNow) =0;
    00029                 virtual void reallocate(u32 new_size) =0;
    00030                 virtual u32 allocated_size() const =0;
    00031                 virtual video::S3DVertex* pointer() =0;
    00032
    00034                 virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0;
    00035
    00037                 virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) =0;
    00038
    00040                 virtual void setDirty() =0;
    00041
    00043
    00044                 virtual u32 getChangedID() const = 0;
    00045         };
    00046
    00047
    00048 } // end namespace scene
    00049 } // end namespace irr
    00050
    00051 #endif
    00052

| The Irrlicht Engine Documentation © 2003-2009 by Nikolaus Gebhardt. Generated on Sun Jan 10 09:24:04 2010 by Doxygen (1.5.6)