5752070 [rkeene@sledge /home/rkeene/devel/old/stereograph-0.13]$ cat -n renderer.h
 1 /* Stereograph
 2  * Header file;
 3  * Copyright (c) 2000 by Fabian Januszewski <fabian.linux@januszewski.de>
 4  *
 5  * This program is free software; you can redistribute it and/or modify
 6  * it under the terms of the GNU General Public License as published by
 7  * the Free Software Foundation; either version 2 of the License, or
 8  * (at your option) any later version.
 9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19 
20 
21 struct GFX_DATA {
22     /* measurements */
23     int Width;
24     int Height;
25 
26     /* RGB-Data, 24bit coding @ ONE 32 bit integer, standard eastern orientation (left to right, top to bottom) */
27     int *Data;
28 };
29 
30 struct PARAMS {
31     int Startx;
32     int Starty;
33     int AA;
34     int Zoom;
35     float Front;
36     float Distance;
37     float Eyeshift;
38 };
39 
40 /* engine internals exclusively */
41 struct RENDERER_DATA {
42     int startx;
43     int max_change_tex_width;
44     float *right_change_map;
45     float *left_change_map;
46     int naa;
47     int nzoom;
48     int nfactor;
49     int *scanline;
50     float realdist;
51     float internal_a;
52     float eyeshift;
53 };
54 
55 
56 /* sets pointers of the engine interface */
57 int Get_GFX_Pointers(struct PARAMS **pParam, struct GFX_DATA **pBase, struct GFX_DATA **pTexture, struct GFX_DATA
	**pStereo);
58 
59 /* processes line number base_line */
60 int ProcessLine(int base_line);
61 
62 /* clears the renderer */
63 void Clear_Renderer(void);
64 /* initializes renderer */
65 int Initialize_Renderer(void);
66 
67 
68 /* engine internal functions */
69 int RenderLine(int *base_data, int *texture_data, int *stereo_data);
70 int InitMap(float *change_map, int a, int b, float v);
71 int FillMapsLeftToRight(int *base_data);
72 float GetChange(int x, int *base_data);
73 int NormalScan(int *stereo_data, int *texture_data);
74 int AAScan(int *stereo_data, int *texture_data);
75 int ZoomScan(int *stereo_data, int *texture_data);
76 int ZoomAAScan(int *stereo_data, int *texture_data);
5752071 [rkeene@sledge /home/rkeene/devel/old/stereograph-0.13]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2000-03-31 21:49:39