The TextureMaskFill is being called in this function.
It's being called before anything is added. But it makes no sense that I can add rectangles and ovals but now the text doesn't work when it should.
Also, both flags 2 and 4 give the same result, I know their difference, but still...
Function CreateNameTexture(name$,flags) Local Width% = StringWidth(name)*2 Local Height% = StringHeight(name)*2 Local texture = CreateTexture(Width,Height,flags) TextureMaskFill(texture) SetBuffer TextureBuffer(texture) Color 0,255,0 Rect 0,0,TextureWidth(texture),TextureHeight(texture)*.1 Rect 0,TextureHeight(texture)*.9,TextureWidth(texture),TextureHeight(texture)*.1 Color 254,254,0 Text TextureWidth(texture)*.5,TextureHeight(texture)*.5,name,1,1 ;ShadowText(name,TextureWidth(texture)*.5,TextureHeight(texture)*.5,254) SetBuffer BackBuffer() Return texture End Function
It's being called before anything is added. But it makes no sense that I can add rectangles and ovals but now the text doesn't work when it should.
Also, both flags 2 and 4 give the same result, I know their difference, but still...