1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/********************************************************************
*
*	File:		fsCNativeRenderTexture.h
*
*	Purpose:	bgfx implementation of a render texture.
*
*				TODO: back with a bgfx frame buffer - currently a
*				non-crashing stub, matching the state of the raylib
*				backend.
*
*********************************************************************/

#ifndef fsCNativeRenderTexturehdr
#define fsCNativeRenderTexturehdr

#include "../../../fsIRenderableTexture.h"
#include "fsINative.h"
class fsIImage;


class fsCNativeRenderTexture : public fsIRenderableTexture
{
	friend class fsITexture;

public:

    void initialiseScreenDo(fsPoint pDimensions);
    void initialiseSolutionDo(fsIImage* pSolution);

	virtual ~fsCNativeRenderTexture();<--- Destructor in derived class
	fsCNativeRenderTexture();

protected:

	void targetSetDo() override;<--- Function in derived class
	void targetClearDo() override;<--- Function in derived class

	void brushSetDo(fsCResourceName const& pBrushFilename) override;<--- Function in derived class
	void saveDo(fsCResourceName const& pFilename) override;<--- Function in derived class

	void recolourDo(fsSColour4B const& pOld, fsSColour4B const& pNew) override;<--- Function in derived class
	void paintWithSpriteBrushDo(fsPoint const& pPos) override;<--- Function in derived class
	void paintDo(std::vector<fsPoint> const& pPos, fsSColour4B const& pColour) override;<--- Function in derived class

	void renderDo() override;

private:

};

#endif