From 4a2dd35a34d456b9164e90b4fb1a06b1d009869f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 4 Jun 2010 10:15:21 -0600 Subject: Rename `precompute' to `init'. --- libdimension/dimension/object.h | 6 +++--- libdimension/dimension/texture.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index 3b8768f..11847b0 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -48,7 +48,7 @@ typedef struct dmnsn_object dmnsn_object; /* Object callback types */ -typedef void dmnsn_object_precompute_fn(dmnsn_object *object); +typedef void dmnsn_object_init_fn(dmnsn_object *object); typedef bool dmnsn_object_intersection_fn(const dmnsn_object *object, dmnsn_line line, dmnsn_intersection *intersection); @@ -70,7 +70,7 @@ struct dmnsn_object { dmnsn_bounding_box bounding_box; /* Callback functions */ - dmnsn_object_precompute_fn *precompute_fn; + dmnsn_object_init_fn *init_fn; dmnsn_object_intersection_fn *intersection_fn; dmnsn_object_inside_fn *inside_fn; dmnsn_free_fn *free_fn; @@ -84,6 +84,6 @@ dmnsn_object *dmnsn_new_object(); /* Free an object */ void dmnsn_delete_object(dmnsn_object *object); -void dmnsn_object_precompute(dmnsn_object *object); +void dmnsn_object_init(dmnsn_object *object); #endif /* DIMENSION_OBJECT_H */ diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h index 9c5fae1..b2eef05 100644 --- a/libdimension/dimension/texture.h +++ b/libdimension/dimension/texture.h @@ -52,7 +52,7 @@ struct dmnsn_pigment { dmnsn_pigment *dmnsn_new_pigment(); void dmnsn_delete_pigment(dmnsn_pigment *pigment); -void dmnsn_pigment_precompute(dmnsn_pigment *pigment); +void dmnsn_pigment_init(dmnsn_pigment *pigment); /* * Finishes @@ -110,6 +110,6 @@ typedef struct { dmnsn_texture *dmnsn_new_texture(); void dmnsn_delete_texture(dmnsn_texture *texture); -void dmnsn_texture_precompute(dmnsn_texture *texture); +void dmnsn_texture_init(dmnsn_texture *texture); #endif /* DIMENSION_TEXTURE_H */ -- cgit v1.2.3