Ignore:
Timestamp:
May 23, 2000, 10:41:28 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

Location:
trunk/src/opengl/mesa/GL
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/GL/gl.h

    r3086 r3598  
    1 /* $Id: gl.h,v 1.5 2000-03-11 17:06:35 sandervl Exp $ */
     1/* $Id: gl.h,v 1.6 2000-05-23 20:41:25 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
     5 * Version:  3.3
    66 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
     
    126126#define GL_VERSION_1_1   1
    127127#define GL_VERSION_1_2   1
     128#define GL_HAS_GLEXT     1
    128129
    129130
     
    716717
    717718        /* Errors */
     719        GL_NO_ERROR                     = 0x0,
    718720        GL_INVALID_VALUE                = 0x0501,
    719721        GL_INVALID_ENUM                 = 0x0500,
     
    869871        GL_TEXTURE_BASE_LEVEL                   = 0x813C,
    870872        GL_TEXTURE_MAX_LEVEL                    = 0x813D,
     873        GL_SMOOTH_POINT_SIZE_RANGE              = 0x0B12,
     874        GL_SMOOTH_POINT_SIZE_GRANULARITY        = 0x0B13,
     875        GL_SMOOTH_LINE_WIDTH_RANGE              = 0x0B22,
     876        GL_SMOOTH_LINE_WIDTH_GRANULARITY        = 0x0B23,
     877        GL_ALIASED_POINT_SIZE_RANGE             = 0x846D,
     878        GL_ALIASED_LINE_WIDTH_RANGE             = 0x846E,
    871879
    872880        /* GL_ARB_multitexture */
     
    10151023
    10161024        /* GL_EXT_compiled_vertex_array */
    1017         GL_ARRAY_ELEMENT_LOCK_FIRST_SGI         = 0x81A8,
    1018         GL_ARRAY_ELEMENT_LOCK_COUNT_SGI         = 0x81A9,
     1025        GL_ARRAY_ELEMENT_LOCK_FIRST_EXT         = 0x81A8,
     1026        GL_ARRAY_ELEMENT_LOCK_COUNT_EXT         = 0x81A9,
    10191027
    10201028        /* GL_EXT_clip_volume_hint */
     
    11011109typedef float           GLfloat;        /* single precision float */
    11021110typedef float           GLclampf;       /* single precision float in [0,1] */
    1103 typedef double          GLdouble;       /* double precision float */
    1104 typedef double          GLclampd;       /* double precision float in [0,1] */
     1111typedef double          GLdouble;      /* double precision float          */
     1112typedef double          GLclampd;      /* double precision float in [0,1] */
    11051113
    11061114
     
    11141122 * Miscellaneous
    11151123 */
     1124
     1125GLAPI void GLAPIENTRY glHintPGI(GLenum target, GLint mode);
    11161126
    11171127GLAPI void GLAPIENTRY glClearIndex( GLfloat c );
     
    19371947                                       GLenum type, const GLvoid *table );
    19381948
    1939 GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target,
     1949/*GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target,
    19401950                                          GLsizei start, GLsizei count,
    19411951                                          GLenum format, GLenum type,
    19421952                                          const GLvoid *data );
    1943 
     1953*/
    19441954GLAPI void GLAPIENTRY glGetColorTableEXT( GLenum target, GLenum format,
    19451955                                          GLenum type, GLvoid *table );
  • trunk/src/opengl/mesa/GL/glut.h

    r3086 r3598  
    1616
    1717#if defined(_WIN32)
    18 
    1918
    2019/* GLUT 3.7 now tries to avoid including <windows.h>
     
    111110
    112111#if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
    113 #       define GLUTAPIENTRY __stdcall
     112#       define GLUTAPIENTRY __stdcall
    114113#else
    115 #       define GLUTAPIENTRY
     114#       define GLUTAPIENTRY
    116115#endif
    117116
    118117/* GLUT API entry point declarations for Win32. */
    119118#if defined(GLUT_BUILDING_LIB) && defined(_DLL)
    120 #       define GLUTAPI __declspec(dllexport)
     119#       define GLUTAPI __declspec(dllexport)
    121120#elif defined(_DLL)
    122121#   define GLUTAPI __declspec(dllimport)
    123122#else
    124 #       define GLUTAPI extern
     123#       define GLUTAPI extern
    125124#endif
    126125
    127126#if defined(_WIN32) && !defined(_WINDEF_) && !defined(MESA)
    128 #       if !defined(MESA_MINWARN)
    129 #               pragma message( "note: WINDOWS.H not included, providing Mesa definition of CALLBACK macro" )
    130 #               pragma message( "----: and PROC typedef. If you receive compiler warnings about either ")
    131 #               pragma message( "----: being multiply defined you should include WINDOWS.H priot to gl/glut.h" )
    132 #       endif
    133 #       define CALLBACK __stdcall
     127#       if !defined(MESA_MINWARN)
     128#               pragma message( "note: WINDOWS.H not included, providing Mesa definition of CALLBACK macro" )
     129#               pragma message( "----: and PROC typedef. If you receive compiler warnings about either ")
     130#               pragma message( "----: being multiply defined you should include WINDOWS.H priot to gl/glut.h" )
     131#       endif
     132#       define CALLBACK __stdcall
    134133typedef int (GLUTAPIENTRY *PROC)();
    135134typedef void *HGLRC;
     
    139138
    140139#if defined(_WIN32) && !defined(_WINGDI_) && !defined(MESA)
    141 #       if !defined(MESA_MINWARN)
    142 #               pragma message( "note: WINDOWS.H not included, providing Mesa definition of wgl functions" )
    143 #               pragma message( "----: and macros. If you receive compiler warnings about any being multiply ")
    144 #               pragma message( "----: defined you should include WINDOWS.H priot to gl/glut.h" )
    145 #       endif
    146 #       define WGL_FONT_LINES      0
    147 #       define WGL_FONT_POLYGONS   1
    148 #       ifdef UNICODE
    149 #               define wglUseFontBitmaps  wglUseFontBitmapsW
    150 #               define wglUseFontOutlines  wglUseFontOutlinesW
    151 #       else
    152 #               define wglUseFontBitmaps  wglUseFontBitmapsA
    153 #               define wglUseFontOutlines  wglUseFontOutlinesA
    154 #       endif /* !UNICODE */
     140#       if !defined(MESA_MINWARN)
     141#               pragma message( "note: WINDOWS.H not included, providing Mesa definition of wgl functions" )
     142#               pragma message( "----: and macros. If you receive compiler warnings about any being multiply ")
     143#               pragma message( "----: defined you should include WINDOWS.H priot to gl/glut.h" )
     144#       endif
     145#       define WGL_FONT_LINES      0
     146#       define WGL_FONT_POLYGONS   1
     147#       ifdef UNICODE
     148#               define wglUseFontBitmaps  wglUseFontBitmapsW
     149#               define wglUseFontOutlines  wglUseFontOutlinesW
     150#       else
     151#               define wglUseFontBitmaps  wglUseFontBitmapsA
     152#               define wglUseFontOutlines  wglUseFontOutlinesA
     153#       endif /* !UNICODE */
    155154typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR;
    156155typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT;
     
    194193#else /* _WIN32 not defined */
    195194#if defined(__WIN32OS2__)
    196 /* GLUT callback calling convention for Win32. */
     195/* GLUT callback calling convention for Odin. */
    197196#define GLUTCALLBACK __cdecl
    198197
     
    240239**/
    241240#ifndef GLUT_API_VERSION  /* allow this to be overriden */
    242 #define GLUT_API_VERSION                3
     241#define GLUT_API_VERSION                3
    243242#endif
    244243
     
    280279**/
    281280#ifndef GLUT_XLIB_IMPLEMENTATION  /* Allow this to be overriden. */
    282 #define GLUT_XLIB_IMPLEMENTATION        15
     281#define GLUT_XLIB_IMPLEMENTATION        15
    283282#endif
    284283
    285284/* Display mode bit masks. */
    286 #define GLUT_RGB                        0
    287 #define GLUT_RGBA                       GLUT_RGB
    288 #define GLUT_INDEX                      1
    289 #define GLUT_SINGLE                     0
    290 #define GLUT_DOUBLE                     2
    291 #define GLUT_ACCUM                      4
    292 #define GLUT_ALPHA                      8
    293 #define GLUT_DEPTH                      16
    294 #define GLUT_STENCIL                    32
     285#define GLUT_RGB                        0
     286#define GLUT_RGBA                       GLUT_RGB
     287#define GLUT_INDEX                      1
     288#define GLUT_SINGLE                     0
     289#define GLUT_DOUBLE                     2
     290#define GLUT_ACCUM                      4
     291#define GLUT_ALPHA                      8
     292#define GLUT_DEPTH                      16
     293#define GLUT_STENCIL                    32
    295294#if (GLUT_API_VERSION >= 2)
    296 #define GLUT_MULTISAMPLE                128
    297 #define GLUT_STEREO                     256
     295#define GLUT_MULTISAMPLE                128
     296#define GLUT_STEREO                     256
    298297#endif
    299298#if (GLUT_API_VERSION >= 3)
    300 #define GLUT_LUMINANCE                  512
     299#define GLUT_LUMINANCE                  512
    301300#endif
    302301
    303302/* Mouse buttons. */
    304 #define GLUT_LEFT_BUTTON                0
    305 #define GLUT_MIDDLE_BUTTON              1
    306 #define GLUT_RIGHT_BUTTON               2
     303#define GLUT_LEFT_BUTTON                0
     304#define GLUT_MIDDLE_BUTTON              1
     305#define GLUT_RIGHT_BUTTON               2
    307306
    308307/* Mouse button  state. */
    309 #define GLUT_DOWN                       0
    310 #define GLUT_UP                         1
     308#define GLUT_DOWN                       0
     309#define GLUT_UP                         1
    311310
    312311#if (GLUT_API_VERSION >= 2)
    313312/* function keys */
    314 #define GLUT_KEY_F1                     1
    315 #define GLUT_KEY_F2                     2
    316 #define GLUT_KEY_F3                     3
    317 #define GLUT_KEY_F4                     4
    318 #define GLUT_KEY_F5                     5
    319 #define GLUT_KEY_F6                     6
    320 #define GLUT_KEY_F7                     7
    321 #define GLUT_KEY_F8                     8
    322 #define GLUT_KEY_F9                     9
    323 #define GLUT_KEY_F10                    10
    324 #define GLUT_KEY_F11                    11
    325 #define GLUT_KEY_F12                    12
     313#define GLUT_KEY_F1                     1
     314#define GLUT_KEY_F2                     2
     315#define GLUT_KEY_F3                     3
     316#define GLUT_KEY_F4                     4
     317#define GLUT_KEY_F5                     5
     318#define GLUT_KEY_F6                     6
     319#define GLUT_KEY_F7                     7
     320#define GLUT_KEY_F8                     8
     321#define GLUT_KEY_F9                     9
     322#define GLUT_KEY_F10                    10
     323#define GLUT_KEY_F11                    11
     324#define GLUT_KEY_F12                    12
    326325/* directional keys */
    327 #define GLUT_KEY_LEFT                   100
    328 #define GLUT_KEY_UP                     101
    329 #define GLUT_KEY_RIGHT                  102
    330 #define GLUT_KEY_DOWN                   103
    331 #define GLUT_KEY_PAGE_UP                104
    332 #define GLUT_KEY_PAGE_DOWN              105
    333 #define GLUT_KEY_HOME                   106
    334 #define GLUT_KEY_END                    107
    335 #define GLUT_KEY_INSERT                 108
     326#define GLUT_KEY_LEFT                   100
     327#define GLUT_KEY_UP                     101
     328#define GLUT_KEY_RIGHT                  102
     329#define GLUT_KEY_DOWN                   103
     330#define GLUT_KEY_PAGE_UP                104
     331#define GLUT_KEY_PAGE_DOWN              105
     332#define GLUT_KEY_HOME                   106
     333#define GLUT_KEY_END                    107
     334#define GLUT_KEY_INSERT                 108
    336335#endif
    337336
    338337/* Entry/exit  state. */
    339 #define GLUT_LEFT                       0
    340 #define GLUT_ENTERED                    1
     338#define GLUT_LEFT                       0
     339#define GLUT_ENTERED                    1
    341340
    342341/* Menu usage  state. */
    343 #define GLUT_MENU_NOT_IN_USE            0
    344 #define GLUT_MENU_IN_USE                1
     342#define GLUT_MENU_NOT_IN_USE            0
     343#define GLUT_MENU_IN_USE                1
    345344
    346345/* Visibility  state. */
    347 #define GLUT_NOT_VISIBLE                0
    348 #define GLUT_VISIBLE                    1
     346#define GLUT_NOT_VISIBLE                0
     347#define GLUT_VISIBLE                    1
    349348
    350349/* Window status  state. */
    351 #define GLUT_HIDDEN                     0
    352 #define GLUT_FULLY_RETAINED             1
    353 #define GLUT_PARTIALLY_RETAINED         2
    354 #define GLUT_FULLY_COVERED              3
     350#define GLUT_HIDDEN                     0
     351#define GLUT_FULLY_RETAINED             1
     352#define GLUT_PARTIALLY_RETAINED         2
     353#define GLUT_FULLY_COVERED              3
    355354
    356355/* Color index component selection values. */
    357 #define GLUT_RED                        0
    358 #define GLUT_GREEN                      1
    359 #define GLUT_BLUE                       2
     356#define GLUT_RED                        0
     357#define GLUT_GREEN                      1
     358#define GLUT_BLUE                       2
    360359
    361360/* Layers for use. */
    362 #define GLUT_NORMAL                     0
    363 #define GLUT_OVERLAY                    1
     361#define GLUT_NORMAL                     0
     362#define GLUT_OVERLAY                    1
    364363
    365364#if defined(_WIN32) || defined(__WIN32OS2__)
     
    393392
    394393/* Stroke font constants (use these in GLUT program). */
    395 #define GLUT_STROKE_ROMAN               (&glutStrokeRoman)
    396 #define GLUT_STROKE_MONO_ROMAN          (&glutStrokeMonoRoman)
     394#define GLUT_STROKE_ROMAN               (&glutStrokeRoman)
     395#define GLUT_STROKE_MONO_ROMAN          (&glutStrokeMonoRoman)
    397396
    398397/* Bitmap font opaque addresses (use constants instead in source code). */
     
    406405
    407406/* Bitmap font constants (use these in GLUT program). */
    408 #define GLUT_BITMAP_9_BY_15             (&glutBitmap9By15)
    409 #define GLUT_BITMAP_8_BY_13             (&glutBitmap8By13)
    410 #define GLUT_BITMAP_TIMES_ROMAN_10      (&glutBitmapTimesRoman10)
    411 #define GLUT_BITMAP_TIMES_ROMAN_24      (&glutBitmapTimesRoman24)
     407#define GLUT_BITMAP_9_BY_15             (&glutBitmap9By15)
     408#define GLUT_BITMAP_8_BY_13             (&glutBitmap8By13)
     409#define GLUT_BITMAP_TIMES_ROMAN_10      (&glutBitmapTimesRoman10)
     410#define GLUT_BITMAP_TIMES_ROMAN_24      (&glutBitmapTimesRoman24)
    412411#if (GLUT_API_VERSION >= 3)
    413 #define GLUT_BITMAP_HELVETICA_10        (&glutBitmapHelvetica10)
    414 #define GLUT_BITMAP_HELVETICA_12        (&glutBitmapHelvetica12)
    415 #define GLUT_BITMAP_HELVETICA_18        (&glutBitmapHelvetica18)
     412#define GLUT_BITMAP_HELVETICA_10        (&glutBitmapHelvetica10)
     413#define GLUT_BITMAP_HELVETICA_12        (&glutBitmapHelvetica12)
     414#define GLUT_BITMAP_HELVETICA_18        (&glutBitmapHelvetica18)
    416415#endif
    417416#endif
    418417
    419418/* glutGet parameters. */
    420 #define GLUT_WINDOW_X                   100
    421 #define GLUT_WINDOW_Y                   101
    422 #define GLUT_WINDOW_WIDTH               102
    423 #define GLUT_WINDOW_HEIGHT              103
    424 #define GLUT_WINDOW_BUFFER_SIZE         104
    425 #define GLUT_WINDOW_STENCIL_SIZE        105
    426 #define GLUT_WINDOW_DEPTH_SIZE          106
    427 #define GLUT_WINDOW_RED_SIZE            107
    428 #define GLUT_WINDOW_GREEN_SIZE          108
    429 #define GLUT_WINDOW_BLUE_SIZE           109
    430 #define GLUT_WINDOW_ALPHA_SIZE          110
    431 #define GLUT_WINDOW_ACCUM_RED_SIZE      111
    432 #define GLUT_WINDOW_ACCUM_GREEN_SIZE    112
    433 #define GLUT_WINDOW_ACCUM_BLUE_SIZE     113
    434 #define GLUT_WINDOW_ACCUM_ALPHA_SIZE    114
    435 #define GLUT_WINDOW_DOUBLEBUFFER        115
    436 #define GLUT_WINDOW_RGBA                116
    437 #define GLUT_WINDOW_PARENT              117
    438 #define GLUT_WINDOW_NUM_CHILDREN        118
    439 #define GLUT_WINDOW_COLORMAP_SIZE       119
     419#define GLUT_WINDOW_X                   100
     420#define GLUT_WINDOW_Y                   101
     421#define GLUT_WINDOW_WIDTH               102
     422#define GLUT_WINDOW_HEIGHT              103
     423#define GLUT_WINDOW_BUFFER_SIZE         104
     424#define GLUT_WINDOW_STENCIL_SIZE        105
     425#define GLUT_WINDOW_DEPTH_SIZE          106
     426#define GLUT_WINDOW_RED_SIZE            107
     427#define GLUT_WINDOW_GREEN_SIZE          108
     428#define GLUT_WINDOW_BLUE_SIZE           109
     429#define GLUT_WINDOW_ALPHA_SIZE          110
     430#define GLUT_WINDOW_ACCUM_RED_SIZE      111
     431#define GLUT_WINDOW_ACCUM_GREEN_SIZE    112
     432#define GLUT_WINDOW_ACCUM_BLUE_SIZE     113
     433#define GLUT_WINDOW_ACCUM_ALPHA_SIZE    114
     434#define GLUT_WINDOW_DOUBLEBUFFER        115
     435#define GLUT_WINDOW_RGBA                116
     436#define GLUT_WINDOW_PARENT              117
     437#define GLUT_WINDOW_NUM_CHILDREN        118
     438#define GLUT_WINDOW_COLORMAP_SIZE       119
    440439#if (GLUT_API_VERSION >= 2)
    441 #define GLUT_WINDOW_NUM_SAMPLES         120
    442 #define GLUT_WINDOW_STEREO              121
     440#define GLUT_WINDOW_NUM_SAMPLES         120
     441#define GLUT_WINDOW_STEREO              121
    443442#endif
    444443#if (GLUT_API_VERSION >= 3)
    445 #define GLUT_WINDOW_CURSOR              122
    446 #endif
    447 #define GLUT_SCREEN_WIDTH               200
    448 #define GLUT_SCREEN_HEIGHT              201
    449 #define GLUT_SCREEN_WIDTH_MM            202
    450 #define GLUT_SCREEN_HEIGHT_MM           203
    451 #define GLUT_MENU_NUM_ITEMS             300
    452 #define GLUT_DISPLAY_MODE_POSSIBLE      400
    453 #define GLUT_INIT_WINDOW_X              500
    454 #define GLUT_INIT_WINDOW_Y              501
    455 #define GLUT_INIT_WINDOW_WIDTH          502
    456 #define GLUT_INIT_WINDOW_HEIGHT         503
    457 #define GLUT_INIT_DISPLAY_MODE          504
     444#define GLUT_WINDOW_CURSOR              122
     445#endif
     446#define GLUT_SCREEN_WIDTH               200
     447#define GLUT_SCREEN_HEIGHT              201
     448#define GLUT_SCREEN_WIDTH_MM            202
     449#define GLUT_SCREEN_HEIGHT_MM           203
     450#define GLUT_MENU_NUM_ITEMS             300
     451#define GLUT_DISPLAY_MODE_POSSIBLE      400
     452#define GLUT_INIT_WINDOW_X              500
     453#define GLUT_INIT_WINDOW_Y              501
     454#define GLUT_INIT_WINDOW_WIDTH          502
     455#define GLUT_INIT_WINDOW_HEIGHT         503
     456#define GLUT_INIT_DISPLAY_MODE          504
    458457#if (GLUT_API_VERSION >= 2)
    459 #define GLUT_ELAPSED_TIME               700
     458#define GLUT_ELAPSED_TIME               700
    460459#endif
    461460#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
    462 #define GLUT_WINDOW_FORMAT_ID           123
     461#define GLUT_WINDOW_FORMAT_ID           123
    463462#endif
    464463
    465464#if (GLUT_API_VERSION >= 2)
    466465/* glutDeviceGet parameters. */
    467 #define GLUT_HAS_KEYBOARD               600
    468 #define GLUT_HAS_MOUSE                  601
    469 #define GLUT_HAS_SPACEBALL              602
    470 #define GLUT_HAS_DIAL_AND_BUTTON_BOX    603
    471 #define GLUT_HAS_TABLET                 604
    472 #define GLUT_NUM_MOUSE_BUTTONS          605
    473 #define GLUT_NUM_SPACEBALL_BUTTONS      606
    474 #define GLUT_NUM_BUTTON_BOX_BUTTONS     607
    475 #define GLUT_NUM_DIALS                  608
    476 #define GLUT_NUM_TABLET_BUTTONS         609
     466#define GLUT_HAS_KEYBOARD               600
     467#define GLUT_HAS_MOUSE                  601
     468#define GLUT_HAS_SPACEBALL              602
     469#define GLUT_HAS_DIAL_AND_BUTTON_BOX    603
     470#define GLUT_HAS_TABLET                 604
     471#define GLUT_NUM_MOUSE_BUTTONS          605
     472#define GLUT_NUM_SPACEBALL_BUTTONS      606
     473#define GLUT_NUM_BUTTON_BOX_BUTTONS     607
     474#define GLUT_NUM_DIALS                  608
     475#define GLUT_NUM_TABLET_BUTTONS         609
    477476#endif
    478477#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
    479478#define GLUT_DEVICE_IGNORE_KEY_REPEAT   610
    480479#define GLUT_DEVICE_KEY_REPEAT          611
    481 #define GLUT_HAS_JOYSTICK               612
    482 #define GLUT_OWNS_JOYSTICK              613
    483 #define GLUT_JOYSTICK_BUTTONS           614
    484 #define GLUT_JOYSTICK_AXES              615
    485 #define GLUT_JOYSTICK_POLL_RATE         616
     480#define GLUT_HAS_JOYSTICK               612
     481#define GLUT_OWNS_JOYSTICK              613
     482#define GLUT_JOYSTICK_BUTTONS           614
     483#define GLUT_JOYSTICK_AXES              615
     484#define GLUT_JOYSTICK_POLL_RATE         616
    486485#endif
    487486
     
    489488/* glutLayerGet parameters. */
    490489#define GLUT_OVERLAY_POSSIBLE           800
    491 #define GLUT_LAYER_IN_USE               801
    492 #define GLUT_HAS_OVERLAY                802
    493 #define GLUT_TRANSPARENT_INDEX          803
    494 #define GLUT_NORMAL_DAMAGED             804
    495 #define GLUT_OVERLAY_DAMAGED            805
     490#define GLUT_LAYER_IN_USE               801
     491#define GLUT_HAS_OVERLAY                802
     492#define GLUT_TRANSPARENT_INDEX          803
     493#define GLUT_NORMAL_DAMAGED             804
     494#define GLUT_OVERLAY_DAMAGED            805
    496495
    497496#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
    498497/* glutVideoResizeGet parameters. */
    499 #define GLUT_VIDEO_RESIZE_POSSIBLE      900
    500 #define GLUT_VIDEO_RESIZE_IN_USE        901
    501 #define GLUT_VIDEO_RESIZE_X_DELTA       902
    502 #define GLUT_VIDEO_RESIZE_Y_DELTA       903
    503 #define GLUT_VIDEO_RESIZE_WIDTH_DELTA   904
    504 #define GLUT_VIDEO_RESIZE_HEIGHT_DELTA  905
    505 #define GLUT_VIDEO_RESIZE_X             906
    506 #define GLUT_VIDEO_RESIZE_Y             907
    507 #define GLUT_VIDEO_RESIZE_WIDTH         908
    508 #define GLUT_VIDEO_RESIZE_HEIGHT        909
     498#define GLUT_VIDEO_RESIZE_POSSIBLE      900
     499#define GLUT_VIDEO_RESIZE_IN_USE        901
     500#define GLUT_VIDEO_RESIZE_X_DELTA       902
     501#define GLUT_VIDEO_RESIZE_Y_DELTA       903
     502#define GLUT_VIDEO_RESIZE_WIDTH_DELTA   904
     503#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA  905
     504#define GLUT_VIDEO_RESIZE_X             906
     505#define GLUT_VIDEO_RESIZE_Y             907
     506#define GLUT_VIDEO_RESIZE_WIDTH         908
     507#define GLUT_VIDEO_RESIZE_HEIGHT        909
    509508#endif
    510509
    511510/* glutUseLayer parameters. */
    512 #define GLUT_NORMAL                     0
    513 #define GLUT_OVERLAY                    1
     511#define GLUT_NORMAL                     0
     512#define GLUT_OVERLAY                    1
    514513
    515514/* glutGetModifiers return mask. */
     
    520519/* glutSetCursor parameters. */
    521520/* Basic arrows. */
    522 #define GLUT_CURSOR_RIGHT_ARROW         0
    523 #define GLUT_CURSOR_LEFT_ARROW          1
     521#define GLUT_CURSOR_RIGHT_ARROW         0
     522#define GLUT_CURSOR_LEFT_ARROW          1
    524523/* Symbolic cursor shapes. */
    525 #define GLUT_CURSOR_INFO                2
    526 #define GLUT_CURSOR_DESTROY             3
    527 #define GLUT_CURSOR_HELP                4
    528 #define GLUT_CURSOR_CYCLE               5
    529 #define GLUT_CURSOR_SPRAY               6
    530 #define GLUT_CURSOR_WAIT                7
    531 #define GLUT_CURSOR_TEXT                8
    532 #define GLUT_CURSOR_CROSSHAIR           9
     524#define GLUT_CURSOR_INFO                2
     525#define GLUT_CURSOR_DESTROY             3
     526#define GLUT_CURSOR_HELP                4
     527#define GLUT_CURSOR_CYCLE               5
     528#define GLUT_CURSOR_SPRAY               6
     529#define GLUT_CURSOR_WAIT                7
     530#define GLUT_CURSOR_TEXT                8
     531#define GLUT_CURSOR_CROSSHAIR           9
    533532/* Directional cursors. */
    534 #define GLUT_CURSOR_UP_DOWN             10
    535 #define GLUT_CURSOR_LEFT_RIGHT          11
     533#define GLUT_CURSOR_UP_DOWN             10
     534#define GLUT_CURSOR_LEFT_RIGHT          11
    536535/* Sizing cursors. */
    537 #define GLUT_CURSOR_TOP_SIDE            12
    538 #define GLUT_CURSOR_BOTTOM_SIDE         13
    539 #define GLUT_CURSOR_LEFT_SIDE           14
    540 #define GLUT_CURSOR_RIGHT_SIDE          15
    541 #define GLUT_CURSOR_TOP_LEFT_CORNER     16
    542 #define GLUT_CURSOR_TOP_RIGHT_CORNER    17
    543 #define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18
    544 #define GLUT_CURSOR_BOTTOM_LEFT_CORNER  19
     536#define GLUT_CURSOR_TOP_SIDE            12
     537#define GLUT_CURSOR_BOTTOM_SIDE         13
     538#define GLUT_CURSOR_LEFT_SIDE           14
     539#define GLUT_CURSOR_RIGHT_SIDE          15
     540#define GLUT_CURSOR_TOP_LEFT_CORNER     16
     541#define GLUT_CURSOR_TOP_RIGHT_CORNER    17
     542#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18
     543#define GLUT_CURSOR_BOTTOM_LEFT_CORNER  19
    545544/* Inherit from parent window. */
    546 #define GLUT_CURSOR_INHERIT             100
     545#define GLUT_CURSOR_INHERIT             100
    547546/* Blank cursor. */
    548 #define GLUT_CURSOR_NONE                101
     547#define GLUT_CURSOR_NONE                101
    549548/* Fullscreen crosshair (if available). */
    550 #define GLUT_CURSOR_FULL_CROSSHAIR      102
     549#define GLUT_CURSOR_FULL_CROSSHAIR      102
    551550#endif
    552551
  • trunk/src/opengl/mesa/GL/osmesa.h

    r2938 r3598  
    1 /* $Id: osmesa.h,v 1.1 2000-02-29 00:43:33 sandervl Exp $ */
     1/* $Id: osmesa.h,v 1.2 2000-05-23 20:41:28 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
    6  * 
     5 * Version:  3.3
     6 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
    8  * 
     8 *
    99 * Permission is hereby granted, free of charge, to any person obtaining a
    1010 * copy of this software and associated documentation files (the "Software"),
     
    1313 * and/or sell copies of the Software, and to permit persons to whom the
    1414 * Software is furnished to do so, subject to the following conditions:
    15  * 
     15 *
    1616 * The above copyright notice and this permission notice shall be included
    1717 * in all copies or substantial portions of the Software.
    18  * 
     18 *
    1919 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    2020 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     
    2828/*
    2929 * $Log: osmesa.h,v $
    30  * Revision 1.1  2000-02-29 00:43:33  sandervl
     30 * Revision 1.2  2000-05-23 20:41:28  jeroen
     31 * *** empty log message ***
     32 *
     33 * Revision 1.1  2000/02/29 00:43:33  sandervl
    3134 * created
    3235 *
     
    9396
    9497#define OSMESA_MAJOR_VERSION 3
    95 #define OSMESA_MINOR_VERSION 1
     98#define OSMESA_MINOR_VERSION 3
    9699
    97100
     
    101104 * New in version 2.0.
    102105 */
    103 #define OSMESA_COLOR_INDEX      GL_COLOR_INDEX
    104 #define OSMESA_RGBA             GL_RGBA
    105 #define OSMESA_BGRA             0x1
    106 #define OSMESA_ARGB             0x2
    107 #define OSMESA_RGB              GL_RGB
    108 #define OSMESA_BGR              0x4
     106#define OSMESA_COLOR_INDEX      GL_COLOR_INDEX
     107#define OSMESA_RGBA             GL_RGBA
     108#define OSMESA_BGRA             0x1
     109#define OSMESA_ARGB             0x2
     110#define OSMESA_RGB              GL_RGB
     111#define OSMESA_BGR              0x4
    109112
    110113
     
    113116 * New in version 2.0.
    114117 */
    115 #define OSMESA_ROW_LENGTH       0x10
    116 #define OSMESA_Y_UP             0x11
     118#define OSMESA_ROW_LENGTH       0x10
     119#define OSMESA_Y_UP             0x11
    117120
    118121
     
    120123 * Accepted by OSMesaGetIntegerv:
    121124 */
    122 #define OSMESA_WIDTH            0x20
    123 #define OSMESA_HEIGHT           0x21
    124 #define OSMESA_FORMAT           0x22
    125 #define OSMESA_TYPE             0x23
     125#define OSMESA_WIDTH            0x20
     126#define OSMESA_HEIGHT           0x21
     127#define OSMESA_FORMAT           0x22
     128#define OSMESA_TYPE             0x23
     129
     130
     131
     132/*
     133 * Accepted by OSMesaGetBooleanv:
     134 * New in version 3.3
     135 */
     136/* This is based on the HP proposed extension */
     137#define OSMESA_OCCLUSION_TEST_RESULT_HP 0x30
    126138
    127139
     
    234246
    235247/*
     248 * Return a boolean value like glGetBooleanv.
     249 * Input:  pname -
     250 *                 OSMESA_OCCLUSION_TEST_RESULT_HP  return current test result
     251 *         value - pointer to boolean in which to return result.
     252 */
     253GLAPI void GLAPIENTRY OSMesaGetBooleanv( GLint pname, GLboolean *value );
     254
     255
     256
     257/*
    236258 * Return the depth buffer associated with an OSMesa context.
    237259 * Input:  c - the OSMesa context
Note: See TracChangeset for help on using the changeset viewer.