current working version for pixel buffer on Windows (may need to comment out lifecycle checks in FilamentWidget)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#include <Windows.h>
|
||||
#include <wrl.h>
|
||||
@@ -58,6 +59,8 @@ public:
|
||||
bool _rendering = false;
|
||||
int64_t _flutterTextureId;
|
||||
|
||||
std::mutex _renderMutex;
|
||||
|
||||
// OpenGL
|
||||
// Texture handle
|
||||
GLuint _glTextureId = 0;
|
||||
@@ -192,6 +195,18 @@ public:
|
||||
|
||||
void ScrollUpdate(const flutter::MethodCall<flutter::EncodableValue> &methodCall,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
void ClearAssets(
|
||||
const flutter::MethodCall<flutter::EncodableValue> &methodCall,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
void ClearLights(
|
||||
const flutter::MethodCall<flutter::EncodableValue> &methodCall,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
void MoveCameraToAsset(
|
||||
const flutter::MethodCall<flutter::EncodableValue> &methodCall,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
void SetViewFrustumCulling(
|
||||
const flutter::MethodCall<flutter::EncodableValue> &methodCall,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
|
||||
ResourceBuffer loadResource(const char *path);
|
||||
void freeResource(ResourceBuffer rbuf);
|
||||
|
||||
Reference in New Issue
Block a user