raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.36k stars 289 forks source link

Resize without interpolation #362

Closed srem1 closed 8 months ago

srem1 commented 8 months ago

I write pixel game (PixelArt). I must put my small sprite to big texture. I'cant found any function to resize without algorithms Bicubic or Nearest-Neighbor.

I need simple convert one pixel to 4 or 9 or 16 etc.

#define RESIZE_2x2    2
#define RESIZE_3x3    3
#define RESIZE_4x4    4

.....