vgplatform.h 3.7 KB

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