Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
RenderTarget repeat — Gideros Forum

RenderTarget repeat

local canvas = RenderTarget.new(1, 32)
local region = TextureRegion.new(canvas, 0, 0, 128, 32)
Gideros documents say that the repeat arg of RenderTarget.new() by default is false. Running the above code creates a red rectangle 128 pixels wide but since repeat was not supplied and should be false.. the rectangle should be 1 pixel wide, shouldn't it?

So is the documentation incorrect and repeat is true by default? Or is RenderTarget wrong and not making repeat false by default?

I'm using 2018.10


Sign In or Register to comment.