Add XCUI native image UV support
This commit is contained in:
@@ -193,6 +193,15 @@ public:
|
||||
m_currentFrame.placeholderSubtitle);
|
||||
}
|
||||
|
||||
if (m_currentFrame.showingSurfaceImage) {
|
||||
EnsureOverlayDrawList().AddImage(
|
||||
m_currentFrame.session.canvasRect,
|
||||
m_currentFrame.surfaceImage.texture,
|
||||
::XCEngine::UI::UIColor(1.0f, 1.0f, 1.0f, 1.0f),
|
||||
m_currentFrame.surfaceImage.uvMin,
|
||||
m_currentFrame.surfaceImage.uvMax);
|
||||
}
|
||||
|
||||
if (request.drawPreviewFrame) {
|
||||
DrawOutlineRect(
|
||||
m_currentFrame.session.canvasRect,
|
||||
|
||||
@@ -502,10 +502,10 @@ void XCUIRHICommandCompiler::Compile(
|
||||
compiled = AppendClippedTexturedRect(
|
||||
outCompiledDrawData.texturedVertices,
|
||||
command.rect,
|
||||
0.0f,
|
||||
0.0f,
|
||||
1.0f,
|
||||
1.0f,
|
||||
command.uvMin.x,
|
||||
command.uvMin.y,
|
||||
command.uvMax.x,
|
||||
command.uvMax.y,
|
||||
command.color,
|
||||
currentClipRect);
|
||||
if (compiled) {
|
||||
|
||||
Reference in New Issue
Block a user