diff options
-rw-r--r-- | lib/wx/api_gen/wx_extra/wxListCtrl.c_src | 134 | ||||
-rw-r--r-- | lib/wx/api_gen/wx_extra/wxListCtrl.erl | 54 | ||||
-rw-r--r-- | lib/wx/api_gen/wxapi.conf | 3 | ||||
-rw-r--r-- | lib/wx/c_src/gen/wxe_funcs.cpp | 20 | ||||
-rw-r--r-- | lib/wx/include/gl.hrl | 1682 | ||||
-rw-r--r-- | lib/wx/src/gen/wxListCtrl.erl | 37 |
6 files changed, 849 insertions, 1081 deletions
diff --git a/lib/wx/api_gen/wx_extra/wxListCtrl.c_src b/lib/wx/api_gen/wx_extra/wxListCtrl.c_src index 6443c02be2..54d6fafd01 100644 --- a/lib/wx/api_gen/wx_extra/wxListCtrl.c_src +++ b/lib/wx/api_gen/wx_extra/wxListCtrl.c_src @@ -17,30 +17,25 @@ %% %CopyrightEnd% %% -<<SortItems -case ~s: { // wxListCtrl::SortItems taylormade - wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4; - int sortCallback=*(int *) bp; bp += 4; - if(!This) throw wxe_badarg(0); - callbackInfo* cb = new callbackInfo(); - cb->port = Ecmd.port; - cb->callbackID = sortCallback; - bool Result = This->SortItems(wxEListCtrlCompare, (long)cb); - delete cb; +<<wxListCtrl_class +class EwxListCtrl : public wxListCtrl { + public: ~EwxListCtrl(); + EwxListCtrl(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxListCtrl(parent,winid,pos,size,style,validator) {}; + EwxListCtrl() : wxListCtrl() {}; - /* Destroy the callback, see wxEPrintout::clear_cb */ - wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false); - // NOTE: Remove this later when changing from funs to gen_server - cbrt.addAtom("wx_delete_cb"); - cbrt.addInt(sortCallback); - cbrt.addTupleCount(2); - cbrt.send(); + int onGetItemText; + int onGetItemAttr; + int onGetItemColumnImage; + ErlDrvPort port; - rt.addBool(Result); - break; -} -SortItems>> + private: + virtual wxString OnGetItemText(long item, long col) const; + virtual wxListItemAttr* OnGetItemAttr(long item) const; + virtual int OnGetItemImage(long item) const; + virtual int OnGetItemColumnImage(long item, long column) const; +}; +wxListCtrl_class>> <<wxListCtrl_new_0 case ~s: { // wxListCtrl::wxListCtrl @@ -105,21 +100,86 @@ validator = (wxValidator *) getPtr(bp,memenv); bp += 4; } wxListCtrl_new_2>> -<<wxListCtrl_class -class EwxListCtrl : public wxListCtrl { - public: ~EwxListCtrl(); - EwxListCtrl(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxListCtrl(parent,winid,pos,size,style,validator) {}; - EwxListCtrl() : wxListCtrl() {}; +<<Create +case ~s: { // wxListCtrl::Create + wxWindowID winid=wxID_ANY; + wxPoint pos= wxDefaultPosition; + wxSize size= wxDefaultSize; + long style=wxLC_ICON; + const wxValidator * validator= &wxDefaultValidator; + EwxListCtrl *This = (EwxListCtrl *) getPtr(bp,memenv); bp += 4; + wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4; + int onGetItemText = 0, onGetItemAttr = 0, onGetItemColumnImage = 0; + + bp += 4; /* Align */ + while( * (int*) bp) { switch (* (int*) bp) { + case 1: {bp += 4; + winid = (wxWindowID)*(int *) bp; bp += 4; + } break; + case 2: {bp += 4; + int * posX = (int *) bp; bp += 4; + int * posY = (int *) bp; bp += 4; + pos = wxPoint(*posX,*posY); + bp += 4; /* Align */ + } break; + case 3: {bp += 4; + int * sizeW = (int *) bp; bp += 4; + int * sizeH = (int *) bp; bp += 4; + size = wxSize(*sizeW,*sizeH); + bp += 4; /* Align */ + } break; + case 4: {bp += 4; + style = (long)*(int *) bp; bp += 4; + } break; + case 5: {bp += 4; +validator = (wxValidator *) getPtr(bp,memenv); bp += 4; + } break; + case 6: {bp += 4; + onGetItemText = *(int *) bp; bp += 4; + } break; + case 7: {bp += 4; + onGetItemAttr = *(int *) bp; bp += 4; + } break; + case 8: {bp += 4; + onGetItemColumnImage = *(int *) bp; bp += 4; + } break; + }}; + if(!This) throw wxe_badarg(0); + bool Result = This->Create(parent,winid,pos,size,style,*validator); + This->onGetItemText = onGetItemText; + This->onGetItemAttr = onGetItemAttr; + This->onGetItemColumnImage = onGetItemColumnImage; + This->port = Ecmd.port; + + rt.addBool(Result); + break; +} +Create>> + +<<SortItems +case ~s: { // wxListCtrl::SortItems taylormade + wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4; + int sortCallback=*(int *) bp; bp += 4; + if(!This) throw wxe_badarg(0); + + callbackInfo* cb = new callbackInfo(); + cb->port = Ecmd.port; + cb->callbackID = sortCallback; + bool Result = This->SortItems(wxEListCtrlCompare, (long)cb); + delete cb; + + /* Destroy the callback, see wxEPrintout::clear_cb */ + wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false); + // NOTE: Remove this later when changing from funs to gen_server + cbrt.addAtom("wx_delete_cb"); + cbrt.addInt(sortCallback); + cbrt.addTupleCount(2); + cbrt.send(); + + rt.addBool(Result); + break; +} +SortItems>> + - int onGetItemText; - int onGetItemAttr; - int onGetItemColumnImage; - ErlDrvPort port; - private: - virtual wxString OnGetItemText(long item, long col) const; - virtual wxListItemAttr* OnGetItemAttr(long item) const; - virtual int OnGetItemImage(long item) const; - virtual int OnGetItemColumnImage(long item, long column) const; -}; -wxListCtrl_class>>
\ No newline at end of file diff --git a/lib/wx/api_gen/wx_extra/wxListCtrl.erl b/lib/wx/api_gen/wx_extra/wxListCtrl.erl index e6a77fef59..99255bc53f 100644 --- a/lib/wx/api_gen/wx_extra/wxListCtrl.erl +++ b/lib/wx/api_gen/wx_extra/wxListCtrl.erl @@ -59,14 +59,17 @@ new(Parent) %% Option = {winid, integer()} | %% {pos, {X::integer(),Y::integer()}} | %% {size, {W::integer(),H::integer()}} | -%% {style, integer()} | {validator, wx:wx()} -%% {VirtualCallback, Callback::function()} +%% {style, integer()} | +%% {validator, wx:wx()} | +%% {onGetItemText, OnGetItemText} | +%% {onGetItemAttr, OnGetItemAttr} | +%% {onGetItemColumnImage, OnGetItemColumnImage} %% -%% VirtualCallback = onGetItemText | onGetItemAttr | onGetItemImage | onGetItemColumnImage -%% Callback = fun OnGetItemText(This, Item, Column) -> wxString() | -%% fun OnGetItemAttr(This, Item) -> wxListItemAttr() | -%% fun OnGetItemColumnImage(This, Item, Column) -> integer() +%% OnGetItemText = (This, Item, Column) -> wxString() +%% OnGetItemAttr = (This, Item) -> wxListItemAttr() +%% OnGetItemColumnImage = (This, Item, Column) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlwxlistctrl">external documentation</a>. + new(#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options)-> ?CLASS(ParentT,wxWindow), @@ -93,3 +96,42 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) wxe_util:construct(~s, <<ParentRef:32/?UI, 0:32,BinOpt/binary>>). wxListCtrl_new_2>> + +<<EXPORT:Create create/2, create/3 Create:EXPORT>> + +<<Create +%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow()) -> bool() +%% @equiv create(This,Parent, []) +create(This,Parent) + when is_record(This, wx_ref),is_record(Parent, wx_ref) -> + create(This,Parent, []). + +%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool() +%% Option = {winid, integer()} | +%% {pos, {X::integer(),Y::integer()}} | +%% {size, {W::integer(),H::integer()}} | +%% {style, integer()} | +%% {validator, wx:wx()} | +%% {onGetItemText, OnGetItemText} | +%% {onGetItemAttr, OnGetItemAttr} | +%% {onGetItemColumnImage, OnGetItemColumnImage} +%% +%% OnGetItemText = (This, Item, Column) -> wxString() +%% OnGetItemAttr = (This, Item) -> wxListItemAttr() +%% OnGetItemColumnImage = (This, Item, Column) -> integer() +%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlcreate">external documentation</a>. +create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options) + when is_list(Options) -> + ?CLASS(ThisT,wxListCtrl), + ?CLASS(ParentT,wxWindow), + MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc]; + ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc]; + ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc]; + ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc]; + ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc]; + (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, + BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), + wxe_util:call(~s, + <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>). + +Create>> diff --git a/lib/wx/api_gen/wxapi.conf b/lib/wx/api_gen/wxapi.conf index 945f3afb00..8ee4451057 100644 --- a/lib/wx/api_gen/wxapi.conf +++ b/lib/wx/api_gen/wxapi.conf @@ -757,7 +757,8 @@ {class, wxListCtrl, wxControl, [], [{'wxListCtrl', [{where, taylormade}]}, - '~wxListCtrl','Arrange','AssignImageList','ClearAll','Create', + '~wxListCtrl','Arrange','AssignImageList','ClearAll', + {'Create',[{where, taylormade}]}, 'DeleteAllItems','DeleteColumn','DeleteItem', {'EditLabel',[{"textControlClass",nowhere}]}, 'EnsureVisible', diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index 189817d2ad..afef2990b4 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -15230,14 +15230,18 @@ case wxListCtrl_ClearAll: { // wxListCtrl::ClearAll This->ClearAll(); break; } + case wxListCtrl_Create: { // wxListCtrl::Create wxWindowID winid=wxID_ANY; wxPoint pos= wxDefaultPosition; wxSize size= wxDefaultSize; long style=wxLC_ICON; const wxValidator * validator= &wxDefaultValidator; - wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4; + EwxListCtrl *This = (EwxListCtrl *) getPtr(bp,memenv); bp += 4; wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4; + int onGetItemText = 0, onGetItemAttr = 0, onGetItemColumnImage = 0; + + bp += 4; /* Align */ while( * (int*) bp) { switch (* (int*) bp) { case 1: {bp += 4; winid = (wxWindowID)*(int *) bp; bp += 4; @@ -15260,9 +15264,23 @@ case wxListCtrl_Create: { // wxListCtrl::Create case 5: {bp += 4; validator = (wxValidator *) getPtr(bp,memenv); bp += 4; } break; + case 6: {bp += 4; + onGetItemText = *(int *) bp; bp += 4; + } break; + case 7: {bp += 4; + onGetItemAttr = *(int *) bp; bp += 4; + } break; + case 8: {bp += 4; + onGetItemColumnImage = *(int *) bp; bp += 4; + } break; }}; if(!This) throw wxe_badarg(0); bool Result = This->Create(parent,winid,pos,size,style,*validator); + This->onGetItemText = onGetItemText; + This->onGetItemAttr = onGetItemAttr; + This->onGetItemColumnImage = onGetItemColumnImage; + This->port = Ecmd.port; + rt.addBool(Result); break; } diff --git a/lib/wx/include/gl.hrl b/lib/wx/include/gl.hrl index 52f2635af9..54eb551285 100644 --- a/lib/wx/include/gl.hrl +++ b/lib/wx/include/gl.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. All Rights Reserved. +%% Copyright Ericsson AB 2008-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -21,32 +21,22 @@ %% This file is generated DO NOT EDIT -define(GL_VERSION_1_1, 1). --define(GL_CURRENT_BIT, 16#1). --define(GL_POINT_BIT, 16#2). --define(GL_LINE_BIT, 16#4). --define(GL_POLYGON_BIT, 16#8). --define(GL_POLYGON_STIPPLE_BIT, 16#10). --define(GL_PIXEL_MODE_BIT, 16#20). --define(GL_LIGHTING_BIT, 16#40). --define(GL_FOG_BIT, 16#80). --define(GL_DEPTH_BUFFER_BIT, 16#100). --define(GL_ACCUM_BUFFER_BIT, 16#200). --define(GL_STENCIL_BUFFER_BIT, 16#400). --define(GL_VIEWPORT_BIT, 16#800). --define(GL_TRANSFORM_BIT, 16#1000). --define(GL_ENABLE_BIT, 16#2000). --define(GL_COLOR_BUFFER_BIT, 16#4000). --define(GL_HINT_BIT, 16#8000). --define(GL_EVAL_BIT, 16#10000). --define(GL_LIST_BIT, 16#20000). --define(GL_TEXTURE_BIT, 16#40000). --define(GL_SCISSOR_BIT, 16#80000). --define(GL_ALL_ATTRIB_BITS, 16#FFFFFFFF). --define(GL_CLIENT_PIXEL_STORE_BIT, 16#1). --define(GL_CLIENT_VERTEX_ARRAY_BIT, 16#2). --define(GL_CLIENT_ALL_ATTRIB_BITS, 16#FFFFFFFF). --define(GL_FALSE, 0). --define(GL_TRUE, 1). +-define(GL_VERSION_1_2, 1). +-define(GL_VERSION_1_3, 1). +-define(GL_ARB_imaging, 1). +-define(GL_FALSE, 16#0). +-define(GL_TRUE, 16#1). +-define(GL_BYTE, 16#1400). +-define(GL_UNSIGNED_BYTE, 16#1401). +-define(GL_SHORT, 16#1402). +-define(GL_UNSIGNED_SHORT, 16#1403). +-define(GL_INT, 16#1404). +-define(GL_UNSIGNED_INT, 16#1405). +-define(GL_FLOAT, 16#1406). +-define(GL_2_BYTES, 16#1407). +-define(GL_3_BYTES, 16#1408). +-define(GL_4_BYTES, 16#1409). +-define(GL_DOUBLE, 16#140A). -define(GL_POINTS, 16#0). -define(GL_LINES, 16#1). -define(GL_LINE_LOOP, 16#2). @@ -57,11 +47,85 @@ -define(GL_QUADS, 16#7). -define(GL_QUAD_STRIP, 16#8). -define(GL_POLYGON, 16#9). --define(GL_ACCUM, 16#100). --define(GL_LOAD, 16#101). --define(GL_RETURN, 16#102). --define(GL_MULT, 16#103). --define(GL_ADD, 16#104). +-define(GL_VERTEX_ARRAY, 16#8074). +-define(GL_NORMAL_ARRAY, 16#8075). +-define(GL_COLOR_ARRAY, 16#8076). +-define(GL_INDEX_ARRAY, 16#8077). +-define(GL_TEXTURE_COORD_ARRAY, 16#8078). +-define(GL_EDGE_FLAG_ARRAY, 16#8079). +-define(GL_VERTEX_ARRAY_SIZE, 16#807A). +-define(GL_VERTEX_ARRAY_TYPE, 16#807B). +-define(GL_VERTEX_ARRAY_STRIDE, 16#807C). +-define(GL_NORMAL_ARRAY_TYPE, 16#807E). +-define(GL_NORMAL_ARRAY_STRIDE, 16#807F). +-define(GL_COLOR_ARRAY_SIZE, 16#8081). +-define(GL_COLOR_ARRAY_TYPE, 16#8082). +-define(GL_COLOR_ARRAY_STRIDE, 16#8083). +-define(GL_INDEX_ARRAY_TYPE, 16#8085). +-define(GL_INDEX_ARRAY_STRIDE, 16#8086). +-define(GL_TEXTURE_COORD_ARRAY_SIZE, 16#8088). +-define(GL_TEXTURE_COORD_ARRAY_TYPE, 16#8089). +-define(GL_TEXTURE_COORD_ARRAY_STRIDE, 16#808A). +-define(GL_EDGE_FLAG_ARRAY_STRIDE, 16#808C). +-define(GL_VERTEX_ARRAY_POINTER, 16#808E). +-define(GL_NORMAL_ARRAY_POINTER, 16#808F). +-define(GL_COLOR_ARRAY_POINTER, 16#8090). +-define(GL_INDEX_ARRAY_POINTER, 16#8091). +-define(GL_TEXTURE_COORD_ARRAY_POINTER, 16#8092). +-define(GL_EDGE_FLAG_ARRAY_POINTER, 16#8093). +-define(GL_V2F, 16#2A20). +-define(GL_V3F, 16#2A21). +-define(GL_C4UB_V2F, 16#2A22). +-define(GL_C4UB_V3F, 16#2A23). +-define(GL_C3F_V3F, 16#2A24). +-define(GL_N3F_V3F, 16#2A25). +-define(GL_C4F_N3F_V3F, 16#2A26). +-define(GL_T2F_V3F, 16#2A27). +-define(GL_T4F_V4F, 16#2A28). +-define(GL_T2F_C4UB_V3F, 16#2A29). +-define(GL_T2F_C3F_V3F, 16#2A2A). +-define(GL_T2F_N3F_V3F, 16#2A2B). +-define(GL_T2F_C4F_N3F_V3F, 16#2A2C). +-define(GL_T4F_C4F_N3F_V4F, 16#2A2D). +-define(GL_MATRIX_MODE, 16#BA0). +-define(GL_MODELVIEW, 16#1700). +-define(GL_PROJECTION, 16#1701). +-define(GL_TEXTURE, 16#1702). +-define(GL_POINT_SMOOTH, 16#B10). +-define(GL_POINT_SIZE, 16#B11). +-define(GL_POINT_SIZE_GRANULARITY, 16#B13). +-define(GL_POINT_SIZE_RANGE, 16#B12). +-define(GL_LINE_SMOOTH, 16#B20). +-define(GL_LINE_STIPPLE, 16#B24). +-define(GL_LINE_STIPPLE_PATTERN, 16#B25). +-define(GL_LINE_STIPPLE_REPEAT, 16#B26). +-define(GL_LINE_WIDTH, 16#B21). +-define(GL_LINE_WIDTH_GRANULARITY, 16#B23). +-define(GL_LINE_WIDTH_RANGE, 16#B22). +-define(GL_POINT, 16#1B00). +-define(GL_LINE, 16#1B01). +-define(GL_FILL, 16#1B02). +-define(GL_CW, 16#900). +-define(GL_CCW, 16#901). +-define(GL_FRONT, 16#404). +-define(GL_BACK, 16#405). +-define(GL_POLYGON_MODE, 16#B40). +-define(GL_POLYGON_SMOOTH, 16#B41). +-define(GL_POLYGON_STIPPLE, 16#B42). +-define(GL_EDGE_FLAG, 16#B43). +-define(GL_CULL_FACE, 16#B44). +-define(GL_CULL_FACE_MODE, 16#B45). +-define(GL_FRONT_FACE, 16#B46). +-define(GL_POLYGON_OFFSET_FACTOR, 16#8038). +-define(GL_POLYGON_OFFSET_UNITS, 16#2A00). +-define(GL_POLYGON_OFFSET_POINT, 16#2A01). +-define(GL_POLYGON_OFFSET_LINE, 16#2A02). +-define(GL_POLYGON_OFFSET_FILL, 16#8037). +-define(GL_COMPILE, 16#1300). +-define(GL_COMPILE_AND_EXECUTE, 16#1301). +-define(GL_LIST_BASE, 16#B32). +-define(GL_LIST_INDEX, 16#B33). +-define(GL_LIST_MODE, 16#B30). -define(GL_NEVER, 16#200). -define(GL_LESS, 16#201). -define(GL_EQUAL, 16#202). @@ -70,8 +134,71 @@ -define(GL_NOTEQUAL, 16#205). -define(GL_GEQUAL, 16#206). -define(GL_ALWAYS, 16#207). --define(GL_ZERO, 0). --define(GL_ONE, 1). +-define(GL_DEPTH_TEST, 16#B71). +-define(GL_DEPTH_BITS, 16#D56). +-define(GL_DEPTH_CLEAR_VALUE, 16#B73). +-define(GL_DEPTH_FUNC, 16#B74). +-define(GL_DEPTH_RANGE, 16#B70). +-define(GL_DEPTH_WRITEMASK, 16#B72). +-define(GL_DEPTH_COMPONENT, 16#1902). +-define(GL_LIGHTING, 16#B50). +-define(GL_LIGHT0, 16#4000). +-define(GL_LIGHT1, 16#4001). +-define(GL_LIGHT2, 16#4002). +-define(GL_LIGHT3, 16#4003). +-define(GL_LIGHT4, 16#4004). +-define(GL_LIGHT5, 16#4005). +-define(GL_LIGHT6, 16#4006). +-define(GL_LIGHT7, 16#4007). +-define(GL_SPOT_EXPONENT, 16#1205). +-define(GL_SPOT_CUTOFF, 16#1206). +-define(GL_CONSTANT_ATTENUATION, 16#1207). +-define(GL_LINEAR_ATTENUATION, 16#1208). +-define(GL_QUADRATIC_ATTENUATION, 16#1209). +-define(GL_AMBIENT, 16#1200). +-define(GL_DIFFUSE, 16#1201). +-define(GL_SPECULAR, 16#1202). +-define(GL_SHININESS, 16#1601). +-define(GL_EMISSION, 16#1600). +-define(GL_POSITION, 16#1203). +-define(GL_SPOT_DIRECTION, 16#1204). +-define(GL_AMBIENT_AND_DIFFUSE, 16#1602). +-define(GL_COLOR_INDEXES, 16#1603). +-define(GL_LIGHT_MODEL_TWO_SIDE, 16#B52). +-define(GL_LIGHT_MODEL_LOCAL_VIEWER, 16#B51). +-define(GL_LIGHT_MODEL_AMBIENT, 16#B53). +-define(GL_FRONT_AND_BACK, 16#408). +-define(GL_SHADE_MODEL, 16#B54). +-define(GL_FLAT, 16#1D00). +-define(GL_SMOOTH, 16#1D01). +-define(GL_COLOR_MATERIAL, 16#B57). +-define(GL_COLOR_MATERIAL_FACE, 16#B55). +-define(GL_COLOR_MATERIAL_PARAMETER, 16#B56). +-define(GL_NORMALIZE, 16#BA1). +-define(GL_CLIP_PLANE0, 16#3000). +-define(GL_CLIP_PLANE1, 16#3001). +-define(GL_CLIP_PLANE2, 16#3002). +-define(GL_CLIP_PLANE3, 16#3003). +-define(GL_CLIP_PLANE4, 16#3004). +-define(GL_CLIP_PLANE5, 16#3005). +-define(GL_ACCUM_RED_BITS, 16#D58). +-define(GL_ACCUM_GREEN_BITS, 16#D59). +-define(GL_ACCUM_BLUE_BITS, 16#D5A). +-define(GL_ACCUM_ALPHA_BITS, 16#D5B). +-define(GL_ACCUM_CLEAR_VALUE, 16#B80). +-define(GL_ACCUM, 16#100). +-define(GL_ADD, 16#104). +-define(GL_LOAD, 16#101). +-define(GL_MULT, 16#103). +-define(GL_RETURN, 16#102). +-define(GL_ALPHA_TEST, 16#BC0). +-define(GL_ALPHA_TEST_REF, 16#BC2). +-define(GL_ALPHA_TEST_FUNC, 16#BC1). +-define(GL_BLEND, 16#BE2). +-define(GL_BLEND_SRC, 16#BE1). +-define(GL_BLEND_DST, 16#BE0). +-define(GL_ZERO, 16#0). +-define(GL_ONE, 16#1). -define(GL_SRC_COLOR, 16#300). -define(GL_ONE_MINUS_SRC_COLOR, 16#301). -define(GL_SRC_ALPHA, 16#302). @@ -81,121 +208,58 @@ -define(GL_DST_COLOR, 16#306). -define(GL_ONE_MINUS_DST_COLOR, 16#307). -define(GL_SRC_ALPHA_SATURATE, 16#308). --define(GL_NONE, 0). --define(GL_FRONT_LEFT, 16#400). --define(GL_FRONT_RIGHT, 16#401). --define(GL_BACK_LEFT, 16#402). --define(GL_BACK_RIGHT, 16#403). --define(GL_FRONT, 16#404). --define(GL_BACK, 16#405). --define(GL_LEFT, 16#406). --define(GL_RIGHT, 16#407). --define(GL_FRONT_AND_BACK, 16#408). --define(GL_AUX0, 16#409). --define(GL_AUX1, 16#40A). --define(GL_AUX2, 16#40B). --define(GL_AUX3, 16#40C). --define(GL_NO_ERROR, 0). --define(GL_INVALID_ENUM, 16#500). --define(GL_INVALID_VALUE, 16#501). --define(GL_INVALID_OPERATION, 16#502). --define(GL_STACK_OVERFLOW, 16#503). --define(GL_STACK_UNDERFLOW, 16#504). --define(GL_OUT_OF_MEMORY, 16#505). --define(GL_TABLE_TOO_LARGE, 16#8031). +-define(GL_FEEDBACK, 16#1C01). +-define(GL_RENDER, 16#1C00). +-define(GL_SELECT, 16#1C02). -define(GL_2D, 16#600). -define(GL_3D, 16#601). -define(GL_3D_COLOR, 16#602). -define(GL_3D_COLOR_TEXTURE, 16#603). -define(GL_4D_COLOR_TEXTURE, 16#604). --define(GL_PASS_THROUGH_TOKEN, 16#700). -define(GL_POINT_TOKEN, 16#701). -define(GL_LINE_TOKEN, 16#702). +-define(GL_LINE_RESET_TOKEN, 16#707). -define(GL_POLYGON_TOKEN, 16#703). -define(GL_BITMAP_TOKEN, 16#704). -define(GL_DRAW_PIXEL_TOKEN, 16#705). -define(GL_COPY_PIXEL_TOKEN, 16#706). --define(GL_LINE_RESET_TOKEN, 16#707). --define(GL_EXP, 16#800). --define(GL_EXP2, 16#801). --define(GL_CW, 16#900). --define(GL_CCW, 16#901). --define(GL_COEFF, 16#A00). --define(GL_ORDER, 16#A01). --define(GL_DOMAIN, 16#A02). --define(GL_PIXEL_MAP_I_TO_I, 16#C70). --define(GL_PIXEL_MAP_S_TO_S, 16#C71). --define(GL_PIXEL_MAP_I_TO_R, 16#C72). --define(GL_PIXEL_MAP_I_TO_G, 16#C73). --define(GL_PIXEL_MAP_I_TO_B, 16#C74). --define(GL_PIXEL_MAP_I_TO_A, 16#C75). --define(GL_PIXEL_MAP_R_TO_R, 16#C76). --define(GL_PIXEL_MAP_G_TO_G, 16#C77). --define(GL_PIXEL_MAP_B_TO_B, 16#C78). --define(GL_PIXEL_MAP_A_TO_A, 16#C79). --define(GL_VERTEX_ARRAY_POINTER, 16#808E). --define(GL_NORMAL_ARRAY_POINTER, 16#808F). --define(GL_COLOR_ARRAY_POINTER, 16#8090). --define(GL_INDEX_ARRAY_POINTER, 16#8091). --define(GL_TEXTURE_COORD_ARRAY_POINTER, 16#8092). --define(GL_EDGE_FLAG_ARRAY_POINTER, 16#8093). --define(GL_CURRENT_COLOR, 16#B00). --define(GL_CURRENT_INDEX, 16#B01). --define(GL_CURRENT_NORMAL, 16#B02). --define(GL_CURRENT_TEXTURE_COORDS, 16#B03). --define(GL_CURRENT_RASTER_COLOR, 16#B04). --define(GL_CURRENT_RASTER_INDEX, 16#B05). --define(GL_CURRENT_RASTER_TEXTURE_COORDS, 16#B06). --define(GL_CURRENT_RASTER_POSITION, 16#B07). --define(GL_CURRENT_RASTER_POSITION_VALID, 16#B08). --define(GL_CURRENT_RASTER_DISTANCE, 16#B09). --define(GL_POINT_SMOOTH, 16#B10). --define(GL_POINT_SIZE, 16#B11). --define(GL_SMOOTH_POINT_SIZE_RANGE, 16#B12). --define(GL_SMOOTH_POINT_SIZE_GRANULARITY, 16#B13). --define(GL_POINT_SIZE_RANGE, ?GL_SMOOTH_POINT_SIZE_RANGE). --define(GL_POINT_SIZE_GRANULARITY, ?GL_SMOOTH_POINT_SIZE_GRANULARITY). --define(GL_LINE_SMOOTH, 16#B20). --define(GL_LINE_WIDTH, 16#B21). --define(GL_SMOOTH_LINE_WIDTH_RANGE, 16#B22). --define(GL_SMOOTH_LINE_WIDTH_GRANULARITY, 16#B23). --define(GL_LINE_WIDTH_RANGE, ?GL_SMOOTH_LINE_WIDTH_RANGE). --define(GL_LINE_WIDTH_GRANULARITY, ?GL_SMOOTH_LINE_WIDTH_GRANULARITY). --define(GL_LINE_STIPPLE, 16#B24). --define(GL_LINE_STIPPLE_PATTERN, 16#B25). --define(GL_LINE_STIPPLE_REPEAT, 16#B26). --define(GL_LIST_MODE, 16#B30). --define(GL_MAX_LIST_NESTING, 16#B31). --define(GL_LIST_BASE, 16#B32). --define(GL_LIST_INDEX, 16#B33). --define(GL_POLYGON_MODE, 16#B40). --define(GL_POLYGON_SMOOTH, 16#B41). --define(GL_POLYGON_STIPPLE, 16#B42). --define(GL_EDGE_FLAG, 16#B43). --define(GL_CULL_FACE, 16#B44). --define(GL_CULL_FACE_MODE, 16#B45). --define(GL_FRONT_FACE, 16#B46). --define(GL_LIGHTING, 16#B50). --define(GL_LIGHT_MODEL_LOCAL_VIEWER, 16#B51). --define(GL_LIGHT_MODEL_TWO_SIDE, 16#B52). --define(GL_LIGHT_MODEL_AMBIENT, 16#B53). --define(GL_SHADE_MODEL, 16#B54). --define(GL_COLOR_MATERIAL_FACE, 16#B55). --define(GL_COLOR_MATERIAL_PARAMETER, 16#B56). --define(GL_COLOR_MATERIAL, 16#B57). +-define(GL_PASS_THROUGH_TOKEN, 16#700). +-define(GL_FEEDBACK_BUFFER_POINTER, 16#DF0). +-define(GL_FEEDBACK_BUFFER_SIZE, 16#DF1). +-define(GL_FEEDBACK_BUFFER_TYPE, 16#DF2). +-define(GL_SELECTION_BUFFER_POINTER, 16#DF3). +-define(GL_SELECTION_BUFFER_SIZE, 16#DF4). -define(GL_FOG, 16#B60). --define(GL_FOG_INDEX, 16#B61). +-define(GL_FOG_MODE, 16#B65). -define(GL_FOG_DENSITY, 16#B62). +-define(GL_FOG_COLOR, 16#B66). +-define(GL_FOG_INDEX, 16#B61). -define(GL_FOG_START, 16#B63). -define(GL_FOG_END, 16#B64). --define(GL_FOG_MODE, 16#B65). --define(GL_FOG_COLOR, 16#B66). --define(GL_DEPTH_RANGE, 16#B70). --define(GL_DEPTH_TEST, 16#B71). --define(GL_DEPTH_WRITEMASK, 16#B72). --define(GL_DEPTH_CLEAR_VALUE, 16#B73). --define(GL_DEPTH_FUNC, 16#B74). --define(GL_ACCUM_CLEAR_VALUE, 16#B80). +-define(GL_LINEAR, 16#2601). +-define(GL_EXP, 16#800). +-define(GL_EXP2, 16#801). +-define(GL_LOGIC_OP, 16#BF1). +-define(GL_INDEX_LOGIC_OP, 16#BF1). +-define(GL_COLOR_LOGIC_OP, 16#BF2). +-define(GL_LOGIC_OP_MODE, 16#BF0). +-define(GL_CLEAR, 16#1500). +-define(GL_SET, 16#150F). +-define(GL_COPY, 16#1503). +-define(GL_COPY_INVERTED, 16#150C). +-define(GL_NOOP, 16#1505). +-define(GL_INVERT, 16#150A). +-define(GL_AND, 16#1501). +-define(GL_NAND, 16#150E). +-define(GL_OR, 16#1507). +-define(GL_NOR, 16#1508). +-define(GL_XOR, 16#1506). +-define(GL_EQUIV, 16#1509). +-define(GL_AND_REVERSE, 16#1502). +-define(GL_AND_INVERTED, 16#1504). +-define(GL_OR_REVERSE, 16#150B). +-define(GL_OR_INVERTED, 16#150D). +-define(GL_STENCIL_BITS, 16#D57). -define(GL_STENCIL_TEST, 16#B90). -define(GL_STENCIL_CLEAR_VALUE, 16#B91). -define(GL_STENCIL_FUNC, 16#B92). @@ -205,89 +269,48 @@ -define(GL_STENCIL_PASS_DEPTH_PASS, 16#B96). -define(GL_STENCIL_REF, 16#B97). -define(GL_STENCIL_WRITEMASK, 16#B98). --define(GL_MATRIX_MODE, 16#BA0). --define(GL_NORMALIZE, 16#BA1). --define(GL_VIEWPORT, 16#BA2). --define(GL_MODELVIEW_STACK_DEPTH, 16#BA3). --define(GL_PROJECTION_STACK_DEPTH, 16#BA4). --define(GL_TEXTURE_STACK_DEPTH, 16#BA5). --define(GL_MODELVIEW_MATRIX, 16#BA6). --define(GL_PROJECTION_MATRIX, 16#BA7). --define(GL_TEXTURE_MATRIX, 16#BA8). --define(GL_ATTRIB_STACK_DEPTH, 16#BB0). --define(GL_CLIENT_ATTRIB_STACK_DEPTH, 16#BB1). --define(GL_ALPHA_TEST, 16#BC0). --define(GL_ALPHA_TEST_FUNC, 16#BC1). --define(GL_ALPHA_TEST_REF, 16#BC2). --define(GL_DITHER, 16#BD0). --define(GL_BLEND_DST, 16#BE0). --define(GL_BLEND_SRC, 16#BE1). --define(GL_BLEND, 16#BE2). --define(GL_LOGIC_OP_MODE, 16#BF0). --define(GL_INDEX_LOGIC_OP, 16#BF1). --define(GL_LOGIC_OP, ?GL_INDEX_LOGIC_OP). --define(GL_COLOR_LOGIC_OP, 16#BF2). +-define(GL_STENCIL_INDEX, 16#1901). +-define(GL_KEEP, 16#1E00). +-define(GL_REPLACE, 16#1E01). +-define(GL_INCR, 16#1E02). +-define(GL_DECR, 16#1E03). +-define(GL_NONE, 16#0). +-define(GL_LEFT, 16#406). +-define(GL_RIGHT, 16#407). +-define(GL_FRONT_LEFT, 16#400). +-define(GL_FRONT_RIGHT, 16#401). +-define(GL_BACK_LEFT, 16#402). +-define(GL_BACK_RIGHT, 16#403). +-define(GL_AUX0, 16#409). +-define(GL_AUX1, 16#40A). +-define(GL_AUX2, 16#40B). +-define(GL_AUX3, 16#40C). +-define(GL_COLOR_INDEX, 16#1900). +-define(GL_RED, 16#1903). +-define(GL_GREEN, 16#1904). +-define(GL_BLUE, 16#1905). +-define(GL_ALPHA, 16#1906). +-define(GL_LUMINANCE, 16#1909). +-define(GL_LUMINANCE_ALPHA, 16#190A). +-define(GL_ALPHA_BITS, 16#D55). +-define(GL_RED_BITS, 16#D52). +-define(GL_GREEN_BITS, 16#D53). +-define(GL_BLUE_BITS, 16#D54). +-define(GL_INDEX_BITS, 16#D51). +-define(GL_SUBPIXEL_BITS, 16#D50). -define(GL_AUX_BUFFERS, 16#C00). --define(GL_DRAW_BUFFER, 16#C01). -define(GL_READ_BUFFER, 16#C02). --define(GL_SCISSOR_BOX, 16#C10). --define(GL_SCISSOR_TEST, 16#C11). --define(GL_INDEX_CLEAR_VALUE, 16#C20). --define(GL_INDEX_WRITEMASK, 16#C21). --define(GL_COLOR_CLEAR_VALUE, 16#C22). --define(GL_COLOR_WRITEMASK, 16#C23). --define(GL_INDEX_MODE, 16#C30). --define(GL_RGBA_MODE, 16#C31). +-define(GL_DRAW_BUFFER, 16#C01). -define(GL_DOUBLEBUFFER, 16#C32). -define(GL_STEREO, 16#C33). --define(GL_RENDER_MODE, 16#C40). --define(GL_PERSPECTIVE_CORRECTION_HINT, 16#C50). --define(GL_POINT_SMOOTH_HINT, 16#C51). --define(GL_LINE_SMOOTH_HINT, 16#C52). --define(GL_POLYGON_SMOOTH_HINT, 16#C53). --define(GL_FOG_HINT, 16#C54). --define(GL_TEXTURE_GEN_S, 16#C60). --define(GL_TEXTURE_GEN_T, 16#C61). --define(GL_TEXTURE_GEN_R, 16#C62). --define(GL_TEXTURE_GEN_Q, 16#C63). --define(GL_PIXEL_MAP_I_TO_I_SIZE, 16#CB0). --define(GL_PIXEL_MAP_S_TO_S_SIZE, 16#CB1). --define(GL_PIXEL_MAP_I_TO_R_SIZE, 16#CB2). --define(GL_PIXEL_MAP_I_TO_G_SIZE, 16#CB3). --define(GL_PIXEL_MAP_I_TO_B_SIZE, 16#CB4). --define(GL_PIXEL_MAP_I_TO_A_SIZE, 16#CB5). --define(GL_PIXEL_MAP_R_TO_R_SIZE, 16#CB6). --define(GL_PIXEL_MAP_G_TO_G_SIZE, 16#CB7). --define(GL_PIXEL_MAP_B_TO_B_SIZE, 16#CB8). --define(GL_PIXEL_MAP_A_TO_A_SIZE, 16#CB9). --define(GL_UNPACK_SWAP_BYTES, 16#CF0). --define(GL_UNPACK_LSB_FIRST, 16#CF1). --define(GL_UNPACK_ROW_LENGTH, 16#CF2). --define(GL_UNPACK_SKIP_ROWS, 16#CF3). --define(GL_UNPACK_SKIP_PIXELS, 16#CF4). --define(GL_UNPACK_ALIGNMENT, 16#CF5). --define(GL_PACK_SWAP_BYTES, 16#D00). --define(GL_PACK_LSB_FIRST, 16#D01). --define(GL_PACK_ROW_LENGTH, 16#D02). --define(GL_PACK_SKIP_ROWS, 16#D03). --define(GL_PACK_SKIP_PIXELS, 16#D04). --define(GL_PACK_ALIGNMENT, 16#D05). --define(GL_MAP_COLOR, 16#D10). --define(GL_MAP_STENCIL, 16#D11). --define(GL_INDEX_SHIFT, 16#D12). --define(GL_INDEX_OFFSET, 16#D13). --define(GL_RED_SCALE, 16#D14). --define(GL_RED_BIAS, 16#D15). --define(GL_ZOOM_X, 16#D16). --define(GL_ZOOM_Y, 16#D17). --define(GL_GREEN_SCALE, 16#D18). --define(GL_GREEN_BIAS, 16#D19). --define(GL_BLUE_SCALE, 16#D1A). --define(GL_BLUE_BIAS, 16#D1B). --define(GL_ALPHA_SCALE, 16#D1C). --define(GL_ALPHA_BIAS, 16#D1D). --define(GL_DEPTH_SCALE, 16#D1E). --define(GL_DEPTH_BIAS, 16#D1F). +-define(GL_BITMAP, 16#1A00). +-define(GL_COLOR, 16#1800). +-define(GL_DEPTH, 16#1801). +-define(GL_STENCIL, 16#1802). +-define(GL_DITHER, 16#BD0). +-define(GL_RGB, 16#1907). +-define(GL_RGBA, 16#1908). +-define(GL_MAX_LIST_NESTING, 16#B31). -define(GL_MAX_EVAL_ORDER, 16#D30). -define(GL_MAX_LIGHTS, 16#D31). -define(GL_MAX_CLIP_PLANES, 16#D32). @@ -300,19 +323,33 @@ -define(GL_MAX_TEXTURE_STACK_DEPTH, 16#D39). -define(GL_MAX_VIEWPORT_DIMS, 16#D3A). -define(GL_MAX_CLIENT_ATTRIB_STACK_DEPTH, 16#D3B). --define(GL_SUBPIXEL_BITS, 16#D50). --define(GL_INDEX_BITS, 16#D51). --define(GL_RED_BITS, 16#D52). --define(GL_GREEN_BITS, 16#D53). --define(GL_BLUE_BITS, 16#D54). --define(GL_ALPHA_BITS, 16#D55). --define(GL_DEPTH_BITS, 16#D56). --define(GL_STENCIL_BITS, 16#D57). --define(GL_ACCUM_RED_BITS, 16#D58). --define(GL_ACCUM_GREEN_BITS, 16#D59). --define(GL_ACCUM_BLUE_BITS, 16#D5A). --define(GL_ACCUM_ALPHA_BITS, 16#D5B). +-define(GL_ATTRIB_STACK_DEPTH, 16#BB0). +-define(GL_CLIENT_ATTRIB_STACK_DEPTH, 16#BB1). +-define(GL_COLOR_CLEAR_VALUE, 16#C22). +-define(GL_COLOR_WRITEMASK, 16#C23). +-define(GL_CURRENT_INDEX, 16#B01). +-define(GL_CURRENT_COLOR, 16#B00). +-define(GL_CURRENT_NORMAL, 16#B02). +-define(GL_CURRENT_RASTER_COLOR, 16#B04). +-define(GL_CURRENT_RASTER_DISTANCE, 16#B09). +-define(GL_CURRENT_RASTER_INDEX, 16#B05). +-define(GL_CURRENT_RASTER_POSITION, 16#B07). +-define(GL_CURRENT_RASTER_TEXTURE_COORDS, 16#B06). +-define(GL_CURRENT_RASTER_POSITION_VALID, 16#B08). +-define(GL_CURRENT_TEXTURE_COORDS, 16#B03). +-define(GL_INDEX_CLEAR_VALUE, 16#C20). +-define(GL_INDEX_MODE, 16#C30). +-define(GL_INDEX_WRITEMASK, 16#C21). +-define(GL_MODELVIEW_MATRIX, 16#BA6). +-define(GL_MODELVIEW_STACK_DEPTH, 16#BA3). -define(GL_NAME_STACK_DEPTH, 16#D70). +-define(GL_PROJECTION_MATRIX, 16#BA7). +-define(GL_PROJECTION_STACK_DEPTH, 16#BA4). +-define(GL_RENDER_MODE, 16#C40). +-define(GL_RGBA_MODE, 16#C31). +-define(GL_TEXTURE_MATRIX, 16#BA8). +-define(GL_TEXTURE_STACK_DEPTH, 16#BA5). +-define(GL_VIEWPORT, 16#BA2). -define(GL_AUTO_NORMAL, 16#D80). -define(GL_MAP1_COLOR_4, 16#D90). -define(GL_MAP1_INDEX, 16#D91). @@ -336,166 +373,149 @@ -define(GL_MAP1_GRID_SEGMENTS, 16#DD1). -define(GL_MAP2_GRID_DOMAIN, 16#DD2). -define(GL_MAP2_GRID_SEGMENTS, 16#DD3). +-define(GL_COEFF, 16#A00). +-define(GL_ORDER, 16#A01). +-define(GL_DOMAIN, 16#A02). +-define(GL_PERSPECTIVE_CORRECTION_HINT, 16#C50). +-define(GL_POINT_SMOOTH_HINT, 16#C51). +-define(GL_LINE_SMOOTH_HINT, 16#C52). +-define(GL_POLYGON_SMOOTH_HINT, 16#C53). +-define(GL_FOG_HINT, 16#C54). +-define(GL_DONT_CARE, 16#1100). +-define(GL_FASTEST, 16#1101). +-define(GL_NICEST, 16#1102). +-define(GL_SCISSOR_BOX, 16#C10). +-define(GL_SCISSOR_TEST, 16#C11). +-define(GL_MAP_COLOR, 16#D10). +-define(GL_MAP_STENCIL, 16#D11). +-define(GL_INDEX_SHIFT, 16#D12). +-define(GL_INDEX_OFFSET, 16#D13). +-define(GL_RED_SCALE, 16#D14). +-define(GL_RED_BIAS, 16#D15). +-define(GL_GREEN_SCALE, 16#D18). +-define(GL_GREEN_BIAS, 16#D19). +-define(GL_BLUE_SCALE, 16#D1A). +-define(GL_BLUE_BIAS, 16#D1B). +-define(GL_ALPHA_SCALE, 16#D1C). +-define(GL_ALPHA_BIAS, 16#D1D). +-define(GL_DEPTH_SCALE, 16#D1E). +-define(GL_DEPTH_BIAS, 16#D1F). +-define(GL_PIXEL_MAP_S_TO_S_SIZE, 16#CB1). +-define(GL_PIXEL_MAP_I_TO_I_SIZE, 16#CB0). +-define(GL_PIXEL_MAP_I_TO_R_SIZE, 16#CB2). +-define(GL_PIXEL_MAP_I_TO_G_SIZE, 16#CB3). +-define(GL_PIXEL_MAP_I_TO_B_SIZE, 16#CB4). +-define(GL_PIXEL_MAP_I_TO_A_SIZE, 16#CB5). +-define(GL_PIXEL_MAP_R_TO_R_SIZE, 16#CB6). +-define(GL_PIXEL_MAP_G_TO_G_SIZE, 16#CB7). +-define(GL_PIXEL_MAP_B_TO_B_SIZE, 16#CB8). +-define(GL_PIXEL_MAP_A_TO_A_SIZE, 16#CB9). +-define(GL_PIXEL_MAP_S_TO_S, 16#C71). +-define(GL_PIXEL_MAP_I_TO_I, 16#C70). +-define(GL_PIXEL_MAP_I_TO_R, 16#C72). +-define(GL_PIXEL_MAP_I_TO_G, 16#C73). +-define(GL_PIXEL_MAP_I_TO_B, 16#C74). +-define(GL_PIXEL_MAP_I_TO_A, 16#C75). +-define(GL_PIXEL_MAP_R_TO_R, 16#C76). +-define(GL_PIXEL_MAP_G_TO_G, 16#C77). +-define(GL_PIXEL_MAP_B_TO_B, 16#C78). +-define(GL_PIXEL_MAP_A_TO_A, 16#C79). +-define(GL_PACK_ALIGNMENT, 16#D05). +-define(GL_PACK_LSB_FIRST, 16#D01). +-define(GL_PACK_ROW_LENGTH, 16#D02). +-define(GL_PACK_SKIP_PIXELS, 16#D04). +-define(GL_PACK_SKIP_ROWS, 16#D03). +-define(GL_PACK_SWAP_BYTES, 16#D00). +-define(GL_UNPACK_ALIGNMENT, 16#CF5). +-define(GL_UNPACK_LSB_FIRST, 16#CF1). +-define(GL_UNPACK_ROW_LENGTH, 16#CF2). +-define(GL_UNPACK_SKIP_PIXELS, 16#CF4). +-define(GL_UNPACK_SKIP_ROWS, 16#CF3). +-define(GL_UNPACK_SWAP_BYTES, 16#CF0). +-define(GL_ZOOM_X, 16#D16). +-define(GL_ZOOM_Y, 16#D17). +-define(GL_TEXTURE_ENV, 16#2300). +-define(GL_TEXTURE_ENV_MODE, 16#2200). -define(GL_TEXTURE_1D, 16#DE0). -define(GL_TEXTURE_2D, 16#DE1). --define(GL_FEEDBACK_BUFFER_POINTER, 16#DF0). --define(GL_FEEDBACK_BUFFER_SIZE, 16#DF1). --define(GL_FEEDBACK_BUFFER_TYPE, 16#DF2). --define(GL_SELECTION_BUFFER_POINTER, 16#DF3). --define(GL_SELECTION_BUFFER_SIZE, 16#DF4). --define(GL_POLYGON_OFFSET_UNITS, 16#2A00). --define(GL_POLYGON_OFFSET_POINT, 16#2A01). --define(GL_POLYGON_OFFSET_LINE, 16#2A02). --define(GL_POLYGON_OFFSET_FILL, 16#8037). --define(GL_POLYGON_OFFSET_FACTOR, 16#8038). --define(GL_TEXTURE_BINDING_1D, 16#8068). --define(GL_TEXTURE_BINDING_2D, 16#8069). --define(GL_TEXTURE_BINDING_3D, 16#806A). --define(GL_VERTEX_ARRAY, 16#8074). --define(GL_NORMAL_ARRAY, 16#8075). --define(GL_COLOR_ARRAY, 16#8076). --define(GL_INDEX_ARRAY, 16#8077). --define(GL_TEXTURE_COORD_ARRAY, 16#8078). --define(GL_EDGE_FLAG_ARRAY, 16#8079). --define(GL_VERTEX_ARRAY_SIZE, 16#807A). --define(GL_VERTEX_ARRAY_TYPE, 16#807B). --define(GL_VERTEX_ARRAY_STRIDE, 16#807C). --define(GL_NORMAL_ARRAY_TYPE, 16#807E). --define(GL_NORMAL_ARRAY_STRIDE, 16#807F). --define(GL_COLOR_ARRAY_SIZE, 16#8081). --define(GL_COLOR_ARRAY_TYPE, 16#8082). --define(GL_COLOR_ARRAY_STRIDE, 16#8083). --define(GL_INDEX_ARRAY_TYPE, 16#8085). --define(GL_INDEX_ARRAY_STRIDE, 16#8086). --define(GL_TEXTURE_COORD_ARRAY_SIZE, 16#8088). --define(GL_TEXTURE_COORD_ARRAY_TYPE, 16#8089). --define(GL_TEXTURE_COORD_ARRAY_STRIDE, 16#808A). --define(GL_EDGE_FLAG_ARRAY_STRIDE, 16#808C). +-define(GL_TEXTURE_WRAP_S, 16#2802). +-define(GL_TEXTURE_WRAP_T, 16#2803). +-define(GL_TEXTURE_MAG_FILTER, 16#2800). +-define(GL_TEXTURE_MIN_FILTER, 16#2801). +-define(GL_TEXTURE_ENV_COLOR, 16#2201). +-define(GL_TEXTURE_GEN_S, 16#C60). +-define(GL_TEXTURE_GEN_T, 16#C61). +-define(GL_TEXTURE_GEN_MODE, 16#2500). +-define(GL_TEXTURE_BORDER_COLOR, 16#1004). -define(GL_TEXTURE_WIDTH, 16#1000). -define(GL_TEXTURE_HEIGHT, 16#1001). --define(GL_TEXTURE_INTERNAL_FORMAT, 16#1003). --define(GL_TEXTURE_COMPONENTS, ?GL_TEXTURE_INTERNAL_FORMAT). --define(GL_TEXTURE_BORDER_COLOR, 16#1004). -define(GL_TEXTURE_BORDER, 16#1005). +-define(GL_TEXTURE_COMPONENTS, 16#1003). -define(GL_TEXTURE_RED_SIZE, 16#805C). -define(GL_TEXTURE_GREEN_SIZE, 16#805D). -define(GL_TEXTURE_BLUE_SIZE, 16#805E). -define(GL_TEXTURE_ALPHA_SIZE, 16#805F). -define(GL_TEXTURE_LUMINANCE_SIZE, 16#8060). -define(GL_TEXTURE_INTENSITY_SIZE, 16#8061). --define(GL_TEXTURE_PRIORITY, 16#8066). --define(GL_TEXTURE_RESIDENT, 16#8067). --define(GL_DONT_CARE, 16#1100). --define(GL_FASTEST, 16#1101). --define(GL_NICEST, 16#1102). --define(GL_AMBIENT, 16#1200). --define(GL_DIFFUSE, 16#1201). --define(GL_SPECULAR, 16#1202). --define(GL_POSITION, 16#1203). --define(GL_SPOT_DIRECTION, 16#1204). --define(GL_SPOT_EXPONENT, 16#1205). --define(GL_SPOT_CUTOFF, 16#1206). --define(GL_CONSTANT_ATTENUATION, 16#1207). --define(GL_LINEAR_ATTENUATION, 16#1208). --define(GL_QUADRATIC_ATTENUATION, 16#1209). --define(GL_COMPILE, 16#1300). --define(GL_COMPILE_AND_EXECUTE, 16#1301). --define(GL_BYTE, 16#1400). --define(GL_UNSIGNED_BYTE, 16#1401). --define(GL_SHORT, 16#1402). --define(GL_UNSIGNED_SHORT, 16#1403). --define(GL_INT, 16#1404). --define(GL_UNSIGNED_INT, 16#1405). --define(GL_FLOAT, 16#1406). --define(GL_2_BYTES, 16#1407). --define(GL_3_BYTES, 16#1408). --define(GL_4_BYTES, 16#1409). --define(GL_DOUBLE, 16#140A). --define(GL_DOUBLE_EXT, 16#140A). --define(GL_CLEAR, 16#1500). --define(GL_AND, 16#1501). --define(GL_AND_REVERSE, 16#1502). --define(GL_COPY, 16#1503). --define(GL_AND_INVERTED, 16#1504). --define(GL_NOOP, 16#1505). --define(GL_XOR, 16#1506). --define(GL_OR, 16#1507). --define(GL_NOR, 16#1508). --define(GL_EQUIV, 16#1509). --define(GL_INVERT, 16#150A). --define(GL_OR_REVERSE, 16#150B). --define(GL_COPY_INVERTED, 16#150C). --define(GL_OR_INVERTED, 16#150D). --define(GL_NAND, 16#150E). --define(GL_SET, 16#150F). --define(GL_EMISSION, 16#1600). --define(GL_SHININESS, 16#1601). --define(GL_AMBIENT_AND_DIFFUSE, 16#1602). --define(GL_COLOR_INDEXES, 16#1603). --define(GL_MODELVIEW, 16#1700). --define(GL_PROJECTION, 16#1701). --define(GL_TEXTURE, 16#1702). --define(GL_COLOR, 16#1800). --define(GL_DEPTH, 16#1801). --define(GL_STENCIL, 16#1802). --define(GL_COLOR_INDEX, 16#1900). --define(GL_STENCIL_INDEX, 16#1901). --define(GL_DEPTH_COMPONENT, 16#1902). --define(GL_RED, 16#1903). --define(GL_GREEN, 16#1904). --define(GL_BLUE, 16#1905). --define(GL_ALPHA, 16#1906). --define(GL_RGB, 16#1907). --define(GL_RGBA, 16#1908). --define(GL_LUMINANCE, 16#1909). --define(GL_LUMINANCE_ALPHA, 16#190A). --define(GL_BITMAP, 16#1A00). --define(GL_POINT, 16#1B00). --define(GL_LINE, 16#1B01). --define(GL_FILL, 16#1B02). --define(GL_RENDER, 16#1C00). --define(GL_FEEDBACK, 16#1C01). --define(GL_SELECT, 16#1C02). --define(GL_FLAT, 16#1D00). --define(GL_SMOOTH, 16#1D01). --define(GL_KEEP, 16#1E00). --define(GL_REPLACE, 16#1E01). --define(GL_INCR, 16#1E02). --define(GL_DECR, 16#1E03). --define(GL_VENDOR, 16#1F00). --define(GL_RENDERER, 16#1F01). --define(GL_VERSION, 16#1F02). --define(GL_EXTENSIONS, 16#1F03). --define(GL_S, 16#2000). --define(GL_T, 16#2001). --define(GL_R, 16#2002). --define(GL_Q, 16#2003). --define(GL_MODULATE, 16#2100). --define(GL_DECAL, 16#2101). --define(GL_TEXTURE_ENV_MODE, 16#2200). --define(GL_TEXTURE_ENV_COLOR, 16#2201). --define(GL_TEXTURE_ENV, 16#2300). --define(GL_EYE_LINEAR, 16#2400). +-define(GL_NEAREST_MIPMAP_NEAREST, 16#2700). +-define(GL_NEAREST_MIPMAP_LINEAR, 16#2702). +-define(GL_LINEAR_MIPMAP_NEAREST, 16#2701). +-define(GL_LINEAR_MIPMAP_LINEAR, 16#2703). -define(GL_OBJECT_LINEAR, 16#2401). --define(GL_SPHERE_MAP, 16#2402). --define(GL_TEXTURE_GEN_MODE, 16#2500). -define(GL_OBJECT_PLANE, 16#2501). +-define(GL_EYE_LINEAR, 16#2400). -define(GL_EYE_PLANE, 16#2502). +-define(GL_SPHERE_MAP, 16#2402). +-define(GL_DECAL, 16#2101). +-define(GL_MODULATE, 16#2100). -define(GL_NEAREST, 16#2600). --define(GL_LINEAR, 16#2601). --define(GL_NEAREST_MIPMAP_NEAREST, 16#2700). --define(GL_LINEAR_MIPMAP_NEAREST, 16#2701). --define(GL_NEAREST_MIPMAP_LINEAR, 16#2702). --define(GL_LINEAR_MIPMAP_LINEAR, 16#2703). --define(GL_TEXTURE_MAG_FILTER, 16#2800). --define(GL_TEXTURE_MIN_FILTER, 16#2801). --define(GL_TEXTURE_WRAP_S, 16#2802). --define(GL_TEXTURE_WRAP_T, 16#2803). +-define(GL_REPEAT, 16#2901). +-define(GL_CLAMP, 16#2900). +-define(GL_S, 16#2000). +-define(GL_T, 16#2001). +-define(GL_R, 16#2002). +-define(GL_Q, 16#2003). +-define(GL_TEXTURE_GEN_R, 16#C62). +-define(GL_TEXTURE_GEN_Q, 16#C63). +-define(GL_VENDOR, 16#1F00). +-define(GL_RENDERER, 16#1F01). +-define(GL_VERSION, 16#1F02). +-define(GL_EXTENSIONS, 16#1F03). +-define(GL_NO_ERROR, 16#0). +-define(GL_INVALID_ENUM, 16#500). +-define(GL_INVALID_VALUE, 16#501). +-define(GL_INVALID_OPERATION, 16#502). +-define(GL_STACK_OVERFLOW, 16#503). +-define(GL_STACK_UNDERFLOW, 16#504). +-define(GL_OUT_OF_MEMORY, 16#505). +-define(GL_CURRENT_BIT, 16#1). +-define(GL_POINT_BIT, 16#2). +-define(GL_LINE_BIT, 16#4). +-define(GL_POLYGON_BIT, 16#8). +-define(GL_POLYGON_STIPPLE_BIT, 16#10). +-define(GL_PIXEL_MODE_BIT, 16#20). +-define(GL_LIGHTING_BIT, 16#40). +-define(GL_FOG_BIT, 16#80). +-define(GL_DEPTH_BUFFER_BIT, 16#100). +-define(GL_ACCUM_BUFFER_BIT, 16#200). +-define(GL_STENCIL_BUFFER_BIT, 16#400). +-define(GL_VIEWPORT_BIT, 16#800). +-define(GL_TRANSFORM_BIT, 16#1000). +-define(GL_ENABLE_BIT, 16#2000). +-define(GL_COLOR_BUFFER_BIT, 16#4000). +-define(GL_HINT_BIT, 16#8000). +-define(GL_EVAL_BIT, 16#10000). +-define(GL_LIST_BIT, 16#20000). +-define(GL_TEXTURE_BIT, 16#40000). +-define(GL_SCISSOR_BIT, 16#80000). +-define(GL_ALL_ATTRIB_BITS, 16#FFFFF). -define(GL_PROXY_TEXTURE_1D, 16#8063). -define(GL_PROXY_TEXTURE_2D, 16#8064). --define(GL_CLAMP, 16#2900). --define(GL_REPEAT, 16#2901). --define(GL_R3_G3_B2, 16#2A10). +-define(GL_TEXTURE_PRIORITY, 16#8066). +-define(GL_TEXTURE_RESIDENT, 16#8067). +-define(GL_TEXTURE_BINDING_1D, 16#8068). +-define(GL_TEXTURE_BINDING_2D, 16#8069). +-define(GL_TEXTURE_INTERNAL_FORMAT, 16#1003). -define(GL_ALPHA4, 16#803B). -define(GL_ALPHA8, 16#803C). -define(GL_ALPHA12, 16#803D). @@ -515,6 +535,7 @@ -define(GL_INTENSITY8, 16#804B). -define(GL_INTENSITY12, 16#804C). -define(GL_INTENSITY16, 16#804D). +-define(GL_R3_G3_B2, 16#2A10). -define(GL_RGB4, 16#804F). -define(GL_RGB5, 16#8050). -define(GL_RGB8, 16#8051). @@ -528,51 +549,14 @@ -define(GL_RGB10_A2, 16#8059). -define(GL_RGBA12, 16#805A). -define(GL_RGBA16, 16#805B). --define(GL_V2F, 16#2A20). --define(GL_V3F, 16#2A21). --define(GL_C4UB_V2F, 16#2A22). --define(GL_C4UB_V3F, 16#2A23). --define(GL_C3F_V3F, 16#2A24). --define(GL_N3F_V3F, 16#2A25). --define(GL_C4F_N3F_V3F, 16#2A26). --define(GL_T2F_V3F, 16#2A27). --define(GL_T4F_V4F, 16#2A28). --define(GL_T2F_C4UB_V3F, 16#2A29). --define(GL_T2F_C3F_V3F, 16#2A2A). --define(GL_T2F_N3F_V3F, 16#2A2B). --define(GL_T2F_C4F_N3F_V3F, 16#2A2C). --define(GL_T4F_C4F_N3F_V4F, 16#2A2D). --define(GL_CLIP_PLANE0, 16#3000). --define(GL_CLIP_PLANE1, 16#3001). --define(GL_CLIP_PLANE2, 16#3002). --define(GL_CLIP_PLANE3, 16#3003). --define(GL_CLIP_PLANE4, 16#3004). --define(GL_CLIP_PLANE5, 16#3005). --define(GL_LIGHT0, 16#4000). --define(GL_LIGHT1, 16#4001). --define(GL_LIGHT2, 16#4002). --define(GL_LIGHT3, 16#4003). --define(GL_LIGHT4, 16#4004). --define(GL_LIGHT5, 16#4005). --define(GL_LIGHT6, 16#4006). --define(GL_LIGHT7, 16#4007). --define(GL_ABGR_EXT, 16#8000). --define(GL_FUNC_SUBTRACT_EXT, 16#800A). --define(GL_FUNC_REVERSE_SUBTRACT_EXT, 16#800B). --define(GL_UNSIGNED_BYTE_3_3_2_EXT, 16#8032). --define(GL_UNSIGNED_SHORT_4_4_4_4_EXT, 16#8033). --define(GL_UNSIGNED_SHORT_5_5_5_1_EXT, 16#8034). --define(GL_UNSIGNED_INT_8_8_8_8_EXT, 16#8035). --define(GL_UNSIGNED_INT_10_10_10_2_EXT, 16#8036). --define(GL_PACK_SKIP_IMAGES, 16#806B). --define(GL_PACK_IMAGE_HEIGHT, 16#806C). --define(GL_UNPACK_SKIP_IMAGES, 16#806D). --define(GL_UNPACK_IMAGE_HEIGHT, 16#806E). --define(GL_TEXTURE_3D, 16#806F). --define(GL_PROXY_TEXTURE_3D, 16#8070). --define(GL_TEXTURE_DEPTH, 16#8071). --define(GL_TEXTURE_WRAP_R, 16#8072). --define(GL_MAX_3D_TEXTURE_SIZE, 16#8073). +-define(GL_CLIENT_PIXEL_STORE_BIT, 16#1). +-define(GL_CLIENT_VERTEX_ARRAY_BIT, 16#2). +-define(GL_ALL_CLIENT_ATTRIB_BITS, 16#FFFFFFFF). +-define(GL_CLIENT_ALL_ATTRIB_BITS, 16#FFFFFFFF). +-define(GL_RESCALE_NORMAL, 16#803A). +-define(GL_CLAMP_TO_EDGE, 16#812F). +-define(GL_MAX_ELEMENTS_VERTICES, 16#80E8). +-define(GL_MAX_ELEMENTS_INDICES, 16#80E9). -define(GL_BGR, 16#80E0). -define(GL_BGRA, 16#80E1). -define(GL_UNSIGNED_BYTE_3_3_2, 16#8032). @@ -587,22 +571,104 @@ -define(GL_UNSIGNED_INT_8_8_8_8_REV, 16#8367). -define(GL_UNSIGNED_INT_10_10_10_2, 16#8036). -define(GL_UNSIGNED_INT_2_10_10_10_REV, 16#8368). --define(GL_RESCALE_NORMAL, 16#803A). -define(GL_LIGHT_MODEL_COLOR_CONTROL, 16#81F8). -define(GL_SINGLE_COLOR, 16#81F9). -define(GL_SEPARATE_SPECULAR_COLOR, 16#81FA). --define(GL_CLAMP_TO_EDGE, 16#812F). -define(GL_TEXTURE_MIN_LOD, 16#813A). -define(GL_TEXTURE_MAX_LOD, 16#813B). -define(GL_TEXTURE_BASE_LEVEL, 16#813C). -define(GL_TEXTURE_MAX_LEVEL, 16#813D). --define(GL_MAX_ELEMENTS_VERTICES, 16#80E8). --define(GL_MAX_ELEMENTS_INDICES, 16#80E9). +-define(GL_SMOOTH_POINT_SIZE_RANGE, 16#B12). +-define(GL_SMOOTH_POINT_SIZE_GRANULARITY, 16#B13). +-define(GL_SMOOTH_LINE_WIDTH_RANGE, 16#B22). +-define(GL_SMOOTH_LINE_WIDTH_GRANULARITY, 16#B23). -define(GL_ALIASED_POINT_SIZE_RANGE, 16#846D). -define(GL_ALIASED_LINE_WIDTH_RANGE, 16#846E). --define(GL_ACTIVE_TEXTURE, 16#84E0). --define(GL_CLIENT_ACTIVE_TEXTURE, 16#84E1). --define(GL_MAX_TEXTURE_UNITS, 16#84E2). +-define(GL_PACK_SKIP_IMAGES, 16#806B). +-define(GL_PACK_IMAGE_HEIGHT, 16#806C). +-define(GL_UNPACK_SKIP_IMAGES, 16#806D). +-define(GL_UNPACK_IMAGE_HEIGHT, 16#806E). +-define(GL_TEXTURE_3D, 16#806F). +-define(GL_PROXY_TEXTURE_3D, 16#8070). +-define(GL_TEXTURE_DEPTH, 16#8071). +-define(GL_TEXTURE_WRAP_R, 16#8072). +-define(GL_MAX_3D_TEXTURE_SIZE, 16#8073). +-define(GL_TEXTURE_BINDING_3D, 16#806A). +-define(GL_CONSTANT_COLOR, 16#8001). +-define(GL_ONE_MINUS_CONSTANT_COLOR, 16#8002). +-define(GL_CONSTANT_ALPHA, 16#8003). +-define(GL_ONE_MINUS_CONSTANT_ALPHA, 16#8004). +-define(GL_COLOR_TABLE, 16#80D0). +-define(GL_POST_CONVOLUTION_COLOR_TABLE, 16#80D1). +-define(GL_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D2). +-define(GL_PROXY_COLOR_TABLE, 16#80D3). +-define(GL_PROXY_POST_CONVOLUTION_COLOR_TABLE, 16#80D4). +-define(GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D5). +-define(GL_COLOR_TABLE_SCALE, 16#80D6). +-define(GL_COLOR_TABLE_BIAS, 16#80D7). +-define(GL_COLOR_TABLE_FORMAT, 16#80D8). +-define(GL_COLOR_TABLE_WIDTH, 16#80D9). +-define(GL_COLOR_TABLE_RED_SIZE, 16#80DA). +-define(GL_COLOR_TABLE_GREEN_SIZE, 16#80DB). +-define(GL_COLOR_TABLE_BLUE_SIZE, 16#80DC). +-define(GL_COLOR_TABLE_ALPHA_SIZE, 16#80DD). +-define(GL_COLOR_TABLE_LUMINANCE_SIZE, 16#80DE). +-define(GL_COLOR_TABLE_INTENSITY_SIZE, 16#80DF). +-define(GL_CONVOLUTION_1D, 16#8010). +-define(GL_CONVOLUTION_2D, 16#8011). +-define(GL_SEPARABLE_2D, 16#8012). +-define(GL_CONVOLUTION_BORDER_MODE, 16#8013). +-define(GL_CONVOLUTION_FILTER_SCALE, 16#8014). +-define(GL_CONVOLUTION_FILTER_BIAS, 16#8015). +-define(GL_REDUCE, 16#8016). +-define(GL_CONVOLUTION_FORMAT, 16#8017). +-define(GL_CONVOLUTION_WIDTH, 16#8018). +-define(GL_CONVOLUTION_HEIGHT, 16#8019). +-define(GL_MAX_CONVOLUTION_WIDTH, 16#801A). +-define(GL_MAX_CONVOLUTION_HEIGHT, 16#801B). +-define(GL_POST_CONVOLUTION_RED_SCALE, 16#801C). +-define(GL_POST_CONVOLUTION_GREEN_SCALE, 16#801D). +-define(GL_POST_CONVOLUTION_BLUE_SCALE, 16#801E). +-define(GL_POST_CONVOLUTION_ALPHA_SCALE, 16#801F). +-define(GL_POST_CONVOLUTION_RED_BIAS, 16#8020). +-define(GL_POST_CONVOLUTION_GREEN_BIAS, 16#8021). +-define(GL_POST_CONVOLUTION_BLUE_BIAS, 16#8022). +-define(GL_POST_CONVOLUTION_ALPHA_BIAS, 16#8023). +-define(GL_CONSTANT_BORDER, 16#8151). +-define(GL_REPLICATE_BORDER, 16#8153). +-define(GL_CONVOLUTION_BORDER_COLOR, 16#8154). +-define(GL_COLOR_MATRIX, 16#80B1). +-define(GL_COLOR_MATRIX_STACK_DEPTH, 16#80B2). +-define(GL_MAX_COLOR_MATRIX_STACK_DEPTH, 16#80B3). +-define(GL_POST_COLOR_MATRIX_RED_SCALE, 16#80B4). +-define(GL_POST_COLOR_MATRIX_GREEN_SCALE, 16#80B5). +-define(GL_POST_COLOR_MATRIX_BLUE_SCALE, 16#80B6). +-define(GL_POST_COLOR_MATRIX_ALPHA_SCALE, 16#80B7). +-define(GL_POST_COLOR_MATRIX_RED_BIAS, 16#80B8). +-define(GL_POST_COLOR_MATRIX_GREEN_BIAS, 16#80B9). +-define(GL_POST_COLOR_MATRIX_BLUE_BIAS, 16#80BA). +-define(GL_POST_COLOR_MATRIX_ALPHA_BIAS, 16#80BB). +-define(GL_HISTOGRAM, 16#8024). +-define(GL_PROXY_HISTOGRAM, 16#8025). +-define(GL_HISTOGRAM_WIDTH, 16#8026). +-define(GL_HISTOGRAM_FORMAT, 16#8027). +-define(GL_HISTOGRAM_RED_SIZE, 16#8028). +-define(GL_HISTOGRAM_GREEN_SIZE, 16#8029). +-define(GL_HISTOGRAM_BLUE_SIZE, 16#802A). +-define(GL_HISTOGRAM_ALPHA_SIZE, 16#802B). +-define(GL_HISTOGRAM_LUMINANCE_SIZE, 16#802C). +-define(GL_HISTOGRAM_SINK, 16#802D). +-define(GL_MINMAX, 16#802E). +-define(GL_MINMAX_FORMAT, 16#802F). +-define(GL_MINMAX_SINK, 16#8030). +-define(GL_TABLE_TOO_LARGE, 16#8031). +-define(GL_BLEND_EQUATION, 16#8009). +-define(GL_MIN, 16#8007). +-define(GL_MAX, 16#8008). +-define(GL_FUNC_ADD, 16#8006). +-define(GL_FUNC_SUBTRACT, 16#800A). +-define(GL_FUNC_REVERSE_SUBTRACT, 16#800B). +-define(GL_BLEND_COLOR, 16#8005). -define(GL_TEXTURE0, 16#84C0). -define(GL_TEXTURE1, 16#84C1). -define(GL_TEXTURE2, 16#84C2). @@ -635,6 +701,9 @@ -define(GL_TEXTURE29, 16#84DD). -define(GL_TEXTURE30, 16#84DE). -define(GL_TEXTURE31, 16#84DF). +-define(GL_ACTIVE_TEXTURE, 16#84E0). +-define(GL_CLIENT_ACTIVE_TEXTURE, 16#84E1). +-define(GL_MAX_TEXTURE_UNITS, 16#84E2). -define(GL_NORMAL_MAP, 16#8511). -define(GL_REFLECTION_MAP, 16#8512). -define(GL_TEXTURE_CUBE_MAP, 16#8513). @@ -647,32 +716,6 @@ -define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, 16#851A). -define(GL_PROXY_TEXTURE_CUBE_MAP, 16#851B). -define(GL_MAX_CUBE_MAP_TEXTURE_SIZE, 16#851C). --define(GL_COMBINE, 16#8570). --define(GL_COMBINE_RGB, 16#8571). --define(GL_COMBINE_ALPHA, 16#8572). --define(GL_RGB_SCALE, 16#8573). --define(GL_ADD_SIGNED, 16#8574). --define(GL_INTERPOLATE, 16#8575). --define(GL_CONSTANT, 16#8576). --define(GL_PRIMARY_COLOR, 16#8577). --define(GL_PREVIOUS, 16#8578). --define(GL_SOURCE0_RGB, 16#8580). --define(GL_SOURCE1_RGB, 16#8581). --define(GL_SOURCE2_RGB, 16#8582). --define(GL_SOURCE0_ALPHA, 16#8588). --define(GL_SOURCE1_ALPHA, 16#8589). --define(GL_SOURCE2_ALPHA, 16#858A). --define(GL_OPERAND0_RGB, 16#8590). --define(GL_OPERAND1_RGB, 16#8591). --define(GL_OPERAND2_RGB, 16#8592). --define(GL_OPERAND0_ALPHA, 16#8598). --define(GL_OPERAND1_ALPHA, 16#8599). --define(GL_OPERAND2_ALPHA, 16#859A). --define(GL_SUBTRACT, 16#84E7). --define(GL_TRANSPOSE_MODELVIEW_MATRIX, 16#84E3). --define(GL_TRANSPOSE_PROJECTION_MATRIX, 16#84E4). --define(GL_TRANSPOSE_TEXTURE_MATRIX, 16#84E5). --define(GL_TRANSPOSE_COLOR_MATRIX, 16#84E6). -define(GL_COMPRESSED_ALPHA, 16#84E9). -define(GL_COMPRESSED_LUMINANCE, 16#84EA). -define(GL_COMPRESSED_LUMINANCE_ALPHA, 16#84EB). @@ -684,9 +727,6 @@ -define(GL_TEXTURE_COMPRESSED, 16#86A1). -define(GL_NUM_COMPRESSED_TEXTURE_FORMATS, 16#86A2). -define(GL_COMPRESSED_TEXTURE_FORMATS, 16#86A3). --define(GL_DOT3_RGB, 16#86AE). --define(GL_DOT3_RGBA, 16#86AF). --define(GL_CLAMP_TO_BORDER, 16#812D). -define(GL_MULTISAMPLE, 16#809D). -define(GL_SAMPLE_ALPHA_TO_COVERAGE, 16#809E). -define(GL_SAMPLE_ALPHA_TO_ONE, 16#809F). @@ -696,57 +736,120 @@ -define(GL_SAMPLE_COVERAGE_VALUE, 16#80AA). -define(GL_SAMPLE_COVERAGE_INVERT, 16#80AB). -define(GL_MULTISAMPLE_BIT, 16#20000000). --define(GL_VERTEX_ARRAY_EXT, 16#8074). --define(GL_NORMAL_ARRAY_EXT, 16#8075). --define(GL_COLOR_ARRAY_EXT, 16#8076). --define(GL_INDEX_ARRAY_EXT, 16#8077). --define(GL_TEXTURE_COORD_ARRAY_EXT, 16#8078). --define(GL_EDGE_FLAG_ARRAY_EXT, 16#8079). --define(GL_VERTEX_ARRAY_SIZE_EXT, 16#807A). --define(GL_VERTEX_ARRAY_TYPE_EXT, 16#807B). --define(GL_VERTEX_ARRAY_STRIDE_EXT, 16#807C). --define(GL_VERTEX_ARRAY_COUNT_EXT, 16#807D). --define(GL_NORMAL_ARRAY_TYPE_EXT, 16#807E). --define(GL_NORMAL_ARRAY_STRIDE_EXT, 16#807F). --define(GL_NORMAL_ARRAY_COUNT_EXT, 16#8080). --define(GL_COLOR_ARRAY_SIZE_EXT, 16#8081). --define(GL_COLOR_ARRAY_TYPE_EXT, 16#8082). --define(GL_COLOR_ARRAY_STRIDE_EXT, 16#8083). --define(GL_COLOR_ARRAY_COUNT_EXT, 16#8084). --define(GL_INDEX_ARRAY_TYPE_EXT, 16#8085). --define(GL_INDEX_ARRAY_STRIDE_EXT, 16#8086). --define(GL_INDEX_ARRAY_COUNT_EXT, 16#8087). --define(GL_TEXTURE_COORD_ARRAY_SIZE_EXT, 16#8088). --define(GL_TEXTURE_COORD_ARRAY_TYPE_EXT, 16#8089). --define(GL_TEXTURE_COORD_ARRAY_STRIDE_EXT, 16#808A). --define(GL_TEXTURE_COORD_ARRAY_COUNT_EXT, 16#808B). --define(GL_EDGE_FLAG_ARRAY_STRIDE_EXT, 16#808C). --define(GL_EDGE_FLAG_ARRAY_COUNT_EXT, 16#808D). --define(GL_VERTEX_ARRAY_POINTER_EXT, 16#808E). --define(GL_NORMAL_ARRAY_POINTER_EXT, 16#808F). --define(GL_COLOR_ARRAY_POINTER_EXT, 16#8090). --define(GL_INDEX_ARRAY_POINTER_EXT, 16#8091). --define(GL_TEXTURE_COORD_ARRAY_POINTER_EXT, 16#8092). --define(GL_EDGE_FLAG_ARRAY_POINTER_EXT, 16#8093). --define(GL_TEXTURE_MIN_LOD_SGIS, 16#813A). --define(GL_TEXTURE_MAX_LOD_SGIS, 16#813B). --define(GL_TEXTURE_BASE_LEVEL_SGIS, 16#813C). --define(GL_TEXTURE_MAX_LEVEL_SGIS, 16#813D). --define(GL_SHARED_TEXTURE_PALETTE_EXT, 16#81FB). --define(GL_RESCALE_NORMAL_EXT, 16#803A). --define(GL_TEXTURE_COMPARE_SGIX, 16#819A). --define(GL_TEXTURE_COMPARE_OPERATOR_SGIX, 16#819B). --define(GL_TEXTURE_LEQUAL_R_SGIX, 16#819C). --define(GL_TEXTURE_GEQUAL_R_SGIX, 16#819D). --define(GL_DEPTH_COMPONENT16_SGIX, 16#81A5). --define(GL_DEPTH_COMPONENT24_SGIX, 16#81A6). --define(GL_DEPTH_COMPONENT32_SGIX, 16#81A7). --define(GL_GENERATE_MIPMAP_SGIS, 16#8191). --define(GL_GENERATE_MIPMAP_HINT_SGIS, 16#8192). +-define(GL_TRANSPOSE_MODELVIEW_MATRIX, 16#84E3). +-define(GL_TRANSPOSE_PROJECTION_MATRIX, 16#84E4). +-define(GL_TRANSPOSE_TEXTURE_MATRIX, 16#84E5). +-define(GL_TRANSPOSE_COLOR_MATRIX, 16#84E6). +-define(GL_COMBINE, 16#8570). +-define(GL_COMBINE_RGB, 16#8571). +-define(GL_COMBINE_ALPHA, 16#8572). +-define(GL_SOURCE0_RGB, 16#8580). +-define(GL_SOURCE1_RGB, 16#8581). +-define(GL_SOURCE2_RGB, 16#8582). +-define(GL_SOURCE0_ALPHA, 16#8588). +-define(GL_SOURCE1_ALPHA, 16#8589). +-define(GL_SOURCE2_ALPHA, 16#858A). +-define(GL_OPERAND0_RGB, 16#8590). +-define(GL_OPERAND1_RGB, 16#8591). +-define(GL_OPERAND2_RGB, 16#8592). +-define(GL_OPERAND0_ALPHA, 16#8598). +-define(GL_OPERAND1_ALPHA, 16#8599). +-define(GL_OPERAND2_ALPHA, 16#859A). +-define(GL_RGB_SCALE, 16#8573). +-define(GL_ADD_SIGNED, 16#8574). +-define(GL_INTERPOLATE, 16#8575). +-define(GL_SUBTRACT, 16#84E7). +-define(GL_CONSTANT, 16#8576). +-define(GL_PRIMARY_COLOR, 16#8577). +-define(GL_PREVIOUS, 16#8578). +-define(GL_DOT3_RGB, 16#86AE). +-define(GL_DOT3_RGBA, 16#86AF). +-define(GL_CLAMP_TO_BORDER, 16#812D). +-define(GL_ARB_multitexture, 1). +-define(GL_TEXTURE0_ARB, 16#84C0). +-define(GL_TEXTURE1_ARB, 16#84C1). +-define(GL_TEXTURE2_ARB, 16#84C2). +-define(GL_TEXTURE3_ARB, 16#84C3). +-define(GL_TEXTURE4_ARB, 16#84C4). +-define(GL_TEXTURE5_ARB, 16#84C5). +-define(GL_TEXTURE6_ARB, 16#84C6). +-define(GL_TEXTURE7_ARB, 16#84C7). +-define(GL_TEXTURE8_ARB, 16#84C8). +-define(GL_TEXTURE9_ARB, 16#84C9). +-define(GL_TEXTURE10_ARB, 16#84CA). +-define(GL_TEXTURE11_ARB, 16#84CB). +-define(GL_TEXTURE12_ARB, 16#84CC). +-define(GL_TEXTURE13_ARB, 16#84CD). +-define(GL_TEXTURE14_ARB, 16#84CE). +-define(GL_TEXTURE15_ARB, 16#84CF). +-define(GL_TEXTURE16_ARB, 16#84D0). +-define(GL_TEXTURE17_ARB, 16#84D1). +-define(GL_TEXTURE18_ARB, 16#84D2). +-define(GL_TEXTURE19_ARB, 16#84D3). +-define(GL_TEXTURE20_ARB, 16#84D4). +-define(GL_TEXTURE21_ARB, 16#84D5). +-define(GL_TEXTURE22_ARB, 16#84D6). +-define(GL_TEXTURE23_ARB, 16#84D7). +-define(GL_TEXTURE24_ARB, 16#84D8). +-define(GL_TEXTURE25_ARB, 16#84D9). +-define(GL_TEXTURE26_ARB, 16#84DA). +-define(GL_TEXTURE27_ARB, 16#84DB). +-define(GL_TEXTURE28_ARB, 16#84DC). +-define(GL_TEXTURE29_ARB, 16#84DD). +-define(GL_TEXTURE30_ARB, 16#84DE). +-define(GL_TEXTURE31_ARB, 16#84DF). +-define(GL_ACTIVE_TEXTURE_ARB, 16#84E0). +-define(GL_CLIENT_ACTIVE_TEXTURE_ARB, 16#84E1). +-define(GL_MAX_TEXTURE_UNITS_ARB, 16#84E2). +-define(GL_MESA_packed_depth_stencil, 1). +-define(GL_DEPTH_STENCIL_MESA, 16#8750). +-define(GL_UNSIGNED_INT_24_8_MESA, 16#8751). +-define(GL_UNSIGNED_INT_8_24_REV_MESA, 16#8752). +-define(GL_UNSIGNED_SHORT_15_1_MESA, 16#8753). +-define(GL_UNSIGNED_SHORT_1_15_REV_MESA, 16#8754). +-define(GL_MESA_program_debug, 1). +-define(GL_FRAGMENT_PROGRAM_POSITION_MESA, 16#8BB0). +-define(GL_FRAGMENT_PROGRAM_CALLBACK_MESA, 16#8BB1). +-define(GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA, 16#8BB2). +-define(GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA, 16#8BB3). +-define(GL_VERTEX_PROGRAM_POSITION_MESA, 16#8BB4). +-define(GL_VERTEX_PROGRAM_CALLBACK_MESA, 16#8BB5). +-define(GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA, 16#8BB6). +-define(GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA, 16#8BB7). +-define(GL_MESA_texture_array, 1). +-define(GL_TEXTURE_1D_ARRAY_EXT, 16#8C18). +-define(GL_PROXY_TEXTURE_1D_ARRAY_EXT, 16#8C19). +-define(GL_TEXTURE_2D_ARRAY_EXT, 16#8C1A). +-define(GL_PROXY_TEXTURE_2D_ARRAY_EXT, 16#8C1B). +-define(GL_TEXTURE_BINDING_1D_ARRAY_EXT, 16#8C1C). +-define(GL_TEXTURE_BINDING_2D_ARRAY_EXT, 16#8C1D). +-define(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, 16#88FF). +-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT, 16#8CD4). +-define(GL_ATI_blend_equation_separate, 1). +-define(GL_ALPHA_BLEND_EQUATION_ATI, 16#883D). +-define(GL_OES_EGL_image, 1). +-define(GL_GLEXT_VERSION, 66). +-define(GL_BLEND_DST_RGB, 16#80C8). +-define(GL_BLEND_SRC_RGB, 16#80C9). +-define(GL_BLEND_DST_ALPHA, 16#80CA). +-define(GL_BLEND_SRC_ALPHA, 16#80CB). +-define(GL_POINT_FADE_THRESHOLD_SIZE, 16#8128). +-define(GL_DEPTH_COMPONENT16, 16#81A5). +-define(GL_DEPTH_COMPONENT24, 16#81A6). +-define(GL_DEPTH_COMPONENT32, 16#81A7). +-define(GL_MIRRORED_REPEAT, 16#8370). +-define(GL_MAX_TEXTURE_LOD_BIAS, 16#84FD). +-define(GL_TEXTURE_LOD_BIAS, 16#8501). +-define(GL_INCR_WRAP, 16#8507). +-define(GL_DECR_WRAP, 16#8508). +-define(GL_TEXTURE_DEPTH_SIZE, 16#884A). +-define(GL_TEXTURE_COMPARE_MODE, 16#884C). +-define(GL_TEXTURE_COMPARE_FUNC, 16#884D). -define(GL_POINT_SIZE_MIN, 16#8126). -define(GL_POINT_SIZE_MAX, 16#8127). --define(GL_POINT_FADE_THRESHOLD_SIZE, 16#8128). -define(GL_POINT_DISTANCE_ATTENUATION, 16#8129). +-define(GL_GENERATE_MIPMAP, 16#8191). +-define(GL_GENERATE_MIPMAP_HINT, 16#8192). -define(GL_FOG_COORDINATE_SOURCE, 16#8450). -define(GL_FOG_COORDINATE, 16#8451). -define(GL_FRAGMENT_DEPTH, 16#8452). @@ -762,101 +865,9 @@ -define(GL_SECONDARY_COLOR_ARRAY_STRIDE, 16#845C). -define(GL_SECONDARY_COLOR_ARRAY_POINTER, 16#845D). -define(GL_SECONDARY_COLOR_ARRAY, 16#845E). --define(GL_INCR_WRAP, 16#8507). --define(GL_DECR_WRAP, 16#8508). --define(GL_MAX_TEXTURE_LOD_BIAS, 16#84FD). -define(GL_TEXTURE_FILTER_CONTROL, 16#8500). --define(GL_TEXTURE_LOD_BIAS, 16#8501). --define(GL_GENERATE_MIPMAP, 16#8191). --define(GL_GENERATE_MIPMAP_HINT, 16#8192). --define(GL_BLEND_DST_RGB, 16#80C8). --define(GL_BLEND_SRC_RGB, 16#80C9). --define(GL_BLEND_DST_ALPHA, 16#80CA). --define(GL_BLEND_SRC_ALPHA, 16#80CB). --define(GL_MIRRORED_REPEAT, 16#8370). --define(GL_DEPTH_COMPONENT16, 16#81A5). --define(GL_DEPTH_COMPONENT24, 16#81A6). --define(GL_DEPTH_COMPONENT32, 16#81A7). --define(GL_TEXTURE_DEPTH_SIZE, 16#884A). -define(GL_DEPTH_TEXTURE_MODE, 16#884B). --define(GL_TEXTURE_COMPARE_MODE, 16#884C). --define(GL_TEXTURE_COMPARE_FUNC, 16#884D). -define(GL_COMPARE_R_TO_TEXTURE, 16#884E). --define(GL_GLEXT_VERSION, 65). --define(GL_CONSTANT_COLOR, 16#8001). --define(GL_ONE_MINUS_CONSTANT_COLOR, 16#8002). --define(GL_CONSTANT_ALPHA, 16#8003). --define(GL_ONE_MINUS_CONSTANT_ALPHA, 16#8004). --define(GL_BLEND_COLOR, 16#8005). --define(GL_FUNC_ADD, 16#8006). --define(GL_MIN, 16#8007). --define(GL_MAX, 16#8008). --define(GL_BLEND_EQUATION, 16#8009). --define(GL_FUNC_SUBTRACT, 16#800A). --define(GL_FUNC_REVERSE_SUBTRACT, 16#800B). --define(GL_CONVOLUTION_1D, 16#8010). --define(GL_CONVOLUTION_2D, 16#8011). --define(GL_SEPARABLE_2D, 16#8012). --define(GL_CONVOLUTION_BORDER_MODE, 16#8013). --define(GL_CONVOLUTION_FILTER_SCALE, 16#8014). --define(GL_CONVOLUTION_FILTER_BIAS, 16#8015). --define(GL_REDUCE, 16#8016). --define(GL_CONVOLUTION_FORMAT, 16#8017). --define(GL_CONVOLUTION_WIDTH, 16#8018). --define(GL_CONVOLUTION_HEIGHT, 16#8019). --define(GL_MAX_CONVOLUTION_WIDTH, 16#801A). --define(GL_MAX_CONVOLUTION_HEIGHT, 16#801B). --define(GL_POST_CONVOLUTION_RED_SCALE, 16#801C). --define(GL_POST_CONVOLUTION_GREEN_SCALE, 16#801D). --define(GL_POST_CONVOLUTION_BLUE_SCALE, 16#801E). --define(GL_POST_CONVOLUTION_ALPHA_SCALE, 16#801F). --define(GL_POST_CONVOLUTION_RED_BIAS, 16#8020). --define(GL_POST_CONVOLUTION_GREEN_BIAS, 16#8021). --define(GL_POST_CONVOLUTION_BLUE_BIAS, 16#8022). --define(GL_POST_CONVOLUTION_ALPHA_BIAS, 16#8023). --define(GL_HISTOGRAM, 16#8024). --define(GL_PROXY_HISTOGRAM, 16#8025). --define(GL_HISTOGRAM_WIDTH, 16#8026). --define(GL_HISTOGRAM_FORMAT, 16#8027). --define(GL_HISTOGRAM_RED_SIZE, 16#8028). --define(GL_HISTOGRAM_GREEN_SIZE, 16#8029). --define(GL_HISTOGRAM_BLUE_SIZE, 16#802A). --define(GL_HISTOGRAM_ALPHA_SIZE, 16#802B). --define(GL_HISTOGRAM_LUMINANCE_SIZE, 16#802C). --define(GL_HISTOGRAM_SINK, 16#802D). --define(GL_MINMAX, 16#802E). --define(GL_MINMAX_FORMAT, 16#802F). --define(GL_MINMAX_SINK, 16#8030). --define(GL_COLOR_MATRIX, 16#80B1). --define(GL_COLOR_MATRIX_STACK_DEPTH, 16#80B2). --define(GL_MAX_COLOR_MATRIX_STACK_DEPTH, 16#80B3). --define(GL_POST_COLOR_MATRIX_RED_SCALE, 16#80B4). --define(GL_POST_COLOR_MATRIX_GREEN_SCALE, 16#80B5). --define(GL_POST_COLOR_MATRIX_BLUE_SCALE, 16#80B6). --define(GL_POST_COLOR_MATRIX_ALPHA_SCALE, 16#80B7). --define(GL_POST_COLOR_MATRIX_RED_BIAS, 16#80B8). --define(GL_POST_COLOR_MATRIX_GREEN_BIAS, 16#80B9). --define(GL_POST_COLOR_MATRIX_BLUE_BIAS, 16#80BA). --define(GL_POST_COLOR_MATRIX_ALPHA_BIAS, 16#80BB). --define(GL_COLOR_TABLE, 16#80D0). --define(GL_POST_CONVOLUTION_COLOR_TABLE, 16#80D1). --define(GL_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D2). --define(GL_PROXY_COLOR_TABLE, 16#80D3). --define(GL_PROXY_POST_CONVOLUTION_COLOR_TABLE, 16#80D4). --define(GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D5). --define(GL_COLOR_TABLE_SCALE, 16#80D6). --define(GL_COLOR_TABLE_BIAS, 16#80D7). --define(GL_COLOR_TABLE_FORMAT, 16#80D8). --define(GL_COLOR_TABLE_WIDTH, 16#80D9). --define(GL_COLOR_TABLE_RED_SIZE, 16#80DA). --define(GL_COLOR_TABLE_GREEN_SIZE, 16#80DB). --define(GL_COLOR_TABLE_BLUE_SIZE, 16#80DC). --define(GL_COLOR_TABLE_ALPHA_SIZE, 16#80DD). --define(GL_COLOR_TABLE_LUMINANCE_SIZE, 16#80DE). --define(GL_COLOR_TABLE_INTENSITY_SIZE, 16#80DF). --define(GL_CONSTANT_BORDER, 16#8151). --define(GL_REPLICATE_BORDER, 16#8153). --define(GL_CONVOLUTION_BORDER_COLOR, 16#8154). -define(GL_BUFFER_SIZE, 16#8764). -define(GL_BUFFER_USAGE, 16#8765). -define(GL_QUERY_COUNTER_BITS, 16#8864). @@ -1184,41 +1195,6 @@ -define(GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW, 16#900D). -define(GL_INT_SAMPLER_CUBE_MAP_ARRAY, 16#900E). -define(GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY, 16#900F). --define(GL_TEXTURE0_ARB, 16#84C0). --define(GL_TEXTURE1_ARB, 16#84C1). --define(GL_TEXTURE2_ARB, 16#84C2). --define(GL_TEXTURE3_ARB, 16#84C3). --define(GL_TEXTURE4_ARB, 16#84C4). --define(GL_TEXTURE5_ARB, 16#84C5). --define(GL_TEXTURE6_ARB, 16#84C6). --define(GL_TEXTURE7_ARB, 16#84C7). --define(GL_TEXTURE8_ARB, 16#84C8). --define(GL_TEXTURE9_ARB, 16#84C9). --define(GL_TEXTURE10_ARB, 16#84CA). --define(GL_TEXTURE11_ARB, 16#84CB). --define(GL_TEXTURE12_ARB, 16#84CC). --define(GL_TEXTURE13_ARB, 16#84CD). --define(GL_TEXTURE14_ARB, 16#84CE). --define(GL_TEXTURE15_ARB, 16#84CF). --define(GL_TEXTURE16_ARB, 16#84D0). --define(GL_TEXTURE17_ARB, 16#84D1). --define(GL_TEXTURE18_ARB, 16#84D2). --define(GL_TEXTURE19_ARB, 16#84D3). --define(GL_TEXTURE20_ARB, 16#84D4). --define(GL_TEXTURE21_ARB, 16#84D5). --define(GL_TEXTURE22_ARB, 16#84D6). --define(GL_TEXTURE23_ARB, 16#84D7). --define(GL_TEXTURE24_ARB, 16#84D8). --define(GL_TEXTURE25_ARB, 16#84D9). --define(GL_TEXTURE26_ARB, 16#84DA). --define(GL_TEXTURE27_ARB, 16#84DB). --define(GL_TEXTURE28_ARB, 16#84DC). --define(GL_TEXTURE29_ARB, 16#84DD). --define(GL_TEXTURE30_ARB, 16#84DE). --define(GL_TEXTURE31_ARB, 16#84DF). --define(GL_ACTIVE_TEXTURE_ARB, 16#84E0). --define(GL_CLIENT_ACTIVE_TEXTURE_ARB, 16#84E1). --define(GL_MAX_TEXTURE_UNITS_ARB, 16#84E2). -define(GL_TRANSPOSE_MODELVIEW_MATRIX_ARB, 16#84E3). -define(GL_TRANSPOSE_PROJECTION_MATRIX_ARB, 16#84E4). -define(GL_TRANSPOSE_TEXTURE_MATRIX_ARB, 16#84E5). @@ -1956,6 +1932,7 @@ -define(GL_UNKNOWN_CONTEXT_RESET_ARB, 16#8255). -define(GL_RESET_NOTIFICATION_STRATEGY_ARB, 16#8256). -define(GL_NO_RESET_NOTIFICATION_ARB, 16#8261). +-define(GL_ABGR_EXT, 16#8000). -define(GL_CONSTANT_COLOR_EXT, 16#8001). -define(GL_ONE_MINUS_CONSTANT_COLOR_EXT, 16#8002). -define(GL_CONSTANT_ALPHA_EXT, 16#8003). @@ -2118,6 +2095,15 @@ -define(GL_LINEAR_SHARPEN_ALPHA_SGIS, 16#80AE). -define(GL_LINEAR_SHARPEN_COLOR_SGIS, 16#80AF). -define(GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS, 16#80B0). +-define(GL_UNSIGNED_BYTE_3_3_2_EXT, 16#8032). +-define(GL_UNSIGNED_SHORT_4_4_4_4_EXT, 16#8033). +-define(GL_UNSIGNED_SHORT_5_5_5_1_EXT, 16#8034). +-define(GL_UNSIGNED_INT_8_8_8_8_EXT, 16#8035). +-define(GL_UNSIGNED_INT_10_10_10_2_EXT, 16#8036). +-define(GL_TEXTURE_MIN_LOD_SGIS, 16#813A). +-define(GL_TEXTURE_MAX_LOD_SGIS, 16#813B). +-define(GL_TEXTURE_BASE_LEVEL_SGIS, 16#813C). +-define(GL_TEXTURE_MAX_LEVEL_SGIS, 16#813D). -define(GL_MULTISAMPLE_SGIS, 16#809D). -define(GL_SAMPLE_ALPHA_TO_MASK_SGIS, 16#809E). -define(GL_SAMPLE_ALPHA_TO_ONE_SGIS, 16#809F). @@ -2134,6 +2120,41 @@ -define(GL_SAMPLE_MASK_VALUE_SGIS, 16#80AA). -define(GL_SAMPLE_MASK_INVERT_SGIS, 16#80AB). -define(GL_SAMPLE_PATTERN_SGIS, 16#80AC). +-define(GL_RESCALE_NORMAL_EXT, 16#803A). +-define(GL_VERTEX_ARRAY_EXT, 16#8074). +-define(GL_NORMAL_ARRAY_EXT, 16#8075). +-define(GL_COLOR_ARRAY_EXT, 16#8076). +-define(GL_INDEX_ARRAY_EXT, 16#8077). +-define(GL_TEXTURE_COORD_ARRAY_EXT, 16#8078). +-define(GL_EDGE_FLAG_ARRAY_EXT, 16#8079). +-define(GL_VERTEX_ARRAY_SIZE_EXT, 16#807A). +-define(GL_VERTEX_ARRAY_TYPE_EXT, 16#807B). +-define(GL_VERTEX_ARRAY_STRIDE_EXT, 16#807C). +-define(GL_VERTEX_ARRAY_COUNT_EXT, 16#807D). +-define(GL_NORMAL_ARRAY_TYPE_EXT, 16#807E). +-define(GL_NORMAL_ARRAY_STRIDE_EXT, 16#807F). +-define(GL_NORMAL_ARRAY_COUNT_EXT, 16#8080). +-define(GL_COLOR_ARRAY_SIZE_EXT, 16#8081). +-define(GL_COLOR_ARRAY_TYPE_EXT, 16#8082). +-define(GL_COLOR_ARRAY_STRIDE_EXT, 16#8083). +-define(GL_COLOR_ARRAY_COUNT_EXT, 16#8084). +-define(GL_INDEX_ARRAY_TYPE_EXT, 16#8085). +-define(GL_INDEX_ARRAY_STRIDE_EXT, 16#8086). +-define(GL_INDEX_ARRAY_COUNT_EXT, 16#8087). +-define(GL_TEXTURE_COORD_ARRAY_SIZE_EXT, 16#8088). +-define(GL_TEXTURE_COORD_ARRAY_TYPE_EXT, 16#8089). +-define(GL_TEXTURE_COORD_ARRAY_STRIDE_EXT, 16#808A). +-define(GL_TEXTURE_COORD_ARRAY_COUNT_EXT, 16#808B). +-define(GL_EDGE_FLAG_ARRAY_STRIDE_EXT, 16#808C). +-define(GL_EDGE_FLAG_ARRAY_COUNT_EXT, 16#808D). +-define(GL_VERTEX_ARRAY_POINTER_EXT, 16#808E). +-define(GL_NORMAL_ARRAY_POINTER_EXT, 16#808F). +-define(GL_COLOR_ARRAY_POINTER_EXT, 16#8090). +-define(GL_INDEX_ARRAY_POINTER_EXT, 16#8091). +-define(GL_TEXTURE_COORD_ARRAY_POINTER_EXT, 16#8092). +-define(GL_EDGE_FLAG_ARRAY_POINTER_EXT, 16#8093). +-define(GL_GENERATE_MIPMAP_SGIS, 16#8191). +-define(GL_GENERATE_MIPMAP_HINT_SGIS, 16#8192). -define(GL_LINEAR_CLIPMAP_LINEAR_SGIX, 16#8170). -define(GL_TEXTURE_CLIPMAP_CENTER_SGIX, 16#8171). -define(GL_TEXTURE_CLIPMAP_FRAME_SGIX, 16#8172). @@ -2146,12 +2167,18 @@ -define(GL_NEAREST_CLIPMAP_NEAREST_SGIX, 16#844D). -define(GL_NEAREST_CLIPMAP_LINEAR_SGIX, 16#844E). -define(GL_LINEAR_CLIPMAP_NEAREST_SGIX, 16#844F). +-define(GL_TEXTURE_COMPARE_SGIX, 16#819A). +-define(GL_TEXTURE_COMPARE_OPERATOR_SGIX, 16#819B). +-define(GL_TEXTURE_LEQUAL_R_SGIX, 16#819C). +-define(GL_TEXTURE_GEQUAL_R_SGIX, 16#819D). -define(GL_CLAMP_TO_EDGE_SGIS, 16#812F). -define(GL_CLAMP_TO_BORDER_SGIS, 16#812D). -define(GL_FUNC_ADD_EXT, 16#8006). -define(GL_MIN_EXT, 16#8007). -define(GL_MAX_EXT, 16#8008). -define(GL_BLEND_EQUATION_EXT, 16#8009). +-define(GL_FUNC_SUBTRACT_EXT, 16#800A). +-define(GL_FUNC_REVERSE_SUBTRACT_EXT, 16#800B). -define(GL_INTERLACE_SGIX, 16#8094). -define(GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX, 16#813E). -define(GL_PIXEL_TILE_CACHE_INCREMENT_SGIX, 16#813F). @@ -2216,6 +2243,9 @@ -define(GL_MAX_DEFORMATION_ORDER_SGIX, 16#8197). -define(GL_REFERENCE_PLANE_SGIX, 16#817D). -define(GL_REFERENCE_PLANE_EQUATION_SGIX, 16#817E). +-define(GL_DEPTH_COMPONENT16_SGIX, 16#81A5). +-define(GL_DEPTH_COMPONENT24_SGIX, 16#81A6). +-define(GL_DEPTH_COMPONENT32_SGIX, 16#81A7). -define(GL_FOG_FUNC_SGIS, 16#812A). -define(GL_FOG_FUNC_POINTS_SGIS, 16#812B). -define(GL_MAX_FOG_FUNC_POINTS_SGIS, 16#812C). @@ -2393,6 +2423,7 @@ -define(GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT, 16#8336). -define(GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT, 16#8337). -define(GL_PIXEL_TRANSFORM_2D_MATRIX_EXT, 16#8338). +-define(GL_SHARED_TEXTURE_PALETTE_EXT, 16#81FB). -define(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, 16#81F8). -define(GL_SINGLE_COLOR_EXT, 16#81F9). -define(GL_SEPARATE_SPECULAR_COLOR_EXT, 16#81FA). @@ -3387,7 +3418,6 @@ -define(GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT, 16#8DA7). -define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT, 16#8DA8). -define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT, 16#8DA9). --define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT, 16#8CD4). -define(GL_PROGRAM_POINT_SIZE_EXT, 16#8642). -define(GL_GEOMETRY_SHADER_EXT, 16#8DD9). -define(GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT, 16#8DDD). @@ -3425,13 +3455,6 @@ -define(GL_R11F_G11F_B10F_EXT, 16#8C3A). -define(GL_UNSIGNED_INT_10F_11F_11F_REV_EXT, 16#8C3B). -define(GL_RGBA_SIGNED_COMPONENTS_EXT, 16#8C3C). --define(GL_TEXTURE_1D_ARRAY_EXT, 16#8C18). --define(GL_PROXY_TEXTURE_1D_ARRAY_EXT, 16#8C19). --define(GL_TEXTURE_2D_ARRAY_EXT, 16#8C1A). --define(GL_PROXY_TEXTURE_2D_ARRAY_EXT, 16#8C1B). --define(GL_TEXTURE_BINDING_1D_ARRAY_EXT, 16#8C1C). --define(GL_TEXTURE_BINDING_2D_ARRAY_EXT, 16#8C1D). --define(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, 16#88FF). -define(GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT, 16#884E). -define(GL_TEXTURE_BUFFER_EXT, 16#8C2A). -define(GL_MAX_TEXTURE_BUFFER_SIZE_EXT, 16#8C2B). @@ -3857,396 +3880,5 @@ -define(GL_SURFACE_REGISTERED_NV, 16#86FD). -define(GL_SURFACE_MAPPED_NV, 16#8700). -define(GL_WRITE_DISCARD_NV, 16#88BE). --define(GL_VERSION_1_2, 1). --define(GL_VERSION_1_2_DEPRECATED, 1). --define(GL_VERSION_1_3, 1). --define(GL_VERSION_1_3_DEPRECATED, 1). --define(GL_VERSION_1_4, 1). --define(GL_VERSION_1_4_DEPRECATED, 1). --define(GL_VERSION_1_5, 1). --define(GL_VERSION_2_0, 1). --define(GL_VERSION_2_1, 1). --define(GL_VERSION_3_0, 1). --define(GL_VERSION_3_1, 1). --define(GL_VERSION_3_2, 1). --define(GL_VERSION_3_3, 1). --define(GL_VERSION_4_0, 1). --define(GL_VERSION_4_1, 1). --define(GL_ARB_multitexture, 1). --define(GL_ARB_transpose_matrix, 1). --define(GL_ARB_multisample, 1). --define(GL_ARB_texture_env_add, 1). --define(GL_ARB_texture_cube_map, 1). --define(GL_ARB_texture_compression, 1). --define(GL_ARB_texture_border_clamp, 1). --define(GL_ARB_point_parameters, 1). --define(GL_ARB_vertex_blend, 1). --define(GL_ARB_matrix_palette, 1). --define(GL_ARB_texture_env_combine, 1). --define(GL_ARB_texture_env_crossbar, 1). --define(GL_ARB_texture_env_dot3, 1). --define(GL_ARB_texture_mirrored_repeat, 1). --define(GL_ARB_depth_texture, 1). --define(GL_ARB_shadow, 1). --define(GL_ARB_shadow_ambient, 1). --define(GL_ARB_window_pos, 1). --define(GL_ARB_vertex_program, 1). --define(GL_ARB_fragment_program, 1). --define(GL_ARB_vertex_buffer_object, 1). --define(GL_ARB_occlusion_query, 1). --define(GL_ARB_shader_objects, 1). --define(GL_ARB_vertex_shader, 1). --define(GL_ARB_fragment_shader, 1). --define(GL_ARB_shading_language_100, 1). --define(GL_ARB_texture_non_power_of_two, 1). --define(GL_ARB_point_sprite, 1). --define(GL_ARB_fragment_program_shadow, 1). --define(GL_ARB_draw_buffers, 1). --define(GL_ARB_texture_rectangle, 1). --define(GL_ARB_color_buffer_float, 1). --define(GL_ARB_half_float_pixel, 1). --define(GL_ARB_texture_float, 1). --define(GL_ARB_pixel_buffer_object, 1). --define(GL_ARB_depth_buffer_float, 1). --define(GL_ARB_draw_instanced, 1). --define(GL_ARB_framebuffer_object, 1). --define(GL_ARB_framebuffer_sRGB, 1). --define(GL_ARB_geometry_shader4, 1). --define(GL_ARB_half_float_vertex, 1). --define(GL_ARB_instanced_arrays, 1). --define(GL_ARB_map_buffer_range, 1). --define(GL_ARB_texture_buffer_object, 1). --define(GL_ARB_texture_compression_rgtc, 1). --define(GL_ARB_texture_rg, 1). --define(GL_ARB_vertex_array_object, 1). --define(GL_ARB_uniform_buffer_object, 1). --define(GL_ARB_compatibility, 1). --define(GL_ARB_copy_buffer, 1). --define(GL_ARB_shader_texture_lod, 1). --define(GL_ARB_depth_clamp, 1). --define(GL_ARB_draw_elements_base_vertex, 1). --define(GL_ARB_fragment_coord_conventions, 1). --define(GL_ARB_provoking_vertex, 1). --define(GL_ARB_seamless_cube_map, 1). --define(GL_ARB_sync, 1). --define(GL_ARB_texture_multisample, 1). --define(GL_ARB_vertex_array_bgra, 1). --define(GL_ARB_draw_buffers_blend, 1). --define(GL_ARB_sample_shading, 1). --define(GL_ARB_texture_cube_map_array, 1). --define(GL_ARB_texture_gather, 1). --define(GL_ARB_texture_query_lod, 1). --define(GL_ARB_shading_language_include, 1). --define(GL_ARB_texture_compression_bptc, 1). --define(GL_ARB_blend_func_extended, 1). --define(GL_ARB_explicit_attrib_location, 1). --define(GL_ARB_occlusion_query2, 1). --define(GL_ARB_sampler_objects, 1). --define(GL_ARB_texture_rgb10_a2ui, 1). --define(GL_ARB_texture_swizzle, 1). --define(GL_ARB_timer_query, 1). --define(GL_ARB_vertex_type_2_10_10_10_rev, 1). --define(GL_ARB_draw_indirect, 1). --define(GL_ARB_gpu_shader5, 1). --define(GL_ARB_gpu_shader_fp64, 1). --define(GL_ARB_shader_subroutine, 1). --define(GL_ARB_tessellation_shader, 1). --define(GL_ARB_texture_buffer_object_rgb32, 1). --define(GL_ARB_transform_feedback2, 1). --define(GL_ARB_transform_feedback3, 1). --define(GL_ARB_ES2_compatibility, 1). --define(GL_ARB_get_program_binary, 1). --define(GL_ARB_separate_shader_objects, 1). --define(GL_ARB_vertex_attrib_64bit, 1). --define(GL_ARB_viewport_array, 1). --define(GL_ARB_cl_event, 1). --define(GL_ARB_debug_output, 1). --define(GL_ARB_robustness, 1). --define(GL_ARB_shader_stencil_export, 1). --define(GL_EXT_abgr, 1). --define(GL_EXT_blend_color, 1). --define(GL_EXT_polygon_offset, 1). --define(GL_EXT_texture, 1). --define(GL_EXT_texture3D, 1). --define(GL_SGIS_texture_filter4, 1). --define(GL_EXT_subtexture, 1). --define(GL_EXT_copy_texture, 1). --define(GL_EXT_histogram, 1). --define(GL_EXT_convolution, 1). --define(GL_SGI_color_matrix, 1). --define(GL_SGI_color_table, 1). --define(GL_SGIX_pixel_texture, 1). --define(GL_SGIS_pixel_texture, 1). --define(GL_SGIS_texture4D, 1). --define(GL_SGI_texture_color_table, 1). --define(GL_EXT_cmyka, 1). --define(GL_EXT_texture_object, 1). --define(GL_SGIS_detail_texture, 1). --define(GL_SGIS_sharpen_texture, 1). --define(GL_EXT_packed_pixels, 1). --define(GL_SGIS_texture_lod, 1). --define(GL_SGIS_multisample, 1). --define(GL_EXT_rescale_normal, 1). --define(GL_EXT_vertex_array, 1). --define(GL_EXT_misc_attribute, 1). --define(GL_SGIS_generate_mipmap, 1). --define(GL_SGIX_clipmap, 1). --define(GL_SGIX_shadow, 1). --define(GL_SGIS_texture_edge_clamp, 1). --define(GL_SGIS_texture_border_clamp, 1). --define(GL_EXT_blend_minmax, 1). --define(GL_EXT_blend_subtract, 1). --define(GL_EXT_blend_logic_op, 1). --define(GL_SGIX_interlace, 1). --define(GL_SGIX_pixel_tiles, 1). --define(GL_SGIX_texture_select, 1). --define(GL_SGIX_sprite, 1). --define(GL_SGIX_texture_multi_buffer, 1). --define(GL_EXT_point_parameters, 1). --define(GL_SGIS_point_parameters, 1). --define(GL_SGIX_instruments, 1). --define(GL_SGIX_texture_scale_bias, 1). --define(GL_SGIX_framezoom, 1). --define(GL_SGIX_tag_sample_buffer, 1). --define(GL_SGIX_polynomial_ffd, 1). --define(GL_SGIX_reference_plane, 1). --define(GL_SGIX_flush_raster, 1). --define(GL_SGIX_depth_texture, 1). --define(GL_SGIS_fog_function, 1). --define(GL_SGIX_fog_offset, 1). --define(GL_HP_image_transform, 1). --define(GL_HP_convolution_border_modes, 1). --define(GL_SGIX_texture_add_env, 1). --define(GL_EXT_color_subtable, 1). --define(GL_PGI_vertex_hints, 1). --define(GL_PGI_misc_hints, 1). --define(GL_EXT_paletted_texture, 1). --define(GL_EXT_clip_volume_hint, 1). --define(GL_SGIX_list_priority, 1). --define(GL_SGIX_ir_instrument1, 1). --define(GL_SGIX_calligraphic_fragment, 1). --define(GL_SGIX_texture_lod_bias, 1). --define(GL_SGIX_shadow_ambient, 1). --define(GL_EXT_index_texture, 1). --define(GL_EXT_index_material, 1). --define(GL_EXT_index_func, 1). --define(GL_EXT_index_array_formats, 1). --define(GL_EXT_compiled_vertex_array, 1). --define(GL_EXT_cull_vertex, 1). --define(GL_SGIX_ycrcb, 1). --define(GL_SGIX_fragment_lighting, 1). --define(GL_IBM_rasterpos_clip, 1). --define(GL_HP_texture_lighting, 1). --define(GL_EXT_draw_range_elements, 1). --define(GL_WIN_phong_shading, 1). --define(GL_WIN_specular_fog, 1). --define(GL_EXT_light_texture, 1). --define(GL_SGIX_blend_alpha_minmax, 1). --define(GL_EXT_bgra, 1). --define(GL_SGIX_async, 1). --define(GL_SGIX_async_pixel, 1). --define(GL_SGIX_async_histogram, 1). --define(GL_INTEL_parallel_arrays, 1). --define(GL_HP_occlusion_test, 1). --define(GL_EXT_pixel_transform, 1). --define(GL_EXT_pixel_transform_color_table, 1). --define(GL_EXT_shared_texture_palette, 1). --define(GL_EXT_separate_specular_color, 1). --define(GL_EXT_secondary_color, 1). --define(GL_EXT_texture_perturb_normal, 1). --define(GL_EXT_multi_draw_arrays, 1). --define(GL_EXT_fog_coord, 1). --define(GL_REND_screen_coordinates, 1). --define(GL_EXT_coordinate_frame, 1). --define(GL_EXT_texture_env_combine, 1). --define(GL_APPLE_specular_vector, 1). --define(GL_APPLE_transform_hint, 1). --define(GL_SGIX_fog_scale, 1). --define(GL_SUNX_constant_data, 1). --define(GL_SUN_global_alpha, 1). --define(GL_SUN_triangle_list, 1). --define(GL_SUN_vertex, 1). --define(GL_EXT_blend_func_separate, 1). --define(GL_INGR_blend_func_separate, 1). --define(GL_INGR_color_clamp, 1). --define(GL_INGR_interlace_read, 1). --define(GL_EXT_stencil_wrap, 1). --define(GL_EXT_422_pixels, 1). --define(GL_NV_texgen_reflection, 1). --define(GL_SUN_convolution_border_modes, 1). --define(GL_EXT_texture_env_add, 1). --define(GL_EXT_texture_lod_bias, 1). --define(GL_EXT_texture_filter_anisotropic, 1). --define(GL_EXT_vertex_weighting, 1). --define(GL_NV_light_max_exponent, 1). --define(GL_NV_vertex_array_range, 1). --define(GL_NV_register_combiners, 1). --define(GL_NV_fog_distance, 1). --define(GL_NV_texgen_emboss, 1). --define(GL_NV_blend_square, 1). --define(GL_NV_texture_env_combine4, 1). --define(GL_MESA_resize_buffers, 1). --define(GL_MESA_window_pos, 1). --define(GL_IBM_cull_vertex, 1). --define(GL_IBM_multimode_draw_arrays, 1). --define(GL_IBM_vertex_array_lists, 1). --define(GL_SGIX_subsample, 1). --define(GL_SGIX_ycrcba, 1). --define(GL_SGIX_ycrcb_subsample, 1). --define(GL_SGIX_depth_pass_instrument, 1). --define(GL_3DFX_texture_compression_FXT1, 1). --define(GL_3DFX_multisample, 1). --define(GL_3DFX_tbuffer, 1). --define(GL_EXT_multisample, 1). --define(GL_SGIX_vertex_preclip, 1). --define(GL_SGIX_convolution_accuracy, 1). --define(GL_SGIX_resample, 1). --define(GL_SGIS_point_line_texgen, 1). --define(GL_SGIS_texture_color_mask, 1). --define(GL_SGIX_igloo_interface, 1). --define(GL_EXT_texture_env_dot3, 1). --define(GL_ATI_texture_mirror_once, 1). --define(GL_NV_fence, 1). --define(GL_NV_evaluators, 1). --define(GL_NV_packed_depth_stencil, 1). --define(GL_NV_register_combiners2, 1). --define(GL_NV_texture_compression_vtc, 1). --define(GL_NV_texture_rectangle, 1). --define(GL_NV_texture_shader, 1). --define(GL_NV_texture_shader2, 1). --define(GL_NV_vertex_array_range2, 1). --define(GL_NV_vertex_program, 1). --define(GL_SGIX_texture_coordinate_clamp, 1). --define(GL_SGIX_scalebias_hint, 1). --define(GL_OML_interlace, 1). --define(GL_OML_subsample, 1). --define(GL_OML_resample, 1). --define(GL_NV_copy_depth_to_color, 1). --define(GL_ATI_envmap_bumpmap, 1). --define(GL_ATI_fragment_shader, 1). --define(GL_ATI_pn_triangles, 1). --define(GL_ATI_vertex_array_object, 1). --define(GL_EXT_vertex_shader, 1). --define(GL_ATI_vertex_streams, 1). --define(GL_ATI_element_array, 1). --define(GL_SUN_mesh_array, 1). --define(GL_SUN_slice_accum, 1). --define(GL_NV_multisample_filter_hint, 1). --define(GL_NV_depth_clamp, 1). --define(GL_NV_occlusion_query, 1). --define(GL_NV_point_sprite, 1). --define(GL_NV_texture_shader3, 1). --define(GL_NV_vertex_program1_1, 1). --define(GL_EXT_shadow_funcs, 1). --define(GL_EXT_stencil_two_side, 1). --define(GL_ATI_text_fragment_shader, 1). --define(GL_APPLE_client_storage, 1). --define(GL_APPLE_element_array, 1). --define(GL_APPLE_fence, 1). --define(GL_APPLE_vertex_array_object, 1). --define(GL_APPLE_vertex_array_range, 1). --define(GL_APPLE_ycbcr_422, 1). --define(GL_S3_s3tc, 1). --define(GL_ATI_draw_buffers, 1). --define(GL_ATI_pixel_format_float, 1). --define(GL_ATI_texture_env_combine3, 1). --define(GL_ATI_texture_float, 1). --define(GL_NV_float_buffer, 1). --define(GL_NV_fragment_program, 1). --define(GL_NV_half_float, 1). --define(GL_NV_pixel_data_range, 1). --define(GL_NV_primitive_restart, 1). --define(GL_NV_texture_expand_normal, 1). --define(GL_NV_vertex_program2, 1). --define(GL_ATI_map_object_buffer, 1). --define(GL_ATI_separate_stencil, 1). --define(GL_ATI_vertex_attrib_array_object, 1). --define(GL_OES_read_format, 1). --define(GL_EXT_depth_bounds_test, 1). --define(GL_EXT_texture_mirror_clamp, 1). --define(GL_EXT_blend_equation_separate, 1). --define(GL_MESA_pack_invert, 1). --define(GL_MESA_ycbcr_texture, 1). --define(GL_EXT_pixel_buffer_object, 1). --define(GL_NV_fragment_program_option, 1). --define(GL_NV_fragment_program2, 1). --define(GL_NV_vertex_program2_option, 1). --define(GL_NV_vertex_program3, 1). --define(GL_EXT_framebuffer_object, 1). --define(GL_GREMEDY_string_marker, 1). --define(GL_EXT_packed_depth_stencil, 1). --define(GL_EXT_stencil_clear_tag, 1). --define(GL_EXT_texture_sRGB, 1). --define(GL_EXT_framebuffer_blit, 1). --define(GL_EXT_framebuffer_multisample, 1). --define(GL_MESAX_texture_stack, 1). --define(GL_EXT_timer_query, 1). --define(GL_EXT_gpu_program_parameters, 1). --define(GL_APPLE_flush_buffer_range, 1). --define(GL_NV_gpu_program4, 1). --define(GL_NV_geometry_program4, 1). --define(GL_EXT_geometry_shader4, 1). --define(GL_NV_vertex_program4, 1). --define(GL_EXT_gpu_shader4, 1). --define(GL_EXT_draw_instanced, 1). --define(GL_EXT_packed_float, 1). --define(GL_EXT_texture_array, 1). --define(GL_EXT_texture_buffer_object, 1). --define(GL_EXT_texture_compression_latc, 1). --define(GL_EXT_texture_compression_rgtc, 1). --define(GL_EXT_texture_shared_exponent, 1). --define(GL_NV_depth_buffer_float, 1). --define(GL_NV_fragment_program4, 1). --define(GL_NV_framebuffer_multisample_coverage, 1). --define(GL_EXT_framebuffer_sRGB, 1). --define(GL_NV_geometry_shader4, 1). --define(GL_NV_parameter_buffer_object, 1). --define(GL_EXT_draw_buffers2, 1). --define(GL_NV_transform_feedback, 1). --define(GL_EXT_bindable_uniform, 1). --define(GL_EXT_texture_integer, 1). --define(GL_GREMEDY_frame_terminator, 1). --define(GL_NV_conditional_render, 1). --define(GL_NV_present_video, 1). --define(GL_EXT_transform_feedback, 1). --define(GL_EXT_direct_state_access, 1). --define(GL_EXT_vertex_array_bgra, 1). --define(GL_EXT_texture_swizzle, 1). --define(GL_NV_explicit_multisample, 1). --define(GL_NV_transform_feedback2, 1). --define(GL_ATI_meminfo, 1). --define(GL_AMD_performance_monitor, 1). --define(GL_AMD_texture_texture4, 1). --define(GL_AMD_vertex_shader_tesselator, 1). --define(GL_EXT_provoking_vertex, 1). --define(GL_EXT_texture_snorm, 1). --define(GL_AMD_draw_buffers_blend, 1). --define(GL_APPLE_texture_range, 1). --define(GL_APPLE_float_pixels, 1). --define(GL_APPLE_vertex_program_evaluators, 1). --define(GL_APPLE_aux_depth_stencil, 1). --define(GL_APPLE_object_purgeable, 1). --define(GL_APPLE_row_bytes, 1). --define(GL_APPLE_rgb_422, 1). --define(GL_NV_video_capture, 1). --define(GL_NV_copy_image, 1). --define(GL_EXT_separate_shader_objects, 1). --define(GL_NV_parameter_buffer_object2, 1). --define(GL_NV_shader_buffer_load, 1). --define(GL_NV_vertex_buffer_unified_memory, 1). --define(GL_NV_texture_barrier, 1). --define(GL_AMD_shader_stencil_export, 1). --define(GL_AMD_seamless_cubemap_per_texture, 1). --define(GL_AMD_conservative_depth, 1). --define(GL_EXT_shader_image_load_store, 1). --define(GL_EXT_vertex_attrib_64bit, 1). --define(GL_NV_gpu_program5, 1). --define(GL_NV_gpu_shader5, 1). --define(GL_NV_shader_buffer_store, 1). --define(GL_NV_tessellation_program5, 1). --define(GL_NV_vertex_attrib_integer_64bit, 1). --define(GL_NV_multisample_coverage, 1). --define(GL_AMD_name_gen_delete, 1). --define(GL_AMD_debug_output, 1). --define(GL_NV_vdpau_interop, 1). --define(GL_AMD_transform_feedback3_lines_triangles, 1). +-define(GL_DEPTH_CLAMP_NEAR_AMD, 16#901E). +-define(GL_DEPTH_CLAMP_FAR_AMD, 16#901F). diff --git a/lib/wx/src/gen/wxListCtrl.erl b/lib/wx/src/gen/wxListCtrl.erl index bf5f4ae20d..5799206b87 100644 --- a/lib/wx/src/gen/wxListCtrl.erl +++ b/lib/wx/src/gen/wxListCtrl.erl @@ -29,10 +29,10 @@ -module(wxListCtrl). -include("wxe.hrl"). --export([ new/0, new/1, new/2 , sortItems/2 ,arrange/1,arrange/2,assignImageList/3, - clearAll/1,create/2,create/3,deleteAllItems/1,deleteColumn/2,deleteItem/2, - destroy/1,editLabel/2,ensureVisible/2,findItem/3,findItem/4,getColumn/3, - getColumnCount/1,getColumnWidth/2,getCountPerPage/1,getEditControl/1, +-export([ create/2, create/3 , new/0, new/1, new/2 , sortItems/2 ,arrange/1, + arrange/2,assignImageList/3,clearAll/1,deleteAllItems/1,deleteColumn/2, + deleteItem/2,destroy/1,editLabel/2,ensureVisible/2,findItem/3,findItem/4, + getColumn/3,getColumnCount/1,getColumnWidth/2,getCountPerPage/1,getEditControl/1, getImageList/2,getItem/2,getItemBackgroundColour/2,getItemCount/1, getItemData/2,getItemFont/2,getItemPosition/3,getItemRect/3,getItemRect/4, getItemSpacing/1,getItemState/3,getItemText/2,getItemTextColour/2, @@ -105,14 +105,17 @@ new(Parent) %% Option = {winid, integer()} | %% {pos, {X::integer(),Y::integer()}} | %% {size, {W::integer(),H::integer()}} | -%% {style, integer()} | {validator, wx:wx()} -%% {VirtualCallback, Callback::function()} +%% {style, integer()} | +%% {validator, wx:wx()} | +%% {onGetItemText, OnGetItemText} | +%% {onGetItemAttr, OnGetItemAttr} | +%% {onGetItemColumnImage, OnGetItemColumnImage} %% -%% VirtualCallback = onGetItemText | onGetItemAttr | onGetItemImage | onGetItemColumnImage -%% Callback = fun OnGetItemText(This, Item, Column) -> wxString() | -%% fun OnGetItemAttr(This, Item) -> wxListItemAttr() | -%% fun OnGetItemColumnImage(This, Item, Column) -> integer() +%% OnGetItemText = (This, Item, Column) -> wxString() +%% OnGetItemAttr = (This, Item) -> wxListItemAttr() +%% OnGetItemColumnImage = (This, Item, Column) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlwxlistctrl">external documentation</a>. + new(#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options)-> ?CLASS(ParentT,wxWindow), @@ -172,6 +175,7 @@ clearAll(#wx_ref{type=ThisT,ref=ThisRef}) -> wxe_util:cast(?wxListCtrl_ClearAll, <<ThisRef:32/?UI>>). + %% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow()) -> bool() %% @equiv create(This,Parent, []) create(This,Parent) @@ -179,7 +183,18 @@ create(This,Parent) create(This,Parent, []). %% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool() -%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()} +%% Option = {winid, integer()} | +%% {pos, {X::integer(),Y::integer()}} | +%% {size, {W::integer(),H::integer()}} | +%% {style, integer()} | +%% {validator, wx:wx()} | +%% {onGetItemText, OnGetItemText} | +%% {onGetItemAttr, OnGetItemAttr} | +%% {onGetItemColumnImage, OnGetItemColumnImage} +%% +%% OnGetItemText = (This, Item, Column) -> wxString() +%% OnGetItemAttr = (This, Item) -> wxListItemAttr() +%% OnGetItemColumnImage = (This, Item, Column) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlcreate">external documentation</a>. create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> |