testutils.h 801 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. Copyright (C) 1997-2026 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 <SDL3/SDL.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. extern SDL_Texture *LoadTexture(SDL_Renderer *renderer, const char *file, bool transparent);
  18. extern char *GetNearbyFilename(const char *file);
  19. extern char *GetResourceFilename(const char *user_specified, const char *def);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif