Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vgplatform.h 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* $Revision: 6810 $ on $Date:: 2008-10-29 07:31:37 -0700 #$ */
  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. #include <KHR/khrplatform.h>
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. #ifndef VG_API_CALL
  39. #if defined(OPENVG_STATIC_LIBRARY)
  40. # define VG_API_CALL
  41. #else
  42. # define VG_API_CALL KHRONOS_APICALL
  43. #endif /* defined OPENVG_STATIC_LIBRARY */
  44. #endif /* ifndef VG_API_CALL */
  45. #ifndef VGU_API_CALL
  46. #if defined(OPENVG_STATIC_LIBRARY)
  47. # define VGU_API_CALL
  48. #else
  49. # define VGU_API_CALL KHRONOS_APICALL
  50. #endif /* defined OPENVG_STATIC_LIBRARY */
  51. #endif /* ifndef VGU_API_CALL */
  52. #ifndef VG_API_ENTRY
  53. #define VG_API_ENTRY
  54. #endif
  55. #ifndef VG_API_EXIT
  56. #define VG_API_EXIT
  57. #endif
  58. #ifndef VGU_API_ENTRY
  59. #define VGU_API_ENTRY
  60. #endif
  61. #ifndef VGU_API_EXIT
  62. #define VGU_API_EXIT
  63. #endif
  64. typedef float VGfloat;
  65. typedef signed char VGbyte;
  66. typedef unsigned char VGubyte;
  67. typedef signed short VGshort;
  68. typedef signed int VGint;
  69. typedef unsigned int VGuint;
  70. typedef unsigned int VGbitfield;
  71. #ifndef VG_VGEXT_PROTOTYPES
  72. #define VG_VGEXT_PROTOTYPES
  73. #endif
  74. #ifdef __cplusplus
  75. } /* extern "C" */
  76. #endif
  77. #endif /* _VGPLATFORM_H */