#pragma once

namespace texture {
  struct texture {
    void * start;
    int size;
    int offset;
  };

  namespace offset {
    constexpr int tandy1k  = 0               ; // 16384
    constexpr int logo     = tandy1k  + 16384; // 384
    constexpr int icons    = logo     +   384; // 2048
    constexpr int ter_u24n = icons    +  2048; // 16384
    constexpr int ter_u32n = ter_u24n + 16384; // 32768
    constexpr int cover1   = ter_u32n + 32768; // 32768
  };

  extern struct texture textures[];

  extern const int textures_length;

  void transfer_texture_memory();
};
