]> Dogcows Code - chaz/rasterize/blobdiff - model.h
add texture mapping with perspective correction
[chaz/rasterize] / model.h
diff --git a/model.h b/model.h
index 23cc3aab16f2bad688ab57654f6bc0ee37c0b649..b2b3eb48cde55113ebf948261933f3ccb5d8750b 100644 (file)
--- a/model.h
+++ b/model.h
@@ -73,6 +73,11 @@ scal_t model_shininess(const model_t* m);
  */
 void model_transformation(const model_t* m, mat_t* transform);
 
+/*
+ * Get the color of the texture at the given uv coordinates.
+ */
+color_t model_tcolor(const model_t* m, vec_t pt);
+
 
 /*
  * Post-multiply a transformation matrix to the internal matrix representing
@@ -85,6 +90,11 @@ void model_transform(model_t* m, const mat_t* transform);
  */
 void model_material(model_t* m, color_t specular, scal_t shininess);
 
+/*
+ * Set the texture of the model.
+ */
+void model_texture(model_t* m, const void* p);
+
 
 #endif // _MODEL_H_
 
This page took 0.016655 seconds and 4 git commands to generate.