documentation & further renaming

This commit is contained in:
Nick Fisher
2024-06-15 21:26:08 +08:00
parent 3f88598498
commit dc0c855135
221 changed files with 5923 additions and 691 deletions

View File

@@ -103,7 +103,7 @@ namespace filament
class LightManager;
} // namespace filament
namespace thermion_flutter
namespace thermion_filament
{
using namespace filament;
@@ -469,7 +469,7 @@ namespace thermion_flutter
void FilamentViewer::loadPngTexture(string path, ResourceBuffer rb)
{
thermion_flutter::StreamBufferAdapter sb((char *)rb.data, (char *)rb.data + rb.size);
thermion_filament::StreamBufferAdapter sb((char *)rb.data, (char *)rb.data + rb.size);
std::istream inputStream(&sb);
@@ -1204,7 +1204,7 @@ namespace thermion_flutter
// std::lock_guard lock(_recordingMutex);
if (recording)
{
_tp = new thermion_flutter::ThreadPool(16);
_tp = new thermion_filament::ThreadPool(16);
_recordingStartTime = std::chrono::high_resolution_clock::now();
}
else
@@ -1559,4 +1559,4 @@ namespace thermion_flutter
return Entity::smuggle(renderable);
}
} // namespace thermion_flutter
} // namespace thermion_filament

View File

@@ -33,7 +33,7 @@ extern "C"
#include "material/image.h"
}
namespace thermion_flutter
namespace thermion_filament
{
using namespace std::chrono;
@@ -2113,4 +2113,4 @@ namespace thermion_flutter
out[2] = Entity::smuggle(_gizmoZ);
}
} // namespace thermion_flutter
} // namespace thermion_filament

View File

@@ -3,7 +3,7 @@
#include <cassert>
#include <cstring>
namespace thermion_flutter {
namespace thermion_filament {
class StreamBufferAdapter : public std::streambuf
{

View File

@@ -13,7 +13,7 @@
#include <thread>
#include <functional>
using namespace thermion_flutter;
using namespace thermion_filament;
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
@@ -753,7 +753,7 @@ extern "C"
Log("Dummy called");
}
EMSCRIPTEN_KEEPALIVE void thermion_flutter_free(void *ptr)
EMSCRIPTEN_KEEPALIVE void thermion_filament_free(void *ptr)
{
free(ptr);
}

View File

@@ -19,7 +19,6 @@ extern "C"
#endif
#include "ThermionDartFFIApi.h"
#include "FilamentViewer.hpp"
#include "Log.hpp"
#include "ThreadPool.hpp"
@@ -30,7 +29,7 @@ extern "C"
#include <thread>
#include <stdlib.h>
using namespace thermion_flutter;
using namespace thermion_filament;
using namespace std::chrono_literals;
#include <time.h>