epoc32/include/GLES/glplatform.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
#ifndef __glplatform_h_
williamr@2
     2
#define __glplatform_h_
williamr@2
     3
williamr@2
     4
/**
williamr@4
     5
 portions Copyright (c) 2008 - 2009 Nokia Corporation. All rights reserved.
williamr@2
     6
@publishedAll
williamr@2
     7
@released
williamr@2
     8
*/
williamr@2
     9
williamr@2
    10
#ifdef __cplusplus
williamr@2
    11
extern "C" {
williamr@2
    12
#endif
williamr@2
    13
williamr@2
    14
/*
williamr@2
    15
** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
williamr@2
    16
** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved.
williamr@2
    17
** 
williamr@2
    18
** Permission is hereby granted, free of charge, to any person obtaining 
williamr@2
    19
** a copy of this software and associated documentation files 
williamr@2
    20
** (the "Software"), to deal in the Software without restriction, 
williamr@2
    21
** including without limitation the rights to use, copy, modify, merge, 
williamr@2
    22
** publish, distribute, sublicense, and/or sell copies of the Software, 
williamr@2
    23
** and to permit persons to whom the Software is furnished to do so, 
williamr@2
    24
** subject to the following conditions:
williamr@2
    25
**  
williamr@2
    26
** The above copyright notice including the dates of first 
williamr@2
    27
** publication and either this permission notice or a reference to 
williamr@2
    28
** http://oss.sgi.com/projects/FreeB/ shall be included in all copies 
williamr@2
    29
** or substantial portions of the Software.
williamr@2
    30
** 
williamr@2
    31
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
williamr@2
    32
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
williamr@2
    33
** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
williamr@2
    34
** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, 
williamr@2
    35
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
williamr@2
    36
** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
williamr@2
    37
** THE USE OR OTHER DEALINGS IN THE SOFTWARE.
williamr@2
    38
** 
williamr@2
    39
** Except as contained in this notice, the name of Silicon Graphics, Inc. 
williamr@2
    40
** shall not be used in advertising or otherwise to promote the sale, use 
williamr@2
    41
** or other dealings in this Software without prior written authorization 
williamr@2
    42
** from Silicon Graphics, Inc. 
williamr@2
    43
*/
williamr@2
    44
williamr@2
    45
/*
williamr@2
    46
 * If the pre-included toolchain header does not specify the __SOFTFP macro,
williamr@2
    47
 * this include defines it.
williamr@2
    48
 */
williamr@2
    49
#include <e32def.h>
williamr@2
    50
williamr@2
    51
/*-------------------------------------------------------------------------
williamr@2
    52
 * Definition of GL_API and GL_APIENTRY
williamr@2
    53
 *-----------------------------------------------------------------------*/
williamr@2
    54
williamr@2
    55
#if defined(AEE_SIMULATOR)
williamr@2
    56
#define __GL_EXPORTS
williamr@2
    57
#endif
williamr@2
    58
williamr@2
    59
#if defined(_WIN32) && !defined(__WINS__)
williamr@2
    60
#   ifdef __GL_EXPORTS
williamr@2
    61
#       define GL_API __declspec(dllexport)
williamr@2
    62
#   else
williamr@2
    63
#       define GL_API __declspec(dllimport)
williamr@2
    64
#   endif
williamr@2
    65
#else
williamr@4
    66
#   if (__ARMCC_VERSION >= 220000)
williamr@2
    67
#   	ifdef __GL_EXPORTS
williamr@2
    68
#	    	define GL_API __declspec(dllexport)
williamr@2
    69
#   	else
williamr@2
    70
#	    	define GL_API __declspec(dllimport)
williamr@2
    71
#   	endif
williamr@2
    72
#   else
williamr@2
    73
#   	ifdef __GL_EXPORTS
williamr@2
    74
#           define GL_API
williamr@2
    75
#   	else
williamr@2
    76
#           define GL_API extern
williamr@2
    77
#		endif
williamr@2
    78
#   endif
williamr@2
    79
#endif
williamr@2
    80
williamr@2
    81
#define GL_APIENTRY 
williamr@2
    82
williamr@2
    83
#ifndef APIENTRY
williamr@2
    84
#   define APIENTRY GL_APIENTRY
williamr@2
    85
#endif
williamr@2
    86
 
williamr@2
    87
#ifndef GLAPI
williamr@2
    88
#	define GLAPI GL_API
williamr@2
    89
#endif
williamr@2
    90
williamr@2
    91
#ifdef __cplusplus
williamr@2
    92
}
williamr@2
    93
#endif
williamr@2
    94
williamr@2
    95
#endif /* __glplatform_h_ */