1
0

nximage.h 434 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "foundation/types.h"
  3. #include "nxapi.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct nx_image
  8. {
  9. size_t ref_count;
  10. uint32_t width;
  11. uint32_t height;
  12. size_t len;
  13. ARGB32 image[1];
  14. } nx_image_s, *nx_image_t;
  15. NX_API void NXImageSetHeap(HANDLE image_heap);
  16. NX_API nx_image_t NXImageMalloc(uint32_t width, uint32_t height);
  17. NX_API nx_image_t NXImageRetain(nx_image_t image);
  18. #ifdef __cplusplus
  19. }
  20. #endif