Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Cuboid.h
00001 /* 00002 * libmbed-graphics 2D and wireframe 3D graphics library for the MBED 00003 * microcontroller platform 00004 * Copyright (C) <2009> Michael Sheldon <mike@mikeasoft.com> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the 00018 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 * Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef MBED_CUBOID_H 00023 #define MBED_CUBOID_H 00024 00025 #include "Object3D.h" 00026 00027 /* Class: Cuboid 00028 * Displays a 3D wireframe cuboid. 00029 */ 00030 class Cuboid : public Object3D { 00031 00032 public: 00033 Cuboid(); 00034 00035 /* Function: render 00036 * Draws the cuboid to the specified graphical context. 00037 * 00038 * Parameters: 00039 * g - The graphical context to which this cuboid should be rendered. 00040 */ 00041 virtual void render(Graphics &g); 00042 00043 }; 00044 #endif
Generated on Fri Jul 15 2022 20:49:26 by
1.7.2