Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

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