Merged some alignment adjustments from sunshine-external
This commit is contained in:
@@ -76,6 +76,7 @@ protected:
|
|||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLDriverParam : public LLViewerVisualParam
|
class LLDriverParam : public LLViewerVisualParam
|
||||||
{
|
{
|
||||||
friend class LLPhysicsMotion;
|
friend class LLPhysicsMotion;
|
||||||
@@ -133,13 +134,13 @@ protected:
|
|||||||
void setDrivenWeight(LLDrivenEntry *driven, F32 driven_weight, bool upload_bake);
|
void setDrivenWeight(LLDrivenEntry *driven, F32 driven_weight, bool upload_bake);
|
||||||
|
|
||||||
|
|
||||||
LLVector4a mDefaultVec; // temp holder
|
LL_ALIGN_16(LLVector4a mDefaultVec); // temp holder
|
||||||
typedef std::vector<LLDrivenEntry> entry_list_t;
|
typedef std::vector<LLDrivenEntry> entry_list_t;
|
||||||
entry_list_t mDriven;
|
entry_list_t mDriven;
|
||||||
LLViewerVisualParam* mCurrentDistortionParam;
|
LLViewerVisualParam* mCurrentDistortionParam;
|
||||||
// Backlink only; don't make this an LLPointer.
|
// Backlink only; don't make this an LLPointer.
|
||||||
LLAvatarAppearance* mAvatarAppearance;
|
LLAvatarAppearance* mAvatarAppearance;
|
||||||
LLWearable* mWearablep;
|
LLWearable* mWearablep;
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
|
|
||||||
#endif // LL_LLDRIVERPARAM_H
|
#endif // LL_LLDRIVERPARAM_H
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ class LLWearable;
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// LLPolyMorphData()
|
// LLPolyMorphData()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLPolyMorphData
|
class LLPolyMorphData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -79,12 +80,13 @@ public:
|
|||||||
|
|
||||||
F32 mTotalDistortion; // vertex distortion summed over entire morph
|
F32 mTotalDistortion; // vertex distortion summed over entire morph
|
||||||
F32 mMaxDistortion; // maximum single vertex distortion in a given morph
|
F32 mMaxDistortion; // maximum single vertex distortion in a given morph
|
||||||
LLVector4a mAvgDistortion; // average vertex distortion, to infer directionality of the morph
|
LL_ALIGN_16(LLVector4a mAvgDistortion); // average vertex distortion, to infer directionality of the morph
|
||||||
LLPolyMeshSharedData* mMesh;
|
LLPolyMeshSharedData* mMesh;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void freeData();
|
void freeData();
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// LLPolyVertexMask()
|
// LLPolyVertexMask()
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ struct LLPolySkeletalBoneInfo
|
|||||||
BOOL mHasPositionDeformation;
|
BOOL mHasPositionDeformation;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLPolySkeletalDistortionInfo : public LLViewerVisualParamInfo
|
class LLPolySkeletalDistortionInfo : public LLViewerVisualParamInfo
|
||||||
{
|
{
|
||||||
friend class LLPolySkeletalDistortion;
|
friend class LLPolySkeletalDistortion;
|
||||||
@@ -118,13 +119,13 @@ public:
|
|||||||
/*virtual*/ const LLVector4a* getNextDistortion(U32 *index, LLPolyMesh **poly_mesh){index = 0; poly_mesh = NULL; return NULL;};
|
/*virtual*/ const LLVector4a* getNextDistortion(U32 *index, LLPolyMesh **poly_mesh){index = 0; poly_mesh = NULL; return NULL;};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
LL_ALIGN_16(LLVector4a mDefaultVec);
|
||||||
typedef std::map<LLJoint*, LLVector3> joint_vec_map_t;
|
typedef std::map<LLJoint*, LLVector3> joint_vec_map_t;
|
||||||
joint_vec_map_t mJointScales;
|
joint_vec_map_t mJointScales;
|
||||||
joint_vec_map_t mJointOffsets;
|
joint_vec_map_t mJointOffsets;
|
||||||
LLVector4a mDefaultVec;
|
|
||||||
// Backlink only; don't make this an LLPointer.
|
// Backlink only; don't make this an LLPointer.
|
||||||
LLAvatarAppearance *mAvatar;
|
LLAvatarAppearance *mAvatar;
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
|
|
||||||
#endif // LL_LLPOLYSKELETALDISTORTION_H
|
#endif // LL_LLPOLYSKELETALDISTORTION_H
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ protected:
|
|||||||
// LLTexLayerParamAlpha
|
// LLTexLayerParamAlpha
|
||||||
//
|
//
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLTexLayerParamAlpha : public LLTexLayerParam
|
class LLTexLayerParamAlpha : public LLTexLayerParam
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -67,8 +68,6 @@ public:
|
|||||||
LLTexLayerParamAlpha( LLAvatarAppearance* appearance );
|
LLTexLayerParamAlpha( LLAvatarAppearance* appearance );
|
||||||
/*virtual*/ ~LLTexLayerParamAlpha();
|
/*virtual*/ ~LLTexLayerParamAlpha();
|
||||||
|
|
||||||
/*virtual*/ LLViewerVisualParam* cloneParam(LLWearable* wearable = NULL) const;
|
|
||||||
|
|
||||||
void* operator new(size_t size)
|
void* operator new(size_t size)
|
||||||
{
|
{
|
||||||
return ll_aligned_malloc_16(size);
|
return ll_aligned_malloc_16(size);
|
||||||
@@ -79,6 +78,8 @@ public:
|
|||||||
ll_aligned_free_16(ptr);
|
ll_aligned_free_16(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*virtual*/ LLViewerVisualParam* cloneParam(LLWearable* wearable = NULL) const;
|
||||||
|
|
||||||
// LLVisualParam Virtual functions
|
// LLVisualParam Virtual functions
|
||||||
///*virtual*/ BOOL parseData(LLXmlTreeNode* node);
|
///*virtual*/ BOOL parseData(LLXmlTreeNode* node);
|
||||||
/*virtual*/ void apply( ESex avatar_sex ) {}
|
/*virtual*/ void apply( ESex avatar_sex ) {}
|
||||||
@@ -106,7 +107,7 @@ private:
|
|||||||
LLPointer<LLImageRaw> mStaticImageRaw;
|
LLPointer<LLImageRaw> mStaticImageRaw;
|
||||||
BOOL mNeedsCreateTexture;
|
BOOL mNeedsCreateTexture;
|
||||||
BOOL mStaticImageInvalid;
|
BOOL mStaticImageInvalid;
|
||||||
LLVector4a mAvgDistortionVec;
|
LL_ALIGN_16(LLVector4a mAvgDistortionVec);
|
||||||
F32 mCachedEffectiveWeight;
|
F32 mCachedEffectiveWeight;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -116,7 +117,7 @@ public:
|
|||||||
|
|
||||||
typedef std::list< LLTexLayerParamAlpha* > param_alpha_ptr_list_t;
|
typedef std::list< LLTexLayerParamAlpha* > param_alpha_ptr_list_t;
|
||||||
static param_alpha_ptr_list_t sInstances;
|
static param_alpha_ptr_list_t sInstances;
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
class LLTexLayerParamAlphaInfo : public LLViewerVisualParamInfo
|
class LLTexLayerParamAlphaInfo : public LLViewerVisualParamInfo
|
||||||
{
|
{
|
||||||
friend class LLTexLayerParamAlpha;
|
friend class LLTexLayerParamAlpha;
|
||||||
@@ -140,6 +141,8 @@ private:
|
|||||||
// LLTexLayerParamColor
|
// LLTexLayerParamColor
|
||||||
//
|
//
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLTexLayerParamColor : public LLTexLayerParam
|
class LLTexLayerParamColor : public LLTexLayerParam
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -153,7 +156,6 @@ public:
|
|||||||
|
|
||||||
LLTexLayerParamColor( LLTexLayerInterface* layer );
|
LLTexLayerParamColor( LLTexLayerInterface* layer );
|
||||||
LLTexLayerParamColor( LLAvatarAppearance* appearance );
|
LLTexLayerParamColor( LLAvatarAppearance* appearance );
|
||||||
/* virtual */ ~LLTexLayerParamColor();
|
|
||||||
|
|
||||||
void* operator new(size_t size)
|
void* operator new(size_t size)
|
||||||
{
|
{
|
||||||
@@ -165,6 +167,8 @@ public:
|
|||||||
ll_aligned_free_16(ptr);
|
ll_aligned_free_16(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* virtual */ ~LLTexLayerParamColor();
|
||||||
|
|
||||||
/*virtual*/ LLViewerVisualParam* cloneParam(LLWearable* wearable = NULL) const;
|
/*virtual*/ LLViewerVisualParam* cloneParam(LLWearable* wearable = NULL) const;
|
||||||
|
|
||||||
// LLVisualParam Virtual functions
|
// LLVisualParam Virtual functions
|
||||||
@@ -188,8 +192,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void onGlobalColorChanged(bool upload_bake) {}
|
virtual void onGlobalColorChanged(bool upload_bake) {}
|
||||||
private:
|
private:
|
||||||
LLVector4a mAvgDistortionVec;
|
LL_ALIGN_16(LLVector4a mAvgDistortionVec);
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
|
|
||||||
class LLTexLayerParamColorInfo : public LLViewerVisualParamInfo
|
class LLTexLayerParamColorInfo : public LLViewerVisualParamInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ protected:
|
|||||||
// VIRTUAL CLASS
|
// VIRTUAL CLASS
|
||||||
// a viewer side interface class for a generalized parametric modification of the avatar mesh
|
// a viewer side interface class for a generalized parametric modification of the avatar mesh
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
LL_ALIGN_PREFIX(16)
|
||||||
class LLViewerVisualParam : public LLVisualParam
|
class LLViewerVisualParam : public LLVisualParam
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -106,6 +107,6 @@ public:
|
|||||||
|
|
||||||
BOOL getCrossWearable() const { return getInfo()->mCrossWearable; }
|
BOOL getCrossWearable() const { return getInfo()->mCrossWearable; }
|
||||||
|
|
||||||
};
|
} LL_ALIGN_POSTFIX(16);
|
||||||
|
|
||||||
#endif // LL_LLViewerVisualParam_H
|
#endif // LL_LLViewerVisualParam_H
|
||||||
|
|||||||
Reference in New Issue
Block a user