AnoPlib - Animlets are not Particles library
|
00001 /* ************************************************************************* 00002 @file AnoPhelpers.h 00003 @project AnoPlib 00004 @module AnoPhelpers 00005 @brief Some helper methods and data 00006 @date 29.11.2010 00007 @copyright Daniel Krajzewicz 00008 @licence GPL 00009 @author Daniel Krajzewicz 00010 @email d.krajzewicz@googlemail.com 00011 ------------------------------------------------------------------ 00012 AnoPlib - small "animlet" library, see http://sf.net/projects/anoplib 00013 Copyright (C) 2009-2010 Daniel Krajzewicz 00014 00015 This program is free software: you can redistribute it and/or modify 00016 it under the terms of the GNU General Public License as published by 00017 the Free Software Foundation, either version 3 of the License, or 00018 (at your option) any later version. 00019 00020 This program is distributed in the hope that it will be useful, 00021 but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 GNU General Public License for more details. 00024 00025 You should have received a copy of the GNU General Public License 00026 along with this program. If not, see <http://www.gnu.org/licenses/>. 00027 ------------------------------------------------------------------ 00028 Remarks: 00029 ------------------------------------------------------------------ 00030 ToDo: 00031 * *********************************************************************** */ 00032 #ifndef ANOP_HELPERS 00033 #define ANOP_HELPERS 00034 00035 00036 /* ========================================================================= 00037 * included modules 00038 * ======================================================================= */ 00039 #include <GL/gl.h> 00040 #include <cmath> 00041 00042 00043 /* ========================================================================= 00044 * class and struct definitions 00045 * ======================================================================= */ 00049 class AnoPhelpers { 00050 public: 00051 // sinus/cosinus tables 00052 static double *sintab; 00053 static double *costab; 00054 00055 static void init(); 00056 00057 static void close(); 00058 00059 00060 static void 00061 drawOutlineCircle(double width, double iwidth, int steps, double beg, double end) throw(); 00062 00063 static void 00064 drawOutlineCircle2(double width, double iwidth, int steps, double beg, double end, 00065 float *rgba1, float *rgba2) throw(); 00066 }; 00067 00068 #endif