#include "DSRenderViewDaliImpl.h"
#include "DSDebugLog.h"
+#include <dali/devel-api/actors/actor-devel.h>
+
#include <tbm_surface_queue.h>
using namespace Dali;
Toolkit::TextLabel textlabel = Toolkit::TextLabel::New("Hello libDS");
textlabel.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
+ textlabel.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ textlabel.SetProperty(Dali::DevelActor::Property::POSITION_USES_ANCHOR_POINT, false);
+ textlabel.SetProperty(Actor::Property::POSITION, Vector3( 0.0f, 0.0f, 0.0f ));
+ textlabel.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE);
+ textlabel.SetProperty(Toolkit::TextLabel::Property::POINT_SIZE, 30.f);
window.Add(textlabel);
/* for testing -- end -- */
}
#include "DSRenderViewDaliImpl.h"
+#include <tbm_surface.h>
using namespace Dali;
__textureViewActor = Actor::New();
__textureViewActor.AddRenderer(__renderer);
+
+ // belows for testing //
+ __textureViewActor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ __textureViewActor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
+ __textureViewActor.SetProperty(Actor::Property::POSITION, Vector3( 0.0f, 100.f, 0.0f ));
+ __textureViewActor.SetProperty(Actor::Property::SIZE, Vector2(500, 500));
+
+
offscreenWindow.Add(__textureViewActor);
}
bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr<IDSBuffer> buffer)
{
- void *nativeBuffer = buffer->getNativeBuffer();
+ tbm_surface_h nativeBuffer = (tbm_surface_h)buffer->getNativeBuffer();
NativeImageSourcePtr nativeImageSource = NativeImageSource::New(Any(nativeBuffer));