2009-05-08 13:28:41 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
|
|
|
|
* Copyright (c) 2013, The OpenClonk Team and contributors
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
|
|
* See accompanying file "TRADEMARK" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2009-05-08 13:28:41 +00:00
|
|
|
*/
|
|
|
|
/* Implemention of NewGfx - without gfx */
|
|
|
|
|
|
|
|
#ifndef INC_StdNoGfx
|
|
|
|
#define INC_StdNoGfx
|
|
|
|
|
2012-04-27 17:04:43 +00:00
|
|
|
#include <C4Draw.h>
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2011-10-03 14:34:08 +00:00
|
|
|
class CStdNoGfx : public C4Draw
|
2009-05-08 13:28:41 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-03-31 14:30:40 +00:00
|
|
|
CStdNoGfx();
|
2009-05-08 13:28:41 +00:00
|
|
|
virtual bool BeginScene() { return true; }
|
|
|
|
virtual void EndScene() { }
|
|
|
|
virtual void TaskOut() { }
|
|
|
|
virtual void TaskIn() { }
|
|
|
|
virtual bool UpdateClipper() { return true; }
|
|
|
|
virtual bool OnResolutionChanged(unsigned int, unsigned int) { return true; }
|
2014-12-22 16:15:46 +00:00
|
|
|
virtual bool PrepareMaterial(StdMeshMatManager& mat_manager, StdMeshMaterialLoader& loader, StdMeshMaterial& mat);
|
2011-10-03 14:07:07 +00:00
|
|
|
virtual bool PrepareRendering(C4Surface *) { return true; }
|
2009-05-08 13:28:41 +00:00
|
|
|
virtual void FillBG(DWORD dwClr=0) { }
|
2011-09-30 20:15:51 +00:00
|
|
|
virtual void PerformMesh(StdMeshInstance &, float, float, float, float, DWORD, C4BltTransform* pTransform) { }
|
2012-06-08 14:19:36 +00:00
|
|
|
virtual void PerformLine(C4Surface *, float, float, float, float, DWORD, float) { }
|
2011-10-03 14:07:07 +00:00
|
|
|
virtual void PerformPix(C4Surface *, float, float, DWORD) { }
|
2009-05-08 13:28:41 +00:00
|
|
|
virtual bool InitDeviceObjects() { return true; }
|
|
|
|
virtual bool RestoreDeviceObjects() { return true; }
|
|
|
|
virtual bool InvalidateDeviceObjects() { return true; }
|
|
|
|
virtual bool DeleteDeviceObjects() { return true; }
|
|
|
|
virtual bool DeviceReady() { return true; }
|
2015-06-17 19:30:56 +00:00
|
|
|
virtual bool CreatePrimarySurfaces(unsigned int, unsigned int, int, unsigned int);
|
2009-05-08 13:28:41 +00:00
|
|
|
virtual bool SetOutputAdapter(unsigned int) { return true; }
|
2015-06-17 19:30:56 +00:00
|
|
|
|
|
|
|
virtual void PerformMultiPix(C4Surface *, const C4BltVertex *, unsigned int) {}
|
|
|
|
virtual void PerformMultiLines(C4Surface *, const C4BltVertex *, unsigned int, float) {}
|
|
|
|
virtual void PerformMultiTris(C4Surface *, const C4BltVertex *, unsigned int, const C4BltTransform *, C4TexRef *, C4TexRef *, C4TexRef *, DWORD) {}
|
2009-05-08 13:28:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|