View Issue Details

IDProjectCategoryView StatusLast Update
0008916New Feature Requests[All Projects] Generalpublic2017-06-18 20:56
ReporterAboShanabAssigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Summary0008916: [Request] dxSetRenderTarget work for GUI
Description

hello, i need from the team make dxSetRenderTarget work for gui it's will to make gui very nice, to use dxSetShaderTransform for guis..

Thanks

Steps To Reproduce

local shader = dxCreateShader ( "shader.fx" )

addEventHandler("onClientResourceStart", resourceRoot,
function ( )
window = guiCreateWindow ( 80, 100, 80, 100, "", false )
guiSetVisible ( window, false )
end
)

addEventHandler( "onClientRender", root,
function()
myRenderTarget = dxCreateRenderTarget( 570, 600, true )
dxSetShaderValue ( shader, "Tex0", myRenderTarget )
dxSetRenderTarget ( myRenderTarget, true )
guiSetVisible ( window, true )
dxSetRenderTarget ( )
dxSetShaderTransform ( shader, 130, 0, 0, 0, 0, 0 )
dxDrawImage ( 50, 50, 100, 100, shader )
end
)

TagsNo tags attached.

Activities

Gallardo9944

2015-07-07 14:32

viewer   ~~0023561

In my opinion it makes no sense because dx uses per-frame basis unlike gui. This creates a ton of differences which makes that thing almost impossible to work properly.

AboShanab

2015-07-08 01:29

viewer   ~~0023562

no problem, or create a new function guiSetRanderTarget, guiCreateRanderTarget

Issue History

Date Modified Username Field Change