aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/IVertexBuffer.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/include/IVertexBuffer.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/include/IVertexBuffer.h')
-rw-r--r--libraries/irrlicht-1.8/include/IVertexBuffer.h104
1 files changed, 52 insertions, 52 deletions
diff --git a/libraries/irrlicht-1.8/include/IVertexBuffer.h b/libraries/irrlicht-1.8/include/IVertexBuffer.h
index 87603de..04606b2 100644
--- a/libraries/irrlicht-1.8/include/IVertexBuffer.h
+++ b/libraries/irrlicht-1.8/include/IVertexBuffer.h
@@ -1,52 +1,52 @@
1// Copyright (C) 2008-2012 Nikolaus Gebhardt 1// Copyright (C) 2008-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __I_VERTEX_BUFFER_H_INCLUDED__ 5#ifndef __I_VERTEX_BUFFER_H_INCLUDED__
6#define __I_VERTEX_BUFFER_H_INCLUDED__ 6#define __I_VERTEX_BUFFER_H_INCLUDED__
7 7
8#include "IReferenceCounted.h" 8#include "IReferenceCounted.h"
9#include "irrArray.h" 9#include "irrArray.h"
10#include "S3DVertex.h" 10#include "S3DVertex.h"
11 11
12namespace irr 12namespace irr
13{ 13{
14namespace scene 14namespace scene
15{ 15{
16 16
17 class IVertexBuffer : public virtual IReferenceCounted 17 class IVertexBuffer : public virtual IReferenceCounted
18 { 18 {
19 public: 19 public:
20 virtual void* getData() =0; 20 virtual void* getData() =0;
21 virtual video::E_VERTEX_TYPE getType() const =0; 21 virtual video::E_VERTEX_TYPE getType() const =0;
22 virtual void setType(video::E_VERTEX_TYPE vertexType) =0; 22 virtual void setType(video::E_VERTEX_TYPE vertexType) =0;
23 virtual u32 stride() const =0; 23 virtual u32 stride() const =0;
24 virtual u32 size() const =0; 24 virtual u32 size() const =0;
25 virtual void push_back(const video::S3DVertex &element) =0; 25 virtual void push_back(const video::S3DVertex &element) =0;
26 virtual video::S3DVertex& operator [](const u32 index) const =0; 26 virtual video::S3DVertex& operator [](const u32 index) const =0;
27 virtual video::S3DVertex& getLast() =0; 27 virtual video::S3DVertex& getLast() =0;
28 virtual void set_used(u32 usedNow) =0; 28 virtual void set_used(u32 usedNow) =0;
29 virtual void reallocate(u32 new_size) =0; 29 virtual void reallocate(u32 new_size) =0;
30 virtual u32 allocated_size() const =0; 30 virtual u32 allocated_size() const =0;
31 virtual video::S3DVertex* pointer() =0; 31 virtual video::S3DVertex* pointer() =0;
32 32
33 //! get the current hardware mapping hint 33 //! get the current hardware mapping hint
34 virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0; 34 virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0;
35 35
36 //! set the hardware mapping hint, for driver 36 //! set the hardware mapping hint, for driver
37 virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) =0; 37 virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) =0;
38 38
39 //! flags the meshbuffer as changed, reloads hardware buffers 39 //! flags the meshbuffer as changed, reloads hardware buffers
40 virtual void setDirty() =0; 40 virtual void setDirty() =0;
41 41
42 //! Get the currently used ID for identification of changes. 42 //! Get the currently used ID for identification of changes.
43 /** This shouldn't be used for anything outside the VideoDriver. */ 43 /** This shouldn't be used for anything outside the VideoDriver. */
44 virtual u32 getChangedID() const = 0; 44 virtual u32 getChangedID() const = 0;
45 }; 45 };
46 46
47 47
48} // end namespace scene 48} // end namespace scene
49} // end namespace irr 49} // end namespace irr
50 50
51#endif 51#endif
52 52