twn_draw.h: new camera api

This commit is contained in:
veclavtalica
2024-10-28 12:34:48 +03:00
parent 1d35a3859b
commit d11143ac86
7 changed files with 73 additions and 41 deletions

View File

@ -17,8 +17,8 @@
typedef struct Texture {
Rect srcrect; /* position in atlas */
SDL_Surface *data; /* original image data */
Rect srcrect; /* position in atlas */
SDL_Surface *data; /* original image data */
int atlas_index;
GPUTexture loner_texture; /* stored directly for loners, == 0 means atlas_index should be used */
GPUTexture repeating_texture; /* separately allocated Texture, for loners == loner_texture */