// CLASS HEADER
#include <dali/public-api/adaptor-framework/native-image-source.h>
+// INTERNAL INCLUDES
+#include "test-native-image-source.h"
+
// EXTERNAL INCLUDES
#include <dali/public-api/object/any.h>
namespace Dali
{
+const char* NativeImageSourceTest::GetCustomFragmentPrefix()
+{
+ return "#extension GL_OES_EGL_image_external:require\n";
+}
+
NativeImageSourcePtr NativeImageSource::New( unsigned int width, unsigned int height, ColorDepth depth )
{
Any empty;
return false;
}
-bool NativeImageSource::GlExtensionCreate()
+bool NativeImageSource::CreateResource()
{
return false;
}
-void NativeImageSource::GlExtensionDestroy()
+void NativeImageSource::DestroyResource()
{
}
return false;
}
+int NativeImageSource::GetTextureTarget() const
+{
+ return 0;
+}
+
+bool NativeImageSource::ApplyNativeFragmentShader(std::string& shader)
+{
+ shader = Dali::NativeImageSourceTest::GetCustomFragmentPrefix() + shader;
+ return true;
+}
+
+const char* NativeImageSource::GetCustomSamplerTypename() const
+{
+ return "";
+}
+
+Any NativeImageSource::GetNativeImageHandle() const
+{
+ return nullptr;
+}
+
+bool NativeImageSource::SourceChanged() const
+{
+ return false;
+}
+
NativeImageInterface::Extension* NativeImageSource::GetExtension()
{
return NULL;