1 #include <dali-test-suite-utils.h>
3 #include <dali/graphics-api/graphics-controller.h>
4 #include <dali/internal/graphics/gles/egl-graphics-controller.h>
5 #include <test-graphics-application.h>
6 //#include <dali/graphics-api/graphics-api-buffer.h>
8 int UtcDaliGraphicsCreateGeometry(void)
10 // Initialize actual egl graphics controller (without initializing egl!)
11 TestGraphicsApplication app;
19 std::vector<Vertex> someData(100);
20 //Graphics::Controller& graphicsController = app.GetGraphicsController();
22 //Graphics::BufferCreateInfo createInfo;
24 // .SetBufferUsageFlags(BufferUsage::VERTEX_BUFFER)
25 // .SetSize(someData.size();
27 //auto buffer = graphicsController->CreateBuffer(createInfo);
28 //std::unique_ptr<Graphics::Memory> memory = graphicsController.MapBufferRange(buffer, 0, someData.size());
29 //uint32_t* memory = memory->Lock();
30 //std::memcpy(memory, &someData[0], someData.size()*sizeof(Vertex));
33 //graphicsController.SubmitCommands(emptyCommand);
35 // Test that data has been uploaded to GL, e.g. test that GPU buffer has been created
36 //auto& gl = app.GetGlAbstraction();
37 //auto& bufferDataCalls = gl.GetBufferDataCalls();
38 //DALI_TEST_EQUALS(bufferDataCalls.size(), 1u, TEST_LOCATION);
39 //DALI_TEST_EQUALS(bufferDataCalls[0], someData.size(), TEST_LOCATION);