Clone of mesa.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

vgplatform.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /* $Revision: 6810 $ on $Date:: 2008-10-29 10:31:37 -0400 #$ */
  2. /*------------------------------------------------------------------------
  3. *
  4. * VG platform specific header Reference Implementation
  5. * ----------------------------------------------------
  6. *
  7. * Copyright (c) 2008 The Khronos Group Inc.
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a
  10. * copy of this software and /or associated documentation files
  11. * (the "Materials "), to deal in the Materials without restriction,
  12. * including without limitation the rights to use, copy, modify, merge,
  13. * publish, distribute, sublicense, and/or sell copies of the Materials,
  14. * and to permit persons to whom the Materials are furnished to do so,
  15. * subject to the following conditions:
  16. *
  17. * The above copyright notice and this permission notice shall be included
  18. * in all copies or substantial portions of the Materials.
  19. *
  20. * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  24. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  25. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
  26. * THE USE OR OTHER DEALINGS IN THE MATERIALS.
  27. *
  28. *//**
  29. * \file
  30. * \brief VG platform specific header
  31. *//*-------------------------------------------------------------------*/
  32. #ifndef _VGPLATFORM_H
  33. #define _VGPLATFORM_H
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
  38. # define VG_API_CALL __attribute__((visibility("default")))
  39. # define VGU_API_CALL __attribute__((visibility("default")))
  40. #endif
  41. #ifndef VG_API_CALL
  42. #if defined(OPENVG_STATIC_LIBRARY)
  43. # define VG_API_CALL
  44. #else
  45. # if defined(_WIN32) || defined(__VC32__) /* Win32 */
  46. # if defined (OPENVG_DLL_EXPORTS)
  47. # define VG_API_CALL __declspec(dllexport)
  48. # else
  49. # define VG_API_CALL __declspec(dllimport)
  50. # endif
  51. # else
  52. # define VG_API_CALL extern
  53. # endif /* defined(_WIN32) ||... */
  54. #endif /* defined OPENVG_STATIC_LIBRARY */
  55. #endif /* ifndef VG_API_CALL */
  56. #ifndef VGU_API_CALL
  57. #if defined(OPENVG_STATIC_LIBRARY)
  58. # define VGU_API_CALL
  59. #else
  60. # if defined(_WIN32) || defined(__VC32__) /* Win32 */
  61. # if defined (OPENVG_DLL_EXPORTS)
  62. # define VGU_API_CALL __declspec(dllexport)
  63. # else
  64. # define VGU_API_CALL __declspec(dllimport)
  65. # endif
  66. # else
  67. # define VGU_API_CALL extern
  68. # endif /* defined(_WIN32) ||... */
  69. #endif /* defined OPENVG_STATIC_LIBRARY */
  70. #endif /* ifndef VGU_API_CALL */
  71. #ifndef VG_API_ENTRY
  72. #define VG_API_ENTRY
  73. #endif
  74. #ifndef VG_API_EXIT
  75. #define VG_API_EXIT
  76. #endif
  77. #ifndef VGU_API_ENTRY
  78. #define VGU_API_ENTRY
  79. #endif
  80. #ifndef VGU_API_EXIT
  81. #define VGU_API_EXIT
  82. #endif
  83. typedef float VGfloat;
  84. typedef signed char VGbyte;
  85. typedef unsigned char VGubyte;
  86. typedef signed short VGshort;
  87. typedef signed int VGint;
  88. typedef unsigned int VGuint;
  89. typedef unsigned int VGbitfield;
  90. #ifndef VG_VGEXT_PROTOTYPES
  91. #define VG_VGEXT_PROTOTYPES
  92. #endif
  93. #ifdef __cplusplus
  94. } /* extern "C" */
  95. #endif
  96. #endif /* _VGPLATFORM_H */