MikePopoloski / SharpBgfx

C# bindings for the bgfx graphics library
MIT License
169 stars 32 forks source link

Which flag I have to set for texture drawing? #23

Closed Ruffian4D closed 6 years ago

Ruffian4D commented 6 years ago

Which flag I have to set at Texture.FromFile or SetTexture, so that the texture is not drawn repeatedly? Only once?

Texture.FromFile(mem, **TextureFlags.None**, 0);

or here?

[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]
public static extern void bgfx_set_texture (byte stage, ushort sampler, ushort texture, **uint flags**);

screen The black border is usually the end of the texture.

Greetings Ruffian

Ruffian4D commented 6 years ago

Solved, my bad. Wasn't a bgfx problem.