update headers
This commit is contained in:
@@ -40,7 +40,6 @@ namespace filament {
|
||||
class BufferObject;
|
||||
class Engine;
|
||||
class IndexBuffer;
|
||||
class Material;
|
||||
class MaterialInstance;
|
||||
class Renderer;
|
||||
class SkinningBuffer;
|
||||
@@ -161,10 +160,17 @@ public:
|
||||
/**
|
||||
* Binds a material instance to the specified primitive.
|
||||
*
|
||||
* If no material is specified for a given primitive, Filament will fall back to a basic default material.
|
||||
* If no material is specified for a given primitive, Filament will fall back to a basic
|
||||
* default material.
|
||||
*
|
||||
* @param index zero-based index of the primitive, must be less than the count passed to Builder constructor
|
||||
* The MaterialInstance's material must have a feature level equal or lower to the engine's
|
||||
* selected feature level.
|
||||
*
|
||||
* @param index zero-based index of the primitive, must be less than the count passed to
|
||||
* Builder constructor
|
||||
* @param materialInstance the material to bind
|
||||
*
|
||||
* @see Engine::setActiveFeatureLevel
|
||||
*/
|
||||
Builder& material(size_t index, MaterialInstance const* materialInstance) noexcept;
|
||||
|
||||
@@ -560,6 +566,11 @@ public:
|
||||
inline void setMorphTargetBufferAt(Instance instance, uint8_t level, size_t primitiveIndex,
|
||||
MorphTargetBuffer* morphTargetBuffer);
|
||||
|
||||
/**
|
||||
* Get a MorphTargetBuffer to the given primitive or null if it doesn't exist.
|
||||
*/
|
||||
MorphTargetBuffer* getMorphTargetBufferAt(Instance instance, uint8_t level, size_t primitiveIndex) const noexcept;
|
||||
|
||||
/**
|
||||
* Gets the number of morphing in the given entity.
|
||||
*/
|
||||
@@ -590,10 +601,17 @@ public:
|
||||
/**
|
||||
* Changes the material instance binding for the given primitive.
|
||||
*
|
||||
* \see Builder::material()
|
||||
* The MaterialInstance's material must have a feature level equal or lower to the engine's
|
||||
* selected feature level.
|
||||
*
|
||||
* @exception utils::PreConditionPanic if the engine doesn't support the material's
|
||||
* feature level.
|
||||
*
|
||||
* @see Builder::material()
|
||||
* @see Engine::setActiveFeatureLevel
|
||||
*/
|
||||
void setMaterialInstanceAt(Instance instance,
|
||||
size_t primitiveIndex, MaterialInstance const* materialInstance) noexcept;
|
||||
size_t primitiveIndex, MaterialInstance const* materialInstance);
|
||||
|
||||
/**
|
||||
* Retrieves the material instance that is bound to the given primitive.
|
||||
|
||||
Reference in New Issue
Block a user