Logo
VertexBuffer.h
1#pragma once
2
3#include "gfx/Buffer.h"
4#include "gfx/Vertex.h"
5#include "Math/Vector3.h"
6#include "Vertex.h"
7
8namespace XXSharpKmyGfx
9{
10 private ref class VertexBuffer
11 {
12 public:
13 kmyGfx::Buffer* vbo;
14 kmyGfx::VertexDescriptorHandle vdh = -1;
15 int vtxcount;//vtxcount
16 int buffersize;//buffersize
17 void* ptr;
18 float minCornerX, minCornerY, minCornerZ;
19 float maxCornerX, maxCornerY, maxCornerZ;
20
21 VertexBuffer();
22 void Release();
23 void setData(array<VertexPositionTextureColor> ^list);
24 void setData(array<VertexPositionNormalTextureColor> ^list);
25 void setData(System::Collections::Generic::List<VertexPositionNormalMapTexture2Color> ^list);
26 void setData(array<System::Collections::Generic::List<VertexPositionNormalMapTexture2Color>^, 2> ^list,
27 XXSharpKmyMath::Vector3 minedge,
28 XXSharpKmyMath::Vector3 maxedge);
29 void setDataWithoutCompress(array<System::Collections::Generic::List<VertexPositionNormalMapTexture2Color>^, 2> ^list,
30 XXSharpKmyMath::Vector3 minedge,
31 XXSharpKmyMath::Vector3 maxedge);
32 void setData(array<XXSharpKmyMath::Vector3> ^list);
33 };
34}