There is no spoon
Difference between revisions of "UE3:Canvas (UDK)"
(Talk) |
m (1 revision: class descriptions for UDK January update (part 1)) |
(No difference)
|
Revision as of 05:37, 17 January 2010
Object >> Canvas |
Contents
- 1 Properties
- 2 Structs
- 3 Functions
- 3.1 Static functions
- 3.2 Native functions
- 3.2.1 DeProject
- 3.2.2 Draw2DLine
- 3.2.3 DrawColorizedTile
- 3.2.4 DrawMaterialTile
- 3.2.5 DrawMaterialTileClipped
- 3.2.6 DrawRotatedMaterialTile
- 3.2.7 DrawRotatedTile
- 3.2.8 DrawText
- 3.2.9 DrawTextureDoubleLine
- 3.2.10 DrawTextureLine
- 3.2.11 DrawTile
- 3.2.12 DrawTileClipped
- 3.2.13 DrawTileStretched
- 3.2.14 PopTransform
- 3.2.15 Project
- 3.2.16 PushTranslationMatrix
- 3.2.17 SetDrawColor
- 3.2.18 SetPos
- 3.2.19 StrLen
- 3.2.20 TextSize
- 3.3 Events
- 3.4 Other instance functions
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. |
Canvas: A drawing canvas.
Properties
bCenter
Type: bool
Whether to center the text.
bNoSmooth
Type: bool
Don't bilinear filter.
Canvas
Type: pointer{FCanvas}
Modifiers: native, const
ClipX
Type: float
ClipY
Type: float
Bottom right clipping region.
ColorModulate
Type: Object.Plane
Default value:
Member | Value |
---|---|
W | 1.0 |
X | 1.0 |
Y | 1.0 |
Z | 1.0 |
CurX
Type: float
CurY
Type: float
Current position for drawing.
CurYL
Type: float
Largest Y size since DrawText.
DefaultTexture
Type: Texture2D
Default value: Texture2D'EngineResources.WhiteSquareTexture'
DrawColor
Type: Object.Color
Color for drawing.
Default value:
Member | Value |
---|---|
A | 255 |
B | 127 |
G | 127 |
R | 127 |
Font
Type: Font
Font for DrawText.
Default value: Font'EngineFonts.SmallFont'
OrgX
Type: float
OrgY
Type: float
Origin for drawing.
SceneView
Type: pointer{FSceneView}
Modifiers: native, const
SizeX
Type: int
Modifiers: const
SizeY
Type: int
Modifiers: const
Structs
CanvasIcon
Modifiers: native
Holds texture information with UV coordinates as well.
- Texture Texture
- Source texture
- float U
- UV coords
- float V
- UV coords
- float UL
- UV coords
- float VL
- UV coords
DepthFieldGlowInfo
Modifiers: native
info for glow when using depth field rendering
- bool bEnableGlow
- whether to turn on the outline glow (depth field fonts only)
- Object.LinearColor GlowColor
- base color to use for the glow
- Object.Vector2D GlowOuterRadius
- if bEnableGlow, outline glow outer radius (0 to 1, 0.5 is edge of character silhouette)
glow influence will be 0 at GlowOuterRadius.X and 1 at GlowOuterRadius.Y
- Object.Vector2D GlowInnerRadius
- if bEnableGlow, outline glow inner radius (0 to 1, 0.5 is edge of character silhouette)
glow influence will be 1 at GlowInnerRadius.X and 0 at GlowInnerRadius.Y
FontRenderInfo
Modifiers: native
information used in font rendering
- bool bClipText
- whether to clip text
- bool bEnableShadow
- whether to turn on shadowing
- DepthFieldGlowInfo GlowInfo
- depth field glow parameters (only usable if font was imported with a depth field)
Functions
Static functions
CreateFontRenderInfo
constructor for FontRenderInfo
Native functions
DeProject
transforms 2D screen coordinates into a 3D world-space origin and direction
Parameters:
- ScreenPos - screen coordinates in pixels
- WorldOrigin - out) - world-space origin vector
- WorldDirection - out) - world-space direction vector
Draw2DLine
DrawColorizedTile
DrawMaterialTile
Draws the emissive channel of a material to an axis-aligned quad at CurX,CurY.
Parameters:
- Mat - The material which contains the emissive expression to render.
- XL - The width of the quad in pixels.
- YL - The height of the quad in pixels.
- U - The U coordinate of the quad's upper left corner, in normalized coordinates.
- V - The V coordinate of the quad's upper left corner, in normalized coordinates.
- UL - The range of U coordinates which is mapped to the quad.
- VL - The range of V coordinates which is mapped to the quad.
DrawMaterialTileClipped
DrawRotatedMaterialTile
DrawRotatedTile
DrawText
DrawTextureDoubleLine
DrawTextureLine
DrawTile
DrawTileClipped
DrawTileStretched
PopTransform
Pops the topmost matrix from the canvas transform stack.
Project
Convert a 3D vector to a 2D screen coords.
PushTranslationMatrix
Pushes a translation matrix onto the canvas.
Parameters:
- TranslationVector - Translation vector to use to create the translation matrix.
SetDrawColor
SetPos
StrLen
TextSize
Events
Reset
Other instance functions
DrawBox
DrawDebugGraph
Draws a graph comparing 2 variables. Useful for visual debugging and tweaking.
Parameters:
- Title - Label to draw on the graph, or "" for none
- ValueX - X-axis value of the point to plot
- ValueY - Y-axis value of the point to plot
- UL_X - X screen coord of the upper-left corner of the graph
- UL_Y - Y screen coord of the upper-left corner of the graph
- W - Width of the graph, in pixels
- H - Height of the graph, in pixels
- RangeX - Range of values expressed by the X axis of the graph
- RangeY - Range of values expressed by the Y axis of the graph
DrawIcon
Draw a CanvasIcon at the desired canvas position.
DrawIconSection
Draw a subsection of a CanvasIcon at the desired canvas position.
DrawRect
DrawTextCentered
DrawTextRA
Draws text right aligned from the current position.
DrawTexture
MakeIcon
Fake CanvasIcon constructor.