Skip to content

Commit

Permalink
Doc and cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 30, 2024
1 parent 9dfe894 commit e8fbd40
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
6 changes: 4 additions & 2 deletions CesiumGltfReader/include/CesiumGltfReader/ImageDecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
namespace CesiumGltfReader {

/**
* @brief The result of reading an image with
* {@link ImageDecoder::readImage}.
* @brief The result of reading an image with {@link ImageDecoder::readImage}.
*/
struct CESIUMGLTFREADER_API ImageReaderResult {

Expand All @@ -37,6 +36,9 @@ struct CESIUMGLTFREADER_API ImageReaderResult {
std::vector<std::string> warnings;
};

/**
* @brief Contains methods for reading and manipulating images.
*/
class ImageDecoder {
public:
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ struct NetworkImageAssetDescriptor
* @return A future that resolves to the image asset once the request is
* complete.
*/
CesiumAsync::Future<CesiumUtility::Result<
CesiumUtility::IntrusivePointer<CesiumGltf::ImageAsset>>>
CesiumAsync::Future<CesiumUtility::ResultPointer<CesiumGltf::ImageAsset>>
load(
const CesiumAsync::AsyncSystem& asyncSystem,
const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor) const;
Expand Down
4 changes: 0 additions & 4 deletions CesiumGltfReader/src/GltfReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@
#include "dequantizeMeshData.h"
#include "registerReaderExtensions.h"

#include <CesiumAsync/IAssetAccessor.h>
#include <CesiumAsync/IAssetRequest.h>
#include <CesiumAsync/IAssetResponse.h>
#include <CesiumGltf/ExtensionKhrTextureBasisu.h>
#include <CesiumGltf/ExtensionTextureWebp.h>
#include <CesiumGltf/ImageAsset.h>
#include <CesiumGltf/Ktx2TranscodeTargets.h>
#include <CesiumJsonReader/JsonHandler.h>
#include <CesiumJsonReader/JsonReader.h>
#include <CesiumJsonReader/JsonReaderOptions.h>
Expand All @@ -29,7 +26,6 @@
#include <algorithm>
#include <cstddef>
#include <iomanip>
#include <memory>
#include <sstream>
#include <string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "Library.h"

#include <cstdint>
#include <string>

namespace CesiumJsonReader {
class CESIUMJSONREADER_API IgnoreValueJsonHandler : public IJsonHandler {
Expand Down
12 changes: 12 additions & 0 deletions CesiumUtility/include/CesiumUtility/Hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@

namespace CesiumUtility {

/**
* @brief Contains functions for working with hashes.
*
*/
struct Hash {
/**
* @brief Combines two hash values, usually generated using `std::hash`, to
* form a single hash value.
*
* @param first The first hash value.
* @param second The second hash value.
* @return A new hash value which is a combination of the two.
*/
static std::size_t combine(std::size_t first, std::size_t second);
};

Expand Down

0 comments on commit e8fbd40

Please sign in to comment.