There is no spoon

Difference between revisions of "UE3:Texture2DDynamic (UDK)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Talk)
 
m (1 revision: class descriptions for UDK January update (part 5))
 
(One intermediate revision by one other user not shown)
Line 58: Line 58:
 
{{code|static native noexport final function {{cl|Texture2DDynamic}} '''Create''' ([[int]] '''InSizeX''', [[int]] '''InSizeY''', optional {{tl|EPixelFormat|Texture|enums}} '''InFormat''', optional [[bool]] '''InIsResolveTarget''')}}
 
{{code|static native noexport final function {{cl|Texture2DDynamic}} '''Create''' ([[int]] '''InSizeX''', [[int]] '''InSizeY''', optional {{tl|EPixelFormat|Texture|enums}} '''InFormat''', optional [[bool]] '''InIsResolveTarget''')}}
  
<!-- enter function description -->
+
Creates and initializes a new Texture2DDynamic with the requested settings
  
 
===Native functions===
 
===Native functions===

Latest revision as of 05:48, 17 January 2010

UDK Object >> Surface >> Texture >> Texture2DDynamic
Package: 
Engine


Properties[edit]

bIsResolveTarget[edit]

Type: bool

Modifiers: native, transient

Whether the texture can be used as a resolve target.

Format[edit]

Type: Texture.EPixelFormat

Modifiers: native, transient

The format of the texture.

NumMips[edit]

Type: int

Modifiers: native, transient

The number of mip-maps in the texture.

SizeX[edit]

Type: int

Modifiers: native, transient

The width of the texture.

SizeY[edit]

Type: int

Modifiers: native, transient

The height of the texture.

Default values[edit]

Property Value
NeverStream True

Functions[edit]

Static native functions[edit]

Create[edit]

static native noexport final function Texture2DDynamic Create (int InSizeX, int InSizeY, optional Texture.EPixelFormat InFormat, optional bool InIsResolveTarget)

Creates and initializes a new Texture2DDynamic with the requested settings

Native functions[edit]

Init[edit]

native final function Init (int InSizeX, int InSizeY, optional Texture.EPixelFormat InFormat, optional bool InIsResolveTarget)

Initializes the texture with 1 mip-level and creates the render resource.

Parameters:

  • InSizeX - Width of the texture, in texels
  • InSizeY - Height of the texture, in texels
  • InFormat - Format of the texture, defaults to PF_A8R8G8B8
  • InIsResolveTarget - Whether the texture can be used as a resolve target