Topic/drawable (#1052)

This commit is contained in:
Tim Sylvester
2023-04-21 14:47:57 -07:00
committed by Bart Louwers
parent 92ce58db86
commit e7d32a613a
8 changed files with 79 additions and 45 deletions

View File

@@ -34,15 +34,16 @@ public:
std::size_t getStride() const;
const std::vector<std::uint8_t>& getRaw() const;
const std::vector<std::uint8_t>& getRaw(platform::GLenum) const;
private:
static int getSize(platform::GLenum glType);
static int getStride(platform::GLenum glType);
static const void* getPtr(const gfx::VertexAttribute::ElementType&, platform::GLenum glType);
static bool get(const gfx::VertexAttribute::ElementType&, platform::GLenum glType, uint8_t* buffer);
private:
platform::GLenum glType = 0;
mutable platform::GLenum rawType = 0;
bool normalized = false;
};