X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=model.h;fp=model.h;h=b2b3eb48cde55113ebf948261933f3ccb5d8750b;hp=23cc3aab16f2bad688ab57654f6bc0ee37c0b649;hb=3955aa40277c4b86a43b21e78d55d2fea7b643ce;hpb=95850b98f73ad7033af60a30e324e9c3cda55389 diff --git a/model.h b/model.h index 23cc3aa..b2b3eb4 100644 --- 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_