Clone of mesa.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

vgplatform.h 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. #ifndef VG_API_CALL
  38. #if defined(OPENVG_STATIC_LIBRARY)
  39. # define VG_API_CALL
  40. #else
  41. # if defined(_WIN32) || defined(__VC32__) /* Win32 */
  42. # if defined (OPENVG_DLL_EXPORTS)
  43. # define VG_API_CALL __declspec(dllexport)
  44. # else
  45. # define VG_API_CALL __declspec(dllimport)
  46. # endif
  47. # else
  48. # define VG_API_CALL extern
  49. # endif /* defined(_WIN32) ||... */
  50. #endif /* defined OPENVG_STATIC_LIBRARY */
  51. #endif /* ifndef VG_API_CALL */
  52. #ifndef VGU_API_CALL
  53. #if defined(OPENVG_STATIC_LIBRARY)
  54. # define VGU_API_CALL
  55. #else
  56. # if defined(_WIN32) || defined(__VC32__) /* Win32 */
  57. # if defined (OPENVG_DLL_EXPORTS)
  58. # define VGU_API_CALL __declspec(dllexport)
  59. # else
  60. # define VGU_API_CALL __declspec(dllimport)
  61. # endif
  62. # else
  63. # define VGU_API_CALL extern
  64. # endif /* defined(_WIN32) ||... */
  65. #endif /* defined OPENVG_STATIC_LIBRARY */
  66. #endif /* ifndef VGU_API_CALL */
  67. #ifndef VG_API_ENTRY
  68. #define VG_API_ENTRY
  69. #endif
  70. #ifndef VG_API_EXIT
  71. #define VG_API_EXIT
  72. #endif
  73. #ifndef VGU_API_ENTRY
  74. #define VGU_API_ENTRY
  75. #endif
  76. #ifndef VGU_API_EXIT
  77. #define VGU_API_EXIT
  78. #endif
  79. typedef float VGfloat;
  80. typedef signed char VGbyte;
  81. typedef unsigned char VGubyte;
  82. typedef signed short VGshort;
  83. typedef signed int VGint;
  84. typedef unsigned int VGuint;
  85. typedef unsigned int VGbitfield;
  86. #ifndef VG_VGEXT_PROTOTYPES
  87. #define VG_VGEXT_PROTOTYPES
  88. #endif
  89. #ifdef __cplusplus
  90. } /* extern "C" */
  91. #endif
  92. #endif /* _VGPLATFORM_H */