summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmeshrepository.h')
-rw-r--r--indra/newview/llmeshrepository.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h
index a2f403e214..736d236e2e 100644
--- a/indra/newview/llmeshrepository.h
+++ b/indra/newview/llmeshrepository.h
@@ -132,6 +132,8 @@ public:
LLUUID mMeshID;
std::vector<std::string> mJointNames;
std::vector<LLMatrix4> mInvBindMatrix;
+ std::vector<LLMatrix4> mAlternateBindMatrix;
+
LLMatrix4 mBindShapeMatrix;
};
@@ -298,6 +300,7 @@ public:
bool lodReceived(const LLVolumeParams& mesh_params, S32 lod, U8* data, S32 data_size);
bool skinInfoReceived(const LLUUID& mesh_id, U8* data, S32 data_size);
bool decompositionReceived(const LLUUID& mesh_id, U8* data, S32 data_size);
+ const LLSD& getMeshHeader(const LLUUID& mesh_id);
void notifyLoadedMeshes();
S32 getActualMeshLOD(const LLVolumeParams& mesh_params, S32 lod);
@@ -332,6 +335,8 @@ public:
bool mFinished;
LLVector3 mOrigin;
bool mUploadTextures;
+ bool mUploadSkin;
+ bool mUploadJoints;
LLHost mHost;
std::string mUploadObjectAssetCapability;
@@ -346,7 +351,8 @@ public:
std::map<LLPointer<LLViewerFetchedTexture>, LLTextureUploadData> mTextureMap;
- LLMeshUploadThread(instance_list& data, LLVector3& scale, bool upload_textures);
+ LLMeshUploadThread(instance_list& data, LLVector3& scale, bool upload_textures,
+ bool upload_skin, bool upload_joints);
~LLMeshUploadThread();
void uploadTexture(LLTextureUploadData& data);
@@ -380,6 +386,7 @@ public:
static U32 sCacheBytesWritten;
static U32 sPeakKbps;
+ static F32 getStreamingCost(const LLSD& header, F32 radius);
LLMeshRepository();
@@ -400,8 +407,10 @@ public:
U32 getResourceCost(const LLUUID& mesh_params);
const LLMeshSkinInfo* getSkinInfo(const LLUUID& mesh_id);
const LLMeshDecomposition* getDecomposition(const LLUUID& mesh_id);
+ const LLSD& getMeshHeader(const LLUUID& mesh_id);
- void uploadModel(std::vector<LLModelInstance>& data, LLVector3& scale, bool upload_textures);
+ void uploadModel(std::vector<LLModelInstance>& data, LLVector3& scale, bool upload_textures,
+ bool upload_skin, bool upload_joints);
S32 getMeshSize(const LLUUID& mesh_id, S32 lod);