Main Page | Data Structures | Directories | File List | Data Fields | Globals

bresenham.h

Go to the documentation of this file.
00001 
00013 /* This file is part of tclSadie.
00014 
00015    tclSadie is free software; you can redistribute it and/or modify it
00016    under the terms of the GNU General Public License as published by
00017    the Free Software Foundation; either version 2 of the License, or
00018    (at your option) any later version.
00019 
00020    tclSadie is distributed in the hope that it will be useful, but
00021    WITHOUT ANY WARRANTY; without even the implied warranty of
00022    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023    General Public License for more details.
00024 
00025    You should have received a copy of the GNU General Public License
00026    along with tclSadie; if not, write to the Free Software Foundation,
00027    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.  */
00028 
00029 #ifndef BRESENHAM_H
00030 
00031 #define BRESENHAM_H 1
00032 #include "project_utilities.h"
00033 
00034 BEGIN_C_DECLARATIONS
00035 
00037 typedef struct Bresenham_line * bresenham_linep_t;
00038 
00039 bresenham_linep_t bresenham_from_s_coord (int32_t first_col,
00040                                           int32_t first_row,
00041                                           int32_t last_col,
00042                                           int32_t last_row);
00043 
00044 int bresenham_next_s (bresenham_linep_t bline,
00045                       int32_t * col, int32_t * row);
00046 
00047 bresenham_linep_t bresenham_from_coord (uint32_t first_col,
00048                                         uint32_t first_row,
00049                                         uint32_t last_col,
00050                                         uint32_t last_row);
00051 
00052 int bresenham_next (bresenham_linep_t bline,
00053                     uint32_t * col, uint32_t * row);
00054 
00055 void demolish_bresenham (bresenham_linep_t * blinehandle);
00056 
00057 END_C_DECLARATIONS
00058 
00059 #endif /* !BRESENHAM_H */

Generated on Fri Jul 8 14:55:00 2005 for tclSadie by  doxygen 1.4.2