9 #ifndef RAMSES_RESOURCEDATAPOOL_H
10 #define RAMSES_RESOURCEDATAPOOL_H
23 class EffectDescription;
26 class ResourceDataPoolImpl;
55 const void* arrayData,
57 const char* name =
nullptr);
87 bool generateMipChain =
false,
90 const char* name =
nullptr);
117 uint32_t mipMapCount,
119 bool generateMipChain =
false,
121 const char* name =
nullptr);
147 uint32_t mipMapCount,
149 bool generateMipChain =
false,
152 const char* name =
nullptr);
169 const char* name =
nullptr);
250 friend class RamsesClientImpl;
#define RAMSES_API
Definition: APIExport.h:35
An effect description holds all necessary information for an effect to be created.
Definition: EffectDescription.h:21
The ResourceDataPool holds resource data which can be instantiated for a given scene....
Definition: ResourceDataPool.h:37
bool removeResourceData(resourceId_t const &id)
Removes data which was added to the pool. The provided resource id might not be used anymore to insta...
bool addResourceDataFile(std::string const &filename)
Adds a file to the resource data pool, so the contained data can be instantiated via createResourceFo...
std::string getLastEffectErrorMessages() const
Get the GLSL error messages that were produced at the creation of the last Effect data.
resourceId_t addTexture2DData(ETextureFormat format, uint32_t width, uint32_t height, uint32_t mipMapCount, const MipLevelData mipLevelData[], bool generateMipChain=false, const TextureSwizzle &swizzle={}, resourceCacheFlag_t cacheFlag=ResourceCacheFlag_DoNotCache, const char *name=nullptr)
Add Texture2D data to the pool. It is taking ownership of the given range of texture data in the spec...
Resource * createResourceForScene(Scene &scene, resourceId_t const &id)
Creates a resource for a scene out of pool data. The resource can then be used in scene as if created...
resourceId_t addEffectData(const EffectDescription &effectDesc, resourceCacheFlag_t cacheFlag=ResourceCacheFlag_DoNotCache, const char *name=nullptr)
Add Effect data to the pool by parsing a GLSL shader described by an EffectDescription instance....
resourceId_t addTextureCubeData(ETextureFormat format, uint32_t size, uint32_t mipMapCount, const CubeMipLevelData mipLevelData[], bool generateMipChain=false, const TextureSwizzle &swizzle={}, resourceCacheFlag_t cacheFlag=ResourceCacheFlag_DoNotCache, const char *name=nullptr)
Add Cube Texture data to the pool. It is taking ownership of the given range of texture data in the s...
bool removeResourceDataFile(std::string const &filename)
Removes a resource file from the pool. The contained data can then not be used anymore to instantiate...
resourceId_t addTexture3DData(ETextureFormat format, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipMapCount, const MipLevelData mipLevelData[], bool generateMipChain=false, resourceCacheFlag_t cacheFlag=ResourceCacheFlag_DoNotCache, const char *name=nullptr)
Add Texture3D data to the pool. It is taking ownership of the given range of texture data in the spec...
bool forceLoadResourcesFromResourceDataFile(std::string const &filename)
Loads all resources in a file currently in use by any scene from that file to memory.
ResourceDataPoolImpl & impl
Definition: ResourceDataPool.h:243
resourceId_t addArrayResourceData(EDataType type, uint32_t numElements, const void *arrayData, resourceCacheFlag_t cacheFlag=ResourceCacheFlag_DoNotCache, const char *name=nullptr)
Add ArrayResource data to the pool. The pool is taking ownership of the given range of data of a cert...
The Resource is the base class of all resources, such as arrays and textures.
Definition: Resource.h:20
The Scene holds a scene graph. It is the essential class for distributing content to the ramses syste...
Definition: Scene.h:83
Helper class to create strongly typed values out of various types.
Definition: StronglyTypedValue.h:23
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
ETextureFormat
Texture data format.
Definition: TextureEnums.h:40
EDataType
Specifies the data type used for creating data buffers.
Definition: EDataType.h:20
constexpr const resourceCacheFlag_t ResourceCacheFlag_DoNotCache
Requests the render to not cache a resource. This is the default value.
Definition: RamsesFrameworkTypes.h:212
Struct containing information about one mip-map level of a cube texture. All faces of the cube textur...
Definition: MipLevelData.h:60
Struct containing information about one mip-map level of a texture.
Definition: MipLevelData.h:24
Information of how color channels of a texture are reordered or set to fixed value (one,...
Definition: TextureSwizzle.h:23
Resource identifier used to refer to a resource.
Definition: RamsesFrameworkTypes.h:84