doc/ale-doc.xsl: Add templates for version (ver), literal (l), user input (ui), and...
[Ale.git] / d3 / view.h
blobdc3d6d46e6e2a0df909bc1f97982f3f5e617542b
1 // Copyright 2004 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * view.h: A render subclass implementing views
25 #ifndef __view_h__
26 #define __view_h__
28 #include "render.h"
30 class view : public render {
33 * Z-buffer rendering data
35 * XXX: there is no immediately obvious reason for depth to use RGB
36 * triples.
39 d2::image *result;
40 d2::image *depth;
42 public:
45 * Describe a sphere at position p with radius r. Non-negative 'frame'
46 * less than the total number of frames indicates that the position is
47 * specified in the local space of that frame number. Otherwise, the
48 * position is specified in world coordinates.
51 virtual void describe(int frame, point p, ale_real r) {
54 d2::image *output() {
58 #endif