mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00

Change-Id: Ie1a9d1b6632433413098282c1cfaf4cf8e1cf9b9 Signed-off-by: Prudhvi Raj Vasireddi <prudhvi.raj@samsung.com>
20 lines
449 B
C++
20 lines
449 B
C++
#ifndef _TVG_GL_SHADER_H_
|
|
#define _TVG_GL_SHADER_H_
|
|
|
|
class GlShader
|
|
{
|
|
public:
|
|
static shared_ptr<GlShader> gen(const char * vertSrc, const char * fragSrc);
|
|
|
|
uint32_t getVertexShader();
|
|
uint32_t getFragmentShader();
|
|
|
|
private:
|
|
void createShader(const char* vertSrc, const char* fragSrc);
|
|
uint32_t complileShader(uint32_t type, char* shaderSrc);
|
|
|
|
uint32_t mVtShader;
|
|
uint32_t mFrShader;
|
|
};
|
|
|
|
#endif /* _TVG_GL_SHADER_H_ */
|