Texture2D.cs 414 B

123456789101112131415161718
  1. namespace Urho.Urho2D
  2. {
  3. partial class Texture2D
  4. {
  5. public bool SetSize(int width, int height, uint format, TextureUsage usage = TextureUsage.Static)
  6. {
  7. return SetSize(width, height, format, usage, 1, true);
  8. }
  9. public unsafe bool SetData(uint level, int x, int y, int width, int height, byte[] data)
  10. {
  11. fixed (byte* ptr = data)
  12. {
  13. return SetData(level, x, y, width, height, ptr);
  14. }
  15. }
  16. }
  17. }