#pragma once #include "Bindable.h" #include #include #include "Logger.h" class IndexBuffer : public Bindable { public: IndexBuffer(Graphics& gfx, const std::vector& indices, Logger& logger); void Bind(Graphics& gfx, Logger& logger) noexcept override; UINT GetCount() const noexcept; protected: UINT count; Microsoft::WRL::ComPtr pIndexBuffer; };