Beispiel #1
0
			/**
			 * Returns the pointer to the data of the given
			 * location.
			 * @param x The x position.
			 * @param y The y position.
			 * @param z The z position.
			 * @param face The face to use.
			 * @param mipmap The mipmap level to use.
			 * @return The pointer to the data.
			 */
			inline const void* const get_data(const Uint32 x,
				const Uint32 y, const Uint32 z,
				const Uint16 face, const Uint16 mipmap) const
			{
				if (get_compressed())
				{
					return static_cast<const Uint8*>(
						get_buffer()->get_ptr()) +
						get_block_offset(x, y,z, face,
							mipmap);
				}

				return static_cast<const Uint8*>(get_buffer(
					)->get_ptr()) + get_pixel_offset(x, y,
						z, face, mipmap);
			}
Beispiel #2
0
RawArray<Vector<super_t,2>> readable_block_store_t::uncompress_and_get_flat(local_id_t local_id, event_t event) const {
  return local_fast_uncompress(get_compressed(local_id),event);
}