*/}}
1
0

la_5.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * LaGUI: A graphical application framework.
  3. * Copyright (C) 2022-2023 Wu Yiming
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #define _BSD_SOURCE 1
  20. #define _SVID_SOURCE 1
  21. #define BYTE uint8_t
  22. #ifdef __APPLE__
  23. // on macOS require GL libraries as early as possible without C linkage, libc++ requires templates to have C++ linkage
  24. #include <GL/glew.h>
  25. #include <GL/gl.h>
  26. #endif
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #include "la_util.h"
  31. #include "la_interface.h"
  32. #include "la_data.h"
  33. //#include "la_icon.h"
  34. #include "la_tns.h"
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #include "math.h"
  39. //#include "LA_AV.h"
  40. //#include <direct.h>
  41. //#include <io.h>
  42. #include <stddef.h> //offsetof
  43. #include <stdio.h>
  44. #ifdef __linux__
  45. #include <unistd.h>
  46. #include <dirent.h>
  47. #endif
  48. #include <locale.h>
  49. #include <sys/stat.h>
  50. #include <time.h>
  51. #define NANOVG_GL3
  52. #include "nanovg.h"
  53. #include "nanovg_gl.h"