osg/object
enum DataVariance
{
DYNAMIC,
STATIC,
UNSPECIFIED
};
/** Set the data variance of this object.
* Can be set to either STATIC for values that do not change over the lifetime of the object,
* or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value
* can be used by routines such as optimization codes that wish to share static data.
* UNSPECIFIED is used to specify that the DataVariance hasn't been set yet. */
本文介绍了OSG库中DataVariance枚举类型的定义及其用途。此枚举用于指定对象的数据变化特性,包括静态(STATIC)、动态(DYNAMIC)及未指定(UNSPECIFIED)三种状态,以辅助优化代码等机制更高效地共享静态数据。
553

被折叠的 条评论
为什么被折叠?



