1 // Copyright (C) 2014 Patryk Nadrowski
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in Irrlicht.h
\r
5 #ifndef __C_OGLES2_RENDERER_2D_H_INCLUDED__
\r
6 #define __C_OGLES2_RENDERER_2D_H_INCLUDED__
\r
8 #include "IrrCompileConfig.h"
\r
10 #ifdef _IRR_COMPILE_WITH_OGLES2_
\r
12 #include "COGLES2MaterialRenderer.h"
\r
19 class COGLES2Renderer2D : public COGLES2MaterialRenderer
\r
22 COGLES2Renderer2D(const c8* vertexShaderProgram, const c8* pixelShaderProgram, COGLES2Driver* driver, bool withTexture);
\r
23 ~COGLES2Renderer2D();
\r
25 virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
\r
26 bool resetAllRenderstates, IMaterialRendererServices* services);
\r
28 virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype);
\r