testutils.h 768 B

123456789101112131415161718192021222324
  1. /*
  2. Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
  3. Copyright 2022 Collabora Ltd.
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely.
  10. */
  11. #ifndef TESTUTILS_H
  12. #define TESTUTILS_H
  13. #include "SDL.h"
  14. SDL_Texture *LoadTexture(SDL_Renderer *renderer, const char *file, SDL_bool transparent,
  15. int *width_out, int *height_out);
  16. char *GetNearbyFilename(const char *file);
  17. char *GetResourceFilename(const char *user_specified, const char *def);
  18. #endif