From be1b68ee09036884f28f87bf3d4876ffae34ec20 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Thu, 3 Jan 2019 19:09:50 -0500 Subject: [PATCH] Implemented face_info* make_face_info_table --- src/inc/face.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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.