Implemented face_info* make_face_info_table

This commit is contained in:
CobaltXII
2019-01-03 19:09:50 -05:00
parent b2b8bb9b6a
commit be1b68ee09

View File

@@ -67,6 +67,13 @@ face_info* make_face_info_bench(float top, float bottom, float side_1, float sid
return new face_info(top, bottom, side_2, side_2, side_1, side_1);
}
// Generates a face_info* that uses side_1 for the front face, side_2 for the
// left, right and back faces, and cap for the top and bottom faces.
face_info* make_face_info_table(float cap, float side_1, float side_2)
{
return new face_info(cap, cap, side_2, side_2, side_1, side_2);
}
// This function fills up block_face_info with a face_info* object for each
// block_id. Call this function after calling load_block_texture_array,
// because this function uses block_name_to_layer as a lookup table.