obs-StreamFX/source/obs/gs/gs-indexbuffer.hpp

29 lines
690 B
C++
Raw Normal View History

// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2019-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#pragma once
#include "common.hpp"
#include "warning-disable.hpp"
#include <vector>
#include "warning-enable.hpp"
2021-06-08 02:38:24 +00:00
namespace streamfx::obs::gs {
class index_buffer : public std::vector<uint32_t> {
public:
index_buffer(uint32_t maximumVertices);
index_buffer();
index_buffer(index_buffer& other);
index_buffer(std::vector<uint32_t>& other);
virtual ~index_buffer();
gs_indexbuffer_t* get();
gs_indexbuffer_t* get(bool refreshGPU);
protected:
2019-08-04 14:20:26 +00:00
gs_indexbuffer_t* _index_buffer;
};
2021-06-08 02:38:24 +00:00
} // namespace streamfx::obs::gs