9#ifndef fsCNativeRenderTexturehdr
10#define fsCNativeRenderTexturehdr
41 struct fsSMutableTexture
47 mPixels[y * stride() + x * bytesPerPixel() + 0] = mPaintColour.
mR;
48 mPixels[y * stride() + x * bytesPerPixel() + 1] = mPaintColour.
mG;
49 mPixels[y * stride() + x * bytesPerPixel() + 2] = mPaintColour.
mB;
50 mPixels[y * stride() + x * bytesPerPixel() + 3] = mPaintColour.
mA;
56 mPixels[y * stride() + x * bytesPerPixel() + 0],
57 mPixels[y * stride() + x * bytesPerPixel() + 1],
58 mPixels[y * stride() + x * bytesPerPixel() + 2],
59 mPixels[y * stride() + x * bytesPerPixel() + 3]);
62 fsU32 bytesPerPixel()
const {
return mBpp / 8; }
63 fsS32 stride()
const {
return mWidth * bytesPerPixel(); }
64 fsS32 len()
const {
return stride() * mHeight; }
69 fsSColour4B mPaintColour;
72 void updateDynamicTexturePixels()
const;
73 void getDynamicTexturePixels();
77 static fsSMutableTexture* mCurrMutableTexture;
79 RenderTexture2D mDynamicTexture;
Definition fsCNativeRenderTexture.h:31
void initialiseScreenDo(fsPoint pDimensions)
friend class fsITexture
Definition fsCNativeRenderTexture.h:32
void targetSetDo() override
void initialiseSolutionDo(const fsIImage *pSolution)
void targetClearDo() override
~fsCNativeRenderTexture() override
Definition fsIRenderableTexture.h:39
unsigned int fsU32
Definition fsBaseTypes.h:21
unsigned char fsU8
Definition fsBaseTypes.h:15
int fsS32
Definition fsBaseTypes.h:20
decltype(sizeof(void *)) size_t
Definition doctest.h:524
Definition fsSColour.h:54
fsU8 mG
Definition fsSColour.h:82
fsU8 mR
Definition fsSColour.h:81
fsU8 mB
Definition fsSColour.h:83
fsU8 mA
Definition fsSColour.h:84