include/SDL_opengles2_khrplatform.h
changeset 8808 da1e1d6e84c4
parent 8806 1a413cfc6ab7
     1.1 --- a/include/SDL_opengles2_khrplatform.h	Wed Jun 04 01:32:52 2014 -0700
     1.2 +++ b/include/SDL_opengles2_khrplatform.h	Wed Jun 04 01:35:36 2014 -0700
     1.3 @@ -25,78 +25,78 @@
     1.4  */
     1.5  
     1.6  /* Khronos platform-specific types and definitions.
     1.7 -*
     1.8 -* $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
     1.9 -*
    1.10 -* Adopters may modify this file to suit their platform. Adopters are
    1.11 -* encouraged to submit platform specific modifications to the Khronos
    1.12 -* group so that they can be included in future versions of this file.
    1.13 -* Please submit changes by sending them to the public Khronos Bugzilla
    1.14 -* (http://khronos.org/bugzilla) by filing a bug against product
    1.15 -* "Khronos (general)" component "Registry".
    1.16 -*
    1.17 -* A predefined template which fills in some of the bug fields can be
    1.18 -* reached using http://tinyurl.com/khrplatform-h-bugreport, but you
    1.19 -* must create a Bugzilla login first.
    1.20 -*
    1.21 -*
    1.22 -* See the Implementer's Guidelines for information about where this file
    1.23 -* should be located on your system and for more details of its use:
    1.24 -*    http://www.khronos.org/registry/implementers_guide.pdf
    1.25 -*
    1.26 -* This file should be included as
    1.27 -*        #include <KHR/khrplatform.h>
    1.28 -* by Khronos client API header files that use its types and defines.
    1.29 -*
    1.30 -* The types in khrplatform.h should only be used to define API-specific types.
    1.31 -*
    1.32 -* Types defined in khrplatform.h:
    1.33 -*    khronos_int8_t              signed   8  bit
    1.34 -*    khronos_uint8_t             unsigned 8  bit
    1.35 -*    khronos_int16_t             signed   16 bit
    1.36 -*    khronos_uint16_t            unsigned 16 bit
    1.37 -*    khronos_int32_t             signed   32 bit
    1.38 -*    khronos_uint32_t            unsigned 32 bit
    1.39 -*    khronos_int64_t             signed   64 bit
    1.40 -*    khronos_uint64_t            unsigned 64 bit
    1.41 -*    khronos_intptr_t            signed   same number of bits as a pointer
    1.42 -*    khronos_uintptr_t           unsigned same number of bits as a pointer
    1.43 -*    khronos_ssize_t             signed   size
    1.44 -*    khronos_usize_t             unsigned size
    1.45 -*    khronos_float_t             signed   32 bit floating point
    1.46 -*    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
    1.47 -*    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
    1.48 -*                                         nanoseconds
    1.49 -*    khronos_stime_nanoseconds_t signed time interval in nanoseconds
    1.50 -*    khronos_boolean_enum_t      enumerated boolean type. This should
    1.51 -*      only be used as a base type when a client API's boolean type is
    1.52 -*      an enum. Client APIs which use an integer or other type for
    1.53 -*      booleans cannot use this as the base type for their boolean.
    1.54 -*
    1.55 -* Tokens defined in khrplatform.h:
    1.56 -*
    1.57 -*    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
    1.58 -*
    1.59 -*    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
    1.60 -*    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
    1.61 -*
    1.62 -* Calling convention macros defined in this file:
    1.63 -*    KHRONOS_APICALL
    1.64 -*    KHRONOS_APIENTRY
    1.65 -*    KHRONOS_APIATTRIBUTES
    1.66 -*
    1.67 -* These may be used in function prototypes as:
    1.68 -*
    1.69 -*      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
    1.70 -*                                  int arg1,
    1.71 -*                                  int arg2) KHRONOS_APIATTRIBUTES;
    1.72 -*/
    1.73 + *
    1.74 + * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
    1.75 + *
    1.76 + * Adopters may modify this file to suit their platform. Adopters are
    1.77 + * encouraged to submit platform specific modifications to the Khronos
    1.78 + * group so that they can be included in future versions of this file.
    1.79 + * Please submit changes by sending them to the public Khronos Bugzilla
    1.80 + * (http://khronos.org/bugzilla) by filing a bug against product
    1.81 + * "Khronos (general)" component "Registry".
    1.82 + *
    1.83 + * A predefined template which fills in some of the bug fields can be
    1.84 + * reached using http://tinyurl.com/khrplatform-h-bugreport, but you
    1.85 + * must create a Bugzilla login first.
    1.86 + *
    1.87 + *
    1.88 + * See the Implementer's Guidelines for information about where this file
    1.89 + * should be located on your system and for more details of its use:
    1.90 + *    http://www.khronos.org/registry/implementers_guide.pdf
    1.91 + *
    1.92 + * This file should be included as
    1.93 + *        #include <KHR/khrplatform.h>
    1.94 + * by Khronos client API header files that use its types and defines.
    1.95 + *
    1.96 + * The types in khrplatform.h should only be used to define API-specific types.
    1.97 + *
    1.98 + * Types defined in khrplatform.h:
    1.99 + *    khronos_int8_t              signed   8  bit
   1.100 + *    khronos_uint8_t             unsigned 8  bit
   1.101 + *    khronos_int16_t             signed   16 bit
   1.102 + *    khronos_uint16_t            unsigned 16 bit
   1.103 + *    khronos_int32_t             signed   32 bit
   1.104 + *    khronos_uint32_t            unsigned 32 bit
   1.105 + *    khronos_int64_t             signed   64 bit
   1.106 + *    khronos_uint64_t            unsigned 64 bit
   1.107 + *    khronos_intptr_t            signed   same number of bits as a pointer
   1.108 + *    khronos_uintptr_t           unsigned same number of bits as a pointer
   1.109 + *    khronos_ssize_t             signed   size
   1.110 + *    khronos_usize_t             unsigned size
   1.111 + *    khronos_float_t             signed   32 bit floating point
   1.112 + *    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
   1.113 + *    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
   1.114 + *                                         nanoseconds
   1.115 + *    khronos_stime_nanoseconds_t signed time interval in nanoseconds
   1.116 + *    khronos_boolean_enum_t      enumerated boolean type. This should
   1.117 + *      only be used as a base type when a client API's boolean type is
   1.118 + *      an enum. Client APIs which use an integer or other type for
   1.119 + *      booleans cannot use this as the base type for their boolean.
   1.120 + *
   1.121 + * Tokens defined in khrplatform.h:
   1.122 + *
   1.123 + *    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
   1.124 + *
   1.125 + *    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
   1.126 + *    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
   1.127 + *
   1.128 + * Calling convention macros defined in this file:
   1.129 + *    KHRONOS_APICALL
   1.130 + *    KHRONOS_APIENTRY
   1.131 + *    KHRONOS_APIATTRIBUTES
   1.132 + *
   1.133 + * These may be used in function prototypes as:
   1.134 + *
   1.135 + *      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
   1.136 + *                                  int arg1,
   1.137 + *                                  int arg2) KHRONOS_APIATTRIBUTES;
   1.138 + */
   1.139  
   1.140  /*-------------------------------------------------------------------------
   1.141 -* Definition of KHRONOS_APICALL
   1.142 -*-------------------------------------------------------------------------
   1.143 -* This precedes the return type of the function in the function prototype.
   1.144 -*/
   1.145 + * Definition of KHRONOS_APICALL
   1.146 + *-------------------------------------------------------------------------
   1.147 + * This precedes the return type of the function in the function prototype.
   1.148 + */
   1.149  #if defined(_WIN32) && !defined(__SCITECH_SNAP__)
   1.150  #   define KHRONOS_APICALL __declspec(dllimport)
   1.151  #elif defined (__SYMBIAN32__)
   1.152 @@ -106,23 +106,23 @@
   1.153  #endif
   1.154  
   1.155  /*-------------------------------------------------------------------------
   1.156 -* Definition of KHRONOS_APIENTRY
   1.157 -*-------------------------------------------------------------------------
   1.158 -* This follows the return type of the function  and precedes the function
   1.159 -* name in the function prototype.
   1.160 -*/
   1.161 + * Definition of KHRONOS_APIENTRY
   1.162 + *-------------------------------------------------------------------------
   1.163 + * This follows the return type of the function  and precedes the function
   1.164 + * name in the function prototype.
   1.165 + */
   1.166  #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
   1.167 -/* Win32 but not WinCE */
   1.168 +    /* Win32 but not WinCE */
   1.169  #   define KHRONOS_APIENTRY __stdcall
   1.170  #else
   1.171  #   define KHRONOS_APIENTRY
   1.172  #endif
   1.173  
   1.174  /*-------------------------------------------------------------------------
   1.175 -* Definition of KHRONOS_APIATTRIBUTES
   1.176 -*-------------------------------------------------------------------------
   1.177 -* This follows the closing parenthesis of the function prototype arguments.
   1.178 -*/
   1.179 + * Definition of KHRONOS_APIATTRIBUTES
   1.180 + *-------------------------------------------------------------------------
   1.181 + * This follows the closing parenthesis of the function prototype arguments.
   1.182 + */
   1.183  #if defined (__ARMCC_2__)
   1.184  #define KHRONOS_APIATTRIBUTES __softfp
   1.185  #else
   1.186 @@ -130,14 +130,14 @@
   1.187  #endif
   1.188  
   1.189  /*-------------------------------------------------------------------------
   1.190 -* basic type definitions
   1.191 -*-----------------------------------------------------------------------*/
   1.192 + * basic type definitions
   1.193 + *-----------------------------------------------------------------------*/
   1.194  #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
   1.195  
   1.196  
   1.197  /*
   1.198 -* Using <stdint.h>
   1.199 -*/
   1.200 + * Using <stdint.h>
   1.201 + */
   1.202  #include <stdint.h>
   1.203  typedef int32_t                 khronos_int32_t;
   1.204  typedef uint32_t                khronos_uint32_t;
   1.205 @@ -149,8 +149,8 @@
   1.206  #elif defined(__VMS ) || defined(__sgi)
   1.207  
   1.208  /*
   1.209 -* Using <inttypes.h>
   1.210 -*/
   1.211 + * Using <inttypes.h>
   1.212 + */
   1.213  #include <inttypes.h>
   1.214  typedef int32_t                 khronos_int32_t;
   1.215  typedef uint32_t                khronos_uint32_t;
   1.216 @@ -162,8 +162,8 @@
   1.217  #elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
   1.218  
   1.219  /*
   1.220 -* Win32
   1.221 -*/
   1.222 + * Win32
   1.223 + */
   1.224  typedef __int32                 khronos_int32_t;
   1.225  typedef unsigned __int32        khronos_uint32_t;
   1.226  typedef __int64                 khronos_int64_t;
   1.227 @@ -174,8 +174,8 @@
   1.228  #elif defined(__sun__) || defined(__digital__)
   1.229  
   1.230  /*
   1.231 -* Sun or Digital
   1.232 -*/
   1.233 + * Sun or Digital
   1.234 + */
   1.235  typedef int                     khronos_int32_t;
   1.236  typedef unsigned int            khronos_uint32_t;
   1.237  #if defined(__arch64__) || defined(_LP64)
   1.238 @@ -191,8 +191,8 @@
   1.239  #elif 0
   1.240  
   1.241  /*
   1.242 -* Hypothetical platform with no float or int64 support
   1.243 -*/
   1.244 + * Hypothetical platform with no float or int64 support
   1.245 + */
   1.246  typedef int                     khronos_int32_t;
   1.247  typedef unsigned int            khronos_uint32_t;
   1.248  #define KHRONOS_SUPPORT_INT64   0
   1.249 @@ -201,8 +201,8 @@
   1.250  #else
   1.251  
   1.252  /*
   1.253 -* Generic fallback
   1.254 -*/
   1.255 + * Generic fallback
   1.256 + */
   1.257  #include <stdint.h>
   1.258  typedef int32_t                 khronos_int32_t;
   1.259  typedef uint32_t                khronos_uint32_t;
   1.260 @@ -215,18 +215,18 @@
   1.261  
   1.262  
   1.263  /*
   1.264 -* Types that are (so far) the same on all platforms
   1.265 -*/
   1.266 + * Types that are (so far) the same on all platforms
   1.267 + */
   1.268  typedef signed   char          khronos_int8_t;
   1.269  typedef unsigned char          khronos_uint8_t;
   1.270  typedef signed   short int     khronos_int16_t;
   1.271  typedef unsigned short int     khronos_uint16_t;
   1.272  
   1.273  /*
   1.274 -* Types that differ between LLP64 and LP64 architectures - in LLP64,
   1.275 -* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
   1.276 -* to be the only LLP64 architecture in current use.
   1.277 -*/
   1.278 + * Types that differ between LLP64 and LP64 architectures - in LLP64, 
   1.279 + * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
   1.280 + * to be the only LLP64 architecture in current use.
   1.281 + */
   1.282  #ifdef _WIN64
   1.283  typedef signed   long long int khronos_intptr_t;
   1.284  typedef unsigned long long int khronos_uintptr_t;
   1.285 @@ -241,43 +241,42 @@
   1.286  
   1.287  #if KHRONOS_SUPPORT_FLOAT
   1.288  /*
   1.289 -* Float type
   1.290 -*/
   1.291 + * Float type
   1.292 + */
   1.293  typedef          float         khronos_float_t;
   1.294  #endif
   1.295  
   1.296  #if KHRONOS_SUPPORT_INT64
   1.297  /* Time types
   1.298 -*
   1.299 -* These types can be used to represent a time interval in nanoseconds or
   1.300 -* an absolute Unadjusted System Time.  Unadjusted System Time is the number
   1.301 -* of nanoseconds since some arbitrary system event (e.g. since the last
   1.302 -* time the system booted).  The Unadjusted System Time is an unsigned
   1.303 -* 64 bit value that wraps back to 0 every 584 years.  Time intervals
   1.304 -* may be either signed or unsigned.
   1.305 -*/
   1.306 + *
   1.307 + * These types can be used to represent a time interval in nanoseconds or
   1.308 + * an absolute Unadjusted System Time.  Unadjusted System Time is the number
   1.309 + * of nanoseconds since some arbitrary system event (e.g. since the last
   1.310 + * time the system booted).  The Unadjusted System Time is an unsigned
   1.311 + * 64 bit value that wraps back to 0 every 584 years.  Time intervals
   1.312 + * may be either signed or unsigned.
   1.313 + */
   1.314  typedef khronos_uint64_t       khronos_utime_nanoseconds_t;
   1.315  typedef khronos_int64_t        khronos_stime_nanoseconds_t;
   1.316  #endif
   1.317  
   1.318  /*
   1.319 -* Dummy value used to pad enum types to 32 bits.
   1.320 -*/
   1.321 + * Dummy value used to pad enum types to 32 bits.
   1.322 + */
   1.323  #ifndef KHRONOS_MAX_ENUM
   1.324  #define KHRONOS_MAX_ENUM 0x7FFFFFFF
   1.325  #endif
   1.326  
   1.327  /*
   1.328 -* Enumerated boolean type
   1.329 -*
   1.330 -* Values other than zero should be considered to be true.  Therefore
   1.331 -* comparisons should not be made against KHRONOS_TRUE.
   1.332 -*/
   1.333 + * Enumerated boolean type
   1.334 + *
   1.335 + * Values other than zero should be considered to be true.  Therefore
   1.336 + * comparisons should not be made against KHRONOS_TRUE.
   1.337 + */
   1.338  typedef enum {
   1.339      KHRONOS_FALSE = 0,
   1.340 -    KHRONOS_TRUE = 1,
   1.341 +    KHRONOS_TRUE  = 1,
   1.342      KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
   1.343  } khronos_boolean_enum_t;
   1.344  
   1.345  #endif /* __khrplatform_h_ */
   1.346 -