2D_Game_Engine
Loading...
Searching...
No Matches
vertexbufferlayout.cpp
Go to the documentation of this file.
1#include <pch.hpp>
3
4void VertexBufferLayout::Push(unsigned int type,unsigned int count,bool normalized){
5 m_Elements.push_back({type,count,normalized});
6 m_Stride+=count*VertexBufferElement::GetSizeOfType(type);
7}
void Push(unsigned int type, unsigned int count, bool normalized)
static unsigned int GetSizeOfType(unsigned int type)