Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Another refactoring to simplify client code of GLModel::Geometry
This commit is contained in:
parent
cca1454c38
commit
fa1ff1c357
8 changed files with 26 additions and 26 deletions
src/slic3r/GUI
|
@ -328,6 +328,11 @@ size_t GLModel::Geometry::index_stride_bytes(const Format& format)
|
|||
};
|
||||
}
|
||||
|
||||
GLModel::Geometry::EIndexType GLModel::Geometry::index_type(size_t vertices_count)
|
||||
{
|
||||
return (vertices_count < 65536) ? EIndexType::USHORT : EIndexType::UINT;
|
||||
}
|
||||
|
||||
bool GLModel::Geometry::has_position(const Format& format)
|
||||
{
|
||||
switch (format.vertex_layout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue