|
|
@ -10,13 +10,6 @@ |
|
|
|
#include <GLES2/gl2.h> |
|
|
|
#include <GLES2/gl2.h> |
|
|
|
#include <GLES2/gl2ext.h> |
|
|
|
#include <GLES2/gl2ext.h> |
|
|
|
|
|
|
|
|
|
|
|
const GLfloat pixels[] = { |
|
|
|
|
|
|
|
1, 0, 0, |
|
|
|
|
|
|
|
0, 1, 0, |
|
|
|
|
|
|
|
0, 0, 1, |
|
|
|
|
|
|
|
1, 1, 1 |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void EmbedderTexturePlugin::RegisterWithRegistrar(PluginRegistrar ®istrar) |
|
|
|
void EmbedderTexturePlugin::RegisterWithRegistrar(PluginRegistrar ®istrar) |
|
|
|
{ |
|
|
|
{ |
|
|
|
registrar.RegisterMethodChannel("embedder_texture", |
|
|
|
registrar.RegisterMethodChannel("embedder_texture", |
|
|
@ -75,7 +68,7 @@ void EmbedderTexturePlugin::onCreate(const MethodCall &call) |
|
|
|
std::cout << "++++++++++++++++++++" << std::endl; |
|
|
|
std::cout << "++++++++++++++++++++" << std::endl; |
|
|
|
|
|
|
|
|
|
|
|
if (texture_id != 0) { |
|
|
|
if (texture_id != 0) { |
|
|
|
// call.TextureRegister(texture_id);
|
|
|
|
call.TextureRegister(texture_id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
call.SendSuccessResponse(texture_id); |
|
|
|
call.SendSuccessResponse(texture_id); |
|
|
|