Files
visual-structs/includes/list.h
T

23 lines
579 B
C

#ifndef LIST_H
#define LIST_H
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL.h>
#include "../includes/texture_font_cache.h"
typedef struct {
unsigned int Capacity;
unsigned int Size;
unsigned int MaxStringLength;
char** Strings;
SDL_FRect BoundingBox;
TextureFontCache* TextureCache;
} List;
List* CreateList(SDL_FRect boundingBox);
void AddStringToList(char* text, List* list);
void RenderList(SDL_Renderer* renderer, SDL_Point motion, TTF_Font* font, unsigned short fontSize, List* list);
#endif