summaryrefslogtreecommitdiff
path: root/indra/llmeshoptimizer
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-07 22:34:26 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-07 22:40:37 +0300
commit7b7b8a8da8f3a7e726b7de2b152cd00c67df0f18 (patch)
tree312f3f07bcb7b2ee9db088fed35445c8a3de72b6 /indra/llmeshoptimizer
parent97c954dd84d50ec7b739d2dd3adb7365589f3034 (diff)
DRTVWR-542 WIP
Diffstat (limited to 'indra/llmeshoptimizer')
-rw-r--r--indra/llmeshoptimizer/llmeshoptimizer.cpp14
-rw-r--r--indra/llmeshoptimizer/llmeshoptimizer.h5
2 files changed, 15 insertions, 4 deletions
diff --git a/indra/llmeshoptimizer/llmeshoptimizer.cpp b/indra/llmeshoptimizer/llmeshoptimizer.cpp
index 770cd5aa3c..c46fa8dcf3 100644
--- a/indra/llmeshoptimizer/llmeshoptimizer.cpp
+++ b/indra/llmeshoptimizer/llmeshoptimizer.cpp
@@ -26,18 +26,24 @@
#include "llmeshoptimizer.h"
-#include "linden_common.h"
-
#include "meshoptimizer.h"
-#include "llmath.h"
LLMeshOptimizer::LLMeshOptimizer()
{
-
+ // Todo: Looks like for memory management, we can add allocator and deallocator callbacks
+ // Should be one time
+ // meshopt_setAllocator(allocate, deallocate);
}
LLMeshOptimizer::~LLMeshOptimizer()
{
}
+
+//static
+U32 LLMeshOptimizer::simplifyModel()
+{
+ LL_WARNS() << "NOT IMPLEMENTED" << LL_ENDL;
+ return 0;
+}
diff --git a/indra/llmeshoptimizer/llmeshoptimizer.h b/indra/llmeshoptimizer/llmeshoptimizer.h
index edce4edf05..d53ec2e24c 100644
--- a/indra/llmeshoptimizer/llmeshoptimizer.h
+++ b/indra/llmeshoptimizer/llmeshoptimizer.h
@@ -26,11 +26,16 @@
#ifndef LLMESHOPTIMIZER_H
#define LLMESHOPTIMIZER_H
+#include "linden_common.h"
+
class LLMeshOptimizer
{
public:
LLMeshOptimizer();
~LLMeshOptimizer();
+
+ // returns state
+ static U32 simplifyModel();
private:
};