// ------------------------------------------------------------------------------------------------ // ___ __ ___ ___ ® // Copyright © 2009-2010, All rights reserved __)| /\ \__|| / \ / | / // Playlogic games factory, Breda | |___/__\ __||___\__/ \__| | \___ // // Resource for the Text Texture // // ------------------------------------------------------------------------------------------------ #ifndef __PLTEXTTEXTURERESOURCE_H__ #define __PLTEXTTEXTURERESOURCE_H__ struct FPLTextTextureResource : public FTextureRenderTarget2DResource { public: /** * Constructor * @param InOwner - 2d texture object to create a resource for */ FPLTextTextureResource( const class UPLTextTexture* InOwner ); /** * Clear contents of the render target */ virtual void UpdateResource(); private: /** The UTextureRenderTarget2D which this resource represents. */ const class UPLTextTexture* Owner; TArray< FString > TextLines; INT TextSizeX, TextSizeY; FLinearColor TextColor, BackgroundColor; UBOOL bMaskedText; }; #endif