hyporo-cpp/source/hyporo/gpu/buffer.hpp
2022-10-03 18:51:34 +05:00

47 lines
569 B
C++

#pragma once
#include "context.hpp"
#include <string>
namespace hpr::gpu
{
class Buffer : public Context
{
public:
enum class BufferType
{
Undefined,
Vertex,
Index,
BufferTypeCount
};
protected:
BufferType p_type;
int p_size;
int p_stride;
public:
// Constructors
Buffer();
Buffer(DeviceAPI api);
virtual ~Buffer();
// Member functions
const int size() const;
const BufferType type() const;
};
} // end namespace hpr::gpu