/* file name: mmoore2.h written by: maui moore date: 26 October 2007 description: file containing documentation and declaration of a function that draws a palm tree for a maui-like environment :) Copyright (C) 2007 by Marielle Moore under the GNU GPL */ // This function draws a palm tree with palm fronds of palmColor1, palmColor2 // and palmColor3. These should be expressed as triples of floating point // numbers specifying RGB colors, as should the params coconutColor and // trunkColor. // The trunk of the tree is conical, so treeHeight is actually meant to be // the height of the cone. treeBase is the width of the cone at the base. // The palm fronds are also conical. They are 2/3 the height of the tree in // length and their bases are half of the base of the trunk. // The tree appears in the left corner of the bounding box where the x and // z coords of the base of the tree are a function of the height of the tree // and where y = 0. // the model also contains two coconuts, one attached to the tree and one // on the ground to the right of the tree. The diameter of the coconuts is // a function of the radius of the base of the trunk of the tree. void mmoore2DrawPalmTree(twTriple palmColor1, twTriple palmColor2, twTriple coconutColor, twTriple trunkColor, int treeBase, int treeHeight); /* This file is part of moore2-PalmTree. moore2-PalmTree is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. moore2-PalmTree is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with moore2-PalmTree. If not, see . */