summaryrefslogtreecommitdiff
path: root/Source/modules/asura-core/Graphics/VBOs.h
blob: 0833534ccdeb7a87f990ab3580c01667fff95d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _ASURA_ENGINE_VBO_H_
#define _ASURA_ENGINE_VBO_H_

#include <asura-base/Classes.h>
#include <asura-base/Type.h>

namespace_begin(AsuraEngine)
namespace_begin(Graphics)

struct VertexBufferData
{

};

struct IndexBufferData
{

};

class VBO
{
public: 

private: 



};

class SharedVBO;

class DynamicVBO
{
public: 

	void GetChunk(uint32 maxVertices, uint32 maxIndices, void** outVB, void** outIB); 
	void ReleaseChunk(uint32 actualVertices, uint32 actualIndices);

private: 

	// vertex buffer
	SharedVBO* m_VB;
	SharedVBO* m_LargeVB;
	SharedVBO* m_ActiveVB;

	// index buffer
	SharedVBO* m_IB; 
	SharedVBO* m_LargeIB;
	SharedVBO* m_ActiveIB;

};

namespace_end
namespace_end

#endif