#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali/devel-api/events/hit-test-algorithm.h>
+#include <dali/devel-api/rendering/frame-buffer.h>
#include <dali-test-suite-utils.h>
#include <dali/integration-api/debug.h>
#include <test-native-image.h>
END_TEST;
}
+int UtcDaliRenderTaskSetFrameBufferP(void)
+{
+ TestApplication application;
+
+ tet_infoline("Testing RenderTask::SetFrameBuffer()");
+
+ RenderTaskList taskList = Stage::GetCurrent().GetRenderTaskList();
+
+ RenderTask task = taskList.GetTask( 0u );
+
+ FrameBuffer newFrameBuffer = FrameBuffer::New( 128u, 128u, FrameBuffer::COLOR );
+ task.SetFrameBuffer( newFrameBuffer );
+ DALI_TEST_CHECK( task.GetFrameBuffer() == newFrameBuffer );
+ END_TEST;
+}
+
+int UtcDaliRenderTaskSetFrameBufferN(void)
+{
+ TestApplication application;
+
+ tet_infoline("Testing RenderTask::SetFrameBuffer()");
+
+ RenderTaskList taskList = Stage::GetCurrent().GetRenderTaskList();
+
+ RenderTask task = taskList.GetTask( 0u );
+ FrameBuffer newFrameBuffer; // Empty handle
+ task.SetFrameBuffer( newFrameBuffer );
+ DALI_TEST_EQUALS( (bool)task.GetFrameBuffer(), false, TEST_LOCATION );
+ END_TEST;
+}
+
+int UtcDaliRenderTaskGetFrameBufferP(void)
+{
+ TestApplication application;
+
+ tet_infoline("Testing RenderTask::GetFrameBuffer()");
+
+ RenderTaskList taskList = Stage::GetCurrent().GetRenderTaskList();
+
+ RenderTask task = taskList.GetTask( 0u );
+
+ FrameBuffer newFrameBuffer = FrameBuffer::New( 1u, 1u, FrameBuffer::COLOR );
+ task.SetFrameBuffer( newFrameBuffer );
+ DALI_TEST_CHECK( task.GetFrameBuffer() == newFrameBuffer );
+ END_TEST;
+}
+
+int UtcDaliRenderTaskGetFrameBufferN(void)
+{
+ TestApplication application;
+
+ tet_infoline("Testing RenderTask::GetFrameBuffer()");
+
+ RenderTaskList taskList = Stage::GetCurrent().GetRenderTaskList();
+
+ RenderTask task = taskList.GetTask( 0u );
+
+ // By default render-tasks do not render off-screen
+ FrameBuffer frameBuffer = task.GetFrameBuffer();
+ DALI_TEST_CHECK( !frameBuffer );
+
+ END_TEST;
+}
+
int UtcDaliRenderTaskSetScreenToFrameBufferFunctionP(void)
{
TestApplication application;
* @brief Chooses the mipmap that most closely matches the size of the pixel being
* textured and uses the GL_NEAREST criterion (the texture element closest to
* the specified texture coordinates) to produce a texture value.
- * @SINCE_1_1.37
+ * @SINCE_1_1.38
*/
NEAREST_MIPMAP_NEAREST,
* @brief Chooses the mipmap that most closely matches the size of the pixel being textured
* and uses the GL_LINEAR criterion (a weighted average of the four texture elements
* that are closest to the specified texture coordinates) to produce a texture value.
- * @SINCE_1_1.37
+ * @SINCE_1_1.38
*/
LINEAR_MIPMAP_NEAREST,
* and uses the GL_NEAREST criterion (the texture element closest to the specified texture
* coordinates ) to produce a texture value from each mipmap. The final texture value is a
* weighted average of those two values.
- * @SINCE_1_1.37
+ * @SINCE_1_1.38
*/
NEAREST_MIPMAP_LINEAR,
* uses the GL_LINEAR criterion (a weighted average of the texture elements that are closest
* to the specified texture coordinates) to produce a texture value from each mipmap. The final
* texture value is a weighted average of those two values.
- * @SINCE_1_1.37
+ * @SINCE_1_1.38
*/
LINEAR_MIPMAP_LINEAR