Fission FSN
Loading...
Searching...
No Matches
fsCRenderTexture.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCLine.h
4*
5* Purpose: Simple line
6*
7*********************************************************************/
8
9#ifndef fsCRenderTexturehdr
10#define fsCRenderTexturehdr
11
14
15class fsSColour;
16struct fsPoint;
17class fsINode;
18class fsCSprite;
19class fsIScene;
20class fsIImage;
21class fsRect;
22
24{
26
27public:
28
29 void resize(fsPoint const& pSize);
30
31 void screenShotStart();
32 void screenShotEnd(const fsStr& pSceneName);
33 void shadersCreate(const fsStr& pVertex, const fsStr& pFragment);
34 void screenEffectParamsSet(fsPoint const& pFocusPos, fsF32 pRadius);
36
37 void targetSet();
38 void partialEnd();
39 void partialStart();
40 void targetClear();
41
42 void captureRegionSave(const fsRect& pCaptureRect, fsPoint const& pOutputDimensions, fsCResourceName const& pFilename);
43 // Writes the texture's own content (not the screen) to pPath, absolute; .png keeps alpha, .jpg
44 // doesn't. pDone(saved) follows once the file is written, possibly a frame later; at once with false
45 // where the backend can't read textures back.
46 void contentSave(const fsStr& pPath, std::function<void(fsBool)> pDone);
47 void recolour(fsSColour4B const& pOld, fsSColour4B const& pNew);
48 void paintWithSpriteBrush(fsPoint const& pPos);
49 void paint(std::vector<fsPoint> const& pPos, fsSColour4B const& pColour);
50
51 void brushSet(fsCResourceName const& pBrush);
52
53 void initialiseScreen(fsPoint pDimensions);
54 void initialiseSolution(fsIImage* pSolution);
55
57 ~fsCRenderTexture() override = default;
58
59protected:
60
61 void matrixApplyDo(const fsAffineMtx2d& pRenderMatrix) override;
62
64
65private:
66
67};
68
69#endif
Definition fsAffineMtx2d.h:27
void screenEffectParamsSet(fsPoint const &pFocusPos, fsF32 pRadius)
Definition fsCRenderTexture.cpp:26
void shadersCreate(const fsStr &pVertex, const fsStr &pFragment)
Definition fsCRenderTexture.cpp:21
void partialEnd()
Definition fsCRenderTexture.cpp:41
void initialiseSolution(fsIImage *pSolution)
Definition fsCRenderTexture.cpp:111
friend class fsCVertexStreamLineRenderData
Definition fsCRenderTexture.h:25
void screenShotStart()
Definition fsCRenderTexture.cpp:6
void resize(fsPoint const &pSize)
Definition fsCRenderTexture.cpp:16
void targetSet()
Definition fsCRenderTexture.cpp:36
void initialiseScreen(fsPoint pDimensions)
Definition fsCRenderTexture.cpp:106
void matrixApplyDo(const fsAffineMtx2d &pRenderMatrix) override
Definition fsCRenderTexture.cpp:91
void recolour(fsSColour4B const &pOld, fsSColour4B const &pNew)
Definition fsCRenderTexture.cpp:66
void screenEffectParamsClear()
Definition fsCRenderTexture.cpp:31
void brushSet(fsCResourceName const &pBrush)
Definition fsCRenderTexture.cpp:71
void screenShotEnd(const fsStr &pSceneName)
Definition fsCRenderTexture.cpp:11
void contentSave(const fsStr &pPath, std::function< void(fsBool)> pDone)
Definition fsCRenderTexture.cpp:61
void paint(std::vector< fsPoint > const &pPos, fsSColour4B const &pColour)
Definition fsCRenderTexture.cpp:81
void captureRegionSave(const fsRect &pCaptureRect, fsPoint const &pOutputDimensions, fsCResourceName const &pFilename)
Definition fsCRenderTexture.cpp:56
void paintWithSpriteBrush(fsPoint const &pPos)
Definition fsCRenderTexture.cpp:76
void partialStart()
Definition fsCRenderTexture.cpp:46
fsCRenderTexture()
Definition fsCRenderTexture.cpp:116
~fsCRenderTexture() override=default
void targetClear()
Definition fsCRenderTexture.cpp:51
fsIRenderTextureRenderData * renderDataGet() const override
Definition fsCRenderTexture.cpp:86
Definition fsCResourceName.h:32
Definition fsCSprite.h:24
Definition fsIImage.h:21
Definition fsINode.h:30
Definition fsIRenderTextureRenderData.h:32
fsIRenderableQuantum()
Definition fsIRenderableQuantum.cpp:28
Definition fsIScene.h:18
Definition fsRect.h:16
Definition fsSColour.h:20
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26
float fsF32
Definition fsBaseTypes.h:28
Definition fsPoint.h:17
Definition fsSColour.h:54