tilenull.c 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <sys/types.h>
  4. #include <unistd.h>
  5. #include "raster3d_intern.h"
  6. /*---------------------------------------------------------------------------*/
  7. /*!
  8. * \brief
  9. *
  10. * Assumes that <em>tile</em> is a tile with the same dimensions as the
  11. * tiles of <em>map</em>. Fills <em>tile</em> with NULL-values of
  12. * <em>type</em>.
  13. *
  14. * \param map
  15. * \param tile
  16. * \param type
  17. * \return void
  18. */
  19. void Rast3d_set_null_tile_type(RASTER3D_Map * map, void *tile, int type)
  20. {
  21. Rast3d_set_null_value(tile, map->tileSize, type);
  22. }
  23. /*---------------------------------------------------------------------------*/
  24. /*!
  25. * \brief
  26. *
  27. * Is equivalent to Rast3d_set_null_tile_type (map, tile, Rast3d_file_type_map (map)).
  28. *
  29. * \param map
  30. * \param tile
  31. * \return void
  32. */
  33. void Rast3d_set_null_tile(RASTER3D_Map * map, void *tile)
  34. {
  35. Rast3d_set_null_tile_type(map, tile, map->typeIntern);
  36. }