Gah - a solution with more questions. – EntropicLqd
UE3:Texture2D (UDK)
From Unreal Wiki, The Unreal Engine Documentation Site
- Package:
- Engine
- Direct subclasses:
- ShadowMapTexture2D, TerrainWeightMapTexture, TextureFlipBook
- This class in other games:
- UT3
| This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
[edit] Properties
[edit] Property group 'Texture2D'
[edit] AddressX
Type: Texture.TextureAddress
The addressing mode to use for the X axis.
[edit] AddressY
Type: Texture.TextureAddress
The addressing mode to use for the Y axis.
[edit] bGlobalForceMipLevelsToBeResident
Type: bool
Modifiers: const
Global/ serialized version of ForceMiplevelsToBeResident.
[edit] Internal variables
[edit] bForceMiplevelsToBeResident
Type: bool
Modifiers: transient
Override whether to fully stream even if texture hasn't been rendered.
[edit] bHasBeenLoadedFromPersistentArchive
Type: bool
Modifiers: transient, const
Whether the texture has been loaded from a persistent archive. We keep track of this in order to not stream textures that are being re-imported over as they will have a linker but won't have been serialized from disk and are therefore not streamable.
[edit] bHasCancelationPending
Type: bool
Modifiers: transient, const
Whether the current texture mip change request is pending cancelation.
[edit] bIsStreamable
Type: bool
Modifiers: transient, const
Whether the texture is currently streamable or not.
[edit] FirstResourceMemMip
Type: int
Modifiers: private, const, native, transient
keep track of first mip level used for ResourceMem creation
[edit] ForceMipLevelsToBeResidentTimestamp
Type: float
Modifiers: private, transient
WorldInfo timestamp that tells the streamer to force all miplevels to be resident up until that time.
[edit] Format
Type: Texture.EPixelFormat
Modifiers: const
The format of the texture data.
[edit] Mips
Type: Object.IndirectArray_Mirror{TIndirectArray<FTexture2DMipMap>}
Modifiers: native, const
The texture's mip-map data.
[edit] MipTailBaseIdx
Type: int
Modifiers: const
Keep track of the first mip level stored in the packed miptail. it's set to highest mip level if no there's no packed miptail
[edit] OriginalSizeX
Type: int
Modifiers: const
The original width of the texture source art we imported from.
[edit] OriginalSizeY
Type: int
Modifiers: const
The original height of the texture source art we imported from.
[edit] PendingMipChangeRequestStatus
Type: Object.ThreadSafeCounter{mutable FThreadSafeCounter}
Modifiers: native, transient, const
Thread safe counter indicating status of mip change request. The below defines are mirrored in UnTex.h.
>= 3 == TEXTURE_STATUS_REQUEST_IN_FLIGHT - a request has been kicked off and is in flight == 2 == TEXTURE_READY_FOR_FINALIZATION - initial request has completed and finalization needs to be kicked off == 1 == TEXTURE_FINALIZATION_IN_PROGRESS - finalization has been kicked off and is in progress == 0 == TEXTURE_READY_FOR_REQUESTS - there are no pending requests/ all requests have been fulfilled == -1 == TEXTURE_PENDING_INITIALIZATION - the renderer hasn't created the resource yet
[edit] RequestedMips
Type: int
Modifiers: transient, const
Number of miplevels the texture should have resident.
[edit] ResidentMips
Type: int
Modifiers: transient, const
Number of miplevels currently resident.
[edit] ResourceMem
Type: pointer{FTexture2DResourceMem}
Modifiers: private, const, native, transient
memory used for directly loading bulk mip data
[edit] SizeX
Type: int
Modifiers: const
The width of the texture.
[edit] SizeY
Type: int
Modifiers: const
The height of the texture.
[edit] StreamableTexturesLink
Type: TextureLinkedListMirror{TLinkedList<UTexture2D*>}
Modifiers: private, native, const, duplicatetransient, noimport
This texture's link in the global streamable texture list.
[edit] TextureFileCacheGuid
Type: Object.Guid
Modifiers: native, const
ID generated whenever the texture is changed so that its bulk data can be updated in the TextureFileCache during cook
[edit] TextureFileCacheName
Type: name
Name of texture file cache texture mips are stored in, NAME_None if it is not part of one.
[edit] Timer
Type: float
Modifiers: private, const, native, transient
Used for various timing measurements, e.g. streaming latency.
[edit] Structs
[edit] Texture2DMipMap
Modifiers: native
A mip-map of the texture.
- Object.UntypedBulkData_Mirror{FTextureMipBulkData} Data
- int SizeX
- int SizeY
[edit] TextureLinkedListMirror
Mirror helper structure for linked list of texture objects. The linked list should NOT be traversed by the garbage collector, which is why Element is declared as a pointer.
[edit] Functions
[edit] Static native functions
[edit] Create
creates and initializes a new Texture2D with the requested settings
[edit] Native functions
[edit] SetForceMipLevelsToBeResident
Tells the streaming system that it should force all mip-levels to be resident for a number of seconds.
