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 SharpKmyGfx
9{
10 public 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;
20
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 SharpKmyMath::Vector3 minedge,
28 SharpKmyMath::Vector3 maxedge);
29 void setDataWithoutCompress(array<System::Collections::Generic::List<VertexPositionNormalMapTexture2Color>^, 2> ^list,
31 SharpKmyMath::Vector3 maxedge);
32 void setData(array<SharpKmyMath::Vector3> ^list);
33 };
34}
Definition: VertexBuffer.h:11
float minCornerZ
Definition: VertexBuffer.h:18
void Release()
Definition: VertexBuffer.cpp:15
void * ptr
Definition: VertexBuffer.h:17
float minCornerY
Definition: VertexBuffer.h:18
void setData(array< VertexPositionTextureColor > ^list)
Definition: VertexBuffer.cpp:21
kmyGfx::Buffer * vbo
Definition: VertexBuffer.h:13
float maxCornerX
Definition: VertexBuffer.h:19
float maxCornerY
Definition: VertexBuffer.h:19
int buffersize
Definition: VertexBuffer.h:16
float maxCornerZ
Definition: VertexBuffer.h:19
kmyGfx::VertexDescriptorHandle vdh
Definition: VertexBuffer.h:14
VertexBuffer()
Definition: VertexBuffer.cpp:5
float minCornerX
Definition: VertexBuffer.h:18
void setDataWithoutCompress(array< System::Collections::Generic::List< VertexPositionNormalMapTexture2Color >^, 2 > ^list, SharpKmyMath::Vector3 minedge, SharpKmyMath::Vector3 maxedge)
Definition: VertexBuffer.cpp:329
int vtxcount
Definition: VertexBuffer.h:15
Definition: Billboard.cpp:4
Definition: Vector3.h:8