Jump to content

Render Target


iMr.Omar

Recommended Posts

السلام عليكم ورحمة الله وبركاته ..

طبعا انا كنت ابي اشوف انا فهمت render target او لأ

احس اني جبت العيد ..

الاكواد :

-- Settings  
  
Render = dxCreateRenderTarget (349, 194) 
scroll = 0 
theText = ''  
for i=1,1000 do  
theText = theText..i  
end 
  
-- Render  
  
addEventHandler("onClientRender", root, 
    function() 
    if ( Render ) then  
    dxSetRenderTarget ( Render ) 
    dxDrawRectangle(209, 192, 349, 194, tocolor(0, 0, 0, 110), false) 
    dxDrawText(theText, 209, 191, 558, 386+scroll, tocolor(255, 255, 255, 255), 1.00, "default-bold",nil,nil,true,true) 
    dxSetBlendMode('blend') 
    end 
    dxSetRenderTarget () 
    dxDrawImageSection(209, 192, 349, 194, 0, 0+scroll, 349, 194, Render) 
    end 
) 
  

النتجية : http://prntscr.com/9fy6ss

الي يعرف الحل لايبخل علينا + يوضح لي وش الخطا الي عندي .. :fadein:

Link to comment
السلام عليكم ورحمة الله وبركاته ..

طبعا انا كنت ابي اشوف انا فهمت render target او لأ

احس اني جبت العيد ..

الاكواد :

-- Settings  
  
Render = dxCreateRenderTarget (349, 194) 
scroll = 0 
theText = ''  
for i=1,1000 do  
theText = theText..i  
end 
  
-- Render  
  
addEventHandler("onClientRender", root, 
    function() 
    if ( Render ) then  
    dxSetRenderTarget ( Render ) 
    dxDrawRectangle(209, 192, 349, 194, tocolor(0, 0, 0, 110), false) 
    dxDrawText(theText, 209, 191, 558, 386+scroll, tocolor(255, 255, 255, 255), 1.00, "default-bold",nil,nil,true,true) 
    dxSetBlendMode('blend') 
    end 
    dxSetRenderTarget () 
    dxDrawImageSection(209, 192, 349, 194, 0, 0+scroll, 349, 194, Render) 
    end 
) 
  

النتجية : http://prntscr.com/9fy6ss

الي يعرف الحل لايبخل علينا + يوضح لي وش الخطا الي عندي .. :fadein:

اول حاجة متغير theText

راح يوقف على الف

يعني ماراح تستفيد شيء من اللوب

+ انت الحين وش تبي تسوي بالضبط ؟

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...