OpenClonk
C4DrawT.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 /* Implemention of NewGfx - without gfx */
17 
18 #ifndef INC_StdNoGfx
19 #define INC_StdNoGfx
20 
21 #include "graphics/C4Draw.h"
22 
23 class CStdNoGfx : public C4Draw
24 {
25 public:
26  CStdNoGfx();
27  bool UpdateClipper() override { return true; }
28  bool OnResolutionChanged(unsigned int, unsigned int) override { return true; }
29  bool PrepareMaterial(StdMeshMatManager& mat_manager, StdMeshMaterialLoader& loader, StdMeshMaterial& mat) override;
30  bool PrepareRendering(C4Surface *) override { return true; }
31  bool EnsureMainContextSelected() override { return true; }
32  bool PrepareSpriteShader(C4Shader& shader, const char* name, int ssc, C4GroupSet* pGroups, const char* const* additionalDefines, const char* const* additionalSlices) override { return true; }
33  void FillBG(DWORD dwClr=0) override { }
34  void PerformMesh(StdMeshInstance &, float, float, float, float, DWORD, C4BltTransform* pTransform) override { }
35  bool RestoreDeviceObjects() override;
36  bool InvalidateDeviceObjects() override { return true; }
37  bool DeviceReady() override { return true; }
38 
39  void PerformMultiPix(C4Surface *, const C4BltVertex *, unsigned int, C4ShaderCall*) override {}
40  void PerformMultiLines(C4Surface *, const C4BltVertex *, unsigned int, float, C4ShaderCall*) override {}
41  void PerformMultiTris(C4Surface *, const C4BltVertex *, unsigned int, const C4BltTransform *, C4TexRef *, C4TexRef *, C4TexRef *, DWORD, C4ShaderCall*) override {}
42 };
43 
44 #endif
uint32_t DWORD
Definition: C4Draw.h:85
bool OnResolutionChanged(unsigned int, unsigned int) override
Definition: C4DrawT.h:28
bool PrepareSpriteShader(C4Shader &shader, const char *name, int ssc, C4GroupSet *pGroups, const char *const *additionalDefines, const char *const *additionalSlices) override
Definition: C4DrawT.h:32
void FillBG(DWORD dwClr=0) override
Definition: C4DrawT.h:33
void PerformMultiPix(C4Surface *, const C4BltVertex *, unsigned int, C4ShaderCall *) override
Definition: C4DrawT.h:39
bool PrepareRendering(C4Surface *) override
Definition: C4DrawT.h:30
void PerformMultiTris(C4Surface *, const C4BltVertex *, unsigned int, const C4BltTransform *, C4TexRef *, C4TexRef *, C4TexRef *, DWORD, C4ShaderCall *) override
Definition: C4DrawT.h:41
bool DeviceReady() override
Definition: C4DrawT.h:37
void PerformMultiLines(C4Surface *, const C4BltVertex *, unsigned int, float, C4ShaderCall *) override
Definition: C4DrawT.h:40
void PerformMesh(StdMeshInstance &, float, float, float, float, DWORD, C4BltTransform *pTransform) override
Definition: C4DrawT.h:34
CStdNoGfx()
Definition: C4DrawT.cpp:20
bool RestoreDeviceObjects() override
Definition: C4DrawT.cpp:25
bool PrepareMaterial(StdMeshMatManager &mat_manager, StdMeshMaterialLoader &loader, StdMeshMaterial &mat) override
Definition: C4DrawT.cpp:32
bool UpdateClipper() override
Definition: C4DrawT.h:27
bool InvalidateDeviceObjects() override
Definition: C4DrawT.h:36
bool EnsureMainContextSelected() override
Definition: C4DrawT.h:31