tyrav2 init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
/*
|
||||
# ______ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
||||
# Licenced under Apache License 2.0
|
||||
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||
*/
|
||||
|
||||
#include "loaders/3d/builder/mesh_builder_material_data.hpp"
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
MeshBuilderMaterialData::MeshBuilderMaterialData() {
|
||||
vertexFaces = nullptr;
|
||||
textureCoordFaces = nullptr;
|
||||
normalFaces = nullptr;
|
||||
colorFaces = nullptr;
|
||||
name = "";
|
||||
count = 0;
|
||||
}
|
||||
|
||||
MeshBuilderMaterialData::~MeshBuilderMaterialData() {}
|
||||
|
||||
void MeshBuilderMaterialData::allocateFaces(const u32& t_count) {
|
||||
vertexFaces = new u32[t_count];
|
||||
textureCoordFaces = new u32[t_count];
|
||||
normalFaces = new u32[t_count];
|
||||
colorFaces = new u32[t_count];
|
||||
count = t_count;
|
||||
}
|
||||
|
||||
} // namespace Tyra
|
||||
Reference in New Issue
Block a user