初始提交: UE5.3项目基础框架
This commit is contained in:
48
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/Texture.h
vendored
Normal file
48
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/Texture.h
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
// This file was generated by generate-classes.
|
||||
// DO NOT EDIT THIS FILE!
|
||||
#pragma once
|
||||
|
||||
#include <CesiumGltf/Library.h>
|
||||
#include <CesiumGltf/NamedObject.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace CesiumGltf {
|
||||
/**
|
||||
* @brief A texture and its sampler.
|
||||
*/
|
||||
struct CESIUMGLTF_API Texture final : public CesiumGltf::NamedObject {
|
||||
/**
|
||||
* @brief The original name of this type.
|
||||
*/
|
||||
static constexpr const char* TypeName = "Texture";
|
||||
|
||||
/**
|
||||
* @brief The index of the sampler used by this texture. When undefined, a
|
||||
* sampler with repeat wrapping and auto filtering **SHOULD** be used.
|
||||
*/
|
||||
int32_t sampler = -1;
|
||||
|
||||
/**
|
||||
* @brief The index of the image used by this texture. When undefined, an
|
||||
* extension or other mechanism **SHOULD** supply an alternate texture source,
|
||||
* otherwise behavior is undefined.
|
||||
*/
|
||||
int32_t source = -1;
|
||||
|
||||
/**
|
||||
* @brief Calculates the size in bytes of this object, including the contents
|
||||
* of all collections, pointers, and strings. This will NOT include the size
|
||||
* of any extensions attached to the object. Calling this method may be slow
|
||||
* as it requires traversing the object's entire structure.
|
||||
*/
|
||||
int64_t getSizeBytes() const {
|
||||
int64_t accum = 0;
|
||||
accum += int64_t(sizeof(Texture));
|
||||
accum += CesiumGltf::NamedObject::getSizeBytes() -
|
||||
int64_t(sizeof(CesiumGltf::NamedObject));
|
||||
|
||||
return accum;
|
||||
}
|
||||
};
|
||||
} // namespace CesiumGltf
|
||||
Reference in New Issue
Block a user