* mcgarvey@eng.utah.edu
*/
-#ifndef _RASTER_H_
-#define _RASTER_H_
+#ifndef _RASTER_HH_
+#define _RASTER_HH_
-#include "color.h"
-#include "common.h"
-#include "light.h"
-#include "model.h"
-#include "tri.h"
+#include "color.hh"
+#include "common.hh"
/*
void raster_destroy(raster_t* p);
-/*
- * Print some optimization statistics.
- */
-void raster_printstats(raster_t* p);
-
-
/*
* Get the color value at a particular point.
*/
-color_t raster_color(const raster_t* p, vec_t pt);
+color_t* raster_color(const raster_t* p, int x, int y);
/*
* Get the width of the raster.
*/
void raster_viewport(raster_t* p, int x, int y, int width, int height);
-/*
- * Set the model matrix. This positions the model, providing the
- * transformation for converting to eye coordinates.
- */
-void raster_model(raster_t* p, const mat_t* transform);
-
-/*
- * Set the view matrix. This positions the camera, providing the
- * transformation for converting to world coordinates.
- */
-void raster_view(raster_t* p, const mat_t* transform);
-
-/*
- * Set the projection matrix. This provides the transformation for converting
- * to canonical coordinates.
- */
-void raster_projection(raster_t* p, const mat_t* transform);
-
-
-/*
- * Set the location of the viewer in world coordinates. This is used in
- * specular lighting calculations.
- */
-void raster_eye(raster_t* p, vec_t eye);
-
-/*
- * Set the ambient light for the scene.
- */
-void raster_ambient(raster_t* p, color_t ambient);
-
-/*
- * Add a light to the scene.
- */
-void raster_light(raster_t* p, light_t light);
-
-/*
- * Set the material properties for the scene.
- */
-void raster_material(raster_t* p, color_t specular, scal_t shininess);
-
/*
* Save the raster to a PPM file.
*/
void raster_clear(raster_t* p, color_t fill);
-/*
- * Draw a model to the raster.
- */
-void raster_draw_model(raster_t* p, const model_t* model);
-
-/*
- * Draw a triangle to the raster.
- */
-void raster_draw_tri(raster_t* p, const tri_t* triangle);
-
-#endif // _RASTER_H_
+#endif // _RASTER_HH_