diff --git a/src/inc/face.hpp b/src/inc/face.hpp index bc943d5..221107b 100644 --- a/src/inc/face.hpp +++ b/src/inc/face.hpp @@ -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.