Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.ScriptedTexture


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
//=============================================================================
// ScriptedTexture: A scriptable Unreal texture
// This is a built-in Unreal class and it shouldn't be modified.
//=============================================================================
class ScriptedTexture extends BitmapMaterial
	native;

var const transient int			RenderTarget;
var const transient Viewport	RenderViewport;

var Actor				Client;
var() bool				bSerializeClient;

#if IG_EXTERNAL_CAMERAS
// if true will call PreScriptedTextureRendered on the client
var bool                bNotifyClientBeforeRendering;
#endif

var transient int		Revision;
var transient const int	OldRevision;
#if IG_TRIBES3	// rowan: handle bad hardware that doesnt set render targets
var transient int		Invalid;
#endif


cpptext
{
	void Render(FRenderInterface* RI);

	virtual void Serialize( FArchive& Ar );
	virtual UBitmapMaterial* Get(FTime Time,UViewport* Viewport);
	virtual FBaseTexture* GetRenderInterface();
	virtual void Destroy();
	virtual void PostEditChange();
    
	// IG_SHARED note: we have moved code out of execSetSize() and into its own function in UnScriptedTexture.cpp
    void SetSize(INT Width, INT Height);
};

native final function SetSize(int Width,int Height);

native final function DrawText(int StartX,int StartY,coerce string Text,Font Font,Color Color);
native final function TextSize(coerce string Text,Font Font,out int Width,out int Height);
native final function DrawTile(float X,float Y,float XL,float YL,float U,float V,float UL,float VL,Material Material,Color Color);

#if IG_EXTERNAL_CAMERAS
native final function DrawPortal(int X, int Y, int Width, int Height, Actor CamActor, vector CamLocation, rotator CamRotation, optional int FOV, optional bool ClearZ, optional bool RenderPlayer);
#else
native final function DrawPortal(int X,int Y,int Width,int Height,Actor CamActor,vector CamLocation,rotator CamRotation,optional int FOV,optional bool ClearZ);
#endif // IG_EXTERNAL_CAMERAS

defaultproperties
{
	bSerializeClient=false

	OldRevision=-1
	Invalid=0

#if IG_RENDERER	// rowan: set Materialtype for quick casts
	MaterialType = MT_ScriptedTexture
#endif
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: �t 9.9.2004 16:25:34.000 - Creation time: st 23.5.2018 00:10:46.868 - Created with UnCodeX