29 lines
568 B
C
29 lines
568 B
C
|
#pragma once
|
||
|
|
||
|
#include "Base.h"
|
||
|
#include "dxBase.h"
|
||
|
#include "Graphics/Buffers.h"
|
||
|
|
||
|
#include <d3d11.h>
|
||
|
#include <wrl.h>
|
||
|
|
||
|
namespace Light {
|
||
|
|
||
|
class dxVertexBuffer : public VertexBuffer
|
||
|
{
|
||
|
private:
|
||
|
Microsoft::WRL::ComPtr<ID3D11Buffer> m_Buffer;
|
||
|
|
||
|
Microsoft::WRL::ComPtr<ID3D11Device> m_Device;
|
||
|
Microsoft::WRL::ComPtr<ID3D11DeviceContext> m_DeviceContext;
|
||
|
|
||
|
unsigned int m_Stride;
|
||
|
public:
|
||
|
dxVertexBuffer(unsigned int count, unsigned int stride, float* vertices, void* sharedContext);
|
||
|
~dxVertexBuffer();
|
||
|
|
||
|
void Bind() override;
|
||
|
void UnBind() override;
|
||
|
};
|
||
|
|
||
|
}
|