rename thermion_filament namespace to thermion_flutter for Windows
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
#pragma comment(lib, "dwmapi.lib")
|
#pragma comment(lib, "dwmapi.lib")
|
||||||
#pragma comment(lib, "comctl32.lib")
|
#pragma comment(lib, "comctl32.lib")
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
static constexpr auto kClassName = L"FLUTTER_FILAMENT_WINDOW";
|
static constexpr auto kClassName = L"FLUTTER_FILAMENT_WINDOW";
|
||||||
static constexpr auto kWindowName = L"thermion_flutter_window";
|
static constexpr auto kWindowName = L"thermion_flutter_window";
|
||||||
@@ -354,4 +354,4 @@ void BackingWindow::Resize(int width, int height, int left, int top) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HWND BackingWindow::GetHandle() { return _windowHandle; }
|
HWND BackingWindow::GetHandle() { return _windowHandle; }
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <flutter/plugin_registrar_windows.h>
|
#include <flutter/plugin_registrar_windows.h>
|
||||||
#include <flutter/standard_method_codec.h>
|
#include <flutter/standard_method_codec.h>
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class BackingWindow {
|
class BackingWindow {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#pragma comment(lib, "dwmapi.lib")
|
#pragma comment(lib, "dwmapi.lib")
|
||||||
#pragma comment(lib, "comctl32.lib")
|
#pragma comment(lib, "comctl32.lib")
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
FlutterEGLContext::FlutterEGLContext(
|
FlutterEGLContext::FlutterEGLContext(
|
||||||
flutter::PluginRegistrarWindows* pluginRegistrar,
|
flutter::PluginRegistrarWindows* pluginRegistrar,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "backend/platforms/PlatformEGL.h"
|
#include "backend/platforms/PlatformEGL.h"
|
||||||
#include "flutter_render_context.h"
|
#include "flutter_render_context.h"
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class FlutterEGLContext : public FlutterRenderContext {
|
class FlutterEGLContext : public FlutterRenderContext {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
static void logEglError(const char *name) noexcept {
|
static void logEglError(const char *name) noexcept {
|
||||||
const char *err;
|
const char *err;
|
||||||
@@ -240,4 +240,4 @@ FlutterAngleTexture::FlutterAngleTexture(
|
|||||||
result->Success(resultList);
|
result->Success(resultList);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
typedef uint32_t GLuint;
|
typedef uint32_t GLuint;
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class FlutterAngleTexture : public FlutterTextureBuffer {
|
class FlutterAngleTexture : public FlutterTextureBuffer {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "flutter_texture_buffer.h"
|
#include "flutter_texture_buffer.h"
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class FlutterRenderContext {
|
class FlutterRenderContext {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include <flutter/texture_registrar.h>
|
#include <flutter/texture_registrar.h>
|
||||||
|
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class FlutterTextureBuffer {
|
class FlutterTextureBuffer {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
void _release_callback(void *releaseContext) {
|
void _release_callback(void *releaseContext) {
|
||||||
// ((OpenGLTextureBuffer*)releaseContext)->unlock();
|
// ((OpenGLTextureBuffer*)releaseContext)->unlock();
|
||||||
@@ -141,4 +141,4 @@ OpenGLTextureBuffer::~OpenGLTextureBuffer() {
|
|||||||
wglMakeCurrent(NULL, NULL);
|
wglMakeCurrent(NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
typedef uint32_t GLuint;
|
typedef uint32_t GLuint;
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class OpenGLTextureBuffer : public FlutterTextureBuffer {
|
class OpenGLTextureBuffer : public FlutterTextureBuffer {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "thermion_flutter_plugin.h"
|
#include "thermion_flutter_plugin.h"
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
namespace test {
|
namespace test {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@@ -40,4 +40,4 @@ TEST(ThermionFlutterPlugin, GetPlatformVersion) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace test
|
} // namespace test
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include "wgl_context.h"
|
#include "wgl_context.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
@@ -61,7 +61,6 @@ ThermionFlutterPlugin::ThermionFlutterPlugin(
|
|||||||
|
|
||||||
// attach the method call handler for incoming messages
|
// attach the method call handler for incoming messages
|
||||||
_channel->SetMethodCallHandler([=](const auto &call, auto result) {
|
_channel->SetMethodCallHandler([=](const auto &call, auto result) {
|
||||||
std::cout << call.method_name() << std::endl;
|
|
||||||
this->HandleMethodCall(call, std::move(result));
|
this->HandleMethodCall(call, std::move(result));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -275,4 +274,4 @@ void ThermionFlutterPlugin::HandleMethodCall(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "GL/GL.h"
|
#include "GL/GL.h"
|
||||||
#include "GL/GLu.h"
|
#include "GL/GLu.h"
|
||||||
|
|
||||||
#include "ResourceBuffer.hpp"
|
#include "ResourceBuffer.h"
|
||||||
|
|
||||||
#if USE_ANGLE
|
#if USE_ANGLE
|
||||||
#include "egl_context.h"
|
#include "egl_context.h"
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
#include "wgl_context.h"
|
#include "wgl_context.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class ThermionFlutterPlugin : public flutter::Plugin {
|
class ThermionFlutterPlugin : public flutter::Plugin {
|
||||||
public:
|
public:
|
||||||
@@ -66,6 +66,6 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
|
|
||||||
#endif // FLUTTER_PLUGIN_FLUTTER_FILAMENT_PLUGIN_H_
|
#endif // FLUTTER_PLUGIN_FLUTTER_FILAMENT_PLUGIN_H_
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "flutter_texture_buffer.h"
|
#include "flutter_texture_buffer.h"
|
||||||
|
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
WGLContext::WGLContext(flutter::PluginRegistrarWindows *pluginRegistrar,
|
WGLContext::WGLContext(flutter::PluginRegistrarWindows *pluginRegistrar,
|
||||||
flutter::TextureRegistrar *textureRegistrar)
|
flutter::TextureRegistrar *textureRegistrar)
|
||||||
@@ -143,4 +143,4 @@ void WGLContext::CreateRenderingSurface(
|
|||||||
|
|
||||||
void *WGLContext::GetSharedContext() { return (void *)_context; }
|
void *WGLContext::GetSharedContext() { return (void *)_context; }
|
||||||
|
|
||||||
} // namespace thermion_filament
|
} // namespace thermion_flutter
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#if WGL_USE_BACKING_WINDOW
|
#if WGL_USE_BACKING_WINDOW
|
||||||
#include "backing_window.h"
|
#include "backing_window.h"
|
||||||
#endif
|
#endif
|
||||||
namespace thermion_filament {
|
namespace thermion_flutter {
|
||||||
|
|
||||||
class WGLContext : public FlutterRenderContext {
|
class WGLContext : public FlutterRenderContext {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user