]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/OpenGL/Renderer2D.h
Fix line endings in the new driver
[irrlicht.git] / source / Irrlicht / OpenGL / Renderer2D.h
1 // Copyright (C) 2014 Patryk Nadrowski
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in Irrlicht.h
4
5 #pragma once
6
7 #include "MaterialRenderer.h"
8
9 namespace irr
10 {
11 namespace video
12 {
13
14 class COpenGL3Renderer2D : public COpenGL3MaterialRenderer
15 {
16 public:
17         COpenGL3Renderer2D(const c8* vertexShaderProgram, const c8* pixelShaderProgram, COpenGL3DriverBase* driver, bool withTexture);
18         ~COpenGL3Renderer2D();
19
20         virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
21                 bool resetAllRenderstates, IMaterialRendererServices* services);
22
23         virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype);
24
25 protected:
26         bool WithTexture;
27         s32 ThicknessID;
28         s32 TextureUsageID;
29 };
30
31
32 }
33 }