namespace Dali
{
-class TestGraphicsProgram : public Graphics::Program
+class TestGraphicsProgramImpl
{
public:
- TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats);
+ TestGraphicsProgramImpl(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats, std::vector<UniformData>& customUniforms);
// For API
const TestGraphicsReflection& GetReflection() const
}
// For tests
- TestGraphicsReflection& GetProgamReflection()
+ TestGraphicsReflection& GetProgramReflection()
{
return mReflection;
}
- bool GetParameter(uint32_t parameterId, void* outData );
+ bool GetParameter(uint32_t parameterId, void* outData);
public:
TestGlAbstraction& mGl;
TestGraphicsReflection mReflection;
};
+class TestGraphicsProgram : public Graphics::Program
+{
+public:
+ TestGraphicsProgram(TestGraphicsProgramImpl* impl);
+
+ const TestGraphicsReflection& GetReflection() const
+ {
+ return mImpl->GetReflection();
+ }
+ bool GetParameter(uint32_t parameterId, void* outData)
+ {
+ return mImpl->GetParameter(parameterId, outData);
+ }
+
+ TestGraphicsReflection& GetProgamReflection()
+ {
+ return mImpl->GetProgramReflection();
+ }
+
+public:
+ TestGraphicsProgramImpl* mImpl;
+};
+
} // namespace Dali
#endif //DALI_TEST_GRAPHICS_PROGRAM_H